-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Benoit SIGOURE on 8/9/2007 9:20 PM: >>> >>> AM_CONDITIONAL(BUILD_DRIVER_[]UP, test "x${use_]DOWN[}" = "xyes") >> >> >> AM_CONDITIONAL([BUILD_DRIVER_[]UP, test "x${use_[]DOWN}" = "xyes"]) > > Hum, shouldn't this be: > AM_CONDITIONAL([BUILD_DRIVER_[]UP], [test "x${use_[]DOWN}" = "xyes"]) > instead? Needless to say, I only typed a quick answer, rather than trying to test it. There are two arguments to AM_CONDITIONAL, so both should be quoted. Then you have a choice: AM_CONDITIONAL([BUILD_DRIVER_[]UP], [...]) calls AM_CONDITIONAL with a string for the first argument; wherever AM_CONDITIONAL outputs that string, the string is subject to reparsing, and it is the reparsing that sees that UP is a macro. AM_CONDITIONAL([BUILD_DRIVER_]UP, [...]) calls AM_CONDITIONAL with a string consisting of UP already expanded (ok if UP is alphanumeric, but with the potential for m4 syntax confusion if it contains anything in the character class [][,()]. - -- Don't work too hard, make some time for fun as well! Eric Blake ebb9@xxxxxxx -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGu9y284KuGfSFAYARAk8wAJ9aGF9dkAOWQxwIIX83jZ1xL5CecwCfaJ0s vkpGTPWH/riKk5CxuBsVeWM= =2liC -----END PGP SIGNATURE----- _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf