INN commit: branches/2.5/m4 (libtool.m4)

INN Commit rra at isc.org
Sat Mar 15 20:49:44 UTC 2014


    Date: Saturday, March 15, 2014 @ 13:49:43
  Author: iulius
Revision: 9622

Fix AC_LANG_PROGRAM warnings from Autoconf 2.68

Autoconf 2.68 complains with several:
AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body

Libtool 2.4 (used by INN 2.6) fixed the issue but as INN 2.5 still uses Libtool 2.2.6b, just backport commit 2680f79c22e6bb1f8b9c7b5428da728b7e028b0c from git Libtool.

* m4/libtool.m4 (_LT_SYS_MODULE_PATH_AIX): Fix
  underquoted AC_LANG_PROGRAM call.
* m4/libtool.m4 (_LT_LINKER_SHLIBS) [irix, GCC]: Use
  the right source for the given language.

Modified:
  branches/2.5/m4/libtool.m4

------------+
 libtool.m4 |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

Modified: libtool.m4
===================================================================
--- libtool.m4	2014-03-15 16:50:03 UTC (rev 9621)
+++ libtool.m4	2014-03-15 20:49:43 UTC (rev 9622)
@@ -1021,7 +1021,7 @@
 # to the aix ld manual.
 m4_defun([_LT_SYS_MODULE_PATH_AIX],
 [m4_require([_LT_DECL_SED])dnl
-AC_LINK_IFELSE(AC_LANG_PROGRAM,[
+AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 lt_aix_libpath_sed='
     /Import File Strings/,/^$/ {
 	/^0/ {
@@ -4826,9 +4826,18 @@
 	# implicitly export all symbols.
         save_LDFLAGS="$LDFLAGS"
         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
-        AC_LINK_IFELSE(int foo(void) {},
+        AC_LINK_IFELSE(
+          [AC_LANG_SOURCE(
+	     [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
+			   [C++], [[int foo (void) { return 0; }]],
+			   [Fortran 77], [[
+       subroutine foo
+       end]],
+			   [Fortran], [[
+       subroutine foo
+       end]])])], [
           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
-        )
+        ])
         LDFLAGS="$save_LDFLAGS"
       else
 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'



More information about the inn-committers mailing list