Re: use of AC_TRY_EVAL broken

2008-10-24 Thread Bruno Haible
Eric Blake wrote: > Yes, but it probably should not be named AC_TRY_EVAL ... > Better than documenting variables would be designing a nicer macro > interface that exposes what those variables are trying to get at. Every > time we document a shell variable instead of an autoconf macro, we've > lock

Re: autconf, configure & purify...

2008-10-24 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Ralf Wildenhues on 10/24/2008 12:39 AM: >> AC_CHECK_PROGS(PURIFY,purify purify2002) >> >> if test -z $PURIFY; then > > This however does need quoting: if $PURIFY can ever be empty, then the > shell will complain about a missing argume

Re: autconf, configure & purify...

2008-10-24 Thread Ralf Wildenhues
Hi Eric, * Eric Blake wrote on Fri, Oct 24, 2008 at 01:16:53PM CEST: > According to Ralf Wildenhues on 10/24/2008 12:39 AM: > >> AC_CHECK_PROGS(PURIFY,purify purify2002) > >> > >> if test -z $PURIFY; then > > > > This however does need quoting: if $PURIFY can ever be empty, then the > > shell

Re: use of AC_TRY_EVAL broken

2008-10-24 Thread Ralf Wildenhues
* Eric Blake wrote on Fri, Oct 24, 2008 at 04:15:34AM CEST: > According to Bruno Haible on 10/23/2008 5:09 PM: > > There is a need for autoconf macros to compile and execute programs that > > they have created with AC_LANG_CONFTEST > > 1) without having to build up the compile or link command by

Re: autconf, configure & purify...

2008-10-24 Thread Andreas Schwab
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > - many vendor shells complain about 'test -z' without further argument: A POSIX-compliant test won't, and returns zero. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP

Re: use of AC_TRY_EVAL broken

2008-10-24 Thread Bruno Haible
Ralf Wildenhues wrote: > a suggestion for a new name: AC_EVAL_IFELSE. There's actually two cases to consider, if you want to make it easy to use for the developer: - the case of a command that should be executed and logged, - the case of a variable that contains a command that should be execut

RE: autconf, configure & purify...

2008-10-24 Thread Boggis, Antony
>Most syntax issues of your code have already been addressed. Remains >the semantics: it substitutes PURIFY and USE_PURIFY (why this one BTW?), >adds to CPPFLAGS, and defines USE_PURIFY. Really, I only need the one. In trying to get this working I have been playing around with alternatives. >Re