]> git.ipfire.org Git - thirdparty/systemd.git/blame - configure.ac
hwdb: use $(localstatedir)/lib/udev/hwdb.bin for the binary database
[thirdparty/systemd.git] / configure.ac
CommitLineData
fb0951b0 1#
47be870b
LP
2# This file is part of systemd.
3#
3e214785
KS
4# Copyright 2010-2012 Lennart Poettering
5# Copyright 2010-2012 Kay Sievers
47be870b
LP
6#
7# systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
8# under the terms of the GNU Lesser General Public License as published by
9# the Free Software Foundation; either version 2.1 of the License, or
47be870b
LP
10# (at your option) any later version.
11#
12# systemd is distributed in the hope that it will be useful, but
13# WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2 15# Lesser General Public License for more details.
47be870b 16#
5430f7f2 17# You should have received a copy of the GNU Lesser General Public License
47be870b
LP
18# along with systemd; If not, see <http://www.gnu.org/licenses/>.
19
4e949c11
JJ
20AC_PREREQ([2.64])
21
22AC_INIT([systemd],
139ee8cc 23 [195],
4e949c11
JJ
24 [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd],
25 [systemd],
26 [http://www.freedesktop.org/wiki/Software/systemd])
47be870b 27
78a825f2 28AC_CONFIG_SRCDIR([src/core/main.c])
47be870b
LP
29AC_CONFIG_MACRO_DIR([m4])
30AC_CONFIG_HEADERS([config.h])
a80db8bd
JJ
31AC_CONFIG_AUX_DIR([build-aux])
32
4db6d587 33AC_USE_SYSTEM_EXTENSIONS
907dd195 34AC_SYS_LARGEFILE
eb7bbee6 35AC_PREFIX_DEFAULT([/usr])
bbd9b8c2 36AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects check-news])
3e214785 37AM_SILENT_RULES([yes])
47be870b 38AC_CANONICAL_HOST
22be093f 39AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
d59d0a2b 40AS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
41 test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"],
42 [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])])
47be870b 43
3e214785
KS
44LT_PREREQ(2.2)
45LT_INIT
47be870b 46
1c7dde3e
BN
47# i18n stuff for the PolicyKit policy files
48IT_PROG_INTLTOOL([0.40.0])
49
50GETTEXT_PACKAGE=systemd
51AC_SUBST(GETTEXT_PACKAGE)
52
e9da3678
LP
53AC_PROG_MKDIR_P
54AC_PROG_LN_S
55AC_PROG_SED
3ce4fad8 56AC_PROG_GREP
f975e971 57AC_PROG_AWK
e9da3678 58
47be870b
LP
59AC_PROG_CC
60AC_PROG_CC_C99
61AM_PROG_CC_C_O
62AC_PROG_GCC_TRADITIONAL
47be870b 63
3e214785 64AC_PATH_PROG([M4], [m4])
fe1fed02 65AC_PATH_PROG([XSLTPROC], [xsltproc])
92ec4495 66
86b2e20a
LP
67AC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon])
68AC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck])
b51fc639 69
86b2e20a
LP
70AC_PATH_PROG([SETCAP], [setcap], [/usr/sbin/setcap])
71
c1c02e07 72AC_PATH_PROG([KILL], [kill], [/usr/bin/kill])
96ede260 73
80a5cbac 74# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
92ec4495 75m4_ifdef([GTK_DOC_CHECK], [
9e45e7d8 76GTK_DOC_CHECK([1.18],[--flavour no-tmpl])
6e92b23f 77], [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])])
92ec4495 78
fe1fed02
ZJS
79AS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
80 AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
81])
82
6e92b23f 83m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
0eaeca1f 84GOBJECT_INTROSPECTION_CHECK([1.31.1])
6e92b23f 85], [AM_CONDITIONAL([HAVE_INTROSPECTION], [false])])
3e214785 86
8d7e170a
LP
87AC_PATH_TOOL(OBJCOPY, objcopy)
88AC_PATH_TOOL(STRINGS, strings)
89AC_PATH_TOOL(GPERF, gperf)
b62cfcea
MB
90if test -z "$GPERF" ; then
91 AC_MSG_ERROR([*** gperf not found])
92fi
9a60da28 93
8d7e170a
LP
94# we use python to build the man page index, and for systemd-python
95have_python=no
96have_python_devel=no
78fbaaca
WK
97
98AC_ARG_WITH([python],
99 [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
100
101AS_IF([test "x$with_python" != "xno"], [
102 AM_PATH_PYTHON(,, [:])
568c7e02 103 AS_IF([test "$PYTHON" != :], [have_python=yes])
78fbaaca 104])
8d7e170a 105AM_CONDITIONAL([HAVE_PYTHON], [test "$have_python" = "yes"])
568c7e02
ZJS
106
107AS_IF([test "x$with_python" != "xno"], [
108 AC_PATH_PROG(PYTHON_CONFIG, python${PYTHON_VERSION}-config)
109 AS_IF([test -n "$PYTHON_CONFIG"], [
110 have_python_devel=yes
111 PYTHON_CFLAGS="`$PYTHON_CONFIG --cflags`"
112 PYTHON_LIBS="`$PYTHON_CONFIG --ldflags`"
113 AC_SUBST(PYTHON_CFLAGS)
114 AC_SUBST(PYTHON_LIBS)
115 ])
116])
8d7e170a 117AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
9c4fa6ed 118
eb2e280f 119CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
be1a67d9 120 -pipe \
d1ab0ca0 121 -Wall \
d1ab0ca0 122 -Wextra \
27765dfc 123 -Wno-inline \
d1ab0ca0
LP
124 -Wundef \
125 -Wformat=2 \
126 -Wlogical-op \
127 -Wsign-compare \
128 -Wformat-security \
129 -Wmissing-include-dirs \
130 -Wformat-nonliteral \
131 -Wold-style-definition \
132 -Wpointer-arith \
133 -Winit-self \
134 -Wdeclaration-after-statement \
135 -Wfloat-equal \
136 -Wmissing-prototypes \
137 -Wstrict-prototypes \
138 -Wredundant-decls \
139 -Wmissing-declarations \
140 -Wmissing-noreturn \
141 -Wshadow \
142 -Wendif-labels \
143 -Wcast-align \
144 -Wstrict-aliasing=2 \
145 -Wwrite-strings \
be1a67d9
LP
146 -Wno-long-long \
147 -Wno-overlength-strings \
d1ab0ca0 148 -Wno-unused-parameter \
be1a67d9 149 -Wno-missing-field-initializers \
8745297f 150 -Wno-unused-result \
d200735e 151 -Werror=overflow \
be1a67d9 152 -ffast-math \
d1ab0ca0
LP
153 -fno-common \
154 -fdiagnostics-show-option \
9b85fc6a
GSB
155 -fno-strict-aliasing \
156 -fvisibility=hidden \
157 -ffunction-sections \
5a45a936 158 -fdata-sections \
c1663b9d
LP
159 -fstack-protector \
160 --param=ssp-buffer-size=4])
5a45a936
LP
161AC_SUBST([OUR_CFLAGS], $with_cflags)
162
163CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
164 -Wp,-D_FORTIFY_SOURCE=2])
165AC_SUBST([OUR_CPPFLAGS], $with_cppflags)
9e7adc3a
LDM
166
167CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
9b85fc6a 168 -Wl,--as-needed \
5a45a936
LP
169 -Wl,--gc-sections \
170 -Wl,-z,relro \
171 -Wl,-z,now])
172AC_SUBST([OUR_LDFLAGS], $with_ldflags)
47be870b 173
e1718709 174AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
afea26ad 175AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
85f19d82
MB
176
177save_LIBS="$LIBS"
178LIBS=
47be870b
LP
179AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
180AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
85f19d82
MB
181CAP_LIBS="$LIBS"
182LIBS="$save_LIBS"
183AC_SUBST(CAP_LIBS)
47be870b 184
9388e99e 185AC_CHECK_FUNCS([fanotify_init fanotify_mark])
4db17f29 186AC_CHECK_FUNCS([__secure_getenv secure_getenv])
9388e99e 187AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include <sys/types.h>
a8348796 188#include <unistd.h>
9388e99e
MO
189#include <sys/mount.h>
190#include <fcntl.h>]])
a8348796 191
b237ef2c 192# This makes sure pkg.m4 is available.
a9b5b032 193m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
d1ab0ca0 194
3e214785
KS
195PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2])
196PKG_CHECK_MODULES(KMOD, [libkmod >= 5])
f553b3b1
AO
197
198# ------------------------------------------------------------------------------
199have_blkid=no
200AC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
201if test "x$enable_blkid" != "xno"; then
202 PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
203 [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
204 if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
205 AC_MSG_ERROR([*** blkid support requested but libraries not found])
206 fi
207fi
208AM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
728beb28 209
3e214785 210# ------------------------------------------------------------------------------
81611586
RS
211have_ima=yes
212AC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
213 [case "${enableval}" in
214 yes) have_ima=yes ;;
215 no) have_ima=no ;;
216 *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
217 esac],
218 [have_ima=yes])
219
220if test "x${have_ima}" != xno ; then
221 AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
222fi
223
3e214785 224# ------------------------------------------------------------------------------
591622d7
LP
225have_selinux=no
226AC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
227if test "x$enable_selinux" != "xno"; then
3f8cc098 228 PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
591622d7 229 [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
591622d7
LP
230 if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
231 AC_MSG_ERROR([*** SELinux support requested but libraries not found])
232 fi
56cf987f 233fi
591622d7 234AM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
ed061a8d
MS
235if test "x${have_selinux}" != xno ; then
236 sushell=/sbin/sushell
237else
238 sushell=/bin/bash
239fi
240AC_SUBST(sushell)
56cf987f 241
3e214785 242# ------------------------------------------------------------------------------
807e17f0
LP
243have_xz=no
244AC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
245if test "x$enable_xz" != "xno"; then
246 PKG_CHECK_MODULES(XZ, [ liblzma ],
247 [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
807e17f0
LP
248 if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
249 AC_MSG_ERROR([*** Xz support requested but libraries not found])
250 fi
251fi
252AM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
253
3e214785 254# ------------------------------------------------------------------------------
0213c3f8
LP
255AC_ARG_ENABLE([tcpwrap],
256 AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
257 [case "${enableval}" in
5b6319dc
LP
258 yes) have_tcpwrap=yes ;;
259 no) have_tcpwrap=no ;;
0213c3f8
LP
260 *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
261 esac],
5b6319dc 262 [have_tcpwrap=auto])
0213c3f8 263
5b6319dc 264if test "x${have_tcpwrap}" != xno ; then
0213c3f8
LP
265 ACX_LIBWRAP
266 if test "x${LIBWRAP_LIBS}" = x ; then
5b6319dc
LP
267 if test "x$have_tcpwrap" = xyes ; then
268 AC_MSG_ERROR([*** TCP wrappers support not found.])
0213c3f8 269 fi
812cce32 270 have_tcpwrap=no
0213c3f8 271 else
5b6319dc 272 have_tcpwrap=yes
0213c3f8
LP
273 fi
274else
5b6319dc 275 LIBWRAP_LIBS=
0213c3f8 276fi
0213c3f8
LP
277AC_SUBST(LIBWRAP_LIBS)
278
3e214785 279# ------------------------------------------------------------------------------
5b6319dc
LP
280AC_ARG_ENABLE([pam],
281 AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
282 [case "${enableval}" in
283 yes) have_pam=yes ;;
284 no) have_pam=no ;;
285 *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
286 esac],
287 [have_pam=auto])
288
289if test "x${have_pam}" != xno ; then
290 AC_CHECK_HEADERS(
291 [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
292 [have_pam=yes],
293 [if test "x$have_pam" = xyes ; then
294 AC_MSG_ERROR([*** PAM headers not found.])
295 fi])
296
297 AC_CHECK_LIB(
298 [pam],
299 [pam_syslog],
300 [have_pam=yes],
301 [if test "x$have_pam" = xyes ; then
302 AC_MSG_ERROR([*** libpam not found.])
303 fi])
304
305 if test "x$have_pam" = xyes ; then
306 PAM_LIBS="-lpam -lpam_misc"
307 AC_DEFINE(HAVE_PAM, 1, [PAM available])
812cce32
LP
308 else
309 have_pam=no
5b6319dc
LP
310 fi
311else
312 PAM_LIBS=
313fi
314AC_SUBST(PAM_LIBS)
315AM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
316
3e214785 317# ------------------------------------------------------------------------------
5eda94dd
LP
318AC_ARG_ENABLE([acl],
319 AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
320 [case "${enableval}" in
321 yes) have_acl=yes ;;
322 no) have_acl=no ;;
323 *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
324 esac],
325 [have_acl=auto])
326
327if test "x${have_acl}" != xno ; then
328 AC_CHECK_HEADERS(
329 [sys/acl.h acl/libacl.h],
330 [have_acl=yes],
331 [if test "x$have_acl" = xyes ; then
332 AC_MSG_ERROR([*** ACL headers not found.])
333 fi])
334
335 AC_CHECK_LIB(
336 [acl],
337 [acl_get_file],
338 [have_acl=yes],
339 [if test "x$have_acl" = xyes ; then
340 AC_MSG_ERROR([*** libacl not found.])
341 fi])
342
343 if test "x$have_acl" = xyes ; then
344 ACL_LIBS="-lacl"
345 AC_DEFINE(HAVE_ACL, 1, [ACL available])
346 else
347 have_acl=no
348 fi
349else
350 ACL_LIBS=
351fi
352AC_SUBST(ACL_LIBS)
353AM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
354
fb0951b0
LP
355# ------------------------------------------------------------------------------
356AC_ARG_ENABLE([xattr],
357 AS_HELP_STRING([--disable-xattr],[Disable optional XATTR support]),
358 [case "${enableval}" in
359 yes) have_xattr=yes ;;
360 no) have_xattr=no ;;
361 *) AC_MSG_ERROR(bad value ${enableval} for --disable-xattr) ;;
362 esac],
363 [have_xattr=auto])
364
365if test "x${have_xattr}" != xno ; then
366 AC_CHECK_HEADERS(
367 [attr/xattr.h],
368 [have_xattr=yes],
369 [if test "x$have_xattr" = xyes ; then
370 AC_MSG_ERROR([*** XATTR headers not found.])
371 fi])
372
373 AC_CHECK_LIB(
374 [attr],
375 [fsetxattr],
376 [have_xattr=yes],
377 [if test "x$have_xattr" = xyes ; then
378 AC_MSG_ERROR([*** libattr not found.])
379 fi])
380
381 if test "x$have_xattr" = xyes ; then
382 XATTR_LIBS="-lattr"
383 AC_DEFINE(HAVE_XATTR, 1, [XATTR available])
384 else
385 have_xattr=no
386 fi
387else
388 XATTR_LIBS=
389fi
390AC_SUBST(XATTR_LIBS)
391AM_CONDITIONAL([HAVE_XATTR], [test "x$have_xattr" != xno])
392
7560fffc 393# ------------------------------------------------------------------------------
feb12d3e 394AC_ARG_ENABLE([gcrypt],
7560fffc
LP
395 AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
396 [case "${enableval}" in
397 yes) have_gcrypt=yes ;;
398 no) have_gcrypt=no ;;
399 *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
400 esac],
401 [have_gcrypt=auto])
402
403if test "x${have_gcrypt}" != xno ; then
404 AM_PATH_LIBGCRYPT(
405 [1.4.5],
406 [have_gcrypt=yes],
407 [if test "x$have_gcrypt" = xyes ; then
408 AC_MSG_ERROR([*** GCRYPT headers not found.])
409 fi])
410
411 if test "x$have_gcrypt" = xyes ; then
412 GCRYPT_LIBS="$LIBGCRYPT_LIBS"
413 GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
414 AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
415 else
416 have_gcrypt=no
417 fi
418else
419 GCRYPT_LIBS=
420 GCRYPT_CFLAGS=
421fi
422AC_SUBST(GCRYPT_LIBS)
423AC_SUBST(GCRYPT_CFLAGS)
424AM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
425
3e214785 426# ------------------------------------------------------------------------------
4927fcae
LP
427AC_ARG_ENABLE([audit],
428 AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
429 [case "${enableval}" in
430 yes) have_audit=yes ;;
431 no) have_audit=no ;;
432 *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
433 esac],
434 [have_audit=auto])
435
436if test "x${have_audit}" != xno ; then
437 AC_CHECK_HEADERS(
438 [libaudit.h],
439 [have_audit=yes],
440 [if test "x$have_audit" = xyes ; then
441 AC_MSG_ERROR([*** AUDIT headers not found.])
442 fi])
443
444 AC_CHECK_LIB(
445 [audit],
446 [audit_open],
447 [have_audit=yes],
448 [if test "x$have_audit" = xyes ; then
449 AC_MSG_ERROR([*** libaudit not found.])
450 fi])
451
452 if test "x$have_audit" = xyes ; then
453 AUDIT_LIBS="-laudit"
454 AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
455 else
456 have_audit=no
457 fi
458else
459 AUDIT_LIBS=
460fi
461AC_SUBST(AUDIT_LIBS)
462
3e214785 463# ------------------------------------------------------------------------------
7f4e0805
LP
464have_libcryptsetup=no
465AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
466if test "x$enable_libcryptsetup" != "xno"; then
880a599e 467 PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.4.2 ],
7f4e0805 468 [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
7f4e0805 469 if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
591622d7 470 AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
7f4e0805
LP
471 fi
472fi
473AM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
474
f6a971bc
LP
475# ------------------------------------------------------------------------------
476have_qrencode=no
477AC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
478if test "x$enable_qrencode" != "xno"; then
479 PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
480 [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
481 if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
482 AC_MSG_ERROR([*** qrencode support requested but libraries not found])
483 fi
484fi
485AM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
486
7b17a7d7
LP
487# ------------------------------------------------------------------------------
488have_microhttpd=no
489AC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
490if test "x$enable_microhttpd" != "xno"; then
59bb9d9a 491 PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.5],
7b17a7d7
LP
492 [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
493 if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
494 AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
495 fi
496fi
497AM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
498
3e214785 499# ------------------------------------------------------------------------------
27669061
MV
500have_binfmt=no
501AC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
502if test "x$enable_binfmt" != "xno"; then
be31376e 503 have_binfmt=yes
27669061
MV
504fi
505AM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
506
3e214785 507# ------------------------------------------------------------------------------
e5e83e83
LP
508have_vconsole=no
509AC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
510if test "x$enable_vconsole" != "xno"; then
be31376e 511 have_vconsole=yes
e5e83e83
LP
512fi
513AM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
514
3e214785 515# ------------------------------------------------------------------------------
e5e83e83
LP
516have_readahead=no
517AC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
518if test "x$enable_readahead" != "xno"; then
be31376e 519 have_readahead=yes
e5e83e83
LP
520fi
521AM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
522
3e214785 523# ------------------------------------------------------------------------------
4de85612
LP
524have_quotacheck=no
525AC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
526if test "x$enable_quotacheck" != "xno"; then
be31376e 527 have_quotacheck=yes
4de85612
LP
528fi
529AM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
530
3e214785 531# ------------------------------------------------------------------------------
4de85612
LP
532have_randomseed=no
533AC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
534if test "x$enable_randomseed" != "xno"; then
be31376e 535 have_randomseed=yes
4de85612
LP
536fi
537AM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
538
3e214785 539# ------------------------------------------------------------------------------
2a018e83
KS
540have_logind=no
541AC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
542if test "x$enable_logind" != "xno"; then
be31376e 543 have_logind=yes
2a018e83
KS
544fi
545AM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
4c80c73c 546AS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
2a018e83 547
3e214785 548# ------------------------------------------------------------------------------
b2e9fb99
MV
549have_hostnamed=no
550AC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
551if test "x$enable_hostnamed" != "xno"; then
be31376e 552 have_hostnamed=yes
b2e9fb99
MV
553fi
554AM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
555
3e214785 556# ------------------------------------------------------------------------------
f47cd184
MV
557have_timedated=no
558AC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
559if test "x$enable_timedated" != "xno"; then
be31376e 560 have_timedated=yes
f47cd184
MV
561fi
562AM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
563
3e214785 564# ------------------------------------------------------------------------------
4cd1eaa5
MV
565have_localed=no
566AC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
567if test "x$enable_localed" != "xno"; then
be31376e 568 have_localed=yes
4cd1eaa5
MV
569fi
570AM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
571
3e214785 572# ------------------------------------------------------------------------------
f5e04665
LP
573have_coredump=no
574AC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
575if test "x$enable_coredump" != "xno"; then
be31376e 576 have_coredump=yes
f5e04665
LP
577fi
578AM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
579
3e214785
KS
580# ------------------------------------------------------------------------------
581AC_ARG_WITH(firmware-path,
582 AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
583 [Firmware search path (default=ROOTPREFIX/lib/firmware/updates:ROOTPREFIX/lib/firmware)]),
584 [], [with_firmware_path="$rootprefix/lib/firmware/updates:$rootprefix/lib/firmware"])
585OLD_IFS=$IFS
586IFS=:
587for i in $with_firmware_path; do
588 if test "x${FIRMWARE_PATH}" = "x"; then
589 FIRMWARE_PATH="\\\"${i}/\\\""
590 else
591 FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
592 fi
593done
594IFS=$OLD_IFS
595AC_SUBST([FIRMWARE_PATH], [$FIRMWARE_PATH])
596
597# ------------------------------------------------------------------------------
598AC_ARG_ENABLE([gudev],
599 AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
600 [], [enable_gudev=yes])
601AS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0]) ])
3e214785
KS
602AM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
603
604# ------------------------------------------------------------------------------
605AC_ARG_ENABLE([keymap],
606 AS_HELP_STRING([--disable-keymap], [disable keymap fixup support @<:@default=enabled@:>@]),
607 [], [enable_keymap=yes])
608AS_IF([test "x$enable_keymap" = "xyes"], [
609 AC_PATH_PROG([GPERF], [gperf])
610 if test -z "$GPERF"; then
611 AC_MSG_ERROR([gperf is needed])
612 fi
613
614 AC_CHECK_HEADER([linux/input.h], [:], AC_MSG_ERROR([kernel headers not found]))
615 AC_SUBST([INCLUDE_PREFIX], [$(echo '#include <linux/input.h>' | eval $ac_cpp -E - | sed -n '/linux\/input.h/ {s:.*"\(.*\)/linux/input.h".*:\1:; p; q}')])
616])
617AM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"])
618
619# ------------------------------------------------------------------------------
75db9a77 620have_manpages=no
4c2b0e4e 621AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
fe1fed02
ZJS
622AS_IF([test "x$enable_manpages" != xno], [
623 AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [
624 AC_MSG_ERROR([*** Manpages requested but xsltproc not found])
625 ])
626 AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes])
627])
628AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
75db9a77 629
3e214785 630# ------------------------------------------------------------------------------
d1ab0ca0 631
8401e9f9 632AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, ubuntu, arch, gentoo, slackware, altlinux, mandriva, mageia, angstrom or other]))
0571e011
LP
633if test "z$with_distro" = "z"; then
634 if test "$cross_compiling" = yes; then
635 AC_MSG_WARN([Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)])
636 else
c87f7103 637 with_distro=$($GREP '^ID=' /etc/os-release 2>/dev/null | $SED 's/ID=//');
0571e011
LP
638 fi
639 if test "z$with_distro" = "z"; then
3ce4fad8 640 with_distro=other
0571e011
LP
641 fi
642fi
643with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
7d568925 644AC_DEFINE_UNQUOTED(DISTRIBUTION, ["${with_distro}"], [Target Distribution])
0571e011 645
34eff652
LP
646# Location of the init scripts as mandated by LSB
647SYSTEM_SYSVINIT_PATH=/etc/init.d
f1dd0c3f 648SYSTEM_SYSVRCND_PATH=/etc/rc.d
34eff652 649
f975e971 650M4_DEFINES=
12e84679 651
0571e011
LP
652case $with_distro in
653 fedora)
654 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
2c696a96 655 AC_DEFINE(TARGET_FEDORA, [], [Target is Fedora/RHEL])
f975e971 656 M4_DEFINES=-DTARGET_FEDORA=1
0571e011 657 ;;
3ce4fad8 658 opensuse|suse)
0571e011 659 SYSTEM_SYSVRCND_PATH=/etc/init.d
634826b5 660 AC_DEFINE(TARGET_SUSE, [], [Target is openSUSE/SLE])
f975e971 661 M4_DEFINES=-DTARGET_SUSE=1
0571e011
LP
662 ;;
663 debian)
0571e011 664 SYSTEM_SYSVRCND_PATH=/etc
858dae18 665 AC_DEFINE(TARGET_DEBIAN, [], [Target is Debian])
f975e971 666 M4_DEFINES=-DTARGET_DEBIAN=1
0571e011 667 ;;
858dae18
AE
668 ubuntu)
669 SYSTEM_SYSVRCND_PATH=/etc
858dae18 670 AC_DEFINE(TARGET_UBUNTU, [], [Target is Ubuntu])
f975e971 671 M4_DEFINES=-DTARGET_UBUNTU=1
858dae18 672 ;;
d7c114c0 673 arch)
4bf43a32
TG
674 SYSTEM_SYSVINIT_PATH=
675 SYSTEM_SYSVRCND_PATH=
d7c114c0 676 AC_DEFINE(TARGET_ARCH, [], [Target is ArchLinux])
f975e971 677 M4_DEFINES=-DTARGET_ARCH=1
d7c114c0 678 ;;
f2b4af1c 679 gentoo)
07459bb6
FF
680 SYSTEM_SYSVINIT_PATH=
681 SYSTEM_SYSVRCND_PATH=
f2b4af1c 682 AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo])
f975e971 683 M4_DEFINES=-DTARGET_GENTOO=1
f2b4af1c 684 ;;
65c8976a
MS
685 slackware)
686 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
65c8976a 687 AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
f975e971 688 M4_DEFINES=-DTARGET_SLACKWARE=1
65c8976a 689 ;;
f5c88ec1
MV
690 frugalware)
691 SYSTEM_SYSVINIT_PATH=/etc/rc.d
f5c88ec1 692 AC_DEFINE(TARGET_FRUGALWARE, [], [Target is Frugalware])
f975e971 693 M4_DEFINES=-DTARGET_FRUGALWARE=1
f5c88ec1 694 ;;
a338bab5
AS
695 altlinux)
696 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
a338bab5 697 AC_DEFINE(TARGET_ALTLINUX, [], [Target is ALTLinux])
f975e971 698 M4_DEFINES=-DTARGET_ALTLINUX=1
a338bab5 699 ;;
1de4d79b
AB
700 mandriva)
701 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
1de4d79b 702 AC_DEFINE(TARGET_MANDRIVA, [], [Target is Mandriva])
f975e971 703 M4_DEFINES=-DTARGET_MANDRIVA=1
1de4d79b 704 ;;
1bd8b818
KK
705 angstrom)
706 SYSTEM_SYSVRCND_PATH=/etc
707 AC_DEFINE(TARGET_ANGSTROM, [], [Target is Ångström])
f975e971 708 M4_DEFINES=-DTARGET_ANGSTROM=1
1bd8b818 709 ;;
6fdae8a6
DM
710 mageia)
711 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
712 AC_DEFINE(TARGET_MAGEIA, [], [Target is Mageia])
fbf5b126 713 M4_DEFINES=-DTARGET_MAGEIA=1
6fdae8a6 714 ;;
bf024b02 715 other)
0571e011
LP
716 ;;
717 *)
bf024b02 718 AC_MSG_ERROR([Your distribution (${with_distro}) is not yet supported, SysV init scripts could not be found! (patches welcome); you can specify --with-distro=other to skip this check])
0571e011
LP
719 ;;
720esac
721
136337ff 722AC_ARG_WITH([sysvinit-path],
be31376e
KS
723 [AS_HELP_STRING([--with-sysvinit-path=PATH],
724 [Specify the path to where the SysV init scripts are located @<:@default=based on distro@:>@])],
725 [SYSTEM_SYSVINIT_PATH="$withval"],
726 [])
136337ff
TFH
727
728AC_ARG_WITH([sysvrcd-path],
729 [AS_HELP_STRING([--with-sysvrcd-path=PATH],
730 [Specify the path to the base directory for the SysV rcN.d directories @<:@default=based on distro@:>@])],
731 [SYSTEM_SYSVRCND_PATH="$withval"],
732 [])
733
0571e011 734AC_SUBST(SYSTEM_SYSVINIT_PATH)
d64b723a 735AC_SUBST(SYSTEM_SYSVRCND_PATH)
f975e971 736AC_SUBST(M4_DEFINES)
0571e011 737
07459bb6
FF
738if test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
739 AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
740 SYSTEM_SYSV_COMPAT="yes"
f975e971 741 M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
07459bb6
FF
742elif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
743 AC_MSG_ERROR([*** You need both --with-sysvinit-path=PATH and --with-sysvrcd-path=PATH to enable SysV compatibility support, or both empty to disable it.])
744else
745 SYSTEM_SYSV_COMPAT="no"
746fi
747
bef2733f 748AC_ARG_WITH([tty-gid],
a05ea46d 749 [AS_HELP_STRING([--with-tty-gid=GID],
bef2733f
LP
750 [Specify the numeric GID of the 'tty' group])],
751 [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
752 [])
753
0571e011
LP
754AM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
755AM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
756AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
858dae18
AE
757AM_CONDITIONAL(TARGET_UBUNTU, test x"$with_distro" = xubuntu)
758AM_CONDITIONAL(TARGET_DEBIAN_OR_UBUNTU, test x"$with_distro" = xdebian -o x"$with_distro" = xubuntu)
d7c114c0 759AM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
f2b4af1c 760AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
65c8976a 761AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
f5c88ec1 762AM_CONDITIONAL(TARGET_FRUGALWARE, test x"$with_distro" = xfrugalware)
a338bab5 763AM_CONDITIONAL(TARGET_ALTLINUX, test x"$with_distro" = xaltlinux)
1de4d79b 764AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
1bd8b818 765AM_CONDITIONAL(TARGET_ANGSTROM, test x"$with_distro" = xangstrom)
6fdae8a6 766AM_CONDITIONAL(TARGET_MAGEIA, test x"$with_distro" = xmageia)
0571e011 767
cca4aeee 768AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
cd3f8b7d 769
d2d12cd1
LP
770AC_ARG_WITH([dbuspolicydir],
771 AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
772 [],
773 [with_dbuspolicydir=`pkg-config --variable=sysconfdir dbus-1`/dbus-1/system.d])
d122948d 774
d2d12cd1
LP
775AC_ARG_WITH([dbussessionservicedir],
776 AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
777 [],
778 [with_dbussessionservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`])
d122948d 779
d2d12cd1
LP
780AC_ARG_WITH([dbussystemservicedir],
781 AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
782 [],
783 [with_dbussystemservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../system-services])
d122948d 784
d2d12cd1
LP
785AC_ARG_WITH([dbusinterfacedir],
786 AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
787 [],
788 [with_dbusinterfacedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../interfaces])
d122948d 789
b8079ae1
KS
790AC_ARG_WITH([rootprefix],
791 AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
39ad55a9 792 [], [with_rootprefix=${ac_default_prefix}])
d2d12cd1 793
ae446765
KS
794AC_ARG_WITH([rootlibdir],
795 AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
796 [],
797 [with_rootlibdir=${libdir}])
798
9d3203b4 799AC_ARG_WITH([pamlibdir],
b0cca7d8 800 AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
9d3203b4
KS
801 [],
802 [with_pamlibdir=${with_rootlibdir}/security])
803
bc9bdbba
MG
804AC_ARG_ENABLE([split-usr],
805 AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
806 [],
807 [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
808 enable_split_usr=yes
809 ], [
810 enable_split_usr=no
811 ])])
812
813AS_IF([test "x${enable_split_usr}" = "xyes"], [
2c6db6fb 814 AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
bc9bdbba 815])
2c6db6fb 816
d2d12cd1
LP
817AC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
818AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
819AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
820AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
8c6db833 821AC_SUBST([pamlibdir], [$with_pamlibdir])
b8079ae1 822AC_SUBST([rootprefix], [$with_rootprefix])
ae446765 823AC_SUBST([rootlibdir], [$with_rootlibdir])
8c4a3079 824
3e214785
KS
825AC_CONFIG_FILES([
826 Makefile po/Makefile.in
bb061708
KS
827 docs/libudev/Makefile
828 docs/libudev/version.xml
829 docs/gudev/Makefile
830 docs/gudev/version.xml
3e214785
KS
831])
832
a45a909f 833AC_OUTPUT
ae446765 834AC_MSG_RESULT([
0571e011
LP
835 $PACKAGE_NAME $VERSION
836
2c696a96 837 Distribution: ${with_distro}
07459bb6 838 SysV compatibility: ${SYSTEM_SYSV_COMPAT}
0571e011
LP
839 SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
840 SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
7f4e0805 841 libcryptsetup: ${have_libcryptsetup}
5b6319dc
LP
842 tcpwrap: ${have_tcpwrap}
843 PAM: ${have_pam}
12716238 844 AUDIT: ${have_audit}
81611586 845 IMA: ${have_ima}
12716238 846 SELinux: ${have_selinux}
807e17f0 847 XZ: ${have_xz}
5eda94dd 848 ACL: ${have_acl}
fb0951b0 849 XATTR: ${have_xattr}
7560fffc 850 GCRYPT: ${have_gcrypt}
f6a971bc 851 QRENCODE: ${have_qrencode}
7b17a7d7 852 MICROHTTPD: ${have_microhttpd}
27669061 853 binfmt: ${have_binfmt}
e5e83e83
LP
854 vconsole: ${have_vconsole}
855 readahead: ${have_readahead}
4de85612
LP
856 quotacheck: ${have_quotacheck}
857 randomseed: ${have_randomseed}
2a018e83 858 logind: ${have_logind}
b2e9fb99 859 hostnamed: ${have_hostnamed}
f47cd184 860 timedated: ${have_timedated}
4cd1eaa5 861 localed: ${have_localed}
f5e04665 862 coredump: ${have_coredump}
f553b3b1 863 blkid: ${have_blkid}
3e214785 864 firmware path: ${FIRMWARE_PATH}
3e214785
KS
865 gudev: ${enable_gudev}
866 gintrospection: ${enable_introspection}
867 keymap: ${enable_keymap}
8d7e170a
LP
868 Python: ${have_python}
869 Python Headers: ${have_python_devel}
3e214785 870
8c4a3079 871 prefix: ${prefix}
b8079ae1 872 rootprefix: ${with_rootprefix}
3e214785
KS
873 sysconf dir: ${sysconfdir}
874 datarootdir: ${datarootdir}
875 includedir: ${includedir}
876 include_prefix: ${INCLUDE_PREFIX}
ae446765
KS
877 lib dir: ${libdir}
878 rootlib dir: ${with_rootlibdir}
2c6db6fb 879 PAM modules dir: ${with_pamlibdir}
2c6db6fb
LP
880 D-Bus policy dir: ${with_dbuspolicydir}
881 D-Bus session dir: ${with_dbussessionservicedir}
882 D-Bus system dir: ${with_dbussystemservicedir}
883 D-Bus interfaces dir: ${with_dbusinterfacedir}
bc9bdbba 884 Split /usr: ${enable_split_usr}
5ee9f21e 885 man pages: ${have_manpages}
fe1fed02 886 gtk-doc: ${enable_gtk_doc}
66be6554 887
5a45a936
LP
888 CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
889 CPPLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
890 LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
568c7e02
ZJS
891 PYTHON_CFLAGS: ${PYTHON_CFLAGS}
892 PYTHON_LIBS: ${PYTHON_LIBS}
ae446765 893])