From e4f293afddb5582057a811c98b5adebd2380beec Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Wed, 11 Dec 2019 00:10:22 +0000 Subject: [PATCH] freebsd: Initial configure support. * configure: Initial FreeBSD configure support. * configure.sh: Likewise. Run without bash. --- configure | 4 ++-- configure.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configure b/configure index e66e12f6..5acf55dc 100755 --- a/configure +++ b/configure @@ -456,8 +456,8 @@ Some influential environment variables: (make-dep "sh" #:version '(0) #:optional? #t) (make-dep "bash" #:version '(2 0) #:optional? #t) (make-dep "guild" #:version '(2 0) #:commands '("guild" "guile-tools" "true")) - (make-dep "cc" #:commands (list gcc tcc mescc) #:optional? #t) - (make-dep "make" #:optional? #t) + (make-dep "cc" #:commands (list gcc "cc" tcc mescc) #:optional? #t) + (make-dep "make" #:optional? #t #:commands '("gmake" "make")) (make-dep "makeinfo" #:optional? #t) (make-dep "dot" #:version-option "-V" #:optional? #t) (make-dep "help2man" #:version '(1 47) #:optional? #t) diff --git a/configure.sh b/configure.sh index 9b8885b7..5b5a4a93 100755 --- a/configure.sh +++ b/configure.sh @@ -58,7 +58,7 @@ prefix=${prefix-/usr/local} mes_libc=${mes_libc-mes} courageous=${courageous-false} -BASH=${BASH-$(command -v bash)} +BASH=${BASH-$(command -v bash || command -v sh)} BLOOD_ELF=${BLOOD_ELF-$(command -v blood-elf)} CC=${CC-$(command -v gcc)} || true CFLAGS=${CFLAGS-} @@ -197,6 +197,8 @@ case "$host" in mes_kernel=linux;; *gnu) mes_kernel=gnu;; + *freebsd*) + mes_kernel=frreebsd;; *) mes_kernel=linux;; esac