Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS work.
authorBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 17:19:33 +0000 (19:19 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 17:19:33 +0000 (19:19 +0200)
ChangeLog
m4/lib-link.m4

index 91a213f2b4bf9ee6e12c02295e7fd21d87c64513..379dcf37ed29d3672a3ca7a47587adaa3af502bb 100644 (file)
--- 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
index 21442033c87bd65912d4337d2f3fe686da708e01..f811055dbd94367f8d46b1c8f52fa7a0f263c1a1 100644 (file)
@@ -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 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
   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=