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 # convert from ImageMagick
35 AC_CHECK_PROG(CONVERT, [convert], [convert])
37 # ------------------------------------------------------------------------------
39 AC_ARG_WITH([systemd],
40 AS_HELP_STRING([--with-systemd], [Enable systemd support.])
43 AS_IF([test "x$with_systemd" != "xno"],
44 [PKG_CHECK_MODULES(systemd, [libsystemd],
45 [have_systemd=yes], [have_systemd=no])],
49 AS_IF([test "x$have_systemd" = "xyes"],
50 [AC_MSG_CHECKING([for systemd system unit directory])
51 AC_ARG_WITH([systemdsystemunitdir],
52 AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
53 [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]
56 AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
58 if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then
59 AC_MSG_RESULT([$systemdsystemunitdir])
61 AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)])
64 [AS_IF([test "x$with_systemd" = "xyes"],
65 [AC_MSG_ERROR([Systemd support is enabled but no systemd has been found.])
69 AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
71 datadir="${datadir}/ipfire.org"
72 localedir="${datadir}/translations"
80 ${PACKAGE_NAME} ${VERSION}
83 sysconfdir: ${sysconfdir}
85 localedir: ${localedir}
87 systemd support ${have_systemd}
88 Python version: ${PYTHON_VERSION}