Some of the binutils directories (libgloss and newlib) have moved from autoconf 2.64 to 2.68. While running autoconf 2.68 on these directories I get some warnings coming from libtool.m4 which is at the top level of the GCC and binutils trees. Fixes for these warnings are already in the upstream libtool sources and the changes work fine with autoconf 2.64 as well as autoconf 2.68 so I would like to put these fixes into the libtool.m4 at the GCC and binutils top-levels.
I ran autoconf in various GCC and binutils directories to verify that no signficant changes ocurred in any directories, is this patch OK to check in to the GCC tree? I will send seperate email to the binutils mailing list though perhaps permission to check it in to the GCC tree is sufficient to put it in binutils as well? Steve Ellcey sell...@mips.com 2013-08-20 Steve Ellcey <sell...@mips.com> * libtool.m4 (_LT_SYS_MODULE_PATH_AIX): Put AC_LANG_PROGRAM call in brackets. (irix*|nonstopux*): use AC_LANG_SOURCE in AC_LINK_IFELSE call. diff --git a/libtool.m4 b/libtool.m4 index 8a14e2b..7119b35 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -1079,7 +1079,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], # 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/ { @@ -4926,7 +4926,16 @@ _LT_EOF # 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ) LDFLAGS="$save_LDFLAGS"