autoconf
[Top][All Lists]
Advanced

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

Re: AC_HELP_STRING Help


From: Bill Wendling
Subject: Re: AC_HELP_STRING Help
Date: Thu, 23 Jan 2003 13:57:00 -0600
User-agent: Mutt/1.4i

Also sprach Guido Draheim:
} Bill Wendling schrieb:
} >Hi all,
} >
} >I want to produce a help string like this:
} >
} >    --with-foo[=DIR]            Use the foo package
} >
} >(note the []s around the =DIR bit). When I use the option like this:
} >
} >AC_ARG_WITH([foo],
} >            [AC_HELP_STRING([--with-foo[=DIR]],
} >                            [Use the foo package])],,)
} >
} >It produces:
} >
} >    --with-foo=DIR            Use the foo package
} >
} >Is there a way to make it produce the []s that I want?
} >
} 
} Have you been trying double-[[ and triple-[[[ pairings? That is
} the normal way to pass literal "[" around and used widely
} within m4/autoconf. It is needed for such simple things as
} passing sed-char-ranges around (AC_X([sed -e `/[[0-9]].......)
} 
} 
It doesn't seem to work either. Here's what I get:

  --with-dmalloc=DIR  Use dmalloc memory debugging aid [default=no]
  --with-zlib=DIR     Use GNU zlib compression [default=yes]
  --with-ssl=LIB      Use the SSL library [default=no]
  --with-gass=DIR     Use the GASS library [default=no]
  --with-srb=DIR      Use the SRB Library [default=no]
  --with-pthread=DIR  Use the Pthreads library [default=no]

You can't see it, but the spacing is off in there. (The descriptions are
too close to the --with-* flags). The same thing happens if I use [[[.

I should mention that I'm using 2.53, so this may be a known deficiency
or something...not sure.

-- 
|| Bill Wendling            "Real Programmers have a Snoopy Calendar
|| address@hidden    of '69 hanging on their wall"
|| Coding Simian                       -- Toon Moene




reply via email to

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