pinstall-collateral-damage-use-install-sh-usefully-20080701
authorDerrick Brashear <shadow@dementia.org>
Tue, 1 Jul 2008 05:58:38 +0000 (05:58 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 1 Jul 2008 05:58:38 +0000 (05:58 +0000)
LICENSE IPL10

this is gross. but ac_INSTALL wants things to begin with / and @ is not /.

so we cheat and use /@abs_top_srcdir@/install-sh -c if INSTALL began with ./

src/cf/osconf.m4

index 249cfc1..b6a064c 100644 (file)
@@ -1093,6 +1093,15 @@ if test "x$enable_warnings" = "xyes"; then
   fi
 fi
 
+dnl horribly cheating, assuming double / is ok.
+case $INSTALL in
+  ./* ) 
+    INSTALL="/@abs_top_srcdir@/install-sh -c"
+  ;;
+  *) 
+  ;;
+esac
+
 INSTALL_PROGRAM="${INSTALL_PROGRAM} ${NO_STRIP_BIN}"
 
 AC_SUBST(CCXPG2)