diff options
Diffstat (limited to 'src/configure')
-rwxr-xr-x | src/configure | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/src/configure b/src/configure index 50e3239..f092fef 100755 --- a/src/configure +++ b/src/configure @@ -26,15 +26,14 @@ EBUILD_COMPAT=0 USE_CLANG=0 -CFLAGS='-g -O2' -LDFLAGS='-g -Wall -O2' - PREFIX='/usr/local' BINDIR='' ETCDIR='' +SYSTEMDDIR='' +INSTALLSYSTEMD=1 MANDIR='' INSTALLMANPAGE=1 -EXAMPLESDIR='../' +EXAMPLESDIR='' INSTALLEXAMPLES=1 print_usage() { @@ -43,10 +42,13 @@ print_usage() { echo " --prefix=<PREFIX> the installation prefix (default: /usr/local)" echo " --bindir=<DIR> the path to the bin directory (default: $PREFIX/bin)" echo " --sysconfdir=<DIR> the path to the system configuration directory (default: $PREFIX/etc" + echo " --systemddir=<DIR> the path to the systemd service unit directory (default: /usr/lib/systemd/system)" + echo " --no-systemd dont't install systemd service unit" echo " --mandir=<DIR> the path to the system man pages (default: $PREFIX/share/man)" echo " --no-manpage dont't install manpage" echo " --examplesdir=<DIR> the path to the examples files (default: $PREFIX/share/examples)" echo " --no-examples dont't install example files" + echo " --use-clang use clang/llvm as compiler/linker" } for arg @@ -67,6 +69,12 @@ do --sysconfdir=*) ETCDIR=${arg#--sysconfdir=} ;; + --systemddir=*) + SYSTEMDDIR=${arg#--systemddir=} + ;; + --no-systemd) + INSTALLSYSTEMD=0 + ;; --mandir=*) MANDIR=${arg#--mandir=} ;; @@ -123,7 +131,7 @@ case $TARGET in LDFLAGS=$LDFLAGS' -L/usr/local/lib' ;; *) - echo "Plattform not supported" + echo "platform not supported" exit 1; ;; esac @@ -132,6 +140,10 @@ if [ -z "$BINDIR" ]; then BINDIR=$PREFIX/bin fi +if [ -z "$SYSTEMDDIR" ]; then + SYSTEMDDIR=/usr/lib/systemd/system +fi + if [ -z "$ETCDIR" ]; then ETCDIR=$PREFIX/etc fi @@ -160,6 +172,13 @@ BINDIR := $BINDIR ETCDIR := $ETCDIR EOF +if [ $INSTALLSYSTEMD -eq 1 ]; then + echo "SYSTEMDDIR := $SYSTEMDDIR" >> include.mk + echo "installing systemd service unit" +else + echo "not installing system service unit" +fi + if [ $INSTALLMANPAGE -eq 1 ]; then echo "MANDIR := $MANDIR" >> include.mk echo "installing manpage" |