]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Formerly acspecific.m4.~182~
authorDavid MacKenzie <djm@djmnet.org>
Thu, 18 Nov 1993 23:35:09 +0000 (23:35 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Thu, 18 Nov 1993 23:35:09 +0000 (23:35 +0000)
acspecific.m4
lib/autoconf/specific.m4

index 10fc731087488ffafebae6c0f06bf608d8c99038..80c88e274c476cff026382db3322989e73ba0f24 100644 (file)
@@ -181,7 +181,16 @@ if test "z${INSTALL}" = "z" ; then
   done
   IFS="$saveifs"
 fi
-INSTALL=${INSTALL-cp}
+if test -z "$INSTALL"; then
+  if test -f ${srcdir}/install.sh; then
+    # We want the top-level source directory, not the subdir's srcdir,
+    # so expand srcdir now rather than in the Makefile.
+    INSTALL="${srcdir}/install.sh -c"
+  else
+    echo "warning: ${srcdir}/install.sh not found; using cp"
+    INSTALL=cp
+  fi
+fi
 AC_SUBST(INSTALL)dnl
 test -n "$verbose" && echo "   setting INSTALL to $INSTALL"
 INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
index 10fc731087488ffafebae6c0f06bf608d8c99038..80c88e274c476cff026382db3322989e73ba0f24 100644 (file)
@@ -181,7 +181,16 @@ if test "z${INSTALL}" = "z" ; then
   done
   IFS="$saveifs"
 fi
-INSTALL=${INSTALL-cp}
+if test -z "$INSTALL"; then
+  if test -f ${srcdir}/install.sh; then
+    # We want the top-level source directory, not the subdir's srcdir,
+    # so expand srcdir now rather than in the Makefile.
+    INSTALL="${srcdir}/install.sh -c"
+  else
+    echo "warning: ${srcdir}/install.sh not found; using cp"
+    INSTALL=cp
+  fi
+fi
 AC_SUBST(INSTALL)dnl
 test -n "$verbose" && echo "   setting INSTALL to $INSTALL"
 INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}