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: Andreas Schwab
Subject: Re: test in a m4 macro and variable created from pushdef
Date: Wed, 08 Aug 2007 19:28:27 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux)

Vincent Torri <address@hidden> writes:

> AC_DEFUN([AS_CREATE_DRIVER], [
>
> pushdef([UP], translit([$1], [a-z], [A-Z]))dnl
> pushdef([DOWN], translit([$1], [A-Z], [a-z]))dnl
>
> pushdef([SRCUP], translit([$2], [a-z], [A-Z]))dnl
> pushdef([SRCDOWN], translit([$2], [A-Z], [a-z]))dnl
>
> if test "x${use_]DOWN[_driver}" = "xyes"; then

The outer pairs of quotes are removed before the AC_DEFUN macro is
called, thus the argument does not contain the word DOWN any more, but
rather use_DOWN_driver.  You need to fix the quoting that they survive
the first pass of parsing:

 if test "x${use_[]DOWN[]_driver}" = "xyes"; then

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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