diff --git a/gb.opengl/configure.ac b/gb.opengl/configure.ac index 4672b9ced..f72ba03ed 100644 --- a/gb.opengl/configure.ac +++ b/gb.opengl/configure.ac @@ -12,13 +12,15 @@ AC_CHECK_HEADER(GL/glx.h, [ AC_MSG_WARN([glx.h not found. Check 'config.log' for more details.]) touch DISABLED]) -GB_COMPONENT_PKG_CONFIG( +GB_COMPONENT_SEARCH( opengl, OPENGL, [OpenGL support component], [src], - gl glu - ) + gl glu, + [GB_FIND(gl.h glu.h, /usr /usr/X11R6 /usr/local, include include/GL)], + [GB_FIND(libGL.$SHLIBEXT libGLU.$SHLIBEXT, /usr /usr/X11R6 /usr/local, lib)], + [-lGL -lGLU]) AC_OUTPUT( \ Makefile \