From 0582887de45f0196507ef356dcd5cb11bf7626ba Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Tue, 16 May 2006 08:53:32 +0000 Subject: [PATCH] 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 --- autoconf/configure.ac | 3 +++ configure | 3 +++ 2 files changed, 6 insertions(+) diff --git a/autoconf/configure.ac b/autoconf/configure.ac index b29ce31f964..f6bb7a5445e 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"; diff --git a/configure b/configure index b235fcd95c0..9b0e36e973f 100755 --- a/configure +++ b/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"; -- 2.34.1