Handle nested mime entries recursively.
[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_json], [(json)])
15 if test "x$have_json" != "xyes"; then
16 AC_MSG_ERROR([Guile-JSON is missing; please install it.])
17 fi
18
19 GUILE_MODULE_AVAILABLE([have_guile_debbugs], [(debbugs soap)])
20 if test "x$have_guile_debbugs" != "xyes"; then
21 AC_MSG_ERROR([Guile-Debbugs is missing; please install it.])
22 fi
23
24 GUILE_MODULE_AVAILABLE([have_guile_email], [(email email)])
25 if test "x$have_guile_email" != "xyes"; then
26 AC_MSG_ERROR([guile-email is missing; please install it.])
27 fi
28
29 GUILE_MODULE_AVAILABLE([have_fibers], [(fibers web server)])
30 if test "x$have_fibers" != "xyes"; then
31 AC_MSG_ERROR([Guile fibers is missing; please install it.])
32 fi
33
34 guilemoduledir="${datarootdir}/guile/site/${GUILE_EFFECTIVE_VERSION}"
35 AC_SUBST([guilemoduledir])
36 AC_SUBST([GUILE_EFFECTIVE_VERSION])
37
38 dnl Substitute placeholders to generate these target files
39 AC_CONFIG_FILES([Makefile])
40 AC_CONFIG_FILES([mumi/config.scm])
41 AC_CONFIG_FILES([scripts/mumi], [chmod +x scripts/mumi])
42 AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
43
44 AC_OUTPUT