diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 6a2602ad..2a4823c8 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -6766,7 +6766,7 @@ func_mode_link () fi # Remove version info from name if versioning should be avoided - if test yes = "$avoid_version" && test no = "$need_version"; then + if test yes,no = "$avoid_version,$need_version"; then major= versuffix= verstring= @@ -7949,9 +7949,7 @@ EOF func_warning "\`-release' is ignored for programs" $preload \ - && test unknown = "$dlopen_support" \ - && test unknown = "$dlopen_self" \ - && test unknown = "$dlopen_self_static" \ + && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ && func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in @@ -8664,7 +8662,7 @@ dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" - if test no = "$installed" && test yes = "$need_relink"; then + if test no,yes = "$installed,$need_relink"; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 5229e783..4e406a2f 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -5227,7 +5227,7 @@ _LT_EOF ;; hpux10*) - if test yes = "$GCC" && test no = "$with_gnu_ld"; then + if test yes,no = "$GCC,$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' @@ -5245,7 +5245,7 @@ _LT_EOF ;; hpux11*) - if test yes = "$GCC" && test no = "$with_gnu_ld"; then + if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' @@ -5590,7 +5590,7 @@ x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - if test yes = "$enable_shared" && test yes = "$GCC"; then + if test yes,yes = "$GCC,$enable_shared"; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. @@ -6625,7 +6625,7 @@ if test yes != "$_lt_caught_CXX_error"; then output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) - if test yes = "$GXX" && test no = "$with_gnu_ld"; then + if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' case $host in osf3*) @@ -6716,7 +6716,7 @@ if test yes != "$_lt_caught_CXX_error"; then ;; *) # GNU C++ compiler with Solaris linker - if test yes = "$GXX" && test no = "$with_gnu_ld"; then + if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'