Ralf Menzel <[EMAIL PROTECTED]> writes:
> +AT_CHECK([$CXX $CXXFLAGS $CPPFLAGS $LDFLAGS m4_default([$2], [$1.cc]) -o $1],
Thanks for the diagnosis. I installed the following
slightly-different patch instead. If you can test this please let me
know how it works for you. (The "old" version isn't the same as 2.0
due to other changes, but you can ignore that problem.)
2005-05-11 Paul Eggert <[EMAIL PROTECTED]>
* tests/local.at (AT_COMPILE_CXX): Treat LDFLAGS like AT_COMPILE does.
Problem reported by Ralf Menzel.
--- local.at 21 Mar 2005 06:58:11 -0000 1.8
+++ local.at 11 May 2005 19:38:24 -0000 1.9
@@ -175,11 +175,13 @@ m4_define([AT_COMPILE],
# AT_COMPILE_CXX(OUTPUT, [SOURCES = OUTPUT.cc])
# --------------------------------------------
+# Compile SOURCES into OUTPUT. If OUTPUT does not contain '.',
+# assume that we are linking too; this is a hack.
# If the C++ compiler does not work, ignore the test.
m4_define([AT_COMPILE_CXX],
[AT_KEYWORDS(c++)
AT_CHECK([$BISON_CXX_WORKS], 0, ignore, ignore)
-AT_CHECK([$CXX $CXXFLAGS $CPPFLAGS -o $1 m4_default([$2], [$1.cc])],
+AT_CHECK([$CXX $CXXFLAGS $CPPFLAGS m4_bmatch([$1], [[.]], [], [$LDFLAGS ])-o
$1 m4_default([$2], [$1.cc])],
0, [ignore], [ignore])])