]> granicus.if.org Git - graphviz/commitdiff
use the right kind of quoting to get substition to work later
authorellson <devnull@localhost>
Fri, 15 Sep 2006 12:50:01 +0000 (12:50 +0000)
committerellson <devnull@localhost>
Fri, 15 Sep 2006 12:50:01 +0000 (12:50 +0000)
configure.ac

index a55bc8ca5519eb59b7a3c54bc5cd76516a53be23..d8b22836e864c8d1ac0ee8f9e655ea41c3dfe854 100644 (file)
@@ -1233,6 +1233,16 @@ AM_CONDITIONAL(WITH_PANGOCAIRO, [test "x$HAVE_PANGOCAIRO" != "x"])
 dnl -----------------------------------
 dnl INCLUDES and LIBS for GTK.
 
+AC_ARG_WITH(gtk,
+  [AC_HELP_STRING([--with-gtk],
+                  [use gtk+ library])])
+
+### default is to build with gtk+
+if test "x$with_gtk" != "xno"; then
+       with_gtk=yes
+fi
+
+if test "x$with_gtk" = "xyes"; then
 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.7.0],
         [HAVE_GTK=1
         AC_DEFINE_UNQUOTED(HAVE_GTK,1,
@@ -1240,6 +1250,7 @@ PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.7.0],
         [AC_MSG_WARN(gtk+ library not available. desktop features will not be built)])
 AC_SUBST(GTK_CFLAGS)
 AC_SUBST(GTK_LIBS)
+fi
 AM_CONDITIONAL(WITH_GTK, [test "x$HAVE_GTK" != "x"])
 
 dnl -----------------------------------
@@ -1651,7 +1662,7 @@ else
 if test -f "/usr/local/include/tclInt.h"; then
 TCLINT_INCLUDES="-I/usr/local/include"
 else
-TCLINT_INCLUDES="-I$(top_srcdir)/tclpkg/tclstubs"
+TCLINT_INCLUDES='-I$(top_srcdir)/tclpkg/tclstubs'
 fi
 fi
 fi
@@ -1668,7 +1679,7 @@ else
 if test -f "/usr/local/include/tkInt.h"; then
 TKINT_INCLUDES="-I/usr/local/include"
 else
-TKINT_INCLUDES="-I$(top_srcdir)/tclpkg/tkstubs"
+TKINT_INCLUDES='-I$(top_srcdir)/tclpkg/tkstubs'
 fi
 fi
 fi