5 [michael.tremer@ipfire.org],
7 [https://www.ipfire.org/])
9 AC_CONFIG_AUX_DIR([build-aux])
11 AC_PREFIX_DEFAULT([/usr])
22 AM_SILENT_RULES([yes])
32 AC_CHECK_PROG(SASSC, [sassc], [sassc])
34 # ------------------------------------------------------------------------------
36 AC_ARG_WITH([systemd],
37 AS_HELP_STRING([--with-systemd], [Enable systemd support.])
40 AS_IF([test "x$with_systemd" != "xno"],
41 [PKG_CHECK_MODULES(systemd, [libsystemd],
42 [have_systemd=yes], [have_systemd=no])],
46 AS_IF([test "x$have_systemd" = "xyes"],
47 [AC_MSG_CHECKING([for systemd system unit directory])
48 AC_ARG_WITH([systemdsystemunitdir],
49 AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
50 [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]
53 AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
55 if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then
56 AC_MSG_RESULT([$systemdsystemunitdir])
58 AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)])
61 [AS_IF([test "x$with_systemd" = "xyes"],
62 [AC_MSG_ERROR([Systemd support is enabled but no systemd has been found.])
66 AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
68 datadir="${datadir}/ipfire.org"
69 localedir="${datadir}/translations"
77 ${PACKAGE_NAME} ${VERSION}
80 sysconfdir: ${sysconfdir}
82 localedir: ${localedir}
84 systemd support ${have_systemd}
85 Python version: ${PYTHON_VERSION}