autoconf
[Top][All Lists]
Advanced

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

Re: configure.ac:27: error: possibly undefined macro: AS_IF


From: Eric Blake
Subject: Re: configure.ac:27: error: possibly undefined macro: AS_IF
Date: Fri, 08 Jan 2010 06:56:43 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

[adding autoconf-patches; replies can drop autoconf]

According to adso 0000 on 1/8/2010 5:48 AM:
> maybe i am saying some none sense but....
> Have you check to don't leave any space between the name of the macro and
> their arguments.
> for example:
> "AS_IF ("  fails for me but
> "AS_IF("  it works.

Correct.  This is an artifact of m4's parsing rules, and the autoconf
manual is explicit about this fact, in the second paragraph of:

http://www.gnu.org/software/autoconf/manual/autoconf.html#Autoconf-Language

Actually, that paragraph would work better with an explicit example, so
I'm considering adding this patch.  It is currently incomplete: do you
have a preferred name that you would like to be credited as in the THANKS
and ChangeLog entry?

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

Eric Blake             address@hidden
From e468c08f9e3b3ed27f9e5c6d9fb4f92c7a931982 Mon Sep 17 00:00:00 2001
From: Eric Blake <address@hidden>
Date: Fri, 8 Jan 2010 06:52:58 -0700
Subject: [PATCH] WIP: Clarify language handling of opening parenthesis.

FIXME - waiting for feedback on attribution name

* doc/autoconf.texi (Autoconf Language): Give an example of
improper argument passing.
* THANKS: Update.
Reported by adso_0000.

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

diff --git a/ChangeLog b/ChangeLog
index 2765bda..0699db0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-01-08  Eric Blake  <address@hidden>
+
+       Clarify language handling of opening parenthesis.
+       * doc/autoconf.texi (Autoconf Language): Give an example of
+       improper argument passing.
+       * THANKS: Update.
+       Reported by adso_0000.
+
 2010-01-05  Eric Blake  <address@hidden>

        Improve release automation.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index cc19284..41d0443 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -1132,7 +1132,14 @@ Autoconf Language
 quotation.

 When calling macros that take arguments, there must not be any white
-space between the macro name and the open parenthesis.  Arguments should
+space between the macro name and the open parenthesis.
+
address@hidden
+AC_INIT ([oops], [1.0]) # incorrect
+AC_INIT([hello], [1,0]) # good
address@hidden example
+
+Arguments should
 be enclosed within the quote characters @samp{[} and @samp{]}, and be
 separated by commas.  Any leading blanks or newlines in arguments are ignored,
 unless they are quoted.  You should always quote an argument that
-- 
1.6.4.2

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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