diff options
author | midipix <writeonce@midipix.org> | 2016-04-20 17:51:57 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-21 03:04:03 -0400 |
commit | c6c3fcd3e6f77ac03aa95d275e424e906b83b7d0 (patch) | |
tree | 4fb74e7c849e301eb55ca28b0818d161624361af /configure | |
parent | a7da00b19184649d869c2dffeb7f08a3810274f6 (diff) | |
download | pemagine-c6c3fcd3e6f77ac03aa95d275e424e906b83b7d0.tar.bz2 pemagine-c6c3fcd3e6f77ac03aa95d275e424e906b83b7d0.tar.xz |
build system: added empty --prefix and --exec-prefix support.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -105,8 +105,12 @@ verify_build_directory() common_defaults() { # dirs - [ -z "$mb_prefix" ] && mb_prefix='/usr/local' - [ -z "$mb_exec_prefix" ] && mb_exec_prefix=$mb_prefix + [ -z "$mb_prefix" ] && [ -z "$mb_prefix_set" ] \ + && mb_prefix='/usr/local' + + [ -z "$mb_exec_prefix" ] && [ -z "$mb_exec_prefix_set" ] \ + && mb_exec_prefix=$mb_prefix + [ -z "$mb_bindir" ] && mb_bindir=$mb_exec_prefix/bin [ -z "$mb_libdir" ] && mb_libdir=$mb_exec_prefix/lib [ -z "$mb_includedir" ] && mb_includedir=$mb_prefix/include @@ -386,9 +390,11 @@ for arg ; do # dirs --prefix=*) + mb_prefix_set=yes mb_prefix=${arg#*=} ;; --exec-prefix=*) + mb_exec_prefix_set=yes mb_exec_prefix=${arg#*=} ;; --bindir=*) |