Adds "$prefix/lib" to the lib path and "$prefix/include" to the include path

before attempting to check for GL/gl.h or libGL.


svn path=/trunk/boinc/; revision=16441
This commit is contained in:
Eric J. Korpela 2008-11-07 00:17:39 +00:00
parent ac952126f5
commit e97fb85554
1 changed files with 6 additions and 2 deletions

View File

@ -20,6 +20,10 @@ if test "X$with_apple_opengl_framework" = "Xyes"; then
else else
AC_LANG_PUSH(C) AC_LANG_PUSH(C)
if test x$prefix = xNONE ; then
prefix=$ac_default_prefix
fi
AX_LANG_COMPILER_MS AX_LANG_COMPILER_MS
if test X$ax_compiler_ms = Xno; then if test X$ax_compiler_ms = Xno; then
GL_CFLAGS="${PTHREAD_CFLAGS}" GL_CFLAGS="${PTHREAD_CFLAGS}"
@ -32,10 +36,10 @@ else
# #
if test "X$no_x" != "Xyes"; then if test "X$no_x" != "Xyes"; then
if test -n "$x_includes"; then if test -n "$x_includes"; then
GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" GL_CFLAGS="-I${x_includes} -I${prefix}/include ${GL_CFLAGS}"
fi fi
if test -n "$x_libraries"; then if test -n "$x_libraries"; then
GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" GL_LIBS="-L${x_libraries} -L${prefix}/lib -lX11 ${GL_LIBS}"
fi fi
fi fi