74e937cf2b63d30ffc183e584f5d8e1ec134cbac
[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([3.0 2.2])
9 GUILE_PROGS
10 if test "x$GUILD" = "x"; then
11 AC_MSG_ERROR(['guild' binary not found; please check your Guile 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_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_mailutils], [(mailutils mailutils)])
25 if test "x$have_mailutils" != "xyes"; then
26 AC_MSG_ERROR([Mailutils is missing; please install it.])
27 fi
28
29 GUILE_MODULE_AVAILABLE([have_gcrypt], [(gcrypt base64)])
30 if test "x$have_gcrypt" != "xyes"; then
31 AC_MSG_ERROR([Guile Gcrypt is missing; please install it.])
32 fi
33
34 GUILE_MODULE_AVAILABLE([have_guile_redis], [(redis)])
35 if test "x$have_guile_redis" != "xyes"; then
36 AC_MSG_ERROR([Guile Redis is missing; please install it.])
37 fi
38
39 GUILE_MODULE_AVAILABLE([have_guile_webutils], [(webutils sessions)])
40 if test "x$have_guile_webutils" != "xyes"; then
41 AC_MSG_ERROR([Guile Webutils is missing; please install it.])
42 fi
43
44 GUILE_MODULE_AVAILABLE([have_guile_xapian], [(xapian xapian)])
45 if test "x$have_guile_xapian" != "xyes"; then
46 AC_MSG_ERROR([Guile Xapian is missing; please install it.])
47 fi
48
49
50 dnl GUILE_MODULE_AVAILABLE([have_fibers], [(fibers web server)])
51 dnl if test "x$have_fibers" != "xyes"; then
52 dnl AC_MSG_ERROR([Guile fibers is missing; please install it.])
53 dnl fi
54
55 guilemoduledir="${datarootdir}/guile/site/${GUILE_EFFECTIVE_VERSION}"
56 AC_SUBST([guilemoduledir])
57 AC_SUBST([GUILE_EFFECTIVE_VERSION])
58
59 dnl Substitute placeholders to generate these target files
60 AC_CONFIG_FILES([Makefile])
61 AC_CONFIG_FILES([mumi/config.scm])
62 AC_CONFIG_FILES([scripts/mumi], [chmod +x scripts/mumi])
63 AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
64
65 AC_OUTPUT