bootstrap: Use ./pre-inst-env mescc default.

* configure.sh: When CC is mescc, M2-Planet or unset, use
"./pre-inst-env mescc" as default.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2021-01-01 08:52:49 +01:00
parent 99adc7efdc
commit aac33c44b7
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1,7 +1,7 @@
#! /bin/sh
# GNU Mes --- Maxwell Equations of Software
# Copyright © 2018,2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
# Copyright © 2018,2019,2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
#
# This file is part of GNU Mes.
#
@ -221,7 +221,13 @@ elif $CC --version | grep tcc; then
compiler=gcc
else
compiler=mescc
AR=${AR-$PWD/scripts/mesar}
if ! $CC --version; then
CC="$PWD/pre-inst-env mescc"
fi
if test "$CC" = "M2-Planet"; then
CC="$PWD/pre-inst-env mescc"
fi
AR=${AR-$PWD/pre-inst-env mesar}
fi
AR=${AR-$(command -v ar)} || true