diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-22 16:04:05 +0000 |
---|---|---|
committer | Rene Engelhard <rene@debian.org> | 2010-12-29 21:20:40 +0100 |
commit | 44f05766429cebf578d53ddef28c21d36c88b0a7 (patch) | |
tree | 6d2a7ad9550f49971fbcdc31632581acc1c82d2b | |
parent | 672fafbd5b5d842a657b36090c375ce840fd6508 (diff) |
Move this system-mesa-headers test inside opengl extension testfeature/helppack
Here it only gets used for non-Windows and non-Linux. It will current defaults
to using these "internal" headers like we do for xrender and friends.
-rw-r--r-- | configure.in | 63 |
1 files changed, 36 insertions, 27 deletions
diff --git a/configure.in b/configure.in index e431cbfd8..5fbe4d330 100644 --- a/configure.in +++ b/configure.in @@ -5449,20 +5449,6 @@ AC_SUBST(XRANDR_LIBS) AC_SUBST(ENABLE_RANDR) dnl =================================================================== -dnl Check for system Mesa -dnl =================================================================== -AC_MSG_CHECKING([which Mesa headers to use]) -if test "$with_system_mesa_headers" = "no"; then - AC_MSG_RESULT([internal]) - SYSTEM_MESA_HEADERS=NO - BUILD_TYPE="$BUILD_TYPE MESA" -else - AC_MSG_RESULT([external]) - SYSTEM_MESA_HEADERS=YES -fi -AC_SUBST(SYSTEM_MESA_HEADERS) - -dnl =================================================================== dnl Check for building neon dnl =================================================================== AC_MSG_CHECKING([whether to use neon]) @@ -6330,22 +6316,45 @@ dnl =================================================================== AC_MSG_CHECKING([whether to build the OpenGL Transitions component]) ENABLE_OPENGL= -if test "x$enable_opengl" != "xno" ; then - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -lm" - AC_MSG_RESULT([yes]) - AC_CHECK_HEADER(GL/gl.h, [], - [AC_MSG_ERROR([OpenGL headers not found])], []) - AC_CHECK_LIB(GL, main, [], - [AC_MSG_ERROR(libGL not installed or functional)], []) - AC_CHECK_LIB(GLU, main, [], - [AC_MSG_ERROR(libGLU not installed or functional)], []) - ENABLE_OPENGL=TRUE - LDFLAGS=$save_LDFLAGS + if test "x$enable_opengl" != "xno" ; then + if test "$_os" != "WINNT"; then + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -lm" + AC_MSG_RESULT([yes]) + AC_CHECK_LIB(GL, main, [], + [AC_MSG_ERROR(libGL not installed or functional)], []) + AC_CHECK_LIB(GLU, main, [], + [AC_MSG_ERROR(libGLU not installed or functional)], []) + ENABLE_OPENGL=TRUE + LDFLAGS=$save_LDFLAGS + + dnl =================================================================== + dnl Check for system Mesa + dnl =================================================================== + AC_MSG_CHECKING([which Mesa headers to use]) + if test -n "$with_system_mesa_headers" -o -n "$with_system_headers" && \ + test "$with_system_mesa_headers" != "no"; then + AC_MSG_RESULT([external]) + SYSTEM_MESA_HEADERS=YES + AC_LANG_PUSH(C) + AC_CHECK_HEADER(GL/glxext.h, [], + [ AC_MSG_ERROR(mesa headers not found.)], [#include <GL/glx.h>]) + AC_MSG_CHECKING([whether GL/glxext.h defines PFNGLXBINDTEXIMAGEEXTPROC]) + AC_EGREP_HEADER(PFNGLXBINDTEXIMAGEEXTPROC, GL/glxext.h, [AC_MSG_RESULT([yes])], AC_MSG_ERROR(no)) + AC_LANG_POP(C) + else + AC_MSG_RESULT([internal]) + SYSTEM_MESA_HEADERS=NO + BUILD_TYPE="$BUILD_TYPE MESA" + fi + else + AC_MSG_RESULT([not on windows]) + fi else - AC_MSG_RESULT([no]) + AC_MSG_RESULT([no]) fi +AC_SUBST(SYSTEM_MESA_HEADERS) AC_SUBST(ENABLE_OPENGL) AC_MSG_CHECKING([whether to build extra presenter ui]) |