]> git.elephly.net Git - software/mumi.git/blob - configure.ac
Use Guile Fibers web server.
[software/mumi.git] / configure.ac
1 dnl -*- Autoconf -*-
2
3 AC_INIT([mumi], [m4_translit(m4_esyscmd([cat VERSION]),m4_newline)])
4 AC_CONFIG_AUX_DIR([build-aux])
5 AM_INIT_AUTOMAKE([gnu color-tests -Wall -Wno-portability foreign])
6 AM_SILENT_RULES([yes])
7
8 GUILE_PKG([2.2])
9 GUILE_PROGS
10 if test "x$GUILD" = "x"; then
11 AC_MSG_ERROR(['guild' binary not found; please check your guile-2.2 installation.])
12 fi
13
14 GUILE_MODULE_AVAILABLE([have_guile_debbugs], [(debbugs soap)])
15 if test "x$have_guile_debbugs" != "xyes"; then
16 AC_MSG_ERROR([Guile-Debbugs is missing; please install it.])
17 fi
18
19 GUILE_MODULE_AVAILABLE([have_guile_email], [(email email)])
20 if test "x$have_guile_email" != "xyes"; then
21 AC_MSG_ERROR([guile-email is missing; please install it.])
22 fi
23
24 GUILE_MODULE_AVAILABLE([have_fibers], [(fibers web server)])
25 if test "x$have_fibers" != "xyes"; then
26 AC_MSG_ERROR([Guile fibers is missing; please install it.])
27 fi
28
29 guilemoduledir="${datarootdir}/guile/site/${GUILE_EFFECTIVE_VERSION}"
30 AC_SUBST([guilemoduledir])
31 AC_SUBST([GUILE_EFFECTIVE_VERSION])
32
33 dnl Substitute placeholders to generate these target files
34 AC_CONFIG_FILES([Makefile])
35 AC_CONFIG_FILES([mumi/config.scm])
36 AC_CONFIG_FILES([scripts/mumi], [chmod +x scripts/mumi])
37 AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
38
39 AC_OUTPUT