From: Maxim Koltsov Date: Mon, 8 Nov 2010 14:46:46 +0000 (+0000) Subject: build: Add ./configure --disable-haskell option. X-Git-Tag: 1.7.3~5 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=ada875642332b56acbf75d68e964f2f16ca50530;p=libguestfs.git build: Add ./configure --disable-haskell option. This disables the Haskell language bindings. --- diff --git a/configure.ac b/configure.ac index bda6c3a..81e63c5 100644 --- a/configure.ac +++ b/configure.ac @@ -763,8 +763,16 @@ AC_SUBST(JNI_VERSION_INFO) AM_CONDITIONAL([HAVE_JAVA],[test -n "$JAVAC"]) dnl Check for Haskell (GHC). -AC_CHECK_PROG([GHC],[ghc],[ghc],[no]) - +GHC=no +AC_ARG_ENABLE([haskell], + AS_HELP_STRING([--disable-haskell], [Disable Haskell language bindings]), + [], + [enable_haskell=yes]) +AS_IF([test "x$enable_haskell" != "xno"], + [ + GHC= + AC_CHECK_PROG([GHC],[ghc],[ghc],[no]) + ]) AM_CONDITIONAL([HAVE_HASKELL], [test "x$GHC" != "xno"])