1
0
mirror of https://git.sr.ht/~sircmpwn/gmnisrv synced 2024-11-03 06:07:17 -05:00

configure: add --libdir

This commit is contained in:
Eyal Sawady 2020-09-24 14:39:36 -04:00 committed by Drew DeVault
parent 85a85b37f8
commit e15aca171d

View File

@ -9,8 +9,16 @@ SCDOC=${SCDOC:-scdoc}
for arg for arg
do do
# TODO: Add args for install directories
case "$arg" in case "$arg" in
--bindir=*)
BINDIR=${arg#*=}
;;
--libdir=*)
LIBDIR=${arg#*=}
;;
--mandir=*)
MANDIR=${arg#*=}
;;
--prefix=*) --prefix=*)
PREFIX=${arg#*=} PREFIX=${arg#*=}
if [ "$PREFIX" = "/usr" ] if [ "$PREFIX" = "/usr" ]
@ -18,15 +26,9 @@ do
SYSCONFDIR=/etc SYSCONFDIR=/etc
fi fi
;; ;;
--bindir=*)
BINDIR=${arg#*=}
;;
--sysconfdir=*) --sysconfdir=*)
SYSCONFDIR=${arg#*=} SYSCONFDIR=${arg#*=}
;; ;;
--mandir=*)
MANDIR=${arg#*=}
;;
esac esac
done done