+2005-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * libltdl/m4/ltdl.m4 (LTDL_INIT) <CONFIG_H>: Rename to..
+ <LT_CONFIG_H>: this, to contain the name of the config
+ header.
+ * Makefile.am <DEFS>: Use it to define LT_CONFIG_H.
+ * HACKING, libltdl/argz.c, libltdl/lt__alloc.c,
+ libltdl/libltdl/lt__dirent.h, libltdl/libltdl/lt__glibc.h,
+ libltdl/libltdl/lt__private.h, libltdl/libltdl/lt__strl.h:
+ Adjusted.
+
2005-09-16 Peter Ekberg <peda@lysator.liu.se>,
* tests/testsuite.at (LT_AT_EXEC_CHECK): Make sure
by libtool. Typically, the files that implement this layer begin:
#if defined(HAVE_CONFIG_H)
- # include HAVE_CONFIG_H
+ # if defined(LT_CONFIG_H)
+ # include LT_CONFIG_H
+ # else
+ # include <config.h>
+ # endif
#endif
#include "lt_system.h"
# %%% BEGIN libltdl/Makefile.am
-DEFS = -DHAVE_CONFIG_H="<$(CONFIG_H)>" -DLTDL
+DEFS = -DLTDL -DHAVE_CONFIG_H -DLT_CONFIG_H='<$(LT_CONFIG_H)>'
# -I$(srcdir) is needed for user that built libltdl with a sub-Automake
# (not as a sub-package!) using 'nostdinc':
*/
-/* Provide our wierdo HAVE_CONFIG_H rvalue for other clients. */
-#if !defined(LTDL) && defined(HAVE_CONFIG_H)
-# undef HAVE_CONFIG_H
-# define HAVE_CONFIG_H <config.h>
-#endif
-
#if defined(HAVE_CONFIG_H)
-# include HAVE_CONFIG_H
+# if defined(LTDL) && defined LT_CONFIG_H
+# include LT_CONFIG_H
+# else
+# include <config.h>
+# endif
#endif
#include <argz.h>
#define LT__DIRENT_H 1
#if defined(HAVE_CONFIG_H)
-# include HAVE_CONFIG_H
+# if defined(LT_CONFIG_H)
+# include LT_CONFIG_H
+# else
+# include <config.h>
+# endif
#endif
#include "lt_system.h"
#define LT__GLIBC_H 1
#if defined(HAVE_CONFIG_H)
-# include HAVE_CONFIG_H
+# if defined(LT_CONFIG_H)
+# include LT_CONFIG_H
+# else
+# include <config.h>
+# endif
#endif
#if !defined(HAVE_ARGZ_H)
#define LT__PRIVATE_H 1
#if defined(HAVE_CONFIG_H)
-# include HAVE_CONFIG_H
+# if defined(LT_CONFIG_H)
+# include LT_CONFIG_H
+# else
+# include <config.h>
+# endif
#endif
#include <stdio.h>
#define LT__STRL_H 1
#if defined(HAVE_CONFIG_H)
-# include HAVE_CONFIG_H
+# if defined(LT_CONFIG_H)
+# include LT_CONFIG_H
+# else
+# include <config.h>
+# endif
#endif
#include <string.h>
*/
#if defined(HAVE_CONFIG_H)
-# include HAVE_CONFIG_H
+# if defined(LT_CONFIG_H)
+# include LT_CONFIG_H
+# else
+# include <config.h>
+# endif
#endif
#include <stdio.h>
# must contain the definitions required by ltdl.c.
# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
AC_CONFIG_COMMANDS_PRE([dnl
+m4_pattern_allow([^LT_CONFIG_H$])dnl
m4_ifset([AH_HEADER],
- [CONFIG_H=AH_HEADER],
+ [LT_CONFIG_H=AH_HEADER],
[m4_ifset([AC_LIST_HEADERS],
- [CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[ ]]*,,;s,[[ :]].*$,,'`],
- [CONFIG_H=config.h;AC_CONFIG_HEADERS([config.h])])])])
-AC_SUBST([CONFIG_H])
+ [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[ ]]*,,;s,[[ :]].*$,,'`],
+ [LT_CONFIG_H=config.h;AC_CONFIG_HEADERS([config.h])])])])
+AC_SUBST([LT_CONFIG_H])
AC_CHECK_HEADERS([memory.h unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h],
[], [], [AC_INCLUDES_DEFAULT])