summaryrefslogtreecommitdiff
path: root/build/instdso.sh
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2009-11-16 21:51:01 +0000
committerJeff Trawick <trawick@apache.org>2009-11-16 21:51:01 +0000
commitef5fc9c5b21ea59f2eb55e6c83536ceb8a96b1b3 (patch)
treed3c19a178ee998d71efd956cb047e878d6bec062 /build/instdso.sh
parent6d32b7b925bd5b94b10254c1688bfdd7b58682e3 (diff)
downloadhttpd-ef5fc9c5b21ea59f2eb55e6c83536ceb8a96b1b3.tar.gz
tweak r823613/PR 47951 change to avoid /usr/sbin/install on
Solaris (not compatible with BSD install) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@880981 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/instdso.sh')
-rwxr-xr-xbuild/instdso.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/build/instdso.sh b/build/instdso.sh
index e6c370438b..884e81f383 100755
--- a/build/instdso.sh
+++ b/build/instdso.sh
@@ -49,7 +49,15 @@ then
$CMD || exit $?
fi
-type install >/dev/null 2>&1 && INSTALL_CMD=install || INSTALL_CMD=cp
+case $SYS in
+ SunOS)
+ INSTALL_CMD=cp
+ ;;
+ *)
+ type install >/dev/null 2>&1 && INSTALL_CMD=install || INSTALL_CMD=cp
+ ;;
+esac
+
CMD="$SH_LIBTOOL --mode=install $INSTALL_CMD $DSOARCHIVE $TARGETDIR/"
echo $CMD
$CMD || exit $?