5 [michael.tremer@ipfire.org],
7 [https://www.ipfire.org/])
9 AC_CONFIG_MACRO_DIR([m4])
10 AC_CONFIG_AUX_DIR([build-aux])
12 AC_PREFIX_DEFAULT([/usr])
23 AM_SILENT_RULES([yes])
32 AX_PYTHON_MODULE([PIL], [fatal])
33 AX_PYTHON_MODULE([feedparser], [fatal])
34 AX_PYTHON_MODULE([html2text], [fatal])
35 AX_PYTHON_MODULE([iso3166], [fatal])
36 AX_PYTHON_MODULE([jsonschema], [fatal])
37 AX_PYTHON_MODULE([kerberos], [fatal])
38 AX_PYTHON_MODULE([ldap], [fatal])
39 AX_PYTHON_MODULE([panoramisk], [fatal])
40 AX_PYTHON_MODULE([phonenumbers], [fatal])
41 AX_PYTHON_MODULE([psycopg], [fatal])
42 AX_PYTHON_MODULE([pycares], [fatal])
43 AX_PYTHON_MODULE([redis.asyncio], [fatal])
44 AX_PYTHON_MODULE([tornado], [fatal])
45 AX_PYTHON_MODULE([zxcvbn], [fatal])
48 AC_CHECK_PROG(SASSC, [sassc], [sassc])
49 if test -z "${SASSC}"; then
50 AC_MSG_ERROR([sassc is required])
53 # convert from ImageMagick
54 AC_CHECK_PROG(CONVERT, [convert], [convert])
55 if test -z "${CONVERT}"; then
56 AC_MSG_ERROR([convert is required])
60 AC_CHECK_PROG(FFMPEG, [ffmpeg], [ffmpeg])
61 if test -z "${FFMPEG}"; then
62 AC_MSG_ERROR([ffmpeg is required])
65 # ------------------------------------------------------------------------------
67 AC_ARG_WITH([systemd],
68 AS_HELP_STRING([--with-systemd], [Enable systemd support.])
71 AS_IF([test "x$with_systemd" != "xno"],
72 [PKG_CHECK_MODULES(systemd, [libsystemd],
73 [have_systemd=yes], [have_systemd=no])],
77 AS_IF([test "x$have_systemd" = "xyes"],
78 [AC_MSG_CHECKING([for systemd system unit directory])
79 AC_ARG_WITH([systemdsystemunitdir],
80 AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
81 [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]
84 AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
86 if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then
87 AC_MSG_RESULT([$systemdsystemunitdir])
89 AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)])
92 [AS_IF([test "x$with_systemd" = "xyes"],
93 [AC_MSG_ERROR([Systemd support is enabled but no systemd has been found.])
97 AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
99 datadir="${datadir}/ipfire.org"
100 localedir="${datadir}/translations"
108 ${PACKAGE_NAME} ${VERSION}
111 sysconfdir: ${sysconfdir}
113 localedir: ${localedir}
115 systemd support ${have_systemd}
116 Python version: ${PYTHON_VERSION}