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="$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/'`"