[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bad m4 quotation? (was: echo "enhancement" leads to confused legacy scri
From: |
Ralf Wildenhues |
Subject: |
bad m4 quotation? (was: echo "enhancement" leads to confused legacy script tools...) |
Date: |
Tue, 21 Mar 2006 17:47:59 +0100 |
User-agent: |
Mutt/1.5.11 |
* Ralf Wildenhues wrote on Tue, Mar 21, 2006 at 05:32:44PM CET:
>
> I will followup (on bug-autoconf only) with a bug in CVS Autoconf that I
> just discovered, that led me to thinking the AX_PREFIX_CONFIG_H macro
> was broken..
Hmm. This works:
AC_INIT(a,1,b)
AC_DEFUN([FOO],
[AC_CONFIG_FILES(m4_default([$1], [foobar]))])
FOO
FOO([baz])
AC_OUTPUT
But this fails:
AC_INIT(a,1,b)
AC_DEFUN([FOO],
[AC_CONFIG_FILES([m4_default([$1], [foobar])])])
FOO
FOO([baz])
AC_OUTPUT
Is that a bug? In above code or in Autoconf?
What about the usage of `ifelse' in AX_PREFIX_CONFIG_H?
Would that also need to be outside []?
Cf. this patch against
http://autoconf-archive.cryp.to/ax_prefix_config_h.html
Thanks for enlightening me.
Cheers,
Ralf
--- ax_prefix_config_h.m4 2006-03-21 17:46:26.000000000 +0100
+++ ax_prefix_config_h.m4 2006-03-21 17:46:43.000000000 +0100
@@ -88,7 +88,7 @@
dnl @license GPLWithACException
AC_DEFUN([AX_PREFIX_CONFIG_H],[AC_REQUIRE([AC_CONFIG_HEADER])
-AC_CONFIG_COMMANDS([ifelse($1,,$PACKAGE-config.h,$1)],[dnl
+AC_CONFIG_COMMANDS(ifelse($1,,$PACKAGE-config.h,$1),[dnl
AS_VAR_PUSHDEF([_OUT],[ac_prefix_conf_OUT])dnl
AS_VAR_PUSHDEF([_DEF],[ac_prefix_conf_DEF])dnl
AS_VAR_PUSHDEF([_PKG],[ac_prefix_conf_PKG])dnl
- Re: echo "enhancement" leads to confused legacy script tools..., (continued)
- Re: echo "enhancement" leads to confused legacy script tools..., Paul Eggert, 2006/03/19
- Re: echo "enhancement" leads to confused legacy script tools..., Ralf Wildenhues, 2006/03/20
- Re: echo "enhancement" leads to confused legacy script tools..., Henrik Nordstrom, 2006/03/20
- Re: echo "enhancement" leads to confused legacy script tools..., Paul Eggert, 2006/03/20
- Re: echo "enhancement" leads to confused legacy script tools..., Henrik Nordstrom, 2006/03/20
- Re: echo "enhancement" leads to confused legacy script tools..., Linda W, 2006/03/20
- Re: echo "enhancement" leads to confused legacy script tools..., Ralf Wildenhues, 2006/03/21
- Re: echo "enhancement" leads to confused legacy script tools..., Ralf Wildenhues, 2006/03/21
- Re: echo "enhancement" leads to confused legacy script tools..., Ralf Wildenhues, 2006/03/21
- Re: echo "enhancement" leads to confused legacy script tools..., Henrik Nordstrom, 2006/03/21
- bad m4 quotation? (was: echo "enhancement" leads to confused legacy script tools...),
Ralf Wildenhues <=
- Re: bad m4 quotation? (was: echo "enhancement" leads to confused legacy script tools...), Stepan Kasal, 2006/03/28
- Re: bad m4 quotation?, Ralf Wildenhues, 2006/03/28
- Re: bad m4 quotation?, Stepan Kasal, 2006/03/28
- Re: bad m4 quotation?, Stepan Kasal, 2006/03/29
- AX_PREFIX_CONFIG_H and m4 quoting (was: bad m4 quotation?), Ralf Wildenhues, 2006/03/30
- Re: echo "enhancement" leads to confused legacy script tools..., Chet Ramey, 2006/03/31
- Re: echo "enhancement" leads to confused legacy script tools..., Henrik Nordstrom, 2006/03/20
Re: echo "enhancement" leads to confused legacy script tools..., Andreas Schwab, 2006/03/22