123456789101112131415161718192021222324252627282930313233 |
- # SPDX-License-Identifier: GPL-3.0-or-later
- # Copyright © 2018-2019 Ariadne Devos
- # sHT -- build system -- automagical configuration
- AC_PREREQ(2.59)
- AC_INIT([shttpd], [0.0])
- AC_CONFIG_AUX_DIR([build-aux])
- AM_INIT_AUTOMAKE()
- AC_PROG_CC
- AC_CANONICAL_HOST
- # sHT (not s^2) has some architecture-dependent code.
- #
- # That shouldn't be necessary, if processors did not
- # speculatively execute ... That's Spectre, a performance
- # feature, but not to programmers.
- case "$host_cpu" in
- # An ubiquitous server, desktop and laptop architecture
- x86|x86_64) CONFIG_ARCH=x86 ;;
- # Typical for mobile devices.
- # Is rumoured to be more **energy-efficient**, as in
- # processed information / produced heat.
- arm) CONFIG_ARCH=arm ;;
- *) AC_MSG_ERROR([As-yet unsupported architecture]) ;;
- esac
- AC_SUBST([CONFIG_ARCH], [$CONFIG_ARCH])
- AC_CONFIG_FILES([Makefile])
- AC_OUTPUT
|