[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/4] DJGPP fix: remove both conftest and conftest.exe.

From: Ralf Wildenhues
Subject: [PATCH 3/4] DJGPP fix: remove both conftest and conftest.exe.
Date: Sun, 13 Sep 2009 21:16:15 +0200
User-agent: Mutt/1.5.20 (2009-08-09)

The DJGPP compiler may create both `a.out' and `a.exe' without -o,
and both `conftest' and `conftest.exe' with `-o conftest', but not
with `-o conftest.exe'.

* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Also remove
`conftest' without $ac_exeext suffix.

* Ralf Wildenhues wrote on Sun, Sep 13, 2009 at 09:12:28PM CEST:
> -- leftover 'conftest' files in state-ls.after
> Bug in Autoconf, fixed with patch.
> Test failures: 254 256-257 280-283 288-289 298

This patch is obvious (the semantics are even documented in the comments
of the macro).  I will commit it soon.

 lib/autoconf/lang.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4
index 8fd2925..5b44c68 100644
--- a/lib/autoconf/lang.m4
+++ b/lib/autoconf/lang.m4
@@ -614,7 +614,7 @@ for ac_file in conftest.exe conftest conftest.*; do
              [AC_MSG_FAILURE([cannot compute suffix of executables: cannot 
compile and link])])
-rm -f conftest$ac_cv_exeext
+rm -f conftest conftest$ac_cv_exeext

reply via email to

[Prev in Thread] Current Thread [Next in Thread]