]> granicus.if.org Git - graphviz/commitdiff
Hook up Glen's new -Tvdx Visio renderer
authorellson <devnull@localhost>
Tue, 31 Mar 2009 15:07:56 +0000 (15:07 +0000)
committerellson <devnull@localhost>
Tue, 31 Mar 2009 15:07:56 +0000 (15:07 +0000)
configure.ac

index e1a9d5278ea6b30e15c9c98dc55bce8774d8fa55..2b980ea21d9f98bf5f6ae937a4d4129a91ab14e4 100644 (file)
@@ -1883,6 +1883,30 @@ else
 fi
 AM_CONDITIONAL(WITH_GS, [test "x$use_ghostscript" = "xYes"])
 
+dnl -----------------------------------
+dnl INCLUDES and LIBS for VISIO
+                                                                                
+AC_ARG_WITH(visio,
+  [AS_HELP_STRING([--with-visio=no],[visio library])],
+  [], [with_visio=no])
+
+if test "x$with_visio" != "xyes"; then
+  use_visio="No (disabled by default - experimental)"
+else
+#  AC_CHECK_HEADER(visio/visio.h, VISIO_CFLAGS="",use_visio="No (missing headers)")
+#  if test "x$use_visio" = "x"; then
+#    AC_CHECK_LIB(visio, main, VISIO_LIBS="-lgs", use_visio="No (missing lib)")
+#    if test "x$use_visio" = "x"; then
+      use_visio="Yes"
+      AC_DEFINE_UNQUOTED(HAVE_VISIO,1,
+        [Define if you have the visio library])
+      AC_SUBST(VISIO_CFLAGS)
+      AC_SUBST(VISIO_LIBS)
+#    fi
+#  fi
+fi
+AM_CONDITIONAL(WITH_VISIO, [test "x$use_visio" = "xYes"])
+
 dnl -----------------------------------
 dnl INCLUDES and LIBS for PANGO, CAIRO et.al.
                                                                                 
@@ -2920,6 +2944,7 @@ AC_CONFIG_FILES(Makefile
        plugin/pango/Makefile
        plugin/quartz/Makefile
        plugin/rsvg/Makefile
+       plugin/visio/Makefile
        plugin/xlib/Makefile
        plugin/dot_layout/Makefile
        plugin/neato_layout/Makefile
@@ -3040,6 +3065,7 @@ echo "  ming:          $use_ming"
 echo "  pangocairo:    $use_pangocairo"
 echo "  quartz:        $use_quartz"
 echo "  rsvg:          $use_rsvg"
+echo "  visio:         $use_visio"
 echo "  xlib:          $use_xlib"
 echo ""
 echo "language extensions:"