configure: Fix for commit cd0088c73daf - update LIBDIR if --prefix is set and --libdir isn't (thanks Medics)

This commit is contained in:
Matthew Wild 2015-02-24 15:19:20 +00:00
parent 5bab5b528a
commit 45e9902b57

6
configure vendored
View file

@ -139,6 +139,7 @@ do
;; ;;
--libdir=*) --libdir=*)
LIBDIR="$value" LIBDIR="$value"
LIBDIR_SET=yes
;; ;;
--datadir=*) --datadir=*)
DATADIR="$value" DATADIR="$value"
@ -213,6 +214,11 @@ then
fi fi
fi fi
if [ "$PREFIX_SET" = "yes" -a ! "$LIBDIR_SET" = "yes" ]
then
LIBDIR=$PREFIX/lib
fi
find_program() { find_program() {
path="$PATH" path="$PATH"
item="`echo "$path" | sed 's/\([^:]*\):.*/\1/'`" item="`echo "$path" | sed 's/\([^:]*\):.*/\1/'`"