Re: ./configure: Choose data file

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

 



On 2014-08-13
Eric Blake <eblake@xxxxxxxxxx> wrote:

> On 08/13/2014 05:54 AM, fr33domlover wrote:
> > What would be an appropriate way to offer such an option? Preferrably it
> > should appear in ./configure --help, but if not there must be some other
> > good place to let people know it exists.
> 
> AC_ARG_WITH() is probably the most-used solution for this, where you let
> the user supply a path name as the argument, and where the option will
> be documented in ./configure --help.
> 
> AC_ARG_WITH([css-files],
>  [AS_HELP_STRING([--with-css-files], [location of css files
>    to use with generated html])],
>  [ ... set your variable to the user's provided string ... ],
>  [ ... default your variable to your in-tree location ... ])
> 
> lets the end user do ./configure --with-css-files=/path/to/alternate
> 

This sounds good but I wasn't sure because the autoconf manual says that WITH
is for optional packages. I was worried using it for data files would be
confusing to the user. Should I worry, or is WITH a common/expected solution?
I'm making a reusable solution so I want it to be good :-)

-- fr33

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux