aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
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/'`"