]> git.ipfire.org Git - ipfire.org.git/blame - configure.ac
web: Replace the background image with a video of fire
[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
9AC_CONFIG_AUX_DIR([build-aux])
10
11AC_PREFIX_DEFAULT([/usr])
12
13AM_INIT_AUTOMAKE([
14 foreign
15 1.11
16 -Wall
17 -Wno-portability
18 silent-rules
19 tar-pax
20 subdir-objects
21])
22AM_SILENT_RULES([yes])
23
24AC_PROG_LN_S
25AC_PROG_MKDIR_P
26AC_PROG_SED
27
28# Python
77ac83e8
MT
29AM_PATH_PYTHON([3.4])
30
3e8ee6a4 31# sass
a292b0f8 32AC_CHECK_PROG(SASSC, [sassc], [sassc])
7ccbc261
MT
33if test -z "${SASSC}"; then
34 AC_MSG_ERROR([sassc is required])
35fi
a292b0f8 36
662c7910
MT
37# convert from ImageMagick
38AC_CHECK_PROG(CONVERT, [convert], [convert])
7ccbc261
MT
39if test -z "${CONVERT}"; then
40 AC_MSG_ERROR([convert is required])
41fi
662c7910 42
1f7a7927
MT
43# ffmpeg
44AC_CHECK_PROG(FFMPEG, [ffmpeg], [ffmpeg])
45if test -z "${FFMPEG}"; then
46 AC_MSG_ERROR([ffmpeg is required])
47fi
48
a292b0f8
MT
49# ------------------------------------------------------------------------------
50
51AC_ARG_WITH([systemd],
52 AS_HELP_STRING([--with-systemd], [Enable systemd support.])
53)
54
55AS_IF([test "x$with_systemd" != "xno"],
56 [PKG_CHECK_MODULES(systemd, [libsystemd],
57 [have_systemd=yes], [have_systemd=no])],
58 [have_systemd=no]
59)
60
61AS_IF([test "x$have_systemd" = "xyes"],
62 [AC_MSG_CHECKING([for systemd system unit directory])
63 AC_ARG_WITH([systemdsystemunitdir],
64 AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
65 [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]
66 )
67
68 AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
69
70 if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then
71 AC_MSG_RESULT([$systemdsystemunitdir])
72 else
73 AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)])
74 fi
75 ],
76 [AS_IF([test "x$with_systemd" = "xyes"],
77 [AC_MSG_ERROR([Systemd support is enabled but no systemd has been found.])
78 ])
79])
80
81AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
82
83datadir="${datadir}/ipfire.org"
84localedir="${datadir}/translations"
85
86AC_CONFIG_FILES([
87 Makefile
88])
89
90AC_OUTPUT
91AC_MSG_RESULT([
92 ${PACKAGE_NAME} ${VERSION}
93
94 prefix: ${prefix}
95 sysconfdir: ${sysconfdir}
96 datadir: ${datadir}
97 localedir: ${localedir}
98
99 systemd support ${have_systemd}
11347e46 100 Python version: ${PYTHON_VERSION}
a292b0f8 101])