test for GL/glu.h too (fixes part of bug 879474)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-11-04 17:40:31 +00:00
parent 02b0502025
commit 5dfc7e56e5
2 changed files with 145 additions and 2 deletions

View File

@@ -3884,8 +3884,8 @@ if test "$wxUSE_OPENGL" = "yes"; then
CPPFLAGS="$ac_path_to_include $CPPFLAGS"
fi
AC_CHECK_HEADER(GL/gl.h,
[
AC_CHECK_HEADER(GL/gl.h, [
AC_CHECK_HEADER(GL/glu.h, [
found_gl=0
AC_MSG_CHECKING([for -lGL])
@@ -3933,6 +3933,7 @@ if test "$wxUSE_OPENGL" = "yes"; then
fi
fi
])
])
if test "x$OPENGL_LIBS" = "x"; then
dnl it should be an error and not a warning because OpenGL is not on