]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* doc/libtool.texi (Distributing libltdl): In recursive and
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Oct 2006 20:33:38 +0000 (20:33 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 24 Oct 2006 20:33:38 +0000 (20:33 +0000)
nonrecursive mode, a config header is now required.
* libltdl/argz.c: Remove check for HAVE_CONFIG_H, to conform
to gnulib's policy of including config.h unconditionally.

ChangeLog
doc/libtool.texi
libltdl/argz.c

index 219af19104862eca6b84cdf910ca36b4f36a98df..6f05f7c10bb4f3cb3c3fb76b90a8f04010795ca8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>,
+           Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * doc/libtool.texi (Distributing libltdl): In recursive and
+       nonrecursive mode, a config header is now required.
+       * libltdl/argz.c: Remove check for HAVE_CONFIG_H, to conform
+       to gnulib's policy of including config.h unconditionally.
+
 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * tests/link-order2.at: New test to show one case where ordering
index 146a65f5dcce7feb046bcf194c078327315de144..02a310c695ee01d974e869db7a7e6505f4bc9d6b 100644 (file)
@@ -4246,6 +4246,7 @@ need releases of Autoconf and Automake that support
 
 @example
 AM_INIT_AUTOMAKE([subdir-objects])
+AC_CONFIG_HEADERS([config.h])
 AC_PROG_CC
 AM_PROG_CC_C_O
 LT_CONFIG_LTDL_DIR([libltdl], [nonrecursive])
@@ -4253,7 +4254,10 @@ LT_WITH_LTDL
 @end example
 
 @noindent
-And add the following near the top of your @file{Makefile.am}:
+You have to use a config header, but it may have a name different than
+@file{config.h}.
+
+Also, add the following near the top of your @file{Makefile.am}:
 
 @example
 AM_CPPFLAGS =
@@ -4286,13 +4290,17 @@ mode, you should add to your @file{configure.ac}:
 
 @example
 AM_INIT_AUTOMAKE
+AC_CONFIG_HEADERS([config.h])
 LT_CONFIG_LTDL_DIR([libltdl], [recursive])
 LT_WITH_LTDL
 AC_CONFIG_FILES([libltdl/Makefile])
 @end example
 
 @noindent
-and to your @file{Makefile.am}:
+You have to use a config header, but it may have a name different than
+@file{config.h}.
+
+Also, add this to your @file{Makefile.am}:
 
 @example
 SUBDIRS = libltdl
index 47ac53101746508b188ab3711f4de273b7fc0b17..e49d73e095115e55ba45e630847b655c05641ce9 100644 (file)
@@ -27,12 +27,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
 */
 
-#ifdef HAVE_CONFIG_H
-#  if defined(LTDL) && defined LT_CONFIG_H
-#    include LT_CONFIG_H
-#  else
-#    include <config.h>
-#  endif
+#if defined(LTDL) && defined LT_CONFIG_H
+#  include LT_CONFIG_H
+#else
+#  include <config.h>
 #endif
 
 #include <argz.h>