]> git.ipfire.org Git - ipfire.org.git/blame - configure.ac
configure: Depend on jekyll for static pages
[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
a117acc2 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
3f23f656 30AM_PATH_PYTHON([3.11])
77ac83e8 31
a117acc2
MT
32AX_PYTHON_MODULE([PIL], [fatal])
33AX_PYTHON_MODULE([feedparser], [fatal])
34AX_PYTHON_MODULE([html2text], [fatal])
35AX_PYTHON_MODULE([iso3166], [fatal])
36AX_PYTHON_MODULE([jsonschema], [fatal])
37AX_PYTHON_MODULE([kerberos], [fatal])
38AX_PYTHON_MODULE([ldap], [fatal])
6e0fea99 39AX_PYTHON_MODULE([magic], [fatal])
a117acc2
MT
40AX_PYTHON_MODULE([panoramisk], [fatal])
41AX_PYTHON_MODULE([phonenumbers], [fatal])
42AX_PYTHON_MODULE([psycopg], [fatal])
43AX_PYTHON_MODULE([pycares], [fatal])
20f9c733 44AX_PYTHON_MODULE([pynliner], [fatal])
a117acc2
MT
45AX_PYTHON_MODULE([redis.asyncio], [fatal])
46AX_PYTHON_MODULE([tornado], [fatal])
47AX_PYTHON_MODULE([zxcvbn], [fatal])
48
3e8ee6a4 49# sass
a292b0f8 50AC_CHECK_PROG(SASSC, [sassc], [sassc])
7ccbc261
MT
51if test -z "${SASSC}"; then
52 AC_MSG_ERROR([sassc is required])
53fi
a292b0f8 54
662c7910
MT
55# convert from ImageMagick
56AC_CHECK_PROG(CONVERT, [convert], [convert])
7ccbc261
MT
57if test -z "${CONVERT}"; then
58 AC_MSG_ERROR([convert is required])
59fi
662c7910 60
1f7a7927
MT
61# ffmpeg
62AC_CHECK_PROG(FFMPEG, [ffmpeg], [ffmpeg])
63if test -z "${FFMPEG}"; then
64 AC_MSG_ERROR([ffmpeg is required])
65fi
66
9613d4c6
MT
67# jekyll
68AC_CHECK_PROG(JEKYLL, [jekyll], [jekyll])
69if test -z "${JEKYLL}"; then
70 AC_MSG_ERROR([jekyll is required])
71fi
72
a292b0f8
MT
73# ------------------------------------------------------------------------------
74
75AC_ARG_WITH([systemd],
76 AS_HELP_STRING([--with-systemd], [Enable systemd support.])
77)
78
79AS_IF([test "x$with_systemd" != "xno"],
80 [PKG_CHECK_MODULES(systemd, [libsystemd],
81 [have_systemd=yes], [have_systemd=no])],
82 [have_systemd=no]
83)
84
85AS_IF([test "x$have_systemd" = "xyes"],
86 [AC_MSG_CHECKING([for systemd system unit directory])
87 AC_ARG_WITH([systemdsystemunitdir],
88 AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
89 [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]
90 )
91
92 AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
93
94 if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then
95 AC_MSG_RESULT([$systemdsystemunitdir])
96 else
97 AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)])
98 fi
99 ],
100 [AS_IF([test "x$with_systemd" = "xyes"],
101 [AC_MSG_ERROR([Systemd support is enabled but no systemd has been found.])
102 ])
103])
104
105AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
106
107datadir="${datadir}/ipfire.org"
108localedir="${datadir}/translations"
109
110AC_CONFIG_FILES([
111 Makefile
112])
113
114AC_OUTPUT
115AC_MSG_RESULT([
116 ${PACKAGE_NAME} ${VERSION}
117
118 prefix: ${prefix}
119 sysconfdir: ${sysconfdir}
120 datadir: ${datadir}
121 localedir: ${localedir}
122
123 systemd support ${have_systemd}
11347e46 124 Python version: ${PYTHON_VERSION}
a292b0f8 125])