diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-05-16 08:53:32 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-05-16 08:53:32 +0000 |
commit | 0582887de45f0196507ef356dcd5cb11bf7626ba (patch) | |
tree | 00dd9621f54a8c1a64f9ea0a01ff6ae5c68f8e20 | |
parent | 069287d460321af43b7c88b816da5c778e5f46d1 (diff) | |
download | external_llvm-0582887de45f0196507ef356dcd5cb11bf7626ba.zip external_llvm-0582887de45f0196507ef356dcd5cb11bf7626ba.tar.gz external_llvm-0582887de45f0196507ef356dcd5cb11bf7626ba.tar.bz2 |
Make sure to default ${prefix} to /usr/local if the user didn't specify it.
This assists with getting around configure's late binding values so that
our LLVM variables don't end up with a "NONE" prefix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28325 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | autoconf/configure.ac | 3 | ||||
-rwxr-xr-x | configure | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index b29ce31..f6bb7a5 100644 --- a/autoconf/configure.ac +++ b/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"; @@ -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"; |