64
64
dnl ---------------------------------------------------------------------------
66
66
DBUS_GLIB_REQUIRED_VERSION=0.74
67
GLIB_REQUIRED_VERSION=2.33.2
67
GLIB_REQUIRED_VERSION=2.35.0
68
68
GTK_REQUIRED_VERSION=2.91.1
69
69
PANGO_REQUIRED_VERSION=1.3.0
70
70
SCROLLKEEPER_REQUIRED_VERSION=0.1.4
294
294
AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
295
295
[Directory for systemd service files]),
296
296
[with_systemdsystemunitdir=$withval], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
297
AC_ARG_ENABLE(systemd-journal,
298
AS_HELP_STRING([--enable-systemd-journal],
299
[Add journald support @<:@default=auto@:>@]),
300
[enable_systemd_journal=$enableval], [enable_systemd_journal=auto])
297
301
AC_ARG_WITH(plymouth,
298
302
AS_HELP_STRING([--with-plymouth],
299
303
[Add plymouth support @<:@default=auto@:>@]),
300
304
[with_plymouth=$withval], [with_plymouth=auto])
305
AC_ARG_ENABLE(fallback-greeter,
306
AS_HELP_STRING([--enable-fallback-greeter],
307
[Enable fallback greeter @<:@default=no@:>@]),,
308
enable_fallback_greeter=no)
309
AM_CONDITIONAL(ENABLE_FALLBACK_GREETER, test x$enable_fallback_greeter = xyes)
302
311
AC_ARG_WITH(at-spi-registryd-directory,
303
312
AS_HELP_STRING([--with-at-spi-registryd-directory],
338
347
if test x$withval != x; then
339
348
LANG_CONFIG_FILE="$withval"
341
LANG_CONFIG_FILE='$(sysconfdir)/sysconfig/i18n'
350
LANG_CONFIG_FILE='$(sysconfdir)/locale.conf'
343
352
AC_SUBST(LANG_CONFIG_FILE)
956
965
AC_SUBST(SYSTEMD_CFLAGS)
957
966
AC_SUBST(SYSTEMD_LIBS)
968
PKG_CHECK_MODULES(JOURNALD,
969
[libsystemd-journal],
970
[have_journald=yes], [have_journald=no])
972
if test "x$enable_systemd_journal" = "xauto" ; then
973
if test x$use_systemd = xyes ; then
974
if test x$have_journald = xno ; then
984
use_journald="$enable_systemd_journal"
987
if test "x$use_journald" != "xno" ; then
988
if test "x$have_journald" = "xno"; then
989
AC_MSG_ERROR([journald support explicitly required, but journald not found])
992
AC_DEFINE(ENABLE_SYSTEMD_JOURNAL, 1, [Define to enable systemd journal support])
994
AC_SUBST(JOURNALD_CFLAGS)
995
AC_SUBST(JOURNALD_LIBS)
959
997
AC_PATH_PROG(SYSTEMD_X_SERVER, systemd-multi-seat-x, [/lib/systemd/systemd-multi-seat-x], [/lib/systemd:/usr/lib/systemd:$PATH])
960
998
AC_SUBST(SYSTEMD_X_SERVER)
961
999
AC_DEFINE_UNQUOTED(SYSTEMD_X_SERVER,"$SYSTEMD_X_SERVER",[Path to systemd X server wrapper])
1327
1365
AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
1329
1367
dnl ---------------------------------------------------------------------------
1368
dnl - runtime directory
1369
dnl ---------------------------------------------------------------------------
1371
AC_ARG_WITH([run-dir],
1372
AS_HELP_STRING([--with-run-dir=<file>],
1373
[runtime directory]))
1375
if ! test -z "$with_run_dir"; then
1376
GDM_RUN_DIR=$with_run_dir
1378
GDM_RUN_DIR=${localstatedir}/run/gdm
1381
AC_SUBST([GDM_RUN_DIR])
1383
dnl ---------------------------------------------------------------------------
1331
1385
dnl ---------------------------------------------------------------------------
1337
1391
if ! test -z "$with_pid_file"; then
1338
1392
GDM_PID_FILE=$with_pid_file
1340
GDM_PID_FILE=/var/run/gdm.pid
1394
GDM_PID_FILE=$GDM_RUN_DIR/gdm.pid
1343
1397
AC_SUBST(GDM_PID_FILE)
1344
1398
AC_DEFINE_UNQUOTED(GDM_PID_FILE, "$GDM_PID_FILE", [pid file])
1346
1400
dnl ---------------------------------------------------------------------------
1401
dnl - ran once marker
1402
dnl ---------------------------------------------------------------------------
1404
AC_ARG_WITH(ran-once-marker-directory,
1405
AS_HELP_STRING([--with-ran-once-marker-directory=<dir>],
1406
[ran once marker directory]))
1408
if ! test -z "$with_ran_once_marker_directory"; then
1409
GDM_RAN_ONCE_MARKER_DIR=$with_ran_once_marker_directory
1411
GDM_RAN_ONCE_MARKER_DIR=$GDM_RUN_DIR
1413
AC_SUBST(GDM_RAN_ONCE_MARKER_DIR)
1414
AS_AC_EXPAND(GDM_RAN_ONCE_MARKER_DIR_EXPANDED, $GDM_RAN_ONCE_MARKER_DIR)
1415
AC_DEFINE_UNQUOTED(GDM_RAN_ONCE_MARKER_DIR, "$GDM_RAN_ONCE_MARKER_DIR_EXPANDED", [ran once marker dir])
1417
GDM_RAN_ONCE_MARKER_FILE="$GDM_RAN_ONCE_MARKER_DIR/ran-once-marker"
1418
AC_SUBST(GDM_RAN_ONCE_MARKER_FILE)
1419
AS_AC_EXPAND(GDM_RAN_ONCE_MARKER_FILE_EXPANDED, $GDM_RAN_ONCE_MARKER_FILE)
1420
AC_DEFINE_UNQUOTED(GDM_RAN_ONCE_MARKER_FILE, "$GDM_RAN_ONCE_MARKER_FILE_EXPANDED", [ran once marker file])
1422
dnl ---------------------------------------------------------------------------
1347
1423
dnl - GREETER WORKING DIRECTORY
1348
1424
dnl ---------------------------------------------------------------------------
1386
1462
if ! test -z "$with_screenshot_dir"; then
1387
1463
GDM_SCREENSHOT_DIR=$with_screenshot_dir
1389
GDM_SCREENSHOT_DIR=${localstatedir}/run/gdm/greeter
1465
GDM_SCREENSHOT_DIR=$GDM_RUN_DIR/greeter
1392
1468
AC_SUBST(GDM_SCREENSHOT_DIR)
1425
1501
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
1426
1502
-Wnested-externs -Wpointer-arith \
1427
-Wcast-align -Wsign-compare -Wp,-D_FORTIFY_SOURCE=2 \
1503
-Wcast-align -Wsign-compare \
1430
1506
for option in -Wno-strict-aliasing -Wno-sign-compare; do