Try to work around the relative install-sh path problem.
authorEric Christopher <echristo@apple.com>
Thu, 22 Jul 2010 21:13:40 +0000 (21:13 +0000)
committerEric Christopher <echristo@apple.com>
Thu, 22 Jul 2010 21:13:40 +0000 (21:13 +0000)
Patch from Eli.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109163 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/configure.ac

index 5dbb422d3fef36fad3a60444b31f8ece68a88d0b..9541b8a46c39e9c4b3b7cff6ecf80e7a1e6ce18c 100644 (file)
@@ -1011,6 +1011,13 @@ fi
 
 dnl Find the install program
 AC_PROG_INSTALL
+dnl Prepend src dir to install path dir if it's a relative path
+dnl This is a hack for installs that take place in something other
+dnl than the top level.
+case "$INSTALL" in
+ [[\\/$]]* | ?:[[\\/]]* ) ;;
+ *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
+esac
 
 dnl Checks for documentation and testing tools that we can do without. If these
 dnl are not found then they are set to "true" which always succeeds but does