[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to pass AC_ARG_ENABLE an argument
From: |
Ralf Corsepius |
Subject: |
Re: How to pass AC_ARG_ENABLE an argument |
Date: |
Sun, 21 Dec 2003 06:15:26 +0100 |
On Sun, 2003-12-21 at 03:55, Kevin P. Fleming wrote:
> Dave Kirkby wrote:
>
> > Hi,
> > I want to allow a configure script to be told the number of CPUs
> > to build some software for. The manual says 'AC_ARG_ENABLE' can read an
> > agument, but I can't for the life of me see how to get it. I basically
> > want to have something AC_DEFINE CPUS to be an integer read whilst
> > configuring the program.
>
> The argument passed to --enable-foo will be in $enableval after the
> option is processed (although it's best to only refer to it in the code
> blocks you supply to AC_ARG_ENABLE).
You can safely use $enable_foo instead of $enableval, even outside of
blocks suppled to AC_ARG_ENABLE.
Ralf