Hello,
I noticed that the "break" called in a parameter to
AC_LINK_IFELSE skips the command
rm conftest conftest.$ac_objext ...
This means that the files are left uncleaned.
The patch attached to this mail exposes the problem.
There are two ways to fix the problem:
1) Add a "rm" to AC_SEARCH_LIBS
2) Fix the macro AC_LINK_IFELSE so that it cleans up before it executes
the commands given as parameters.
Variant 2) seems cleaner. If we decide for it, we also have to fix
a dozen of similar macros in autoconf/general.m4.
Which variant would the reders here prefer?
Have a nice day,
Stepan Kasal
Index: tests/semantics.at
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/semantics.at,v
retrieving revision 1.50
diff -u -r1.50 semantics.at
--- tests/semantics.at 14 May 2005 07:00:40 -0000 1.50
+++ tests/semantics.at 31 Aug 2005 15:31:12 -0000
@@ -83,7 +83,13 @@
case "$ac_cv_search_cos" in
-loser|-lust) AC_MSG_ERROR([jeez, $ac_cv_search_cos must be a cool
library!]) ;;
esac
+])
+
+# AC_SEARCH_LIBS (none needed)
+# ----------------------------
+AT_CHECK_MACRO([AC_SEARCH_LIBS (none needed)],
+[
AC_SEARCH_LIBS(printf, oser c ust,,
[AC_MSG_ERROR([cannot find `printf'])])
@@ -91,7 +97,6 @@
-loser|-lust) AC_MSG_ERROR([jeez, $ac_cv_search_printf must be a cool
library!]) ;;
-lc) AC_MSG_ERROR([huh, you need to give -lc?])
esac
-
])