don't build language bindings unless expressly requested with --enable-language-bindings
authorMorgan Deters <mdeters@gmail.com>
Thu, 6 Oct 2011 00:09:25 +0000 (00:09 +0000)
committerMorgan Deters <mdeters@gmail.com>
Thu, 6 Oct 2011 00:09:25 +0000 (00:09 +0000)
config/bindings.m4
src/bindings/compat/java/Makefile.am

index e328810fb107d213cb697685895e56a5b1e2adc5..c478b6da3a80161dbbe54138eeda3a9b8b688d79 100644 (file)
@@ -23,7 +23,7 @@ AC_ARG_WITH([swig],
 AC_ARG_ENABLE([language-bindings],
   [AS_HELP_STRING([--enable-language-bindings=][CVC4_SUPPORTED_BINDINGS][ | all], [specify language bindings to build])],
   [if test "$enableval" = yes; then cvc4_check_for_bindings=yes; try_bindings='$1'; else cvc4_check_for_bindings=no; if test "$enableval" = no; then try_bindings=; else try_bindings="$enableval"; fi; fi],
-  [cvc4_check_for_bindings=yes; try_bindings=])
+  [cvc4_check_for_bindings=no; try_bindings=])
 CVC4_LANGUAGE_BINDINGS=
 if test "$noswig" = yes; then
   AC_MSG_WARN([use of swig disabled by user.])
index 14701ebb337b25fbffb0e17fb50b0ecf7903b80a..9fc25ed058a466c305aa68ebdd4c10283f60a8b4 100644 (file)
@@ -19,6 +19,7 @@ AM_CXXFLAGS = -Wall
 
 lib_LTLIBRARIES =
 data_DATA =
+BUILT_SOURCES =
 
 if CVC4_LANGUAGE_BINDING_JAVA
 
@@ -28,6 +29,7 @@ libcvc4bindings_java_compat_la_LDFLAGS = \
        -version-info $(LIBCVC4BINDINGS_VERSION)
 libcvc4bindings_java_compat_la_LIBADD = \
        -L@builddir@/../../../compat -lcvc4compat
+BUILT_SOURCES += $(JNI_CPP_FILES)
 
 endif
 
@@ -114,7 +116,6 @@ CPP_FILES = $(SRC_CPP_FILES) $(JNI_CPP_FILES)
 
 dist_libcvc4bindings_java_compat_la_SOURCES = $(SRC_CPP_FILES) $(IMPL_FILES) include/cvc3/JniUtils.h
 nodist_libcvc4bindings_java_compat_la_SOURCES = $(JNI_CPP_FILES)
-BUILT_SOURCES = $(JNI_CPP_FILES)
 
 EXTRA_DIST = \
        formula_value.h \