Add an optional separate install prefix for internal components. rdar://10217046

Some files installed by clang are not relevant for general users and we'd like
to be able to install them to a different location.  This adds a new
--with-internal-prefix configure option and a corresponding PROJ_internal_prefix
makefile variable, which defaults to the standard prefix.  A tool makefile
can specify that it should be installed to this internal prefix by defining
INTERNAL_TOOL.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145234 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bob Wilson
2011-11-28 07:59:52 +00:00
parent f86186ee24
commit ae7e2a4bbb
4 changed files with 40 additions and 5 deletions

View File

@@ -885,6 +885,12 @@ AC_ARG_ENABLE(libffi,AS_HELP_STRING(
esac],
llvm_cv_enable_libffi=no)
AC_ARG_WITH(internal-prefix,
AS_HELP_STRING([--with-internal-prefix],
[Installation directory for internal files]),,
withval="")
AC_SUBST(INTERNAL_PREFIX,[$withval])
dnl===-----------------------------------------------------------------------===
dnl===
dnl=== SECTION 4: Check for programs we need and that they are the right version