]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Make AC_RUN_IFELSE fail for Erlang if the program doesn't compile.
authorRomain Lenglet <romain.lenglet@laposte.net>
Thu, 6 Aug 2009 23:02:01 +0000 (08:02 +0900)
committerPaolo Bonzini <bonzini@gnu.org>
Fri, 7 Aug 2009 15:47:29 +0000 (17:47 +0200)
* lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Make AC_RUN_IFELSE
fail if the test module doesn't compile.

ChangeLog
lib/autoconf/erlang.m4

index 8e88f2c5e4a6966b2b16b789048da3fe940b3840..85c68ee0595a8e8adf4314a4d09d8ae8681b88df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-07  Romain Lenglet  <romain.lenglet@laposte.net>
+
+       * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Make AC_RUN_IFELSE
+       fail if the test module doesn't compile.
+
 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
 
        Use exit code to detect no occurrences with grep.
index 0c4504deb41653bbfb5d5bf5efa502677f0db7ee..59b02e461f77f7abac978537f511035a6bb07070 100644 (file)
@@ -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'
 ])