250816
build system: added empty --prefix and --exec-prefix support.
@@ -107,8 +107,12 @@ verify_build_directory()
|
|
107
107
|
common_defaults()
|
108
108
|
{
|
109
109
|
# dirs
|
110
|
-
[ -z "$mb_prefix" ] &&
|
111
|
-
|
110
|
+
[ -z "$mb_prefix" ] && [ -z "$mb_prefix_set" ] \
|
111
|
+
&& mb_prefix='/usr/local'
|
112
|
+
|
113
|
+
[ -z "$mb_exec_prefix" ] && [ -z "$mb_exec_prefix_set" ] \
|
114
|
+
&& mb_exec_prefix=$mb_prefix
|
115
|
+
|
112
116
|
[ -z "$mb_bindir" ] && mb_bindir=$mb_exec_prefix/bin
|
113
117
|
[ -z "$mb_libdir" ] && mb_libdir=$mb_exec_prefix/lib
|
114
118
|
[ -z "$mb_includedir" ] && mb_includedir=$mb_prefix/include
|
@@ -392,9 +396,11 @@ for arg ; do
|
|
392
396
|
|
393
397
|
# dirs
|
394
398
|
--prefix=*)
|
399
|
+
mb_prefix_set=yes
|
395
400
|
mb_prefix=${arg#*=}
|
396
401
|
;;
|
397
402
|
--exec-prefix=*)
|
403
|
+
mb_exec_prefix_set=yes
|
398
404
|
mb_exec_prefix=${arg#*=}
|
399
405
|
;;
|
400
406
|
--bindir=*)
|