summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/autoconf/configure.ac3
-rwxr-xr-xllvm/configure3
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac
index b29ce31f964..f6bb7a5445e 100644
--- a/llvm/autoconf/configure.ac
+++ b/llvm/autoconf/configure.ac
@@ -632,6 +632,9 @@ AC_SUBST(SHLIBEXT,$libltdl_cv_shlibext)
# Translate the various configuration directories and other basic
# information into substitutions that will end up in Makefile.config.in
# that these configured values can be used by the makefiles
+if test "${prefix}" == "NONE" ; then
+ prefix="/usr/local"
+fi
eval LLVM_PREFIX="${prefix}";
eval LLVM_BINDIR="${prefix}/bin";
eval LLVM_LIBDIR="${prefix}/lib";
diff --git a/llvm/configure b/llvm/configure
index b235fcd95c0..9b0e36e973f 100755
--- a/llvm/configure
+++ b/llvm/configure
@@ -30739,6 +30739,9 @@ SHLIBEXT=$libltdl_cv_shlibext
# Translate the various configuration directories and other basic
# information into substitutions that will end up in Makefile.config.in
# that these configured values can be used by the makefiles
+if test "${prefix}" == "NONE" ; then
+ prefix="/usr/local"
+fi
eval LLVM_PREFIX="${prefix}";
eval LLVM_BINDIR="${prefix}/bin";
eval LLVM_LIBDIR="${prefix}/lib";
OpenPOWER on IntegriCloud