autoconf-patches
[Top][All Lists]
Advanced

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

Re: possible autoconf bug


From: Eric Blake
Subject: Re: possible autoconf bug
Date: Tue, 24 Mar 2009 06:01:14 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Matěj Týč on 3/24/2009 5:20 AM:
> Regarding the manual: I have If you look at the page 158 (AS_TR_CPP
> description), there is an unquoted hash (#) used in a configure.ac-like
> file without any warning. 

Thanks for catching that; it is indeed a bug in the manual.  I'm
installing this:

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknIy4oACgkQ84KuGfSFAYCb/ACgxcB9sV9HzDO421qPwwO2knhq
KA0AoMDnS28G5vUKnJlDq3U0Eya7uZwD
=45vC
-----END PGP SIGNATURE-----
From 134ab7cd9dd69b4bf7cd53d3157a5095f5908015 Mon Sep 17 00:00:00 2001
From: Eric Blake <address@hidden>
Date: Tue, 24 Mar 2009 05:58:52 -0600
Subject: [PATCH] Fix underquoted example in manual.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

* doc/autoconf.texi (Common Shell Constructs) <AS_TR_CPP>:
Properly m4-quote #.
Reported by Matěj Týč.

Signed-off-by: Eric Blake <address@hidden>
---
 ChangeLog         |    7 +++++++
 doc/autoconf.texi |    3 ++-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3829924..56f844b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-03-24  Eric Blake  <address@hidden>
+
+       Fix underquoted example in manual.
+       * doc/autoconf.texi (Common Shell Constructs) <AS_TR_CPP>:
+       Properly m4-quote #.
+       Reported by Matěj Týč.
+
 2009-03-18  Eric Blake  <address@hidden>

        Manual: mention more expr pitfalls.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index a4cb0d1..5e490fe 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -12451,8 +12451,9 @@ Common Shell Constructs

 @example
 # This outputs "#define HAVE_CHAR_P 1".
+# Notice the m4 quoting around #, to prevent an m4 comment
 type="char *"
-echo "#define AS_TR_CPP([HAVE_$type]) 1"
+echo "[#]define AS_TR_CPP([HAVE_$type]) 1"
 @end example
 @end defmac

-- 
1.6.1.2


reply via email to

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