]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (_AC_COMPILE_IFELSE): Wrap the test -s in
authorAkim Demaille <akim@epita.fr>
Mon, 22 Jan 2001 14:07:09 +0000 (14:07 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 22 Jan 2001 14:07:09 +0000 (14:07 +0000)
AC_TRY_COMMAND to improve config.log.
(_AC_INIT_DEFAULTS): Don't define ac_exeext and ac_objext to
highlight failures.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index 18c1dd0236747a779489bf17058df5eaef49565d..c3985586c3f85ec6dd821f3cede22b8c663039dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-01-22  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4 (_AC_COMPILE_IFELSE): Wrap the test -s in
+       AC_TRY_COMMAND to improve config.log.
+       (_AC_INIT_DEFAULTS): Don't define ac_exeext and ac_objext to
+       highlight failures.
+
 2001-01-22  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Work around a currently
index 05a8a702bd3113ad72be6a64d8fadffc9a06eb16..a34f9e1214bd43827026afcd12dce34ab1c85db0 100644 (file)
@@ -802,11 +802,6 @@ ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
 ac_tr_sh="sed y%*+%pp%;s%[[^_$ac_cr_alnum]]%_%g"
 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[[^_$ac_cr_alnum]]%_%g"
 
-# By default always use an empty string as the executable extension.
-ac_exeext=
-# By default assume that objects files use an extension of .o.
-ac_objext=o
-
 m4_divert_pop([DEFAULTS])dnl
 ])# _AC_INIT_DEFAULTS
 
@@ -2789,7 +2784,8 @@ AC_DEFUN([AC_EGREP_HEADER],
 m4_define([_AC_COMPILE_IFELSE],
 [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl
 rm -f conftest.$ac_objext
-AS_IF([AC_TRY_EVAL(ac_compile) && test -s conftest.$ac_objext],
+AS_IF([AC_TRY_EVAL(ac_compile) &&
+         AC_TRY_COMMAND([test -s conftest.$ac_objext])],
       [$2],
       [echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
 cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD
index 05a8a702bd3113ad72be6a64d8fadffc9a06eb16..a34f9e1214bd43827026afcd12dce34ab1c85db0 100644 (file)
@@ -802,11 +802,6 @@ ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
 ac_tr_sh="sed y%*+%pp%;s%[[^_$ac_cr_alnum]]%_%g"
 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[[^_$ac_cr_alnum]]%_%g"
 
-# By default always use an empty string as the executable extension.
-ac_exeext=
-# By default assume that objects files use an extension of .o.
-ac_objext=o
-
 m4_divert_pop([DEFAULTS])dnl
 ])# _AC_INIT_DEFAULTS
 
@@ -2789,7 +2784,8 @@ AC_DEFUN([AC_EGREP_HEADER],
 m4_define([_AC_COMPILE_IFELSE],
 [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl
 rm -f conftest.$ac_objext
-AS_IF([AC_TRY_EVAL(ac_compile) && test -s conftest.$ac_objext],
+AS_IF([AC_TRY_EVAL(ac_compile) &&
+         AC_TRY_COMMAND([test -s conftest.$ac_objext])],
       [$2],
       [echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
 cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD