summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-20 18:02:10 -0400
committermidipix <writeonce@midipix.org>2016-04-21 03:07:21 -0400
commitc51f1b5cf8e275eda4673e4e3b4596468ad38388 (patch)
tree0e628037653c5dc611be5646060e0506216c59bb /configure
parent452aa8ea21d60341af4850577ccbcf696b8cd1af (diff)
downloadntcon-c51f1b5cf8e275eda4673e4e3b4596468ad38388.tar.bz2
ntcon-c51f1b5cf8e275eda4673e4e3b4596468ad38388.tar.xz
build system: set proper defaults to the various directory variables.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 10 insertions, 9 deletions
diff --git a/configure b/configure
index cadb7ef..a06af66 100755
--- a/configure
+++ b/configure
@@ -105,15 +105,16 @@ verify_build_directory()
common_defaults()
{
# dirs
- [ -z "$mb_prefix" ] && mb_prefix=$mb_default_prefix
- [ -z "$mb_exec_prefix" ] && mb_exec_prefix=$mb_default_exec_prefix
- [ -z "$mb_bindir" ] && mb_bindir=$mb_default_bindir
- [ -z "$mb_libdir" ] && mb_libdir=$mb_default_libdir
- [ -z "$mb_includedir" ] && mb_includedir=$mb_default_includedir
- [ -z "$mb_syslibdir" ] && mb_syslibdir=$mb_default_syslibdir
- [ -z "$mb_mandir" ] && mb_mandir=$mb_default_mandir
- [ -z "$mb_docdir" ] && mb_docdir=$mb_default_docdir
- [ -z "$mb_libexecdir" ] && mb_libexecdir=$mb_default_libexecdir
+ [ -z "$mb_prefix" ] && mb_prefix='/usr/local'
+ [ -z "$mb_exec_prefix" ] && 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
+ [ -z "$mb_syslibdir" ] && mb_syslibdir=/lib
+ [ -z "$mb_datarootdir" ] && mb_datarootdir=$mb_prefix/share
+ [ -z "$mb_mandir" ] && mb_mandir=$mb_datarootdir/man
+ [ -z "$mb_docdir" ] && mb_docdir=$mb_datarootdir/doc
+ [ -z "$mb_libexecdir" ] && mb_libexecdir=$mb_exec_prefix/libexec
# build
[ -z "$mb_build" ] && mb_build=$mb_default_build