]>
Commit | Line | Data |
---|---|---|
a292b0f8 MT |
1 | AC_PREREQ([2.64]) |
2 | ||
3 | AC_INIT([ipfire.org], | |
4 | [000], | |
5 | [michael.tremer@ipfire.org], | |
6 | [ipfire.org], | |
7 | [https://www.ipfire.org/]) | |
8 | ||
a117acc2 | 9 | AC_CONFIG_MACRO_DIR([m4]) |
a292b0f8 MT |
10 | AC_CONFIG_AUX_DIR([build-aux]) |
11 | ||
12 | AC_PREFIX_DEFAULT([/usr]) | |
13 | ||
14 | AM_INIT_AUTOMAKE([ | |
15 | foreign | |
16 | 1.11 | |
17 | -Wall | |
18 | -Wno-portability | |
19 | silent-rules | |
20 | tar-pax | |
21 | subdir-objects | |
22 | ]) | |
23 | AM_SILENT_RULES([yes]) | |
24 | ||
25 | AC_PROG_LN_S | |
26 | AC_PROG_MKDIR_P | |
27 | AC_PROG_SED | |
28 | ||
29 | # Python | |
3f23f656 | 30 | AM_PATH_PYTHON([3.11]) |
77ac83e8 | 31 | |
a117acc2 MT |
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]) | |
20f9c733 | 43 | AX_PYTHON_MODULE([pynliner], [fatal]) |
a117acc2 MT |
44 | AX_PYTHON_MODULE([redis.asyncio], [fatal]) |
45 | AX_PYTHON_MODULE([tornado], [fatal]) | |
46 | AX_PYTHON_MODULE([zxcvbn], [fatal]) | |
47 | ||
3e8ee6a4 | 48 | # sass |
a292b0f8 | 49 | AC_CHECK_PROG(SASSC, [sassc], [sassc]) |
7ccbc261 MT |
50 | if test -z "${SASSC}"; then |
51 | AC_MSG_ERROR([sassc is required]) | |
52 | fi | |
a292b0f8 | 53 | |
662c7910 MT |
54 | # convert from ImageMagick |
55 | AC_CHECK_PROG(CONVERT, [convert], [convert]) | |
7ccbc261 MT |
56 | if test -z "${CONVERT}"; then |
57 | AC_MSG_ERROR([convert is required]) | |
58 | fi | |
662c7910 | 59 | |
1f7a7927 MT |
60 | # ffmpeg |
61 | AC_CHECK_PROG(FFMPEG, [ffmpeg], [ffmpeg]) | |
62 | if test -z "${FFMPEG}"; then | |
63 | AC_MSG_ERROR([ffmpeg is required]) | |
64 | fi | |
65 | ||
a292b0f8 MT |
66 | # ------------------------------------------------------------------------------ |
67 | ||
68 | AC_ARG_WITH([systemd], | |
69 | AS_HELP_STRING([--with-systemd], [Enable systemd support.]) | |
70 | ) | |
71 | ||
72 | AS_IF([test "x$with_systemd" != "xno"], | |
73 | [PKG_CHECK_MODULES(systemd, [libsystemd], | |
74 | [have_systemd=yes], [have_systemd=no])], | |
75 | [have_systemd=no] | |
76 | ) | |
77 | ||
78 | AS_IF([test "x$have_systemd" = "xyes"], | |
79 | [AC_MSG_CHECKING([for systemd system unit directory]) | |
80 | AC_ARG_WITH([systemdsystemunitdir], | |
81 | AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), | |
82 | [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)] | |
83 | ) | |
84 | ||
85 | AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) | |
86 | ||
87 | if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then | |
88 | AC_MSG_RESULT([$systemdsystemunitdir]) | |
89 | else | |
90 | AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)]) | |
91 | fi | |
92 | ], | |
93 | [AS_IF([test "x$with_systemd" = "xyes"], | |
94 | [AC_MSG_ERROR([Systemd support is enabled but no systemd has been found.]) | |
95 | ]) | |
96 | ]) | |
97 | ||
98 | AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"]) | |
99 | ||
100 | datadir="${datadir}/ipfire.org" | |
101 | localedir="${datadir}/translations" | |
102 | ||
103 | AC_CONFIG_FILES([ | |
104 | Makefile | |
105 | ]) | |
106 | ||
107 | AC_OUTPUT | |
108 | AC_MSG_RESULT([ | |
109 | ${PACKAGE_NAME} ${VERSION} | |
110 | ||
111 | prefix: ${prefix} | |
112 | sysconfdir: ${sysconfdir} | |
113 | datadir: ${datadir} | |
114 | localedir: ${localedir} | |
115 | ||
116 | systemd support ${have_systemd} | |
11347e46 | 117 | Python version: ${PYTHON_VERSION} |
a292b0f8 | 118 | ]) |