From: Romain Lenglet Date: Thu, 6 Aug 2009 23:02:01 +0000 (+0900) Subject: Make AC_RUN_IFELSE fail for Erlang if the program doesn't compile. X-Git-Tag: v2.65~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95af4dabfa0b9861200eecad659da4935d7db827;p=thirdparty%2Fautoconf.git Make AC_RUN_IFELSE fail for Erlang if the program doesn't compile. * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Make AC_RUN_IFELSE fail if the test module doesn't compile. --- diff --git a/ChangeLog b/ChangeLog index 8e88f2c5e..85c68ee05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-08-07 Romain Lenglet + + * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Make AC_RUN_IFELSE + fail if the test module doesn't compile. + 2009-08-02 Paolo Bonzini Use exit code to detect no occurrences with grep. diff --git a/lib/autoconf/erlang.m4 b/lib/autoconf/erlang.m4 index 0c4504deb..59b02e461 100644 --- a/lib/autoconf/erlang.m4 +++ b/lib/autoconf/erlang.m4 @@ -124,7 +124,7 @@ fi AC_LANG_DEFINE([Erlang], [erl], [ERL], [], [ac_ext=erl ac_compile='$ERLC $ERLCFLAGS -b beam conftest.$ac_ext >&AS_MESSAGE_LOG_FD' -ac_link='$ERLC $ERLCFLAGS -b beam conftest.$ac_ext >&AS_MESSAGE_LOG_FD ; echo "[#]!/bin/sh" > conftest$ac_exeext ; AS_ECHO(["\"$ERL\" -run conftest start -run init stop -noshell"]) >> conftest$ac_exeext ; chmod +x conftest$ac_exeext' +ac_link='$ERLC $ERLCFLAGS -b beam conftest.$ac_ext >&AS_MESSAGE_LOG_FD && echo "[#]!/bin/sh" > conftest$ac_exeext && AS_ECHO(["\"$ERL\" -run conftest start -run init stop -noshell"]) >> conftest$ac_exeext && chmod +x conftest$ac_exeext' ])