]> err.no Git - mapper/commitdiff
Add option for gtkglext
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 6 Mar 2008 12:40:37 +0000 (14:40 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 6 Mar 2008 12:40:37 +0000 (14:40 +0200)
configure.ac

index 39a4684b2b475f148b2a677d52156afbd4c10726..c5efc0316f0add8e10856818ff39a771a9d09f00 100644 (file)
@@ -105,6 +105,9 @@ AC_ARG_ENABLE([geoclue],AS_HELP_STRING([--enable-geoclue],[Use geoclue]),
 AC_ARG_ENABLE([cairo],AS_HELP_STRING([--enable-cairo],[Use cairo]),
               [enable_cairo=$enableval], [enable_cairo=no])
 
+AC_ARG_ENABLE([opengl],AS_HELP_STRING([--enable-opengl],[Use OpenGL (gtkglext]),
+              [enable_opengl=$enableval], [enable_opengl=no])
+
 if test "x$enable_cairo" = "xyes" ; then
  PKG_CHECK_MODULES(CAIRO, cairo)
  AC_SUBST(CAIRO_LIBS)
@@ -112,6 +115,13 @@ if test "x$enable_cairo" = "xyes" ; then
  AC_DEFINE([WITH_CAIRO], 1, [Draw using cairo])
 fi
 
+if test "x$enable_opengl" = "xyes" ; then
+ PKG_CHECK_MODULES(GTKGLEXT, gtkglext-x11-1.0)
+ AC_SUBST(GTKGLEXT_LIBS)
+ AC_SUBST(GTKGLEXT_CFLAGS)
+ AC_DEFINE([WITH_GL], 1, [Draw using OpenGL])
+fi
+
 if test "x$enable_770" = "xno" ; then
   WITH_DEVICE_770=no
 else
@@ -459,3 +469,7 @@ fi
 if test x$enable_cairo = xyes; then
 AC_MSG_NOTICE([** Using cairo for graphics])
 fi
+
+if test x$enable_opengl = xyes; then
+AC_MSG_NOTICE([** Using OpenGL])
+fi