* tests/local.at (AT_COMPILE_CXX): Treat LDFLAGS like AT_COMPILE does.

Problem reported by Ralf Menzel.
This commit is contained in:
Paul Eggert
2005-05-11 19:38:24 +00:00
parent 7768896a25
commit 51f4735e22
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
* tests/local.at (AT_COMPILE_CXX): Treat LDFLAGS like AT_COMPILE does.
Problem reported by Ralf Menzel.
2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
* tests/actions.at: Test that stack overflow invokes destructors.

View File

@@ -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])])