Apply several fixes for Illumos support

This commit is contained in:
Nikita Baksalyar 2016-01-26 17:15:10 +03:00
parent f189d7a693
commit ebab24059a
No known key found for this signature in database
GPG key ID: 3EEA378A0EA758DA
5 changed files with 79 additions and 44 deletions

6
configure vendored
View file

@ -1,12 +1,12 @@
#!/bin/sh
# /bin/sh on Solaris is not a POSIX compatible shell, but /usr/bin/ksh is.
# /bin/sh on Solaris is not a POSIX compatible shell, but /usr/bin/bash is.
if [ `uname -s` = 'SunOS' -a "${POSIX_SHELL}" != "true" ]; then
POSIX_SHELL="true"
export POSIX_SHELL
exec /usr/bin/bash $0 "$@"
exec /usr/bin/env bash $0 "$@"
fi
unset POSIX_SHELL # clear it so if we invoke other scripts, they run as ksh as well
unset POSIX_SHELL # clear it so if we invoke other scripts, they run as bash as well
msg() {
echo "configure: $*"