]> granicus.if.org Git - graphviz/commitdiff
add cross-checks for gtk+ and gtkgl before enabling smyrna
authorellson <devnull@localhost>
Wed, 23 Apr 2008 19:55:22 +0000 (19:55 +0000)
committerellson <devnull@localhost>
Wed, 23 Apr 2008 19:55:22 +0000 (19:55 +0000)
configure.ac

index 5fa6a5790f07da2e1657eca813bea63abc1d8f2a..659c0f49643c1d7d5623f0369029a18994d7e804 100644 (file)
@@ -1604,55 +1604,6 @@ CPPFLAGS=$save_CPPFLAGS
 AC_SUBST(Z_INCLUDES)
 AC_SUBST(Z_LIBS)
 
-dnl -----------------------------------
-dnl SMYRNA 
-
-AC_ARG_WITH(smyrna,
-  [AC_HELP_STRING([--with-smyrna=no], [SMYRNA large graph viewer])],
-  [], [with_smyrna=no])
-
-if test "x$with_smyrna" = "xyes"; then
-       AC_DEFINE_UNQUOTED(SMYRNA,1,[Define if you want SMYRNA])
-else
-       AC_MSG_WARN(Optional SMYRNA is disabled)
-fi
-AM_CONDITIONAL(WITH_SMYRNA, [test "x$with_smyrna" = "xyes"])
-
-dnl -----------------------------------
-dnl DIGCOLA 
-
-AC_ARG_WITH(digcola,
-  [AC_HELP_STRING([--with-digcola=yes], [DIGCOLA features in neato layout engine])],
-  [], [with_digcola=yes])
-
-if test "x$with_digcola" = "xyes"; then
-       AC_DEFINE_UNQUOTED(DIGCOLA,1,[Define if you want DIGCOLA])
-else
-       AC_MSG_WARN(Optional DIGCOLA is disabled)
-fi
-
-dnl -----------------------------------
-dnl IPSEPCOLA   /* disabled by default due to C++ issues on some platforms */
-AC_ARG_WITH(ipsepcola,
-  [AC_HELP_STRING([--with-ipsepcola=no],
-       [IPSEPCOLA features in neato layout engine])],
-  [], [with_ipsepcola=no])
-
-### unless digcola was not enabled since ipsecola depends on it
-if test "x$with_digcola" = "xno"; then
-       AC_MSG_WARN(Optional IPSEPCOLA is disabled - depends on DIGCOLA)
-       with_ipsepcola=no
-fi
-
-if test "x$with_ipsepcola" = "xyes"; then
-       AC_DEFINE_UNQUOTED(IPSEPCOLA,1,[Define if you want IPSEPCOLA])
-       IPSEPCOLA_INCLUDES='-I$(top_srcdir)/lib/vpsc'
-       IPSEPCOLA_LIBS='$(top_builddir)/lib/vpsc/libvpsc_C.la -lstdc++'
-AC_SUBST(IPSEPCOLA_INCLUDES)
-AC_SUBST(IPSEPCOLA_LIBS)
-fi
-AM_CONDITIONAL(WITH_IPSEPCOLA, [test "x$with_ipsepcola" = "xyes"])
-
 dnl -----------------------------------
 dnl INCLUDES and LIBS for SVG
                                                                                 
@@ -2304,6 +2255,67 @@ AC_SUBST(TCL_PKGINDEX_GD)
 AC_SUBST(TCL_PKGINDEX_SWIG)
 AC_SUBST(TK_PKGINDEX)
 
+dnl -----------------------------------
+dnl SMYRNA 
+
+AC_ARG_WITH(smyrna,
+  [AC_HELP_STRING([--with-smyrna=no], [SMYRNA large graph viewer])],
+  [], [with_smyrna=no])
+
+if test "x$HAVE_GTK" != "x1"; then
+       with_smyrna=no
+       AC_MSG_WARN(SMYRNA requires GTK)
+fi
+if test "x$HAVE_GTKGL" != "x1"; then
+       with_smyrna=no
+       AC_MSG_WARN(SMYRNA requires GTKGL)
+fi
+
+if test "x$with_smyrna" = "xyes"; then
+       AC_DEFINE_UNQUOTED(SMYRNA,1,[Define if you want SMYRNA])
+       AC_MSG_RESULT(Optional SMYRNA is enabled)
+else
+       AC_MSG_WARN(Optional SMYRNA is disabled)
+fi
+AM_CONDITIONAL(WITH_SMYRNA, [test "x$with_smyrna" = "xyes"])
+
+dnl -----------------------------------
+dnl DIGCOLA 
+
+AC_ARG_WITH(digcola,
+  [AC_HELP_STRING([--with-digcola=yes], [DIGCOLA features in neato layout engine])],
+  [], [with_digcola=yes])
+
+if test "x$with_digcola" = "xyes"; then
+       AC_DEFINE_UNQUOTED(DIGCOLA,1,[Define if you want DIGCOLA])
+       AC_MSG_RESULT(Optional DIGCOLA is enabled)
+else
+       AC_MSG_WARN(Optional DIGCOLA is disabled)
+fi
+
+dnl -----------------------------------
+dnl IPSEPCOLA   /* disabled by default due to C++ issues on some platforms */
+AC_ARG_WITH(ipsepcola,
+  [AC_HELP_STRING([--with-ipsepcola=no],
+       [IPSEPCOLA features in neato layout engine])],
+  [], [with_ipsepcola=no])
+
+### unless digcola was not enabled since ipsecola depends on it
+if test "x$with_digcola" = "xno"; then
+       AC_MSG_WARN(Optional IPSEPCOLA is disabled - depends on DIGCOLA)
+       with_ipsepcola=no
+fi
+
+if test "x$with_ipsepcola" = "xyes"; then
+       AC_DEFINE_UNQUOTED(IPSEPCOLA,1,[Define if you want IPSEPCOLA])
+       AC_MSG_RESULT(Optional IPSEPCOLA is enabled)
+       IPSEPCOLA_INCLUDES='-I$(top_srcdir)/lib/vpsc'
+       IPSEPCOLA_LIBS='$(top_builddir)/lib/vpsc/libvpsc_C.la -lstdc++'
+AC_SUBST(IPSEPCOLA_INCLUDES)
+AC_SUBST(IPSEPCOLA_LIBS)
+fi
+AM_CONDITIONAL(WITH_IPSEPCOLA, [test "x$with_ipsepcola" = "xyes"])
+
 # -----------------------------------
 # Special checks