Add glut config check v0.5.1
authorAndy Spencer <andy753421@gmail.com>
Wed, 24 Aug 2011 17:40:41 +0000 (17:40 +0000)
committerAndy Spencer <andy753421@gmail.com>
Wed, 24 Aug 2011 17:40:41 +0000 (17:40 +0000)
configure.ac
src/plugins/Makefile.am

index f77360d..ad20745 100644 (file)
@@ -28,6 +28,11 @@ PKG_CHECK_MODULES(CAIRO, cairo)
 PKG_CHECK_MODULES(GTK,   gtk+-2.0 >= 2.16)
 PKG_CHECK_MODULES(SOUP,  libsoup-2.4 >= 2.26)
 
+# Check for glut for example plugin
+AC_CHECK_LIB(glut, glutSolidTeapot, GLUT_LIBS="-lglut")
+AM_CONDITIONAL(HAVE_GLUT, test "$GLUT_LIBS" != "")
+AC_SUBST(GLUT_LIBS)
+
 # Test for Windows vs. Unix
 case "${host}" in
        *mingw32*) WIN32="yes" ;;
index 1abf428..8e6f5f6 100644 (file)
@@ -14,7 +14,7 @@ map_la_SOURCES      = map.c  map.h
 env_la_SOURCES      = env.c  env.h
 test_la_SOURCES     = test.c test.h
 
-if NOTWIN32
+if HAVE_GLUT
 noinst_LTLIBRARIES  = teapot.la
 teapot_la_SOURCES   = \
        $(top_srcdir)/examples/plugin/teapot.c \