[Top][All Lists]

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


From: Oswald Buddenhagen
Subject: AC_ARG_{WITH|ENABLE} & AS_HELP_STRING vs. quoting
Date: Sat, 3 Jul 2004 21:09:15 +0200
User-agent: Mutt/1.5.6i


just spent two hours getting my help strings in line. :}
the result are two patches to autoconf:

m4sh.m4.diff adds quoting to make help strings with brackets line up
nicely. i have no idea whether my bracket orgy is really correct, but it
seems to format these correctly:
AS_HELP_STRING([--with-foo=PATH], [where to look for foo])
AS_HELP_STRING([--with-foo=[PATH]], [where to look for foo [detect]])
AS_HELP_STRING([--with-foo=[[PATH]]], [where to look for foo [[detect]]])
AS_HELP_STRING([--with-foo-excessively-long=PATH], [where to look for foo])
AS_HELP_STRING([--with-foo-excessively-long=[PATH]], [where to look for foo])

general.m4.diff adds quoting to make the statement "Please note that the
call to `AS_HELP_STRING' is *unquoted*." from the AS_HELP_STRING docu an
actually good example:
AC_ARG_WITH(foo, AS_HELP_STRING([--with-foo[=PATH]], [build with foo]))
now actually works, just like
AC_ARG_WITH(foo, [  --with-foo[=PATH] [...] build with foo])
but otoh, maybe this is intended and i'm only too easy to misguide.


Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
Chaos, panic, and disorder - my work here is done.

Attachment: m4sh.m4.diff
Description: Text document

Attachment: general.m4.diff
Description: Text document

reply via email to

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