Files
MSYS2-packages/filesystem/main-config.site
Christoph Reiter 9a37bb560a filesystem: Clean up CONFIG_SITE usage
Just depend on the MSYSTEM_ env vars being set properly. This allows
us to have one config.site file that handles all cases.
2021-03-21 07:41:21 +01:00

21 lines
870 B
Plaintext

# This file is in public domain.
# Original author: Karlson2k (Evgeny Grin)
# Written for MSys2 to help running 'configure' scripts
# Defaults for MSys2/MinGW64-targeted programs
# Set proper selfname on bash and fallback to default name on other shells
test -n "${BASH_SOURCE}" 2>/dev/null && config_site_me="${BASH_SOURCE[0]##*/}" || config_site_me=config.site
# Set default 'host' to speedup configure
if test -z "$build_alias"; then
build_alias="${MSYSTEM_CHOST}" && \
${as_echo-echo} "$config_site_me:${as_lineno-$LINENO}: default build_alias set to $build_alias" >&5
fi
# Set default 'prefix'
if ( test -z "$prefix" || test "x$prefix" = "xNONE" ) && \
( test -z "$exec_prefix" || test "x$exec_prefix" = "xNONE" ); then
prefix="${MSYSTEM_PREFIX}" && \
${as_echo-echo} "$config_site_me:${as_lineno-$LINENO}: default prefix set to $prefix" >&5
fi