]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (AC_TRY_CPP, AC_EGREP_CPP, AC_TRY_COMPILE,
authorAkim Demaille <akim@epita.fr>
Fri, 17 Mar 2000 08:31:49 +0000 (08:31 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 17 Mar 2000 08:31:49 +0000 (08:31 +0000)
AC_TRY_LINK, AC_TRY_RUN_NATIVE): Simplify the removal of the
contest files: don't remove them before running the actions, just
remove them at the end of the macro.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index aa9f4046705a39036f5708e176a96d54ebc9b1fa..767af455064aa21bacf98cde7c103d4f83dd9cb5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-03-17  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4 (AC_TRY_CPP, AC_EGREP_CPP, AC_TRY_COMPILE,
+       AC_TRY_LINK, AC_TRY_RUN_NATIVE): Simplify the removal of the
+       contest files: don't remove them before running the actions, just
+       remove them at the end of the macro.
+
 2000-03-16  Akim Demaille  <akim@epita.fr>
 
        * acspecific.m4 (AC_FUNC_SELECT_ARGTYPES): Use
index e8db6dfd3d5c049f01e6c59294909918e3066931..59ddf898091950a8a68e9e088c7dac246b192346 100644 (file)
@@ -2614,15 +2614,12 @@ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 AC_TRY_EVAL(ac_try)
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
-  ifelse([$2], , :, [rm -rf conftest*
-  $2])
+  m4_default([$2], :)
 else
   echo "$ac_err" >&AC_FD_CC
   echo "configure: failed program was:" >&AC_FD_CC
   cat conftest.$ac_ext >&AC_FD_CC
-ifval([$3], [  rm -rf conftest*
   $3
-])dnl
 fi
 rm -f conftest*])
 
@@ -2655,10 +2652,8 @@ dnl Prevent m4 from eating character classes:
 changequote(, )dnl
   egrep "$1" >/dev/null 2>&1; then
 changequote([, ])dnl
-  ifelse([$3], , :, [rm -rf conftest*
-  $3])
+  m4_default([$3], :)
 ifval([$4], [else
-  rm -rf conftest*
   $4
 ])dnl
 fi
@@ -2698,14 +2693,11 @@ dnl Don't move the `;' right after for the same reason.
 }
 ])EOF
 if AC_TRY_EVAL(ac_compile); then
-  ifelse([$3], , :, [rm -rf conftest*
-  $3])
+  m4_default([$3], :)
 else
   echo "configure: failed program was:" >&AC_FD_CC
   cat conftest.$ac_ext >&AC_FD_CC
-ifval([$4], [  rm -rf conftest*
   $4
-])dnl
 fi
 rm -f conftest*])
 
@@ -2744,14 +2736,11 @@ dnl Don't move the `;' right after for the same reason.
 }
 ])EOF
 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
-  ifelse([$3], , :, [rm -rf conftest*
-  $3])
+  m4_default([$3], :)
 else
   echo "configure: failed program was:" >&AC_FD_CC
   cat conftest.$ac_ext >&AC_FD_CC
-ifval([$4], [  rm -rf conftest*
   $4
-])dnl
 fi
 rm -f conftest*
 ])# AC_TRY_LINK
@@ -2802,16 +2791,13 @@ extern "C" void exit(int);
 ])dnl
 [$1]
 EOF
-if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
-dnl Don't remove the temporary files here, so they can be examined.
+if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} &&
+   (./conftest; exit) 2>/dev/null; then
   m4_default([$2], [:])
 else
   echo "configure: failed program was:" >&AC_FD_CC
   cat conftest.$ac_ext >&AC_FD_CC
-ifval([$3], [  rm -fr conftest*
   $3
-])dnl
 fi
 rm -fr conftest*
 ])# AC_TRY_RUN_NATIVE
index e8db6dfd3d5c049f01e6c59294909918e3066931..59ddf898091950a8a68e9e088c7dac246b192346 100644 (file)
@@ -2614,15 +2614,12 @@ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 AC_TRY_EVAL(ac_try)
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
-  ifelse([$2], , :, [rm -rf conftest*
-  $2])
+  m4_default([$2], :)
 else
   echo "$ac_err" >&AC_FD_CC
   echo "configure: failed program was:" >&AC_FD_CC
   cat conftest.$ac_ext >&AC_FD_CC
-ifval([$3], [  rm -rf conftest*
   $3
-])dnl
 fi
 rm -f conftest*])
 
@@ -2655,10 +2652,8 @@ dnl Prevent m4 from eating character classes:
 changequote(, )dnl
   egrep "$1" >/dev/null 2>&1; then
 changequote([, ])dnl
-  ifelse([$3], , :, [rm -rf conftest*
-  $3])
+  m4_default([$3], :)
 ifval([$4], [else
-  rm -rf conftest*
   $4
 ])dnl
 fi
@@ -2698,14 +2693,11 @@ dnl Don't move the `;' right after for the same reason.
 }
 ])EOF
 if AC_TRY_EVAL(ac_compile); then
-  ifelse([$3], , :, [rm -rf conftest*
-  $3])
+  m4_default([$3], :)
 else
   echo "configure: failed program was:" >&AC_FD_CC
   cat conftest.$ac_ext >&AC_FD_CC
-ifval([$4], [  rm -rf conftest*
   $4
-])dnl
 fi
 rm -f conftest*])
 
@@ -2744,14 +2736,11 @@ dnl Don't move the `;' right after for the same reason.
 }
 ])EOF
 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
-  ifelse([$3], , :, [rm -rf conftest*
-  $3])
+  m4_default([$3], :)
 else
   echo "configure: failed program was:" >&AC_FD_CC
   cat conftest.$ac_ext >&AC_FD_CC
-ifval([$4], [  rm -rf conftest*
   $4
-])dnl
 fi
 rm -f conftest*
 ])# AC_TRY_LINK
@@ -2802,16 +2791,13 @@ extern "C" void exit(int);
 ])dnl
 [$1]
 EOF
-if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
-dnl Don't remove the temporary files here, so they can be examined.
+if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} &&
+   (./conftest; exit) 2>/dev/null; then
   m4_default([$2], [:])
 else
   echo "configure: failed program was:" >&AC_FD_CC
   cat conftest.$ac_ext >&AC_FD_CC
-ifval([$3], [  rm -fr conftest*
   $3
-])dnl
 fi
 rm -fr conftest*
 ])# AC_TRY_RUN_NATIVE