autoconf
[Top][All Lists]
Advanced

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

Re: test in a m4 macro and variable created from pushdef


From: Vincent Torri
Subject: Re: test in a m4 macro and variable created from pushdef
Date: Fri, 10 Aug 2007 07:10:27 +0200 (CEST)



On Thu, 9 Aug 2007, Eric Blake wrote:

AM_CONDITIONAL(BUILD_DRIVER_[]UP, test "x${use_]DOWN[}" = "xyes")

Follow the quoting rule of thumb - if you don't want things expanded
immediately, then use one level of [] per () to protect the argument
collection scan, thereafter, use nested quotes to control how the
expansion is parsed.  You want to make sure that UP and DOWN are
independent tokens after the AM_CONDITIONAL is expanded, so this pattern
should do it:

AM_CONDITIONAL([BUILD_DRIVER_[]UP, test "x${use_[]DOWN}" = "xyes"])

hoo, you're right. my bad, i've not seen my error.

thank you !




reply via email to

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