autoconf
[Top][All Lists]
Advanced

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

A small test case for the AC_CONFIG_xxx problem


From: Paolo Bonzini
Subject: A small test case for the AC_CONFIG_xxx problem
Date: Mon, 18 Jun 2001 22:37:41 +0200

Here is a test case for the problem I reported this morning on
autoconf-patches.

Run autoconf and configure on the script at the end of the message,
then try the following config.status invocations

./config.status test2
    gives an error because test2 it is not even matched: in config.status

          '$testdest' ) CONFIG_LINKS="$CONFIG_LINKS $testdest:test1" ;;

    should really be "$testdest" ) etc

./config.status '$testdest'
./config.status test3
    give errors because CONFIG_LINKS is set to ":test1" or "test3:"
    (instead of "test3:test1" or "test2:test1")

Paolo



AC_PREREQ(2.50)
AC_INIT
AC_CONFIG_SRCDIR([configure.ac])

echo > test1
testsrc=test1
testdest=test2
AC_CONFIG_LINKS($testdest:test1 test3:$testsrc, [],
  [testsrc=$testsrc
   testdest=$testdest])

AC_OUTPUT



reply via email to

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