aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar Ingmar Vanhassel <ingmar@exherbo.org>2010-03-12 14:47:36 +0100
committerGravatar Carl Worth <cworth@cworth.org>2010-03-31 18:07:58 -0700
commitacaff279e241a2cedb7c07a5dbf3e942fec74aea (patch)
tree4292eae64bf3bae58f27be318857231d5a50cff2 /configure
parent07378d0d1485c7cc0b126965dacd4714ebfdaa93 (diff)
Add a --libdir option to ./configure
This allows packagers to specify to which directory libraries should be installed. Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index a2af672d..1caff940 100755
--- a/configure
+++ b/configure
@@ -11,6 +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
usage ()
{
@@ -49,6 +50,7 @@ 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/share, etc. You can
@@ -67,6 +69,8 @@ for option; do
exit 0
elif [ "${option%%=*}" = '--prefix' ] ; then
PREFIX="${option#*=}"
+ elif [ "${option%%=*}" = '--libdir' ] ; then
+ LIBDIR="${option#*=}"
else
echo "Unrecognized option: ${option}."
echo "See:"
@@ -271,6 +275,9 @@ CXXFLAGS = ${CXXFLAGS}
# The prefix to which notmuch should be installed
prefix = ${PREFIX}
+# The directory to which notmuch libraries should be installed
+libdir = ${LIBDIR}
+
# The directory to which emacs lisp files should be installed
emacs_lispdir=${emacs_lispdir}