]> granicus.if.org Git - graphviz/commitdiff
add explicit --enable-shared, default enabled
authorellson <devnull@localhost>
Mon, 3 Jul 2006 19:56:01 +0000 (19:56 +0000)
committerellson <devnull@localhost>
Mon, 3 Jul 2006 19:56:01 +0000 (19:56 +0000)
cmd/dot/Makefile.am
configure.ac

index b0ad1ebcbd6c5792c308e66e91c8b521610c6fda..309c4eed3b6e7aec8224f463e88b30db7d79ccc4 100644 (file)
@@ -15,8 +15,12 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/lib/cdt
 
 if ENABLE_STATIC
+if ENABLE_SHARED
 bin_PROGRAMS = dot dot_static
 else
+bin_PROGRAMS = dot_static
+endif
+else
 bin_PROGRAMS = dot
 endif
 man_MANS = dot.1 
index 7314ba31c1138d78e13d814b8dce129fa22bf160..97803b67c58e245d34b314941b8eb823e17c9054 100644 (file)
@@ -122,7 +122,7 @@ fi
 # ALL_LINGUAS=""
 
 dnl -----------------------------------
-# Static binaries 
+# Static/Shared binaries 
 
 AC_ARG_ENABLE(static,
         [AC_HELP_STRING([--enable-static], [build static executable])])
@@ -134,6 +134,16 @@ else
 fi
 AM_CONDITIONAL(ENABLE_STATIC, [test "x$enable_static" = "xyes"])
 
+AC_ARG_ENABLE(shared,
+        [AC_HELP_STRING([--enable-shared], [build shared executable])])
+if test "x$enable_shared" != "xno"; then
+       AC_ENABLE_SHARED
+       AC_DEFINE(ENABLE_SHARED,1,[Define if you want shared lib executables])
+else
+       AC_DISABLE_SHARED
+fi
+AM_CONDITIONAL(ENABLE_SHARED, [test "x$enable_shared" = "xyes"])
+
 dnl -----------------------------------
 dnl checks for various programs