libtool
[Top][All Lists]
Advanced

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

Re: Conditional Configuration


From: Paulo J. Matos
Subject: Re: Conditional Configuration
Date: Fri, 26 May 2006 00:26:26 +0100

On 25/05/06, Ralf Wildenhues <address@hidden> wrote:
* Paulo J. Matos wrote on Thu, May 25, 2006 at 08:02:26PM CEST:
> On 25/05/06, Ralf Wildenhues <address@hidden> wrote:
> >
> >if test "${enable_static_modules}" = "no"; then
> >  :
> >  AC_LIBTOOL_DLOPEN
> >fi

> Nice. :-)
> AS_IF([test "${enable_static_modules}" = "no"], [: AC_LIBTOOL_DLOPEN])
> Works for some reason... without : doesn't!

Please don't write it that way.  If we ever decide that
AC_LIBTOOL_DLOPEN should expand to shell code (and not just change some
state at M4 time, which then induces a shell snippet elsewhere), then
the above could silently fail, while mine wouldn't.  You could write
  AS_IF([test "${enable_static_modules}" = "no"], [:; AC_LIBTOOL_DLOPEN])


Oh, ok... missing the semi-colon.
Thanks for clearing me out! :)

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
address@hidden
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




reply via email to

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