harec

[hare] Hare compiler, written in C11 for POSIX OSs
Log | Files | Refs | README | LICENSE

commit 7badb20cf090c6977a393b615eef79aa8fd6a0b1
parent c4bf0ccb9d603206ba20c88d5ae7477bb425c253
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sun, 29 May 2022 15:13:26 -0400

configure: add --help

Implements: https://todo.sr.ht/~sircmpwn/hare/561
Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mconfig.sh | 32++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+), 0 deletions(-)

diff --git a/config.sh b/config.sh @@ -38,6 +38,38 @@ do --sysconfdir=*) SYSCONFDIR=${arg#*=} ;; + --help) + cat >&2 <<'EOF' +Usage: configure [options...] + +Options: +--help +--prefix=<path> + default: /usr/local +--bindir=<path> + default: (prefix)/bin +--libdir=<path> + default: (prefix)/lib +--mandir=<path> + default: (prefix)/share/man +--sharedir=<path> + default: (prefix)/share +--sysconfdir=<path> + default: /etc if prefix is /usr, otherwise (prefix)/etc + +Environment variables: +AR (default: "ar") +AS (default: "as") +CC (default: "cc") +CFLAGS (default: "") +LD (default: "ld") +LDFLAGS (default: "") +OUTDIR (default: ".build") +QBE (default: "qbe") +SRCDIR (default: directory of configure script) +EOF + exit + ;; *) printf 'Error: unknown configure option %s\n' "$arg" >&2 exit 1