configure.ac 861 B

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