autoconf
[Top][All Lists]
Advanced

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

Re: m4_shift does not work


From: akim
Subject: Re: m4_shift does not work
Date: Thu, 2 Aug 2001 23:07:21 +0200
User-agent: Mutt/1.3.18i

On Wed, Aug 01, 2001 at 02:59:53PM +0100, Roger Leigh wrote:
> In autoconf-2.13, shift was explicitly undefined in acgeneral.m4.
> In 2.50 it seems to be renamed to m4_shift, and there is also
> m4_shiftn in m4sh.m4.  However, I can't seem to be able to use
> either of these macros myself:
> 
> AC_DEFUN([AC_CONFIG_LIBCONFIG_MODULES],
> ifelse([$1], , ,
> [AC_CONFIG_LIBCONFIG_MODULE([$1])
> echo "1 = [$1]"
> echo "2 = [$2]"
> echo "3 = [$3]"
> echo "@ = address@hidden"
> echo "shift@ = m4_shift($@)"
> dnl AC_CONFIG_LIBCONFIG_MODULES(m4_shift($@))
> ]))

Quote your definition body.

> Another issue I have encountered is that in 2.13, I used
> AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl and
> AC_DIVERT_POP()dnl
> around code that I wanted before the AC_ARG_WITH and AC_ARG_ENABLE
> macros, so I could use variables in the option descriptions (for
> defaults).  Is it still possible to do this?  Simply replacing
> AC_DIVERSION_NOTICE with '1' did not help.

Sorry, this is not precise enough for me to understand the request.
Are you referring to sh variables?

Anyway, the diversion are internals only, the user must not use them.
We'll have to find another means to do what you want.  



reply via email to

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