Add _AS_BOURNE_COMPATIBLE code from Autoconf, to fix issues
with zsh and other shells.
Reported by David Gómez Espinosa <david@pleyades.net>.
+2006-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * libltdl/config/ltmain.m4sh (func_mode_link) <shell wrapper>:
+ Add _AS_BOURNE_COMPATIBLE code from Autoconf, to fix issues
+ with zsh and other shells.
+ Reported by David Gómez Espinosa <david@pleyades.net>.
+
2006-02-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* libltdl/m4/libtool.m4 (AC_PROG_SED): m4_defun this rather
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