2019-02-06 17:14:44 +01:00
|
|
|
dnl -*- Autoconf -*-
|
|
|
|
|
|
|
|
AC_INIT([guix-data-service], [m4_translit(m4_esyscmd([cat VERSION]),m4_newline)])
|
|
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
|
|
AM_INIT_AUTOMAKE([gnu color-tests -Wall -Wno-portability foreign])
|
|
|
|
AM_SILENT_RULES([yes])
|
|
|
|
|
2020-02-27 23:16:44 +01:00
|
|
|
GUILE_PKG([3.0 2.2])
|
2019-02-06 17:14:44 +01:00
|
|
|
GUILE_PROGS
|
|
|
|
if test "x$GUILD" = "x"; then
|
|
|
|
AC_MSG_ERROR(['guild' binary not found; please check your guile-2.2 installation.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
GUILE_MODULE_AVAILABLE([have_json], [(json)])
|
|
|
|
if test "x$have_json" != "xyes"; then
|
|
|
|
AC_MSG_ERROR([Guile-JSON is missing; please install it.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
GUILE_MODULE_AVAILABLE([have_guile_squee], [(squee)])
|
|
|
|
if test "x$have_guile_squee" != "xyes"; then
|
|
|
|
AC_MSG_ERROR([Guile-Squee is missing; please install it.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
GUILE_MODULE_AVAILABLE([have_fibers], [(fibers web server)])
|
|
|
|
if test "x$have_fibers" != "xyes"; then
|
|
|
|
AC_MSG_ERROR([Guile fibers is missing; please install it.])
|
|
|
|
fi
|
|
|
|
|
2019-03-19 21:18:09 +01:00
|
|
|
GUILE_MODULE_AVAILABLE([have_email], [(email email)])
|
|
|
|
if test "x$have_email" != "xyes"; then
|
|
|
|
AC_MSG_ERROR([Guile email is missing; please install it.])
|
|
|
|
fi
|
|
|
|
|
2020-08-26 11:27:54 +02:00
|
|
|
GUILE_MODULE_AVAILABLE([have_lzlib], [(lzlib)])
|
|
|
|
if test "x$have_lzlib" != "xyes"; then
|
|
|
|
AC_MSG_ERROR([Guile-Lzlib is missing; please install it.])
|
|
|
|
fi
|
|
|
|
|
2019-02-06 17:14:44 +01:00
|
|
|
guilemoduledir="${datarootdir}/guile/site/${GUILE_EFFECTIVE_VERSION}"
|
|
|
|
AC_SUBST([guilemoduledir])
|
|
|
|
AC_SUBST([GUILE_EFFECTIVE_VERSION])
|
|
|
|
|
2019-06-14 00:11:35 +02:00
|
|
|
AC_PATH_PROG([guix], [guix])
|
|
|
|
|
2019-06-07 08:33:34 +02:00
|
|
|
AC_PATH_PROG([sqitch], [sqitch])
|
2019-06-11 08:15:01 +02:00
|
|
|
AC_PATH_PROG([psql], [psql])
|
2019-06-07 08:33:34 +02:00
|
|
|
|
2019-02-06 17:14:44 +01:00
|
|
|
dnl Substitute placeholders to generate these target files
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
AC_CONFIG_FILES([guix-data-service/config.scm])
|
|
|
|
AC_CONFIG_FILES([scripts/guix-data-service], [chmod +x scripts/guix-data-service])
|
2019-07-12 20:57:24 +02:00
|
|
|
AC_CONFIG_FILES([scripts/guix-data-service-process-job], [chmod +x scripts/guix-data-service-process-job])
|
2019-02-06 17:14:44 +01:00
|
|
|
AC_CONFIG_FILES([scripts/guix-data-service-process-jobs], [chmod +x scripts/guix-data-service-process-jobs])
|
2019-03-19 21:18:09 +01:00
|
|
|
AC_CONFIG_FILES([scripts/guix-data-service-process-branch-updated-email], [chmod +x scripts/guix-data-service-process-branch-updated-email])
|
2019-09-29 00:55:11 +02:00
|
|
|
AC_CONFIG_FILES([scripts/guix-data-service-process-branch-updated-mbox], [chmod +x scripts/guix-data-service-process-branch-updated-mbox])
|
2019-11-23 12:50:51 +01:00
|
|
|
AC_CONFIG_FILES([scripts/guix-data-service-manage-build-servers], [chmod +x scripts/guix-data-service-manage-build-servers])
|
2019-03-06 23:56:54 +01:00
|
|
|
AC_CONFIG_FILES([scripts/guix-data-service-query-build-servers], [chmod +x scripts/guix-data-service-query-build-servers])
|
2020-05-03 14:23:43 +02:00
|
|
|
AC_CONFIG_FILES([scripts/guix-data-service-query-substitute-servers], [chmod +x scripts/guix-data-service-query-substitute-servers])
|
2019-04-14 11:08:11 +02:00
|
|
|
AC_CONFIG_FILES([test-env:build-aux/test-env.in], [chmod +x test-env])
|
2019-02-06 17:14:44 +01:00
|
|
|
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
|
|
|
|
|
|
|
|
AC_OUTPUT
|