aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-03 11:51:32 +0100
committerKim Alvefur <zash@zash.se>2017-03-03 11:51:32 +0100
commit140c6de0260c404abebb860705a81ed7398c7c52 (patch)
tree85f99ed5cb7b513c1c838f420a20d09305a4f6d9 /configure
parentc0937dcdb42f9ac2fc928aa91f1474607b735590 (diff)
downloadprosody-140c6de0260c404abebb860705a81ed7398c7c52.tar.gz
prosody-140c6de0260c404abebb860705a81ed7398c7c52.zip
configure: Fix setting libdir if prefix changed
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index c416709d..1abd0a8d 100755
--- a/configure
+++ b/configure
@@ -338,6 +338,11 @@ then
fi
fi
+if [ "$PREFIX_SET" = "yes" -a ! "$LIBDIR_SET" = "yes" ]
+then
+ LIBDIR=$PREFIX/lib
+fi
+
detect_lua_version() {
detected_lua=`$1 -e 'print(_VERSION:match(" (5%.[123])$"))' 2> /dev/null`
if [ "$detected_lua" != "nil" ]