summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-17 23:23:22 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-17 23:23:22 +0000
commit2ff37b7da09549f212207d3ea24a0295e5f8c955 (patch)
tree21331eb05e41ae6f15b914bbf38cd6280ccb9d84 /configure.ac
parent8060bfb0e6211bd8f871770bee40f56df4f5fa2c (diff)
Check for <GL/glx.h> & libGL in configure.ac instead of waiting for failure
at build time if neither Mesa nor vendor OpenGL is installed.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 30ff257..06e0375 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,6 +37,15 @@ PKG_CHECK_MODULES(XDRIINFO, x11 glproto)
AC_SUBST(XDRIINFO_CFLAGS)
AC_SUBST(XDRIINFO_LIBS)
+# Checks for non-pkg-config packages (Mesa or vendor OpenGL)
+AC_CHECK_HEADER([GL/glx.h], [],
+ AC_MSG_FAILURE([cannot find GL/glx.h - make sure Mesa or other OpenGL package is installed]))
+
+AC_SEARCH_LIBS([glXGetProcAddress], [GL], [],
+ AC_MSG_FAILURE([cannot find GL library - make sure Mesa or other OpenGL package is installed]),
+ [$XDRIINFO_LIBS])
+
+
XORG_MANPAGE_SECTIONS
XORG_RELEASE_VERSION