From: Ralf Wildenhues Date: Mon, 13 Feb 2006 16:51:50 +0000 (+0000) Subject: * libltdl/config/ltmain.m4sh (func_mode_link) : X-Git-Tag: release-2-1b~320 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf53b3d95af000e21a7066fabf9dd661d4afd022;p=thirdparty%2Flibtool.git * 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 . --- diff --git a/ChangeLog b/ChangeLog index 8a02295de..0e4206953 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-02-13 Ralf Wildenhues + + * 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 . + 2006-02-09 Ralf Wildenhues * libltdl/m4/libtool.m4 (AC_PROG_SED): m4_defun this rather diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index dc0fdc628..87c974fbc 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -6186,6 +6186,20 @@ EOF 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+\"\$[@]\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$[@]\"}'='\"\$[@]\"' + 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