From 97c9a05ecdf003e74a5c8ce8d5294a8d8e028e3e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 18 Feb 2003 05:09:44 +0000 Subject: [PATCH] (AT_COMPILE): Use new LDFLAGS, LIBS vars, to avoid testing problems for installations that set these vars at configure-time. --- tests/testsuite.at | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/testsuite.at b/tests/testsuite.at index 870207a4..06063d6e 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -52,10 +52,11 @@ $2]) # AT_COMPILE(OUTPUT, [SOURCES = OUTPUT.c]) # ---------------------------------------- +# Compile SOURCES into OUTPUT. If OUTPUT does not contain '.', +# assume that we are linking too; this is a hack. m4_define([AT_COMPILE], -[AT_CHECK([$CC $CFLAGS $CPPFLAGS m4_default([$2], [$1.c]) -o $1], 0, - [], [ignore])]) - +[AT_CHECK([$CC $CFLAGS $CPPFLAGS m4_bmatch([$1], [[.]], [], [$LDFLAGS ])m4_default([$2], [$1.c]) m4_bmatch([$1], [[.]], [], [$LIBS ])-o $1], + 0, [], [ignore])]) # AT_COMPILE_CXX(OUTPUT, [SOURCES = OUTPUT.c]) # -------------------------------------------- -- 2.45.2