You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.4 KiB

# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([Yet Another Covid Statistics Web App], [1.0], [me@bradymcd.ca])
# Pull in environment variables
AC_ARG_VAR([server_name], [The hostname of the target server])
AC_ARG_VAR([public_dir], [The directory where public html files should be installed])
AC_ARG_VAR([nginx_dir], [The nginx config directory containing sites_available and sites_enabled])
AC_ARG_VAR([nginx_config], [The name to give the nginx config file in sites_available])
# Default values
test "$server_name" || server_name=yacswa.home
test "$public_dir" || public_dir=/srv/yacswa.home/
test "$nginx_dir" || nginx_dir=/etc/nginx/
test "$nginx_config" || nginx_config=yacswa.home.conf
# Checks for programs.
AC_PROG_MAKE_SET
AC_CHECK_PROG(GUILE, [guile], [guile], [no])
test "$GUILE" == "no" && AC_MSG_ERROR([Guile's interpreter: 'guile' not found.])
AC_CHECK_PROG(GUILD, [guild], [guild], [no])
test "$GUILD" == "no" && AC_MSG_ERROR([Guile's compiler: 'guild' not found.])
AC_CHECK_PROG(ART, [art], [art], [no])
test "$ART" == "no" && AC_MSG_ERROR([Guile Artanis webserver: 'art' not found.])
AC_CHECK_PROG(ELM, [elm], [elm], [no])
test "$ELM" == "no" && AC_MSG_ERROR([Elm's compiler: 'elm' not found.])
AC_PROG_LN_S
AC_CONFIG_FILES([Makefile
backend/Makefile
frontend/Makefile
nginx/yacswa.conf])
AC_OUTPUT