]> granicus.if.org Git - apache/commitdiff
tweak r823613/PR 47951 change to avoid /usr/sbin/install on
authorJeff Trawick <trawick@apache.org>
Mon, 16 Nov 2009 21:51:01 +0000 (21:51 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 16 Nov 2009 21:51:01 +0000 (21:51 +0000)
Solaris

(not compatible with BSD install)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@880981 13f79535-47bb-0310-9956-ffa450edef68

build/instdso.sh

index e6c370438b9523f7eb82733568d1481133ae09f7..884e81f383d64a2138fcb857e6e59ee741882a81 100755 (executable)
@@ -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 $?