-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [Adding bug-autoconf, replies can drop libtool]
According to Paolo Bonzini on 12/14/2007 5:24 AM: > > You can use m4_provide_if like this: > > m4_define([m4_provided], [ > m4_provide_if([AC_PROG_LIBTOOL], [], [ > m4_provide_if([LT_INIT], [], > [m4_warn([syntax], [Libtool required by $1])])])])]) > > ... > > m4_provided([MY_MACRO_NAME]) > > I didn't count the number of closing brackets. Sounds like it's time to document the m4_provide and m4_provide_if portions of m4sugar. They are stable enough that they should not remain undocumented, especially now that you are suggesting their use. Also, the manual mentions AC_PROVIDE (a synonym for m4_provide), but does not document it; and it also lacks documentation for AC_PROVIDE_IFELSE (a synonym for m4_provide_if). When writing autoconf macros instead of m4sugar scripts, using the AC_ spellings looks a bit nicer. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHYpk+84KuGfSFAYARAo+HAJ4vsDPXaPk/nJEbEYARtTntQ/t4NACgq15p mPbH9bnH9zj+ID/c7sFGRM4= =nPch -----END PGP SIGNATURE----- _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool