]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
authorAkim Demaille <akim@epita.fr>
Tue, 17 Oct 2000 08:41:26 +0000 (08:41 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 17 Oct 2000 08:41:26 +0000 (08:41 +0000)
(_AC_RUN_IFELSE): Before compiling, remove the files expected to
be produced.
(_AC_LINK_IFELSE, _AC_RUN_IFELSE): You don't create object files,
so don't remove them.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index ec61e17eead52d136869bdc59f90c1afab62e2ef..6908421a949b4f441f69d47336837f2b27425599 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2000-10-17  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
+       (_AC_RUN_IFELSE): Before compiling, remove the files expected to
+       be produced.
+       (_AC_LINK_IFELSE, _AC_RUN_IFELSE): You don't create object files,
+       so don't remove them.
+
+       
 2000-10-17  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (AC_FATAL): Use _AC_EXPANSION_STACK_DUMP.
index e27961a9d6ab722099cacd6245e435fcd0ea4e1b..4469f00381ac9ed1a1dfad09ce11c7f2f2fce0a2 100644 (file)
@@ -3450,6 +3450,7 @@ rm -f conftest*
 # This macro can be used during the selection of a compiler.
 define([_AC_COMPILE_IFELSE],
 [m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
+rm -f conftest.$ac_objext
 if AC_TRY_EVAL(ac_compile) && test -s conftest.$ac_objext; then
   m4_default([$2], :)
 else
@@ -3490,6 +3491,7 @@ AC_DEFUN([AC_TRY_COMPILE],
 # This macro can be used during the selection of a compiler.
 define([_AC_LINK_IFELSE],
 [m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
+rm -f conftest.$ac_objext conftest$ac_exeext
 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
   m4_default([$2], :)
 else
@@ -3497,8 +3499,7 @@ else
   cat conftest.$ac_ext >&AC_FD_LOG
 m4_ifvanl([$3], [  $3])dnl
 fi
-rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
-                                                   [conftest.$ac_ext])[]dnl
+rm -f conftest$ac_exeext ifval([$1], [conftest.$ac_ext])[]dnl
 ])# _AC_LINK_IFELSE
 
 
@@ -3548,6 +3549,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[$2]], [[$3]])], [$4], [$5])
 # This macro can be used during the selection of a compiler.
 define([_AC_RUN_IFELSE],
 [m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
+rm -f conftest$ac_exeext
 if AC_TRY_EVAL(ac_link) &&
    test -s conftest$ac_exeext && (./conftest$ac_exeext; exit) 2>/dev/null; then
   m4_default([$2], :)
@@ -3556,8 +3558,7 @@ else
   cat conftest.$ac_ext >&AC_FD_LOG
 m4_ifvanl([$3], [  $3])dnl
 fi
-rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
-                                                   [conftest.$ac_ext])[]dnl
+rm -f conftest$ac_exeext ifval([$1], [conftest.$ac_ext])[]dnl
 ])# _AC_RUN_IFELSE
 
 
index e27961a9d6ab722099cacd6245e435fcd0ea4e1b..4469f00381ac9ed1a1dfad09ce11c7f2f2fce0a2 100644 (file)
@@ -3450,6 +3450,7 @@ rm -f conftest*
 # This macro can be used during the selection of a compiler.
 define([_AC_COMPILE_IFELSE],
 [m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
+rm -f conftest.$ac_objext
 if AC_TRY_EVAL(ac_compile) && test -s conftest.$ac_objext; then
   m4_default([$2], :)
 else
@@ -3490,6 +3491,7 @@ AC_DEFUN([AC_TRY_COMPILE],
 # This macro can be used during the selection of a compiler.
 define([_AC_LINK_IFELSE],
 [m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
+rm -f conftest.$ac_objext conftest$ac_exeext
 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
   m4_default([$2], :)
 else
@@ -3497,8 +3499,7 @@ else
   cat conftest.$ac_ext >&AC_FD_LOG
 m4_ifvanl([$3], [  $3])dnl
 fi
-rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
-                                                   [conftest.$ac_ext])[]dnl
+rm -f conftest$ac_exeext ifval([$1], [conftest.$ac_ext])[]dnl
 ])# _AC_LINK_IFELSE
 
 
@@ -3548,6 +3549,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[$2]], [[$3]])], [$4], [$5])
 # This macro can be used during the selection of a compiler.
 define([_AC_RUN_IFELSE],
 [m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
+rm -f conftest$ac_exeext
 if AC_TRY_EVAL(ac_link) &&
    test -s conftest$ac_exeext && (./conftest$ac_exeext; exit) 2>/dev/null; then
   m4_default([$2], :)
@@ -3556,8 +3558,7 @@ else
   cat conftest.$ac_ext >&AC_FD_LOG
 m4_ifvanl([$3], [  $3])dnl
 fi
-rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
-                                                   [conftest.$ac_ext])[]dnl
+rm -f conftest$ac_exeext ifval([$1], [conftest.$ac_ext])[]dnl
 ])# _AC_RUN_IFELSE