On 25/05/06, Ralf Wildenhues <[EMAIL PROTECTED]> wrote:
* Paulo J. Matos wrote on Thu, May 25, 2006 at 08:02:26PM CEST:
> On 25/05/06, Ralf Wildenhues <[EMAIL PROTECTED]> 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
[email protected]
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
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to