summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-02-24 18:28:20 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-02-24 18:28:20 +0000
commit28f7cd321632dd1650690a0e6bce7a7d2898280d (patch)
tree58d46928622470d792e15cec412fb6af87f17fbf /llvm
parent76d99df157c98bfc3d86bd3dcb485da2fe854a82 (diff)
downloadbcm5719-llvm-28f7cd321632dd1650690a0e6bce7a7d2898280d.tar.gz
bcm5719-llvm-28f7cd321632dd1650690a0e6bce7a7d2898280d.zip
This macro cannot assume that the location of install-sh and mkinstalldirs
is in ${srcdir}/autoconf because that is only true if the project is LLVM. For other projects (e.g. sample), we don't want to have to distribute the mkinstalldirs or install-sh programs because it opens a window of breakage for projects. So, this change requires that the llvm_src variable be set up via another AC_CONFIG_COMMANDS call. For LLVM this is done in the configure.ac. For projects its done in the LLVM_CONFIG_PROJECT macro. llvm-svn: 20304
Diffstat (limited to 'llvm')
-rw-r--r--llvm/autoconf/m4/config_makefile.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/autoconf/m4/config_makefile.m4 b/llvm/autoconf/m4/config_makefile.m4
index e30f1876201..f21a25631ed 100644
--- a/llvm/autoconf/m4/config_makefile.m4
+++ b/llvm/autoconf/m4/config_makefile.m4
@@ -3,5 +3,7 @@
# date. This macro is unique to LLVM.
#
AC_DEFUN([AC_CONFIG_MAKEFILE],
-[AC_CONFIG_COMMANDS($1,${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/$1 $1,${srcdir}/autoconf/mkinstalldirs `dirname $1`)
+[AC_CONFIG_COMMANDS($1,
+ [${llvm_src}/autoconf/mkinstalldirs `dirname $1`
+ ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/$1 $1])
])
OpenPOWER on IntegriCloud