changeset 11647:2735f345e34c

Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS work.
author Bruno Haible <bruno@clisp.org>
date Sun, 21 Jun 2009 19:19:33 +0200
parents fc7e7bde323e
children 67cbb1f18241
files ChangeLog m4/lib-link.m4
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-06-21  Bruno Haible  <bruno@clisp.org>
+
+	Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
+	work.
+	* m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
+	together with LIB${NAME}, LTLIB${NAME}.
+	Reported by Sam Steingold <sds@gnu.org>.
+
 2009-06-20  Jim Meyering  <meyering@redhat.com>
 
 	tests: make sc_require_test_exit_idiom more generic
--- a/m4/lib-link.m4
+++ b/m4/lib-link.m4
@@ -1,4 +1,4 @@
-# lib-link.m4 serial 19 (gettext-0.18)
+# lib-link.m4 serial 20 (gettext-0.18)
 dnl Copyright (C) 2001-2009 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -210,6 +210,9 @@
   LTLIB[]NAME=
   INC[]NAME=
   LIB[]NAME[]_PREFIX=
+  dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
+  dnl computed. So it has to be reset here.
+  HAVE_LIB[]NAME=
   rpathdirs=
   ltrpathdirs=
   names_already_handled=