bug-gnulib
[Top][All Lists]
Advanced

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

Re: Module havelib: question about AC_LIB_FROMPACKAGE


From: Bruno Haible
Subject: Re: Module havelib: question about AC_LIB_FROMPACKAGE
Date: Sun, 4 Jul 2010 16:12:55 +0200
User-agent: KMail/1.9.9

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], address@hidden)
> 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  <address@hidden>

        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 <address@hidden>.

--- 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])
 ])



reply via email to

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