Using AC_PACKAGE_NAME in option names?

2010-04-13 Thread Steffen Dettmer
Hi, we have a generic .m4 file and it has package-specific options in such a way: AC_ARG_ENABLE(AC_PACKAGE_NAME[-logging], [ --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

Re: Using AC_PACKAGE_NAME in option names?

2010-04-13 Thread Eric Blake
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: > > AC_ARG_ENABLE(AC_PACKAGE_NAME[-logging], > [ --enable-]AC_PACKAGE_NAME[-logging[=ARG] Enable logging > for ]AC_PACKAGE_NAME[ [ARG=yes]], > > i

Re: Using AC_PACKAGE_NAME in option names?

2010-04-13 Thread Steffen Dettmer
* Eric Blake wrote on Tue, Apr 13, 2010 at 13:52 -0600: > This should work, but you may want to also use AS_HELP_STRING for better Hi, thanks so much for your instant reply :) I think such an approach could be good for many options, also --enable-debug etc, by this options can be set package-wis