Goodbye mu, hello guile-debbugs!
[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_mailutils], [(mailutils mailutils)])
20 if test "x$have_mailutils" != "xyes"; then
21 AC_MSG_ERROR([Guile bindings to mailutils are missing; please install them.])
22 fi
23
24 guilemoduledir="${datarootdir}/guile/site/${GUILE_EFFECTIVE_VERSION}"
25 AC_SUBST([guilemoduledir])
26 AC_SUBST([GUILE_EFFECTIVE_VERSION])
27
28 dnl Substitute placeholders to generate these target files
29 AC_CONFIG_FILES([Makefile])
30 AC_CONFIG_FILES([mumi/config.scm])
31 AC_CONFIG_FILES([scripts/mumi], [chmod +x scripts/mumi])
32 AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
33
34 AC_OUTPUT