* libltdl/config/ltmain.m4sh (func_mode_link) : Add _AS_BOURNE_COMPATIBLE code from Autoconf, to fix issues with zsh and other shells. Reported by David Gómez Espinosa . Index: libltdl/config/ltmain.m4sh =================================================================== RCS file: /cvsroot/libtool/libtool/libltdl/config/ltmain.m4sh,v retrieving revision 1.35 diff -u -r1.35 ltmain.m4sh --- libltdl/config/ltmain.m4sh 5 Feb 2006 11:06:31 -0000 1.35 +++ libltdl/config/ltmain.m4sh 13 Feb 2006 16:35:16 -0000 @@ -6186,6 +6186,20 @@ Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' +# Be Bourne compatible +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + [#] Zsh 3.x and 4.x performs word splitting on \${1+\"address@hidden"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"address@hidden"}'='\"address@hidden"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH