# Copyright (C) 2023 Denis 'GNUtoo' Carikli # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . AC_PREREQ([2.69]) AC_INIT([mumble-vm], [0.1], [GNUtoo@cyberdimension.org]) AC_CONFIG_SRCDIR([mumble-vm-system.scm.tmpl]) AC_PROG_AWK AC_PROG_MKDIR_P AM_INIT_AUTOMAKE([foreign]) AC_CHECK_PROG([GUIX], [guix], [guix]) AC_CHECK_PROG([SED], [sed], [sed]) AC_SUBST([DOMAIN], []) AC_SUBST([LETSENCRYPT_EMAIL], []) AC_SUBST([VM_IPV4_ADDRESS], []) AC_SUBST([VM_SSH_PUB_KEY], []) AC_ARG_WITH([domain], [AS_HELP_STRING([--with-domain=DOMAIN], [Use custom domain (default=audio.experimental.a-lec.org)])], [DOMAIN=$withval], [DOMAIN=audio.experimental.a-lec.org]) AC_ARG_WITH([letsencrypt-email], [AS_HELP_STRING([--with-letsencrypt-email=LETSENCRYPT_EMAIL], [Use custom email address for Let's Encrypt registration and recovery contact. (default=cominfra@a-lec.org)])], [LETSENCRYPT_EMAIL=$withval], [LETSENCRYPT_EMAIL=cominfra@a-lec.org]) AC_ARG_WITH([vm-ipv4-address], [AS_HELP_STRING([--with-vm-ipv4-address=VM_IPV4_ADDRESS], [Use custom VM IPv4 address. (default=192.168.1.117/24)])], [VM_IPV4_ADDRESS=$withval], [VM_IPV4_ADDRESS="192.168.1.117/24"]) AC_ARG_WITH([vm-ssh-public-key], [AS_HELP_STRING([--with-ssh-vm-public-key=VM_SSH_PUB_KEY], [Use custom VM SSH public key for use with 'guix deploy'. (default=\ ssh-ed25519\ AAAAC3NzaC1lZDI1NTE5AAAAIEjLYbJ+47MTte960IbOUTRzOD012ewt1IZgOOc+NqDa)])], [VM_SSH_PUB_KEY=$withval], [VM_SSH_PUB_KEY="\ ssh-ed25519\ AAAAC3NzaC1lZDI1NTE5AAAAIEjLYbJ+47MTte960IbOUTRzOD012ewt1IZgOOc+NqDa"]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT echo echo "Configuration options:" echo "======================" echo "- Domain: $DOMAIN" echo "- Let's Encrypt email: $LETSENCRYPT_EMAIL" echo "- VM IPv4 address: $VM_IPV4_ADDRESS" echo "- VM SSH public key: $VM_SSH_PUB_KEY"