20
AC_INIT([systemd],[37],[systemd-devel@lists.freedesktop.org])
20
AC_INIT([systemd],[44],[systemd-devel@lists.freedesktop.org])
21
21
AC_CONFIG_SRCDIR([src/main.c])
22
22
AC_CONFIG_MACRO_DIR([m4])
23
23
AC_CONFIG_HEADERS([config.h])
24
24
AC_USE_SYSTEM_EXTENSIONS
27
AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax subdir-objects dist-bzip2])
26
AC_PREFIX_DEFAULT([/usr])
27
AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects check-news])
29
29
AC_SUBST(PACKAGE_URL, [http://www.freedesktop.org/wiki/Software/systemd])
129
124
m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
131
126
PKG_CHECK_MODULES(UDEV, [ libudev >= 172 ])
132
AC_SUBST(UDEV_CFLAGS)
135
127
PKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.3.2 ])
136
AC_SUBST(DBUS_CFLAGS)
128
PKG_CHECK_MODULES(KMOD, [ libkmod >= 5 ])
140
131
AC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
141
132
if test "x$enable_selinux" != "xno"; then
142
133
PKG_CHECK_MODULES(SELINUX, [ libselinux ],
143
134
[AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
144
AC_SUBST(SELINUX_CFLAGS)
145
AC_SUBST(SELINUX_LIBS)
146
135
if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
147
136
AC_MSG_ERROR([*** SELinux support requested but libraries not found])
150
139
AM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
142
AC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
143
if test "x$enable_xz" != "xno"; then
144
PKG_CHECK_MODULES(XZ, [ liblzma ],
145
[AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
146
if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
147
AC_MSG_ERROR([*** Xz support requested but libraries not found])
150
AM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
152
152
AC_ARG_ENABLE([tcpwrap],
153
153
AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
154
154
[case "${enableval}" in
288
288
if test "x$enable_libcryptsetup" != "xno"; then
289
289
PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup ],
290
290
[AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
291
AC_SUBST(LIBCRYPTSETUP_CFLAGS)
292
AC_SUBST(LIBCRYPTSETUP_LIBS)
293
291
if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
294
292
AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
300
298
AC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
301
299
if test "x$enable_binfmt" != "xno"; then
304
302
AM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
305
AC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
306
if test "x$enable_vconsole" != "xno"; then
309
AM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
312
AC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
313
if test "x$enable_readahead" != "xno"; then
316
AM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
319
AC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
320
if test "x$enable_quotacheck" != "xno"; then
323
AM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
326
AC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
327
if test "x$enable_randomseed" != "xno"; then
330
AM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
333
AC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
334
if test "x$enable_logind" != "xno"; then
337
AM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
338
AS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
306
340
have_hostnamed=no
307
341
AC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
308
342
if test "x$enable_hostnamed" != "xno"; then
311
345
AM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
313
347
have_timedated=no
314
348
AC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
315
349
if test "x$enable_timedated" != "xno"; then
318
352
AM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
321
355
AC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
322
356
if test "x$enable_localed" != "xno"; then
325
359
AM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
362
AC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
363
if test "x$enable_coredump" != "xno"; then
366
AM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
369
AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
370
if test "x$enable_manpages" != "xno"; then
373
AM_CONDITIONAL(ENABLE_MANPAGES, [test "$have_manpages" = "yes"])
328
376
AC_ARG_ENABLE(gtk, AS_HELP_STRING([--disable-gtk], [disable GTK tools]))
329
377
if test "x$enable_gtk" != "xno"; then
330
PKG_CHECK_MODULES(GTK, [ gtk+-2.0 glib-2.0 > 2.26 gio-unix-2.0 ],
378
PKG_CHECK_MODULES(GTK, [ gtk+-2.0 glib-2.0 > 2.26 gio-unix-2.0 gee-1.0],
331
379
[AC_DEFINE(HAVE_GTK, 1, [Define if GTK is available]) have_gtk=yes], have_gtk=no)
334
380
if test "x$have_gtk" = xno -a "x$enable_gtk" = xyes; then
335
381
AC_MSG_ERROR([*** gtk support requested but libraries not found])
356
397
AC_PATH_PROG([M4], [m4])
358
AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, ubuntu, arch, gentoo, slackware, altlinux or other]))
399
AC_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, meego, mageia, angstrom or other]))
359
400
if test "z$with_distro" = "z"; then
360
401
if test "$cross_compiling" = yes; then
361
402
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)])
363
test -f "/etc/redhat-release" && with_distro="fedora"
364
test -f "/etc/SuSE-release" && with_distro="suse"
365
test -f "/etc/debian_version" && with_distro="debian"
366
test -f "/etc/arch-release" && with_distro="arch"
367
test -f "/etc/gentoo-release" && with_distro="gentoo"
368
test -f "/etc/slackware-version" && with_distro="slackware"
369
test -f "/etc/frugalware-release" && with_distro="frugalware"
370
test -f "/etc/altlinux-release" && with_distro="altlinux"
371
test -f "/etc/mandriva-release" && with_distro="mandriva"
372
test -f "/etc/meego-release" && with_distro="meego"
373
test -f "/etc/angstrom-version" && with_distro="angstrom"
374
if test "x`lsb_release -is 2>/dev/null`" = "xUbuntu"; then
404
with_distro=$($GREP '^ID=' /etc/os-release | $SED 's/ID=//');
378
406
if test "z$with_distro" = "z"; then
379
with_distro=`uname -s`
382
410
with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
452
480
SYSTEM_SYSVRCND_PATH=
453
481
AC_DEFINE(TARGET_MEEGO, [], [Target is MeeGo])
454
482
M4_DEFINES=-DTARGET_MEEGO=1
457
485
SYSTEM_SYSVRCND_PATH=/etc
458
486
AC_DEFINE(TARGET_ANGSTROM, [], [Target is Ångström])
459
487
M4_DEFINES=-DTARGET_ANGSTROM=1
490
SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
491
AC_DEFINE(TARGET_MAGEIA, [], [Target is Mageia])
492
M4_DISTRO_FLAG=-DTARGET_MAGEIA=1
468
502
AC_ARG_WITH([sysvinit-path],
469
[AS_HELP_STRING([--with-sysvinit-path=PATH],
470
[Specify the path to where the SysV init scripts are located @<:@default=based on distro@:>@])],
471
[SYSTEM_SYSVINIT_PATH="$withval"],
503
[AS_HELP_STRING([--with-sysvinit-path=PATH],
504
[Specify the path to where the SysV init scripts are located @<:@default=based on distro@:>@])],
505
[SYSTEM_SYSVINIT_PATH="$withval"],
474
508
AC_ARG_WITH([sysvrcd-path],
475
509
[AS_HELP_STRING([--with-sysvrcd-path=PATH],
540
575
[with_dbusinterfacedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../interfaces])
542
577
AC_ARG_WITH([udevrulesdir],
543
AS_HELP_STRING([--with-udevrulesdir=DIR], [Diectory for udev rules]),
578
AS_HELP_STRING([--with-udevrulesdir=DIR], [Directory for udev rules]),
545
580
[with_udevrulesdir=`pkg-config --variable=udevdir udev`/rules.d])
547
AC_ARG_WITH([pamlibdir],
548
AS_HELP_STRING([--with-pamlibdir=DIR], [Diectory for PAM modules]),
550
[with_pamlibdir=/lib/`$CC -print-multi-os-directory`/security])
552
AC_ARG_WITH([rootdir],
553
AS_HELP_STRING([--with-rootdir=DIR], [Root directory for files necessary for boot]),
555
[with_rootdir=${ac_default_prefix}])
582
AC_ARG_WITH([rootprefix],
583
AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
584
[], [with_rootprefix=${ac_default_prefix}])
557
586
AC_ARG_WITH([rootlibdir],
558
587
AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
560
589
[with_rootlibdir=${libdir}])
591
AC_ARG_WITH([pamlibdir],
592
AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
594
[with_pamlibdir=${with_rootlibdir}/security])
596
AC_ARG_ENABLE([split-usr],
597
AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
599
[AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
605
AS_IF([test "x${enable_split_usr}" = "xyes"], [
606
AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
562
609
AC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
563
610
AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
564
611
AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
565
612
AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
566
613
AC_SUBST([udevrulesdir], [$with_udevrulesdir])
567
614
AC_SUBST([pamlibdir], [$with_pamlibdir])
568
AC_SUBST([rootdir], [$with_rootdir])
615
AC_SUBST([rootprefix], [$with_rootprefix])
569
616
AC_SUBST([rootlibdir], [$with_rootlibdir])
571
618
AC_CONFIG_FILES([Makefile po/Makefile.in])
584
631
AUDIT: ${have_audit}
585
632
SELinux: ${have_selinux}
587
635
binfmt: ${have_binfmt}
636
vconsole: ${have_vconsole}
637
readahead: ${have_readahead}
638
quotacheck: ${have_quotacheck}
639
randomseed: ${have_randomseed}
640
logind: ${have_logind}
588
641
hostnamed: ${have_hostnamed}
589
642
timedated: ${have_timedated}
590
643
localed: ${have_localed}
644
coredump: ${have_coredump}
591
645
plymouth: ${have_plymouth}
592
646
prefix: ${prefix}
593
root dir: ${with_rootdir}
647
rootprefix: ${with_rootprefix}
648
libexec dir: ${libexecdir}
594
649
lib dir: ${libdir}
595
650
rootlib dir: ${with_rootlibdir}
596
pam modules dir: ${with_pamlibdir}
651
PAM modules dir: ${with_pamlibdir}
597
652
udev rules dir: ${with_udevrulesdir}
598
dbus policy dir: ${with_dbuspolicydir}
599
dbus session dir: ${with_dbussessionservicedir}
600
dbus system dir: ${with_dbussystemservicedir}
601
dbus interfaces dir: ${with_dbusinterfacedir}
653
D-Bus policy dir: ${with_dbuspolicydir}
654
D-Bus session dir: ${with_dbussessionservicedir}
655
D-Bus system dir: ${with_dbussystemservicedir}
656
D-Bus interfaces dir: ${with_dbusinterfacedir}
657
Split /usr: ${enable_split_usr}
658
man pages: ${have_manpages}