Add an appropriate error message if libX11 is missing.

macos/v1.5.9
Eric Anholt 11 years ago
parent 6c0e0423f6
commit 847ba1acdf
  1. 4
      configure.ac

@ -115,6 +115,10 @@ esac
AC_SUBST([VISIBILITY_CFLAGS]) AC_SUBST([VISIBILITY_CFLAGS])
PKG_CHECK_MODULES(X11, [x11], [x11=yes], [x11=no]) PKG_CHECK_MODULES(X11, [x11], [x11=yes], [x11=no])
if test x$x11 = xno -a x$build_glx = xyes; then
AC_MSG_ERROR([libX11 headers (libx11-dev) required to build with GLX support])
fi
AM_CONDITIONAL(HAVE_X11, test x$x11 = xyes) AM_CONDITIONAL(HAVE_X11, test x$x11 = xyes)
PKG_CHECK_MODULES(GL, [gl], [gl=yes], [gl=no]) PKG_CHECK_MODULES(GL, [gl], [gl=yes], [gl=no])

Loading…
Cancel
Save