]> Pileus Git - grits/commitdiff
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 f77360d18f080161089fce5d4af175cb4eed1c9e..ad207452eb9c07c2cf5d3ae2b2e8e27bc46d7f69 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 1abf428e7df014d05d7a02406bd3e020a0951b43..8e6f5f6eb0ef0a26f6fbe9ae80af79489b1ea670 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 \