diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
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 |