diff --git a/ChangeLog b/ChangeLog index 2c050bca..5eab0ea4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2005-09-17 Ralf Wildenhues + + * libltdl/m4/ltdl.m4 (LTDL_INIT) : Rename to.. + : this, to contain the name of the config + header. + * Makefile.am : 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 , * tests/testsuite.at (LT_AT_EXEC_CHECK): Make sure diff --git a/HACKING b/HACKING index 28d0c673..7c86421b 100644 --- a/HACKING +++ b/HACKING @@ -267,7 +267,11 @@ yyyy-mm-dd Name of Author (tiny change) 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 + # endif #endif #include "lt_system.h" diff --git a/Makefile.am b/Makefile.am index 86f6a61f..5534fd03 100644 --- a/Makefile.am +++ b/Makefile.am @@ -223,7 +223,7 @@ $(srcdir)/libltdl/Makefile.in: libltdl/Makefile.am # %%% 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': diff --git a/libltdl/argz.c b/libltdl/argz.c index 4fce2f5a..dae140aa 100644 --- a/libltdl/argz.c +++ b/libltdl/argz.c @@ -27,14 +27,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA */ -/* 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 -#endif - #if defined(HAVE_CONFIG_H) -# include HAVE_CONFIG_H +# if defined(LTDL) && defined LT_CONFIG_H +# include LT_CONFIG_H +# else +# include +# endif #endif #include diff --git a/libltdl/libltdl/lt__dirent.h b/libltdl/libltdl/lt__dirent.h index 642bd30b..fd1d0ff5 100644 --- a/libltdl/libltdl/lt__dirent.h +++ b/libltdl/libltdl/lt__dirent.h @@ -31,7 +31,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #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 +# endif #endif #include "lt_system.h" diff --git a/libltdl/libltdl/lt__glibc.h b/libltdl/libltdl/lt__glibc.h index cc495076..310f73d4 100644 --- a/libltdl/libltdl/lt__glibc.h +++ b/libltdl/libltdl/lt__glibc.h @@ -31,7 +31,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #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 +# endif #endif #if !defined(HAVE_ARGZ_H) diff --git a/libltdl/libltdl/lt__private.h b/libltdl/libltdl/lt__private.h index eea20bdb..9098f424 100644 --- a/libltdl/libltdl/lt__private.h +++ b/libltdl/libltdl/lt__private.h @@ -31,7 +31,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #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 +# endif #endif #include diff --git a/libltdl/libltdl/lt__strl.h b/libltdl/libltdl/lt__strl.h index f334ed69..895ecdbf 100644 --- a/libltdl/libltdl/lt__strl.h +++ b/libltdl/libltdl/lt__strl.h @@ -31,7 +31,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #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 +# endif #endif #include diff --git a/libltdl/lt__alloc.c b/libltdl/lt__alloc.c index 64f6e2e4..d65b3d2c 100644 --- a/libltdl/lt__alloc.c +++ b/libltdl/lt__alloc.c @@ -28,7 +28,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA */ #if defined(HAVE_CONFIG_H) -# include HAVE_CONFIG_H +# if defined(LT_CONFIG_H) +# include LT_CONFIG_H +# else +# include +# endif #endif #include diff --git a/libltdl/m4/ltdl.m4 b/libltdl/m4/ltdl.m4 index ff14d60a..05f4abe1 100644 --- a/libltdl/m4/ltdl.m4 +++ b/libltdl/m4/ltdl.m4 @@ -170,12 +170,13 @@ m4_require([_LT_CHECK_DLPREOPEN])dnl # 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])