aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-02-24 15:19:20 +0000
committerMatthew Wild <mwild1@gmail.com>2015-02-24 15:19:20 +0000
commit0ecfb4e79a16b0c703d995a43a5285aa33489b81 (patch)
treef9c3fcd5098cfc5cf73a5c1525e2dca20ba54390 /configure
parent33ca1a111127363489483a8edd5252c45cb16f9a (diff)
downloadprosody-0ecfb4e79a16b0c703d995a43a5285aa33489b81.tar.gz
prosody-0ecfb4e79a16b0c703d995a43a5285aa33489b81.zip
configure: Fix for commit cd0088c73daf - update LIBDIR if --prefix is set and --libdir isn't (thanks Medics)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index c27517fc..199f5fcf 100755
--- a/configure
+++ b/configure
@@ -139,6 +139,7 @@ do
;;
--libdir=*)
LIBDIR="$value"
+ LIBDIR_SET=yes
;;
--datadir=*)
DATADIR="$value"
@@ -213,6 +214,11 @@ then
fi
fi
+if [ "$PREFIX_SET" = "yes" -a ! "$LIBDIR_SET" = "yes" ]
+then
+ LIBDIR=$PREFIX/lib
+fi
+
find_program() {
path="$PATH"
item="`echo "$path" | sed 's/\([^:]*\):.*/\1/'`"