From: martin-s Date: Sun, 8 Jul 2007 18:07:51 +0000 (+0000) Subject: Check for glc X-Git-Tag: navit-0.5.0.5194svn~4864 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0230fbfbf2d33302ec0bde7341363643b181537a;p=profile%2Fivi%2Fnavit.git Check for glc git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@284 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- diff --git a/navit/configure.in b/navit/configure.in index 035add5..70707b4 100644 --- a/navit/configure.in +++ b/navit/configure.in @@ -108,15 +108,29 @@ AC_CHECK_HEADER( [], Define to 1 if you have the header file. ) - OPENGL_LIBS="-lGL -lGLU -lGLC" + OPENGL_LIBS="-lGL -lGLU" opengl=yes, AC_MSG_WARN([*** no GL/gl.h -- opengl and SDL support disabled]) ) AC_SUBST(OPENGL_CFLAGS) AC_SUBST(OPENGL_LIBS) -AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$cegui" = "xyes" -a "x$opengl" = "xyes" ]) -AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$opengl" = "xyes"]) +AC_CHECK_HEADER( + GL/glc.h, + AC_DEFINE( + [HAVE_GLC], + [], + Define to 1 if you have the header file. + ) + GLC_LIBS="-lGLC" + glc=yes, + AC_MSG_WARN([*** no GL/glc.h -- opengl and SDL support disabled]) +) +AC_SUBST(GLC_CFLAGS) +AC_SUBST(GLC_LIBS) + +AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$cegui" = "xyes" -a "x$opengl" = "xyes" -a "x$glc" = "xyes" ]) +AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$opengl" = "xyes" -a "x$glc" = "xyes" ]) if test x"${USE_LIBGPS}" = xyes then