changeset 13449:5b079003ae5a

havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
author Bruno Haible <bruno@clisp.org>
date Sun, 04 Jul 2010 16:12:35 +0200
parents 6b0f8c52218d
children 0394cf0c5bad
files ChangeLog m4/lib-link.m4
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-07-04  Bruno Haible  <bruno@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 <marlam@marlam.de>.
+
 2010-07-04  Jim Meyering  <meyering@redhat.com>
 
 	hash: once again explicitly disallow insertion of NULL
--- a/m4/lib-link.m4
+++ b/m4/lib-link.m4
@@ -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])
 ])