[Top][All Lists]

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


From: Paulo J. Matos
Subject: Re: AC_ARG_WITH?
Date: Sat, 7 Jan 2006 19:57:39 +0000

Since the I'll only provide simple wrappers if GMP is not present,
i.e., I'll using native C++ arithmetic, users will notice that for
very large numbers things will not work as they should so probably
I'll use this as a feature.

Thanks for the help,

Paulo Matos

On 07/01/06, Braden McDaniel <address@hidden> wrote:
> On Sat, 2006-01-07 at 18:34 +0000, Paulo J. Matos wrote:
> > Hi all,
> >
> > If I want to make my package have an option to enable or disable the
> > use of GMP, should I use AC_ARG_ENABLE or AC_ARG_WITH?
> > If the user wants GMP then I will want to check if GMP is installed
> > and set a config variable so that in the code I can check if the user
> > set GMP.
> >
> > What's the best way to achieve this?
> It depends.
> If you can identify a feature (or feature set) that using GMP would
> enable, I recommend expressing the option in terms of the feature and
> using AC_ARG_ENABLE. If the feature is enabled and the user does not
> have GMP installed, fail with a message like "You must have GMP to
> enable Feature X".
> Otherwise, if you provide some fallback to whatever GMP provides such
> that whether or not your compiled binaries use GMP is not obvious to
> users, use AC_ARG_WITH.
> --
> Braden McDaniel                           e-mail: <address@hidden>
> <>                    Jabber: <address@hidden>
> _______________________________________________
> Autoconf mailing list
> address@hidden

Paulo Jorge Matos - pocm at sat inesc-id pt
Computer and Software Engineering

reply via email to

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