X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=configure.ac;h=c384c6e7b0032af2a646175a8b877927ba92c150;hp=ed538f580be077e4d06bcfa04c3d89f85bae9092;hb=35900223df1d05d0b8f4da79c854bee9899f81be;hpb=b148df4df9f27162b2e1991c3fbeef070b2c343a diff --git a/configure.ac b/configure.ac index ed538f5..c384c6e 100644 --- a/configure.ac +++ b/configure.ac @@ -897,8 +897,8 @@ AC_ARG_ENABLE([erlang], AS_HELP_STRING([--disable-erlang], [Disable Erlang language bindings]), [], [enable_erlang=yes]) -AS_IF([test "x$enable_erlang" != "xno"], - [ +# NB: Don't use AS_IF here: it doesn't work. +if test "x$enable_erlang" != "xno"; then ERLANG= AC_ERLANG_PATH_ERLC([no]) @@ -907,7 +907,7 @@ AS_IF([test "x$enable_erlang" != "xno"], [AC_MSG_FAILURE([Erlang erl_interface library not installed. Use --disable-erlang to disable.])]) AC_ERLANG_SUBST_LIB_DIR fi - ]) +fi AM_CONDITIONAL([HAVE_ERLANG], [test "x$ERLANG" != "xno" && test "x$ERLC" != "xno"]) dnl Check for Perl modules needed by Perl virt tools (virt-df, etc.)