[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ./configure: Choose data file
From: |
Eric Blake |
Subject: |
Re: ./configure: Choose data file |
Date: |
Wed, 13 Aug 2014 08:38:55 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 |
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
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature