From f01d9ba5d42e9a8d0b148bc7fc14c34ba6dc4bb9 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Thu, 22 Jul 2021 03:30:31 +0300 Subject: update configure script --- configure | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configure b/configure index 6e879d8..36895a2 100755 --- a/configure +++ b/configure @@ -10,6 +10,17 @@ die() { out() { printf '%s\n' "$@" ;} +usage() { + out "usage: $0 [options]" \ + "Options:" \ + " --prefix=dir Set prefix directory" \ + " --bindir=dir Set directory where executables will be installed" \ + " --manprefix=dir Set directory where manual pages will be installed" \ + " --with-fts=option One of glibc, musl-fts, none, auto (default: auto)" \ + " --with-system-zlib Use system zlib" + exit 1 +} + prefix=/usr/local # We don't want expansion # shellcheck disable=2016 @@ -22,8 +33,10 @@ host= for arg; do case $arg in + --help) usage ;; --prefix=*) prefix=${arg#*=} ;; --bindir=*) bindir=${arg#*=} ;; + --manprefix=*) manprefix=${arg#*=} ;; --with-fts=*) fts=${arg#*=} ;; --with-system-zlib) zlib=1 ;; -*) die "Unknown flag: '$arg'" ;; -- cgit v1.2.3