Comparison

configure @ 7945:1f4a0e0b7167

configure: Fix setting libdir if prefix changed
author Kim Alvefur <zash@zash.se>
date Fri, 03 Mar 2017 11:51:32 +0100
parent 7943:da791f11e20c
child 7964:1023f2add7fe
comparison
equal deleted inserted replaced
7943:da791f11e20c 7945:1f4a0e0b7167
336 then DATADIR=/var/lib/prosody 336 then DATADIR=/var/lib/prosody
337 else DATADIR=$PREFIX/var/lib/prosody 337 else DATADIR=$PREFIX/var/lib/prosody
338 fi 338 fi
339 fi 339 fi
340 340
341 if [ "$PREFIX_SET" = "yes" -a ! "$LIBDIR_SET" = "yes" ]
342 then
343 LIBDIR=$PREFIX/lib
344 fi
345
341 detect_lua_version() { 346 detect_lua_version() {
342 detected_lua=`$1 -e 'print(_VERSION:match(" (5%.[123])$"))' 2> /dev/null` 347 detected_lua=`$1 -e 'print(_VERSION:match(" (5%.[123])$"))' 2> /dev/null`
343 if [ "$detected_lua" != "nil" ] 348 if [ "$detected_lua" != "nil" ]
344 then 349 then
345 if [ "$LUA_VERSION_SET" != "yes" ] 350 if [ "$LUA_VERSION_SET" != "yes" ]