diff --git a/ChangeLog b/ChangeLog index d2634e98..27e8a3d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2010-08-06 Ralf Wildenhues + Fix AC_NO_EXECUTABLES test failure on AIX. + * libltdl/m4/libtool.m4 (_LT_SYS_MODULE_PATH_AIX): Wrap link + test in AC_CACHE_VAL, using cache variable $lt_cv_aix_libpath. + * tests/no-executables.at (AC_NO_EXECUTABLES): Preset it, to + avoid link test. + Bug report by Rainer Tammer. + Fix ltdl-libdir test for C++ compilers. * tests/ltdl-libdir.at (libdir of installed modules): Declare module function as extern "C". diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index f61be283..d8d6aebd 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -1081,7 +1081,8 @@ 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_CACHE_VAL([lt_cv_aix_libpath], +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { @@ -1089,12 +1090,14 @@ lt_aix_libpath_sed=' p } }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +lt_cv_aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +if test -z "$lt_cv_aix_libpath"; then + lt_cv_aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +if test -z "$lt_cv_aix_libpath"; then lt_cv_aix_libpath="/usr/lib:/lib"; fi +]) +aix_libpath=$lt_cv_aix_libpath ])# _LT_SYS_MODULE_PATH_AIX diff --git a/tests/no-executables.at b/tests/no-executables.at index e9e229a9..75b92efa 100644 --- a/tests/no-executables.at +++ b/tests/no-executables.at @@ -1,7 +1,6 @@ # no-executables.at -- Libtool usage in GCC -*- Autotest -*- -# Copyright (C) 2008 Free Software Foundation, Inc. -# Written by Ralf Wildenhues, 2008 +# Copyright (C) 2008, 2010 Free Software Foundation, Inc. # # This file is part of GNU Libtool. # @@ -52,6 +51,7 @@ lt_cv_archive_cmds_need_lc=no lt_cv_cc_needs_belf=no lt_cv_ld_exported_symbols_list=no lt_cv_prog_compiler_static_works=no +lt_cv_aix_libpath="/usr/lib:/lib" # Deal with AC_LIBTOOL_DLOPEN in one of two possible ways: # - do not execute it at all in the ac_no_link case