]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/m4/ltdl.m4 (LT_WITH_LTDL): Fix detection of new enough
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 19 Feb 2007 09:10:32 +0000 (09:10 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 19 Feb 2007 09:10:32 +0000 (09:10 +0000)
libltdl by actually checking for the declaration of
lt_dlinterface_register in ltdl.h with AC_CHECK_DECL.
Remove redundant configure output line.

ChangeLog
libltdl/m4/ltdl.m4

index 890acada7fc5067d018509827e54414d5ec168e2..c0ac15f504104d0ba4fd91f548528a407ec3dd9a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * libltdl/m4/ltdl.m4 (LT_WITH_LTDL): Fix detection of new enough
+       libltdl by actually checking for the declaration of
+       lt_dlinterface_register in ltdl.h with AC_CHECK_DECL.
+       Remove redundant configure output line.
+
        * tests/template.at: Reformat, add M4 quoting.  Use $LDFLAGS
        consistently for link mode.
 
index 82f8b01aa3382cbfb2ea1b95c197f460f93e0d83..0185b84ef3d86d8a8b961979da977f46c831371e 100644 (file)
@@ -5,7 +5,7 @@
 # unlimited permission to copy and/or distribute it, with or without
 # modifications, as long as this notice is preserved.
 
-# serial 11 LTDL_INIT
+# serial 12 LTDL_INIT
 
 # LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
 # ------------------------------------------
@@ -182,18 +182,17 @@ AC_ARG_WITH([included_ltdl],
 if test "x$with_included_ltdl" != xyes; then
   # We are not being forced to use the included libltdl sources, so
   # decide whether there is a useful installed version we can use.
-  lt_dlinterface_register_found=no
   AC_CHECK_HEADER([ltdl.h],
-      [AC_CHECK_LIB([ltdl], [lt_dlinterface_register],
-          [with_included_ltdl=no],
-          [with_included_ltdl=yes])],
-
-      [],
+      [AC_CHECK_DECL([lt_dlinterface_register],
+          [AC_CHECK_LIB([ltdl], [lt_dlinterface_register],
+              [with_included_ltdl=no],
+              [with_included_ltdl=yes])],
+          [with_included_ltdl=yes],
+          [AC_INCLUDES_DEFAULT
+           #include <ltdl.h>])],
+      [with_included_ltdl=yes],
       [AC_INCLUDES_DEFAULT]
   )
-  AC_MSG_CHECKING([for lt_dlinterface_register in ltdl.h])
-  test "x$with_included_ltdl" = xno && lt_dlinterface_register_found=yes
-  AC_MSG_RESULT([$lt_dlinterface_register_found])
 fi
 
 if test "x$enable_ltdl_install" != xyes; then