On Thu, Feb 17, 2000 at 04:29:29PM +0100, Akim Demaille wrote:
: | On Thu, Feb 17, 2000 at 02:12:19PM +0100, Akim Demaille wrote:
: | : It'd be much easier if you could send what you have, and how it fails.
: | 
: | Well, since I figured out the problem but didn't know how to implement
: | "compile-time" autoconf macros, I don't really have anything that fails...
: | I'm reading up on m4 at the moment, and will hopefully be able to implement
: | it afterwards.
: | 
: | Before I saw the order of things I thought I could do something like this:
: | 
: | AC_DEFUN(SIM_CHECK_COIN,[
: | AC_PREREQ([2.14.1])
: 
: 2.14.1 doesn't exist!

It did for a short time.  I assume you use the autoconf CVS repository.
Check out version 1.27 of configure:

cvs update -r 1.27 configure
grep VERSION configure
cvs update -A configure # restore to head configure
grep VERSION configure

This is the autoconf we froze on (at SIM) a short while ago.

: Maybe I misunderstood your point, but I don't understand why you have
: sh code here (maybe that's what you meant with m4 compile time), and I

Exactly.

: don't understand why you don't use `yes' and `no' for $3.  Is this OK?

Well, there might be more attributes I would like to flag in $3 later, so
I chose to use descriptive names.

: define(_SIM_CHECK_COIN_HELP,
: [AC_HELP_STRING([--with-coin=DIR], 
:                 [set the prefix directory where Coin resides [default=$1]])])
: 
: AC_DEFUN(SIM_CHECK_COIN,
: [AC_PREREQ([2.14a])dnl
: ifelse([$3], [],
:        [$3], [yes],
:        [$3], [no],
:        [AC_FATAL([$0: invalid attribute `$3'])])dnl

I'm reading up on m4 now.  I thought ifelse needed touples of 3 and 3 args to
be used as a switch-case...  I'll go back and check this out later - think
I should finish the m4 info-document before implementing this stuff...

Anyways, thanks for the suggested implementation...

  Lars J

Reply via email to