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 <braden@xxxxxxxxxxxxx> 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: <braden@xxxxxxxxxxxxx> > <http://endoframe.com> Jabber: <braden@xxxxxxxxxx> > > > > _______________________________________________ > Autoconf mailing list > Autoconf@xxxxxxx > http://lists.gnu.org/mailman/listinfo/autoconf > -- Paulo Jorge Matos - pocm at sat inesc-id pt Web: http://sat.inesc-id.pt/~pocm Computer and Software Engineering INESC-ID - SAT Group _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf