aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-03-31 18:17:51 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-03-31 18:17:51 -0700
commitbf159bd829efb6aa73c68542949eb11d9a44d93c (patch)
treec7bdeae49a88a1484f3654ac1ed75a273d426aa3 /configure
parent20576886457235b84f80d3ac8eaf9fb36d306bf4 (diff)
configure: Fix installation of library to work with alternate --prefix
If an explicit --libdir is passed, then that is used directly. Otherwise libdir is chosen as the value of $PREFIX/lib, (whether or not prefix was passed explicitly or set by default).
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure b/configure
index 2e31e566..5d254b3d 100755
--- a/configure
+++ b/configure
@@ -11,7 +11,7 @@ XAPIAN_CONFIG=${XAPIAN_CONFIG:-xapian-config-1.1 xapian-config}
# Set the defaults for values the user can specify with command-line
# options.
PREFIX=/usr/local
-LIBDIR=${PREFIX}/lib
+LIBDIR=
usage ()
{
@@ -50,7 +50,6 @@ Additionally, various options can be specified on the configure
command line.
--prefix=PREFIX Install files in PREFIX [$PREFIX]
- --libdir=LIBDIR Install libraries in LIBDIR [$LIBDIR]
By default, "make install" will install the resulting program to
$PREFIX/bin, documentation to $PREFIX/man, etc. You can
@@ -59,6 +58,10 @@ specify an installation prefix other than $PREFIX using
./configure --prefix=\$HOME
+Fine tuning of some installation directories is available:
+
+ --libdir=DIR Install libraries in LIBDIR [PREFIX/lib]
+
EOF
}
@@ -276,7 +279,7 @@ CXXFLAGS = ${CXXFLAGS}
prefix = ${PREFIX}
# The directory to which notmuch libraries should be installed
-libdir = ${LIBDIR}
+libdir = ${LIBDIR:=$PREFIX/lib}
# The directory to which emacs lisp files should be installed
emacs_lispdir=${emacs_lispdir}