bug-gnulib
[Top][All Lists]
Advanced

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

Re: reduce forks during autoconf


From: Eric Blake
Subject: Re: reduce forks during autoconf
Date: Tue, 13 May 2008 18:57:09 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080421 Thunderbird/2.0.0.14 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 5/13/2008 6:16 PM:

| Very good observation! When autoconf is slow, I usually blame 'm4', not
| the number of forks :-)

But both m4 and m4sugar have gotten faster in the past year :)

|   func_emit_initmacro_end ()
|   {
|     macro_prefix_arg="$1"
| +   # Check the presence of files that are mentioned as AC_LIBSOURCES
arguments.
| +   # The check is performed only when autoconf is run from the
directory where
| +   # the configure.ac resides; if it is run from a different directory, the
| +   # check is skipped.
| +   echo "  m4_ifval([${macro_prefix_arg}_LIBSOURCES_LIST], ["

This needs to be m4_ifset, not m4_ifval.  As written, you are checking
that *_LIBSOURCES_LIST is not the empty string (it's not); you really want
to know whether the macro by that name is defined to a non-empty value.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgqOOUACgkQ84KuGfSFAYDjzwCZAd97qaxaqY/6SA89jHZKDQWX
lFsAmgNZB6BJscJMbqEmpMMFI77hge6L
=e/8b
-----END PGP SIGNATURE-----




reply via email to

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