Hello Martin, Martin Lambers wrote: > It seems that the AC_LIB_FROMPACKAGE macro from the havelib module can > be used at most twice for a given package name. The following works: > > AC_INIT([foobar], [0.1], [t...@example.com]) > AC_CONFIG_MACRO_DIR([.]) > AC_LIB_FROMPACKAGE([a], [libfoo]) > AC_LIB_FROMPACKAGE([b], [libfoo]) > > But when I add the line > AC_LIB_FROMPACKAGE([c], [libfoo]) > I get the following error: > > $ autoreconf > /usr/bin/m4:configure.ac:6: Warning: excess arguments to builtin > `define' ignored > autom4te: /usr/bin/m4 failed with exit status: 1 > /usr/bin/m4:configure.ac:6: Warning: excess arguments to builtin > `define' ignored > autom4te: /usr/bin/m4 failed with exit status: 1 > autoreconf: /usr/bin/autoconf failed with exit status: 1
Thanks for the report. I'm applying this fix. 2010-07-04 Bruno Haible <br...@clisp.org> havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice. * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn. Reported by Martin Lambers <mar...@marlam.de>. --- m4/lib-link.m4.orig Sun Jul 4 16:10:58 2010 +++ m4/lib-link.m4 Sun Jul 4 16:08:51 2010 @@ -1,4 +1,4 @@ -# lib-link.m4 serial 23 (gettext-0.18.2) +# lib-link.m4 serial 24 (gettext-0.18.2) dnl Copyright (C) 2001-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -165,7 +165,7 @@ pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) define([acl_libsinpackage_]PACKUP, - m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1]) + m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1]) popdef([PACKUP]) popdef([PACK]) ])