]>
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]) | |
6e0fea99 | 39 | AX_PYTHON_MODULE([magic], [fatal]) |
a117acc2 MT |
40 | AX_PYTHON_MODULE([panoramisk], [fatal]) |
41 | AX_PYTHON_MODULE([phonenumbers], [fatal]) | |
42 | AX_PYTHON_MODULE([psycopg], [fatal]) | |
43 | AX_PYTHON_MODULE([pycares], [fatal]) | |
20f9c733 | 44 | AX_PYTHON_MODULE([pynliner], [fatal]) |
a117acc2 MT |
45 | AX_PYTHON_MODULE([redis.asyncio], [fatal]) |
46 | AX_PYTHON_MODULE([tornado], [fatal]) | |
47 | AX_PYTHON_MODULE([zxcvbn], [fatal]) | |
48 | ||
3e8ee6a4 | 49 | # sass |
a292b0f8 | 50 | AC_CHECK_PROG(SASSC, [sassc], [sassc]) |
7ccbc261 MT |
51 | if test -z "${SASSC}"; then |
52 | AC_MSG_ERROR([sassc is required]) | |
53 | fi | |
a292b0f8 | 54 | |
662c7910 MT |
55 | # convert from ImageMagick |
56 | AC_CHECK_PROG(CONVERT, [convert], [convert]) | |
7ccbc261 MT |
57 | if test -z "${CONVERT}"; then |
58 | AC_MSG_ERROR([convert is required]) | |
59 | fi | |
662c7910 | 60 | |
1f7a7927 MT |
61 | # ffmpeg |
62 | AC_CHECK_PROG(FFMPEG, [ffmpeg], [ffmpeg]) | |
63 | if test -z "${FFMPEG}"; then | |
64 | AC_MSG_ERROR([ffmpeg is required]) | |
65 | fi | |
66 | ||
9613d4c6 MT |
67 | # jekyll |
68 | AC_CHECK_PROG(JEKYLL, [jekyll], [jekyll]) | |
69 | if test -z "${JEKYLL}"; then | |
70 | AC_MSG_ERROR([jekyll is required]) | |
71 | fi | |
72 | ||
05ff715d MT |
73 | # WOFF2 |
74 | AC_CHECK_PROG(WOFF2_COMPRESS, [woff2_compress], [woff2_compress]) | |
75 | if test -z "${WOFF2_COMPRESS}"; then | |
76 | AC_MSG_ERROR([woff2_compress is required]) | |
77 | fi | |
78 | ||
a292b0f8 MT |
79 | # ------------------------------------------------------------------------------ |
80 | ||
81 | AC_ARG_WITH([systemd], | |
82 | AS_HELP_STRING([--with-systemd], [Enable systemd support.]) | |
83 | ) | |
84 | ||
85 | AS_IF([test "x$with_systemd" != "xno"], | |
86 | [PKG_CHECK_MODULES(systemd, [libsystemd], | |
87 | [have_systemd=yes], [have_systemd=no])], | |
88 | [have_systemd=no] | |
89 | ) | |
90 | ||
91 | AS_IF([test "x$have_systemd" = "xyes"], | |
92 | [AC_MSG_CHECKING([for systemd system unit directory]) | |
93 | AC_ARG_WITH([systemdsystemunitdir], | |
94 | AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), | |
95 | [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)] | |
96 | ) | |
97 | ||
98 | AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) | |
99 | ||
100 | if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then | |
101 | AC_MSG_RESULT([$systemdsystemunitdir]) | |
102 | else | |
103 | AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)]) | |
104 | fi | |
105 | ], | |
106 | [AS_IF([test "x$with_systemd" = "xyes"], | |
107 | [AC_MSG_ERROR([Systemd support is enabled but no systemd has been found.]) | |
108 | ]) | |
109 | ]) | |
110 | ||
111 | AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"]) | |
112 | ||
113 | datadir="${datadir}/ipfire.org" | |
114 | localedir="${datadir}/translations" | |
115 | ||
116 | AC_CONFIG_FILES([ | |
117 | Makefile | |
118 | ]) | |
119 | ||
120 | AC_OUTPUT | |
121 | AC_MSG_RESULT([ | |
122 | ${PACKAGE_NAME} ${VERSION} | |
123 | ||
124 | prefix: ${prefix} | |
125 | sysconfdir: ${sysconfdir} | |
126 | datadir: ${datadir} | |
127 | localedir: ${localedir} | |
128 | ||
129 | systemd support ${have_systemd} | |
11347e46 | 130 | Python version: ${PYTHON_VERSION} |
a292b0f8 | 131 | ]) |