[Top][All Lists]

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

Re: Using AC_PACKAGE_NAME in option names?

From: Eric Blake
Subject: Re: Using AC_PACKAGE_NAME in option names?
Date: Tue, 13 Apr 2010 13:52:56 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b1 Thunderbird/3.0.4

On 04/13/2010 01:42 PM, Steffen Dettmer wrote:
> Hi,
> we have a generic .m4 file and it has package-specific options in such a way:
>       [  --enable-]AC_PACKAGE_NAME[-logging[=ARG]     Enable logging
> for ]AC_PACKAGE_NAME[ [ARG=yes]],
> is this the good / right / correct way to do that or are there pitfalls?

This should work, but you may want to also use AS_HELP_STRING for better
formatting of the --help text.  You may also want to use
m4_defn([AC_PACKAGE_NAME]) instead of AC_PACKAGE_NAME, in case the
package name resembles an existing macro name.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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