]> git.ipfire.org Git - ipfire.org.git/blame - configure.ac
configure: Move down to Python 3.4 and check presence of some python modules
[ipfire.org.git] / configure.ac
CommitLineData
a292b0f8
MT
1AC_PREREQ([2.64])
2
3AC_INIT([ipfire.org],
4 [000],
5 [michael.tremer@ipfire.org],
6 [ipfire.org],
7 [https://www.ipfire.org/])
8
77ac83e8 9AC_CONFIG_MACRO_DIR([m4])
a292b0f8
MT
10AC_CONFIG_AUX_DIR([build-aux])
11
12AC_PREFIX_DEFAULT([/usr])
13
14AM_INIT_AUTOMAKE([
15 foreign
16 1.11
17 -Wall
18 -Wno-portability
19 silent-rules
20 tar-pax
21 subdir-objects
22])
23AM_SILENT_RULES([yes])
24
25AC_PROG_LN_S
26AC_PROG_MKDIR_P
27AC_PROG_SED
28
29# Python
77ac83e8
MT
30AM_PATH_PYTHON([3.4])
31
32# Python modules
33AX_PYTHON_MODULE([hwdata],[])
34AX_PYTHON_MODULE([iso3166],[])
35AX_PYTHON_MODULE([markdown2],[])
36AX_PYTHON_MODULE([memcached],[])
37AX_PYTHON_MODULE([textile],[])
38AX_PYTHON_MODULE([tornado],[])
a292b0f8
MT
39
40# scss
41AC_CHECK_PROG(SASSC, [sassc], [sassc])
42
43# ------------------------------------------------------------------------------
44
45AC_ARG_WITH([systemd],
46 AS_HELP_STRING([--with-systemd], [Enable systemd support.])
47)
48
49AS_IF([test "x$with_systemd" != "xno"],
50 [PKG_CHECK_MODULES(systemd, [libsystemd],
51 [have_systemd=yes], [have_systemd=no])],
52 [have_systemd=no]
53)
54
55AS_IF([test "x$have_systemd" = "xyes"],
56 [AC_MSG_CHECKING([for systemd system unit directory])
57 AC_ARG_WITH([systemdsystemunitdir],
58 AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
59 [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]
60 )
61
62 AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
63
64 if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then
65 AC_MSG_RESULT([$systemdsystemunitdir])
66 else
67 AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)])
68 fi
69 ],
70 [AS_IF([test "x$with_systemd" = "xyes"],
71 [AC_MSG_ERROR([Systemd support is enabled but no systemd has been found.])
72 ])
73])
74
75AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
76
77datadir="${datadir}/ipfire.org"
78localedir="${datadir}/translations"
79
80AC_CONFIG_FILES([
81 Makefile
82])
83
84AC_OUTPUT
85AC_MSG_RESULT([
86 ${PACKAGE_NAME} ${VERSION}
87
88 prefix: ${prefix}
89 sysconfdir: ${sysconfdir}
90 datadir: ${datadir}
91 localedir: ${localedir}
92
93 systemd support ${have_systemd}
11347e46 94 Python version: ${PYTHON_VERSION}
a292b0f8 95])