5
[http://bugzilla.gnome.org/enter_bug.cgi?product=gdm])
7
AC_CONFIG_SRCDIR([daemon/gdm-manager.c])
9
AM_INIT_AUTOMAKE([1.10 no-dist-gzip dist-xz tar-ustar -Wall])
10
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
11
AM_MAINTAINER_MODE([enable])
21
## increment if the plugin interface has additions, changes, removals.
24
## increment any time the source changes; set to
25
## 0 if you increment CURRENT
28
## increment if any interfaces have been added; set to 0
29
## if any interfaces have been changed or removed. removal has
30
## precedence over adding, so set to 0 if both happened.
41
AM_CONFIG_HEADER(config.h)
42
AC_CONFIG_MACRO_DIR([m4])
45
enable_documentation=no
46
m4_ifdef([YELP_HELP_INIT],[
48
enable_documentation=yes
50
AM_CONDITIONAL(ENABLE_DOCUMENTATION, test x$enable_documentation = xyes)
53
IT_PROG_INTLTOOL([0.40.0])
56
AC_SUBST(GETTEXT_PACKAGE)
57
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [gettext package])
59
dnl ---------------------------------------------------------------------------
61
dnl ---------------------------------------------------------------------------
63
DBUS_GLIB_REQUIRED_VERSION=0.74
64
GLIB_REQUIRED_VERSION=2.33.2
65
GTK_REQUIRED_VERSION=2.91.1
66
PANGO_REQUIRED_VERSION=1.3.0
67
SCROLLKEEPER_REQUIRED_VERSION=0.1.4
68
GNOME_PANEL_REQUIRED_VERSION=2.0.0
69
LIBCANBERRA_GTK_REQUIRED_VERSION=0.4
70
#FONTCONFIG_REQUIRED_VERSION=2.6.0
71
FONTCONFIG_REQUIRED_VERSION=2.5.0
72
UPOWER_REQUIRED_VERSION=0.9.0
73
ACCOUNTS_SERVICE_REQUIRED_VERSION=0.6.12
74
GSD_REQUIRED_VERSION=2.91.2
75
NSS_REQUIRED_VERSION=3.11.1
77
EXTRA_COMPILE_WARNINGS(yes)
79
PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
80
AC_SUBST(GTHREAD_CFLAGS)
81
AC_SUBST(GTHREAD_LIBS)
83
PKG_CHECK_MODULES(COMMON,
84
gobject-2.0 >= $GLIB_REQUIRED_VERSION
85
gio-2.0 >= $GLIB_REQUIRED_VERSION
86
gio-unix-2.0 >= $GLIB_REQUIRED_VERSION
88
AC_SUBST(COMMON_CFLAGS)
91
PKG_CHECK_MODULES(DAEMON,
92
gobject-2.0 >= $GLIB_REQUIRED_VERSION
93
gio-2.0 >= $GLIB_REQUIRED_VERSION
94
gio-unix-2.0 >= $GLIB_REQUIRED_VERSION
95
accountsservice >= $ACCOUNTS_SERVICE_REQUIRED_VERSION
97
AC_SUBST(DAEMON_CFLAGS)
102
PKG_CHECK_MODULES(NSS,
103
nss >= $NSS_REQUIRED_VERSION
108
PKG_CHECK_MODULES(XLIB, x11 xau xrandr, ,
110
if test "x$no_x" = xyes; then
111
AC_MSG_ERROR("no (requires X development libraries)")
113
XLIB_LIBS="$X_PRE_LIBS $X_LIBS -lXau -lX11 -lXext -lXrandr $X_EXTRA_LIBS"
114
XLIB_CFLAGS=$X_CFLAGS
116
AC_SUBST(XLIB_CFLAGS)
119
PKG_CHECK_MODULES(GTK,
120
gtk+-3.0 >= $GTK_REQUIRED_VERSION
125
PKG_CHECK_MODULES(CANBERRA_GTK,
126
libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED_VERSION
128
AC_SUBST(CANBERRA_GTK_CFLAGS)
129
AC_SUBST(CANBERRA_GTK_LIBS)
131
PKG_CHECK_MODULES(UPOWER,
132
upower-glib >= $UPOWER_REQUIRED_VERSION,
136
if test "x$have_upower" = "xyes" ; then
137
AC_DEFINE(HAVE_UPOWER, [], [Define if we have UPower])
140
AC_SUBST(UPOWER_CFLAGS)
141
AC_SUBST(UPOWER_LIBS)
143
PKG_CHECK_MODULES(LIBSELINUX, libselinux, have_selinux=yes, have_selinux=no)
145
if test "x$have_selinux" = "xyes" ; then
146
AC_DEFINE(HAVE_SELINUX, 1, [Define if have selinux])
148
AC_SUBST(LIBSELINUX_CFLAGS)
149
AC_SUBST(LIBSELINUX_LIBS)
151
PKG_CHECK_MODULES(SIMPLE_GREETER,
152
gtk+-3.0 >= $GTK_REQUIRED_VERSION
153
fontconfig >= $FONTCONFIG_REQUIRED_VERSION
154
accountsservice >= $ACCOUNTS_SERVICE_REQUIRED_VERSION
157
SIMPLE_GREETER_LIBS="$SIMPLE_GREETER_LIBS -lm"
158
AC_SUBST(SIMPLE_GREETER_CFLAGS)
159
AC_SUBST(SIMPLE_GREETER_LIBS)
161
PKG_CHECK_MODULES(SIMPLE_CHOOSER,
162
gtk+-3.0 >= $GTK_REQUIRED_VERSION
164
AC_SUBST(SIMPLE_CHOOSER_CFLAGS)
165
AC_SUBST(SIMPLE_CHOOSER_LIBS)
167
PLUGIN_LIBTOOL_FLAGS="-export_dynamic -module -avoid-version"
168
AC_SUBST(PLUGIN_LIBTOOL_FLAGS)
170
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
173
# Unit testing framework
174
PKG_CHECK_MODULES(CHECK,
178
AM_CONDITIONAL([HAVE_CHECK],[test "x$CHECK_CFLAGS" != "x"])
180
PKG_CHECK_MODULES(LIBGDM, glib-2.0 gio-2.0 gio-unix-2.0);
181
GOBJECT_INTROSPECTION_CHECK([0.9.12])
182
LIBGDM_GIR_INCLUDES="GLib-2.0 GObject-2.0 Gio-2.0"
183
AC_SUBST(LIBGDM_GIR_INCLUDES)
185
dnl ---------------------------------------------------------------------------
186
dnl - Paths for dependencies
187
dnl ---------------------------------------------------------------------------
189
PKG_CHECK_MODULES(GSD,
190
gnome-settings-daemon >= $GSD_REQUIRED_VERSION
192
GSD_BINARY=`pkg-config --variable=binary gnome-settings-daemon`
195
dnl ---------------------------------------------------------------------------
196
dnl - Configuration file stuff
197
dnl ---------------------------------------------------------------------------
199
AC_ARG_WITH(sysconfsubdir,
200
AS_HELP_STRING([--with-sysconfsubdir],
201
[directory name used under sysconfdir, default=gdm]),
202
sysconfsubdir=${withval}, sysconfsubdir=gdm)
203
AC_SUBST(sysconfsubdir)
205
if test x"${sysconfsubdir}" != xno -a x"${sysconfsubdir}" != x; then
206
gdmconfdir='${sysconfdir}/${sysconfsubdir}'
208
gdmconfdir='${sysconfdir}'
212
AC_ARG_WITH(dmconfdir,
213
AS_HELP_STRING([--with-dmconfdir],
214
[directory where Sessions are stored, default=SYSCONFDIR/dm]),
215
dmconfdir=${withval}, dmconfdir=${sysconfdir}/dm)
218
dnl ---------------------------------------------------------------------------
219
dnl - Configure arguments
220
dnl ---------------------------------------------------------------------------
221
AC_ARG_ENABLE(split-authentication,
222
AS_HELP_STRING([--enable-split-authentication],
223
[Enable multiple simultaneous PAM conversations during login @<:@default=yes@:>@]),,
224
enable_split_authentication=yes)
225
AM_CONDITIONAL(ENABLE_SPLIT_AUTHENTICATION, test x$enable_split_authentication = xyes)
227
if test x$enable_split_authentication = xyes; then
228
AC_DEFINE(ENABLE_SPLIT_AUTHENTICATION, 1, [Define if split authentication is enabled])
231
AC_ARG_WITH(default-pam-config,
232
AS_HELP_STRING([--with-default-pam-config: One of redhat, openembedded, exherbo, lfs, none @<:@default=auto@:>@]))
233
dnl If not given, try autodetecting from release files (see NetworkManager source)
234
if test x$with_default_pam_config = x; then
235
AC_CHECK_FILE(/etc/redhat-release,with_default_pam_config="redhat")
236
AC_CHECK_FILE(/etc/fedora-release,with_default_pam_config="redhat")
237
AC_CHECK_FILE(/etc/exherbo-release,with_default_pam_config="exherbo")
238
AC_CHECK_FILE(/etc/lfs-release,with_default_pam_config="lfs")
239
dnl If not autodetected, default to none
240
if test x$with_default_pam_config = x; then
241
with_default_pam_config=none
244
case x$with_default_pam_config in
245
xredhat|xopenembedded|xexherbo|xlfs|xnone) ;;
247
AC_MSG_ERROR([Invalid --with-default-pam-config ${with_default_pam_config}])
251
AM_CONDITIONAL(ENABLE_REDHAT_PAM_CONFIG, test x$with_default_pam_config = xredhat)
252
AM_CONDITIONAL(ENABLE_OPENEMBEDDED_PAM_CONFIG, test x$with_default_pam_config = xopenembedded)
253
AM_CONDITIONAL(ENABLE_EXHERBO_PAM_CONFIG, test x$with_default_pam_config = xexherbo)
254
AM_CONDITIONAL(ENABLE_LFS_PAM_CONFIG, test x$with_default_pam_config = xlfs)
256
AC_ARG_ENABLE(console-helper,
257
AS_HELP_STRING([--enable-console-helper],
258
[Enable PAM console helper @<:@default=auto@:>@]),,
259
enable_console_helper=auto)
261
AC_ARG_ENABLE(authentication-scheme,
262
AS_HELP_STRING([--enable-authentication-scheme=@<:@pam/crypt/shadow@:>@],
263
[Choose a specific authentication scheme @<:@default=auto@:>@]),,
264
enable_authentication_scheme=auto)
266
AC_ARG_WITH(xinerama,
267
AS_HELP_STRING([--with-xinerama],
268
[Add Xinerama support @<:@default=auto@:>@]),,
272
AS_HELP_STRING([--with-xdmcp],
273
[Add XDMCP (remote login) support @<:@default=auto@:>@]),,
276
AC_ARG_WITH(tcp-wrappers,
277
AS_HELP_STRING([--with-tcp-wrappers],
278
[Use TCP Wrappers @<:@default=auto@:>@]),,
279
with_tcp_wrappers=auto)
281
AC_ARG_WITH(console-kit,
282
AS_HELP_STRING([--with-console-kit],
283
[Add ConsoleKit support @<:@default=auto@:>@]),,
284
with_console_kit=auto)
287
AS_HELP_STRING([--with-systemd],
288
[Add systemd support @<:@default=auto@:>@]),
289
[with_systemd=$withval], [with_systemd=auto])
290
AC_ARG_WITH([systemdsystemunitdir],
291
AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
292
[Directory for systemd service files]),
293
[with_systemdsystemunitdir=$withval], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
294
AC_ARG_WITH(plymouth,
295
AS_HELP_STRING([--with-plymouth],
296
[Add plymouth support @<:@default=auto@:>@]),
297
[with_plymouth=$withval], [with_plymouth=auto])
299
AC_ARG_WITH(at-spi-registryd-directory,
300
AS_HELP_STRING([--with-at-spi-registryd-directory],
301
[Specify the directory of at-spi-registryd @<:@default=libexecdir@:>@])],,
302
[with_at_spi_registryd_directory="${libexecdir}"])
304
AT_SPI_REGISTRYD_DIR=$with_at_spi_registryd_directory
305
AC_SUBST(AT_SPI_REGISTRYD_DIR)
307
# Allow configuration of default PATH
310
AC_ARG_WITH(default-path,
311
AS_HELP_STRING([--with-default-path=<PATH>],
312
[PATH GDM will use as the user's default PATH]),
313
[if test x$withval != x; then
314
AC_MSG_RESULT("PATH ${withval} will be the default PATH.")
317
if test x$withval != x; then
318
GDM_SESSION_DEFAULT_PATH="$withval"
320
GDM_SESSION_DEFAULT_PATH="/usr/local/bin:/usr/bin:/bin"
322
AC_SUBST(GDM_SESSION_DEFAULT_PATH)
325
dnl file that sets LANG
328
AC_ARG_WITH(lang-file,
329
AS_HELP_STRING([--with-lang-file=<filename>],
330
[file containing default language setting]),
331
[if test x$withval != x; then
332
AC_MSG_RESULT("System locale will be looked for in file ${withval}.")
335
if test x$withval != x; then
336
LANG_CONFIG_FILE="$withval"
338
LANG_CONFIG_FILE='$(sysconfdir)/sysconfig/i18n'
340
AC_SUBST(LANG_CONFIG_FILE)
343
dnl Whether or not to show locales in the language list that
344
dnl lack translations
346
AC_ARG_WITH(incomplete-locales,
347
AS_HELP_STRING([--with-incomplete-locales=yes|no],
348
[Show incomplete locales in lang list]),,
349
with_incomplete_locales=no)
351
if test x$with_incomplete_locales != xno; then
352
AC_DEFINE(WITH_INCOMPLETE_LOCALES, 1, [Show incomplete locales in lang list])
355
# stropts has been removed from glibc
356
# https://bugzilla.redhat.com/show_bug.cgi?id=436349
357
AC_CHECK_HEADERS(stropts.h)
359
dnl socklen_t may be declared, but not in a "standard" C header location
360
AC_CHECK_HEADERS(sys/socket.h)
361
AC_CHECK_TYPE(socklen_t,,
362
AC_DEFINE(socklen_t, size_t, [Compatibility type]),
363
[AC_INCLUDES_DEFAULT]
364
#ifdef HAVE_SYS_SOCKET_H
365
#include <sys/socket.h>
368
AC_CHECK_HEADERS(sys/sockio.h)
369
AC_CHECK_FUNCS([setresuid setenv unsetenv clearenv])
371
dnl checks needed for Darwin compatibility to linux **environ.
372
AC_CHECK_HEADERS(crt_externs.h)
373
AC_CHECK_FUNCS(_NSGetEnviron)
377
EXTRA_CHOOSER_LIBS=""
379
EXTRA_DYNAMIC_LIBS=""
382
EXTRA_GREETER_LIBS=""
384
AC_CHECK_FUNC(socket,,[
385
AC_CHECK_LIB(socket,socket, [
386
EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lsocket"
387
EXTRA_SLAVE_LIBS="$EXTRA_SLAVE_LIBS -lsocket"
388
EXTRA_CHOOSER_LIBS="$EXTRA_CHOOSER_LIBS -lsocket"
389
EXTRA_XNEST_LIBS="$EXTRA_XNEST_LIBS -lsocket"
390
EXTRA_DYNAMIC_LIBS="$EXTRA_DYNAMIC_LIBS -lsocket"
391
EXTRA_SETUP_LIBS="$EXTRA_SETUP_LIBS -lsocket"
392
EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -lsocket"])])
393
AC_CHECK_FUNC(gethostbyname,,[
394
AC_CHECK_LIB(nsl,gethostbyname, [
395
EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lnsl"
396
EXTRA_SLAVE_LIBS="$EXTRA_SLAVE_LIBS -lnsl"
397
EXTRA_CHOOSER_LIBS="$EXTRA_CHOOSER_LIBS -lnsl"
398
EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -lnsl"])])
399
AC_CHECK_DECL(HOST_NAME_MAX, ,
400
AC_CHECK_DECL(_POSIX_HOST_NAME_MAX,
401
AC_DEFINE(HOST_NAME_MAX, _POSIX_HOST_NAME_MAX, []),
402
AC_DEFINE(HOST_NAME_MAX, 256, [Define to 256 if neither have HOST_NAME_MAX nor _POSIX_HOST_NAME_MAX]),
403
[[#include <limits.h>]]),
404
[[#include <limits.h>]])
405
AC_CHECK_FUNC(sched_yield,[
406
AC_DEFINE(HAVE_SCHED_YIELD, 1, [Define if we have sched yield])],[
407
AC_CHECK_LIB(rt,sched_yield, [
408
AC_DEFINE(HAVE_SCHED_YIELD, 1, [Define if we have sched yield])
409
EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lrt"], [
410
echo "No sched_yield found"])])
411
AC_CHECK_FUNC(inet_aton,,[
412
AC_CHECK_LIB(resolv,inet_aton, [
413
EXTRA_CHOOSER_LIBS="$EXTRA_CHOOSER_LIBS -lresolv"])])
415
dnl ---------------------------------------------------------------------------
416
dnl - Check for mkdtemp
417
dnl ---------------------------------------------------------------------------
419
mkdtemp_missing=false
420
AC_CHECK_FUNC(mkdtemp,
421
[AC_DEFINE([HAVE_MKDTEMP], 1, [Have GlibC function to make temp dirs])],
422
mkdtemp_missing=true)
423
AM_CONDITIONAL(MKDTEMP_MISSING, test x$mkdtemp_missing = xtrue)
425
dnl ---------------------------------------------------------------------------
427
dnl ---------------------------------------------------------------------------
429
AC_MSG_CHECKING([whether to enable IPv6])
431
AS_HELP_STRING([--enable-ipv6],
432
[Enables compilation of IPv6 code @<:@default=no@:>@]),,
435
if test x$enable_ipv6 = xyes; then
437
#include <sys/types.h>
438
#include <sys/socket.h>],[
439
struct sockaddr_storage ss;
440
socket(AF_INET6, SOCK_STREAM, 0)
445
if test x$have_ipv6 = xyes; then
448
AC_CHECK_FUNC(getaddrinfo, have_getaddrinfo=yes)
449
if test x$have_getaddrinfo != xyes; then
450
for lib in bsd socket inet; do
451
AC_CHECK_LIB($lib,getaddrinfo,["LIBS=$LIBS -l$lib";have_getaddrinfo=yes;break])
455
AC_CHECK_FUNC(inet_ntop,have_inet_ntop=yes)
456
if test x$have_inet_ntop != xyes; then
457
for lib in bsd nsl inet; do
458
AC_CHECK_LIB($lib,inet_ntop,["LIBS=$LIBS -l$lib";have_inet_ntop=yes;break])
462
if test x$have_getaddrinfo = xyes; then
463
if test x$have_inet_ntop = xyes; then
465
AC_DEFINE(ENABLE_IPV6, 1, [Define if we have ipv6])
466
AC_MSG_RESULT($have_ipv6)
469
AC_MSG_RESULT($have_ipv6)
477
dnl ---------------------------------------------------------------------------
478
dnl - Check for GDM user
479
dnl ---------------------------------------------------------------------------
483
AS_HELP_STRING([--with-user=<username>],
484
[specify gdm's user name]))
486
if test x$withval != x; then
487
GDM_USERNAME="$withval"
491
AC_SUBST(GDM_USERNAME)
492
AC_DEFINE_UNQUOTED([GDM_USERNAME], "$GDM_USERNAME", [User to use])
494
dnl ---------------------------------------------------------------------------
495
dnl - Check for GDM group
496
dnl ---------------------------------------------------------------------------
500
AS_HELP_STRING([--with-group=<username>],
501
[specify gdm's user name]))
503
if test x$withval != x; then
504
GDM_GROUPNAME="$withval"
508
AC_SUBST(GDM_GROUPNAME)
509
AC_DEFINE_UNQUOTED([GDM_GROUPNAME], "$GDM_GROUPNAME", [Group to use])
512
dnl ---------------------------------------------------------------------------
513
dnl - Check for PAM stuff
514
dnl ---------------------------------------------------------------------------
518
AC_ARG_WITH(pam-prefix,
519
AS_HELP_STRING([--with-pam-prefix=<prefix>],
520
[specify where pam files go]),
521
[if test x$withval != x; then
522
AC_MSG_RESULT("PAM files will be installed in prefix ${withval}.")
525
if test x$withval != x; then
526
PAM_PREFIX="$withval"
528
PAM_PREFIX='${sysconfdir}'
533
AC_CHECK_LIB(pam, pam_start, have_pam=yes)
535
if test "x$have_pam" = "xyes"; then
536
PAM_LIBS="${PAM_LIBS} -lpam"
538
AC_MSG_ERROR("PAM libraries not found")
543
AC_CHECK_HEADERS([security/pam_modutil.h security/pam_ext.h])
544
AC_CHECK_LIB(pam, pam_syslog, [AC_DEFINE(HAVE_PAM_SYSLOG, [], [Define to 1 if you have the pam_syslog function])])
546
dnl test whether struct pam_message is const (Linux) or not (Sun)
547
if test "x$have_pam" = "xyes"; then
548
pam_appl_h="$ac_pam_includes/security/pam_appl.h"
549
AC_MSG_CHECKING(for const pam_message)
550
AC_EGREP_HEADER([struct pam_message],
552
[ AC_EGREP_HEADER([const struct pam_message],
554
[AC_MSG_RESULT(["const: Linux-type PAM"]) ],
555
[AC_MSG_RESULT(["nonconst: Sun-type PAM"])
556
AC_DEFINE(PAM_MESSAGE_NONCONST, 1, [Define if your PAM support takes non-const arguments (Solaris)])]
558
[AC_MSG_RESULT(["not found - assume const, Linux-type PAM"])]
562
dnl Check if we can use the setpenv function to add specialvariable
563
dnl to the environment (such as the /etc/environment file under AIX)
566
#ifdef HAVE_USERSEC_H
570
return (setpenv(NULL, (PENV_INIT | PENV_NOEXEC), NULL, NULL));
575
if test x$can_use_setpenv = xyes ; then
576
AC_DEFINE(CAN_USE_SETPENV,,[Define this variable if the code to use
577
the setpenv function can be compiled and used])
581
# Can we use BSD's setusercontext
583
AC_CHECK_HEADER(login_cap.h, [
584
EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lutil"
585
AC_DEFINE(HAVE_LOGINCAP, 1, [Define if we have logincap])])
588
# Check for sys/sockio.h
590
AC_CHECK_HEADERS(sys/sockio.h, [
591
AC_DEFINE(HAVE_SYS_SOCKIO_H, 1, [Define if we have sys/sockio.h])])
596
AC_CHECK_HEADERS(libgen.h, [
597
AC_DEFINE(HAVE_LIBGEN_H, 1, [Define if we have libgen.h])])
600
dnl ---------------------------------------------------------------------------
601
dnl - Check for POSIX version of getpwnam_r
602
dnl ---------------------------------------------------------------------------
604
# Checking for a posix version of getpwnam_r
605
# if we are cross compiling and can not run the test
606
# assume getpwnam_r is the posix version
607
# it is up to the person cross compiling to change
608
# this behavior if desired
611
AC_CACHE_CHECK([for posix getpwnam_r],
612
ac_cv_func_posix_getpwnam_r,
613
[AC_RUN_IFELSE([AC_LANG_PROGRAM(
615
#define _POSIX_PTHREAD_SEMANTICS
621
struct passwd pwd, *pwptr = &pwd;
624
error = getpwnam_r ("", &pwd, buffer,
625
sizeof (buffer), &pwptr);
626
return (error < 0 && errno == ENOSYS)
629
[ac_cv_func_posix_getpwnam_r=yes],
630
[ac_cv_func_posix_getpwnam_r=no],
631
[ac_cv_func_posix_getpwnam_r=yes]
635
if test "$ac_cv_func_posix_getpwnam_r" = yes; then
636
AC_DEFINE(HAVE_POSIX_GETPWNAM_R,1,
637
[Have POSIX function getpwnam_r])
639
AC_CACHE_CHECK([for nonposix getpwnam_r],
640
ac_cv_func_nonposix_getpwnam_r,
641
[AC_TRY_LINK([#include <pwd.h>],
644
getpwnam_r ("", &pwd, buffer,
646
[ac_cv_func_nonposix_getpwnam_r=yes],
647
[ac_cv_func_nonposix_getpwnam_r=no])])
648
if test "$ac_cv_func_nonposix_getpwnam_r" = yes; then
649
AC_DEFINE(HAVE_NONPOSIX_GETPWNAM_R,1,
650
[Have non-POSIX function getpwnam_r])
655
dnl ---------------------------------------------------------------------------
656
dnl - Check for utmp stuff
657
dnl ---------------------------------------------------------------------------
659
AC_CHECK_HEADERS(utmp.h utmpx.h libutil.h sys/param.h)
660
AC_CHECK_FUNCS([getutxent updwtmpx updwtmp])
661
AC_CHECK_LIB(util, login, [
662
AC_DEFINE(HAVE_LOGIN, 1, [Define if have login])
663
EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lutil" ])
664
AC_CHECK_LIB(util, logout, [
665
AC_DEFINE(HAVE_LOGOUT, 1, [Define if have logout])
666
EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lutil" ])
667
AC_CHECK_LIB(util, logwtmp, [
668
AC_DEFINE(HAVE_LOGWTMP, 1, [Define if have logwtmp])
669
EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lutil" ])
672
AC_MSG_CHECKING(if utmpx structure has ut_syslen field)
674
#include <utmpx.h>],[
676
record.ut_syslen = sizeof (record.ut_host);
681
if test x$have_ut_syslen = xyes; then
682
AC_DEFINE(HAVE_UT_SYSLEN, 1, [Define if have ut_syslen record])
684
AC_MSG_RESULT($have_ut_syslen)
687
dnl ---------------------------------------------------------------------------
688
dnl - Check for Xdmcp
689
dnl ---------------------------------------------------------------------------
692
if test x$with_xdmcp != xno ; then
693
xdmcp_save_CPPFLAGS="$CPPFLAGS"
694
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
695
AC_CHECK_HEADER(X11/Xdmcp.h, [
696
AC_CHECK_LIB(Xdmcp, XdmcpFlush, [
697
AC_DEFINE(HAVE_LIBXDMCP, 1, [Define if have libxdmcp])
699
XDMCP_SUPPORT=yes],,[$X_LIBS -lX11 $X_EXTRA_LIBS])
700
],,[#include <X11/Xproto.h>])
702
if test x$with_xdmcp = xyes -a "x$XDMCP_SUPPORT" = "x" ; then
703
AC_MSG_ERROR(XDMCP support requested but XDMCP libraries not found)
705
CPPFLAGS="$xdmcp_save_CPPFLAGS"
709
if test "x$XDMCP_SUPPORT" = "xyes" ; then
710
AM_CONDITIONAL(XDMCP_SUPPORT, true)
711
GDMCHOOSER=gdmchooser
713
# No need for TCP Wrappers in case XDMCP is disabled
714
if test x$with_tcp_wrappers != xno ; then
715
echo "TCP wrappers not needed if XDMCP is not enabled"
718
AM_CONDITIONAL(XDMCP_SUPPORT, false)
723
dnl ---------------------------------------------------------------------------
725
dnl ---------------------------------------------------------------------------
729
*solaris*) os_solaris=yes
732
AM_CONDITIONAL(OS_SOLARIS, test x$os_solaris = xyes)
734
dnl ---------------------------------------------------------------------------
735
dnl - Check for TCP Wrappers for XDMCP access control
736
dnl ---------------------------------------------------------------------------
738
if test x$with_tcp_wrappers = xno ; then
739
echo "TCP wrappers disabled"
742
if test x$os_solaris = xyes ; then
743
if test -f /usr/lib/libwrap.so; then
744
LIBWRAP_PATH=/usr/lib/libwrap.so
745
echo "Found $LIBWRAP_PATH" 1>&5
746
nm $LIBWRAP_PATH | grep 'T setenv' && LIBWRAP_PATH=""
749
if test -z "$LIBWRAP_PATH"; then
750
if test -f /usr/sfw/lib/libwrap.so; then
751
LIBWRAP_PATH=/usr/sfw/lib/libwrap.so
752
echo "Found $LIBWRAP_PATH" 1>&5
753
nm $LIBWRAP_PATH | grep 'T setenv' && LIBWRAP_PATH=""
757
if test -z "$LIBWRAP_PATH"; then
758
echo "*********************************************************"
759
echo " You have a broken TCP wrappers library (setenv included)"
760
echo " Please get the latest TCP wrappers package from your OS"
761
echo " vendor, or recompile TCP wrappers to not include a"
762
echo " setenv() implementation."
764
echo "Not using TCP wrappers after all."
765
echo "*********************************************************"
767
LIBWRAP_LIBS="-L/usr/sfw/lib -R/usr/sfw/lib -lwrap"
768
AC_DEFINE(HAVE_TCPWRAPPERS, 1, [Define if have tcp wrappers])
771
AC_CHECK_LIB([wrap], [hosts_ctl], [
772
LIBWRAP_LIBS="-lwrap"
774
AC_DEFINE(HAVE_TCPWRAPPERS, 1, [Define if have tcp wrappers])])
777
AC_MSG_CHECKING([whether to use TCP wrappers])
778
if test -n "$LIBWRAP_PATH"; then
784
dnl find out if we need -lnsl or whatever
786
if test -n "$LIBWRAP_PATH"; then
787
AC_MSG_CHECKING(whether -lwrap also requires -lnsl)
789
LIBS="$EXTRA_DAEMON_LIBS $LIBS $LIBWRAP_LIBS"
792
int allow_severity, deny_severity;
793
], [return hosts_access;], ,[
799
int allow_severity, deny_severity;
800
], [return hosts_access;], LIB_NSL="-lnsl",
805
if test -n "$LIB_NSL"; then
807
EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS $LIB_NSL"
814
AC_SUBST(LIBWRAP_LIBS)
817
dnl ---------------------------------------------------------------------------
818
dnl - Check for XFT2 (for gdm-settings-daemon)
819
dnl ---------------------------------------------------------------------------
821
if $PKG_CONFIG --exists xft ; then
822
AC_DEFINE(HAVE_XFT2,,[Define if Xft functionality is available])
826
dnl ---------------------------------------------------------------------------
827
dnl - Check for Xinput
828
dnl ---------------------------------------------------------------------------
831
AC_CHECK_LIB(Xi, XOpenDevice, XINPUT_LIBS=-lXi)
832
if test "x$XINPUT_LIBS" = x; then
834
for xinputpath in $x_libraries /usr/X11R6/lib /usr/openwin/lib; do
835
LIBS="-L$xinputpath -lXi"
836
if test x$os_solaris = xyes ; then
837
XINPUT_RPATH_FLAGS="-R$xinputpath"
839
AC_MSG_CHECKING(for -lXi in $xinputpath)
840
AC_TRY_LINK([], [XOpenDevice()], [
842
XINPUT_LIBS="$XINPUT_RPATH_FLAGS -L$xinputpath -lXi"
844
break],[AC_MSG_RESULT(no)])
846
if test "x$XINPUT_LIBS" = x; then
847
AC_MSG_ERROR(Couldn't find the XInput library. Check config.log for details)
850
AC_CHECK_HEADER(X11/extensions/XInput.h, have_xinput=yes)
851
if test "x$have_xinput" = xyes; then
852
AC_DEFINE(HAVE_XINPUT, 1, [Define if have xinput])
853
X_EXTRA_LIBS="$X_EXTRA_LIBS $XINPUT_LIBS"
857
dnl ---------------------------------------------------------------------------
858
dnl - Check for Xinerama
859
dnl ---------------------------------------------------------------------------
861
# X11 Xinerama extension
862
# Check for Xinerama extension (Solaris impl or Xfree impl)
863
xinerama_save_cppflags="$CPPFLAGS"
864
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
866
ALL_X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
868
if test ! x$with_xinerama = xno ; then
870
use_xfree_xinerama=yes
871
AC_CHECK_LIB(Xinerama, XineramaQueryExtension,
872
[AC_CHECK_HEADER(X11/extensions/Xinerama.h,
873
if test -z "`echo $ALL_X_LIBS | grep "\-lXext" 2> /dev/null`"; then
874
X_EXTRA_LIBS="-lXext $X_EXTRA_LIBS"
876
AC_DEFINE(HAVE_XFREE_XINERAMA, 1, [Define if have xfree xinerama])
877
AC_DEFINE(HAVE_XINERAMA, 1, [Define if have xinerama])
878
XINERAMA_LIBS="-lXinerama"
879
XINERAMA_SUPPORT=yes,
880
use_xfree_xinerama=no,
881
[#include <X11/Xlib.h>])],
882
use_xfree_xinerama=no, -lXext $ALL_X_LIBS)
883
AC_MSG_CHECKING(for Xinerama support on XFree86)
884
AC_MSG_RESULT($use_xfree_xinerama);
886
if test x$use_xfree_xinerama = xno ; then
887
if test x$os_solaris = xyes ; then
889
use_solaris_xinerama=yes
890
AC_CHECK_LIB(Xext, XineramaGetInfo,
891
use_solaris_xinerama=yes, use_solaris_xinerama=no,
893
if test "x$use_solaris_xinerama" = "xyes"; then
894
AC_CHECK_HEADER(X11/extensions/xinerama.h,
895
if test -z "`echo $ALL_X_LIBS | grep "\-lXext" 2> /dev/null`"; then
896
X_EXTRA_LIBS="-lXext $X_EXTRA_LIBS"
898
AC_DEFINE(HAVE_SOLARIS_XINERAMA, 1, [Define if have Solaris xinerama])
899
AC_DEFINE(HAVE_XINERAMA, 1, [Define if have xinerama])
901
XINERAMA_SUPPORT=yes,
902
use_solaris_xinerama=no,
903
[#include <X11/Xlib.h>])
905
AC_MSG_CHECKING(for Xinerama support on Solaris)
906
AC_MSG_RESULT($use_solaris_xinerama);
911
AC_SUBST(XINERAMA_LIBS)
912
CPPFLAGS="$xinerama_save_cppflags"
914
dnl ---------------------------------------------------------------------------
915
dnl - Check for ConsoleKit support
916
dnl ---------------------------------------------------------------------------
919
if test "x$with_console_kit" != "xno" ; then
921
AC_DEFINE(WITH_CONSOLE_KIT, 1, [Define to enable ConsoleKit support])
923
AM_CONDITIONAL(WITH_CONSOLE_KIT, test x$use_console_kit = xyes)
924
AC_SUBST(WITH_CONSOLE_KIT)
926
dnl ---------------------------------------------------------------------------
927
dnl - Check for systemd support
928
dnl ---------------------------------------------------------------------------
930
PKG_CHECK_MODULES(SYSTEMD,
931
[libsystemd-login >= 186 libsystemd-daemon],
932
[have_systemd=yes], [have_systemd=no])
934
if test "x$with_systemd" = "xauto" ; then
935
if test x$have_systemd = xno ; then
941
use_systemd="$with_systemd"
944
if test "x$use_systemd" != "xno" ; then
945
if test "x$have_systemd" = "xno"; then
946
AC_MSG_ERROR([Systemd support explicitly required, but systemd not found])
949
AC_DEFINE(WITH_SYSTEMD, 1, [Define to enable systemd support])
951
AC_SUBST(SYSTEMD_CFLAGS)
952
AC_SUBST(SYSTEMD_LIBS)
954
AC_PATH_PROG(SYSTEMD_X_SERVER, systemd-multi-seat-x, [/lib/systemd/systemd-multi-seat-x], [/lib/systemd:/usr/lib/systemd:$PATH])
955
AC_SUBST(SYSTEMD_X_SERVER)
956
AC_DEFINE_UNQUOTED(SYSTEMD_X_SERVER,"$SYSTEMD_X_SERVER",[Path to systemd X server wrapper])
958
if test "x$with_systemdsystemunitdir" != xno; then
959
AC_SUBST(SYSTEMD_SYSTEM_UNIT_DIR, [$with_systemdsystemunitdir])
961
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno -a "x$use_systemd" = "xyes" ])
963
dnl ---------------------------------------------------------------------------
964
dnl - Check for plymouth support
965
dnl ---------------------------------------------------------------------------
966
PKG_CHECK_MODULES(PLYMOUTH,
968
[have_plymouth=yes], [have_plymouth=no])
970
if test "x$with_plymouth" = "xauto" ; then
971
if test x$have_plymouth = xno ; then
977
use_plymouth="$with_plymouth"
980
if test "x$use_plymouth" != "xno" ; then
981
if test "x$have_plymouth" = "xno"; then
982
AC_MSG_ERROR([Plymouth support explicitly required, but plymouth not found])
985
AC_DEFINE(WITH_PLYMOUTH, 1, [Define to enable plymouth support])
987
AC_SUBST(PLYMOUTH_CFLAGS)
988
AC_SUBST(PLYMOUTH_LIBS)
990
dnl ---------------------------------------------------------------------------
991
dnl - Check for D-Bus
992
dnl ---------------------------------------------------------------------------
994
dnl - Are we specifying a different dbus root ?
995
AC_ARG_WITH(dbus-sys,
996
AS_HELP_STRING([--with-dbus-sys=<dir>],
997
[where D-BUS system.d directory is]))
998
AC_ARG_WITH(dbus-services,
999
AS_HELP_STRING([--with-dbus-services=<dir>],
1000
[where D-BUS services directory is]))
1002
if ! test -z "$with_dbus_sys" ; then
1003
DBUS_SYS_DIR="$with_dbus_sys"
1005
DBUS_SYS_DIR="$sysconfdir/dbus-1/system.d"
1007
AC_SUBST(DBUS_SYS_DIR)
1009
dnl ---------------------------------------------------------------------------
1010
dnl - Check for ISO Codes
1011
dnl ---------------------------------------------------------------------------
1013
AC_MSG_CHECKING([whether iso-codes has iso-639 domain])
1014
if $PKG_CONFIG --variable=domains iso-codes | grep 639 >/dev/null ; then
1015
AC_MSG_RESULT([yes])
1019
AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["`$PKG_CONFIG --variable=prefix iso-codes`"],[ISO codes prefix])
1023
dnl ---------------------------------------------------------------------------
1025
dnl ---------------------------------------------------------------------------
1027
msg_rbac_shutdown=no
1028
AC_ARG_ENABLE(rbac-shutdown,
1029
AC_HELP_STRING([--enable-rbac-shutdown=<key>],
1030
[Build with RBAC support specifying shutdown/reboot RBAC authentication key]),
1031
enable_rbac_shutdown=$enableval,enable_rbac_shutdown=no)
1033
if test "x$enable_rbac_shutdown" != "xno"; then
1034
RBAC_LIBS="-lsecdb -lsocket -lnsl"
1035
AC_DEFINE(ENABLE_RBAC_SHUTDOWN, [], [Set if we build with RBAC support])
1036
AC_DEFINE_UNQUOTED(RBAC_SHUTDOWN_KEY, "$enable_rbac_shutdown", [Set if we build with RBAC support])
1037
msg_rbac_shutdown="yes, using key $enable_rbac_shutdown"
1042
dnl ---------------------------------------------------------------------------
1043
dnl check for backtrace support
1044
dnl ---------------------------------------------------------------------------
1046
AC_CHECK_HEADERS(execinfo.h)
1048
dnl ---------------------------------------------------------------------------
1049
dnl check for process control
1050
dnl ---------------------------------------------------------------------------
1052
AC_CHECK_HEADERS(sys/prctl.h)
1054
dnl ---------------------------------------------------------------------------
1055
dnl - Define some variables to represent the directories we use.
1056
dnl ---------------------------------------------------------------------------
1058
AC_SUBST(authdir, ${localstatedir}/gdm)
1059
AC_SUBST(gdmlocaledir, ${gdmconfdir})
1060
AC_SUBST(pixmapdir, ${datadir}/pixmaps)
1062
AC_ARG_WITH(log-dir,
1063
AS_HELP_STRING([--with-log-dir=<file>],
1066
if ! test -z "$with_log_dir"; then
1067
GDM_LOG_DIR=$with_log_dir
1069
GDM_LOG_DIR=/var/log/gdm
1071
AC_SUBST(logdir, $GDM_LOG_DIR)
1074
AC_ARG_WITH(at-bindir,
1075
AS_HELP_STRING([--with-at-bindir=<PATH>]
1076
[PATH to Accessible Technology programs @<:@default=BINDIR@:>@]))
1078
if test x$withval != x; then
1079
AT_BINDIR="$withval"
1081
AT_BINDIR='${bindir}'
1087
AC_ARG_WITH(defaults_conf,
1088
AS_HELP_STRING([--with-defaults-conf=<FILENAME>],
1089
[FILENAME to give to defaults file @<:@default=DATADIR/gdm/defaults.conf@:>@]))
1091
if test x$withval != x; then
1092
GDM_DEFAULTS_CONF="$withval"
1094
GDM_DEFAULTS_CONF='${datadir}/gdm/defaults.conf'
1097
AC_SUBST(GDM_DEFAULTS_CONF)
1100
AC_ARG_WITH(custom_conf,
1101
AS_HELP_STRING([--with-custom-conf=<FILENAME>],
1102
[FILENAME to give to custom configuration file @<:@default=GDMCONFDIR/custom.conf@:>@]))
1104
if test x$withval != x; then
1105
GDM_CUSTOM_CONF="$withval"
1107
GDM_CUSTOM_CONF='${gdmconfdir}/custom.conf'
1110
AC_SUBST(GDM_CUSTOM_CONF)
1111
AC_SUBST(GDM_OLD_CONF, '${gdmconfdir}/gdm.conf')
1113
AC_ARG_WITH(consolekit-directory,
1114
[AC_HELP_STRING([--with-consolekit-directory],
1115
[Specify the directory of ck-get-x11-display-device @<:@default=libexecdir@:>@])],,
1116
[with_consolekit_directory="\${libexecdir}"])
1118
CONSOLEKIT_DIR=$with_consolekit_directory
1119
AC_SUBST(CONSOLEKIT_DIR)
1121
AC_ARG_WITH(check-accelerated-directory,
1122
[AC_HELP_STRING([--with-check-accelerated-directory],
1123
[Specify the directory of gnome-session-check-accelerated @<:@default=libexecdir@:>@])],,
1124
[with_check_accelerated_directory="\${libexecdir}"])
1126
CHECK_ACCELERATED_DIR=$with_check_accelerated_directory
1127
AC_SUBST(CHECK_ACCELERATED_DIR)
1129
AC_ARG_WITH(authentication-agent-directory,
1130
[AC_HELP_STRING([--with-authentication-agent-directory],
1131
[Specify the directory of polkit-gnome-authentication-agent-1 @<:@default=libexecdir@:>@])],,
1132
[with_authentication_agent_directory="\${libexecdir}"])
1134
AUTHENTICATION_AGENT_DIR=$with_authentication_agent_directory
1135
AC_SUBST(AUTHENTICATION_AGENT_DIR)
1137
dnl ---------------------------------------------------------------------------
1138
dnl - Check for XEvIE extension support
1139
dnl ---------------------------------------------------------------------------
1142
AS_HELP_STRING([--with-xevie],
1143
[Add XEvIE Xserver extension support @<:@default=no@:>@]),,
1146
if test x$with_xevie != xno ; then
1147
XEVIE_OPTION="+extension XEVIE"
1152
AC_SUBST(XEVIE_OPTION)
1153
AC_DEFINE_UNQUOTED(XEVIE_OPTION,"$XEVIE_OPTION",[Define xevie option])
1155
dnl ---------------------------------------------------------------------------
1156
dnl - Check for audit framework
1157
dnl ---------------------------------------------------------------------------
1159
# Check for Solaris auditing API
1160
# Note, Solaris auditing not supported for Solaris 9 or earlier and
1161
# should not be used on these versions of Solaris if auditing is
1162
# required. Solaris auditing is only supported on systems that
1163
# support the ADT_USER enumeration value.
1165
AC_MSG_CHECKING(for Solaris auditing API)
1166
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1167
#include <bsm/adt.h>
1168
adt_user_context = ADT_USER;
1169
]], [[]])], [ check_sun_audit=yes ], [ check_sun_audit=no ])
1171
if test ${check_sun_audit} = yes
1173
AC_DEFINE(HAVE_ADT, 1, [Define if have adt])
1174
PAM_LIBS="$PAM_LIBS -lbsm"
1179
AM_CONDITIONAL(HAVE_ADT, test x$check_sun_audit = xyes)
1181
# Check for Linux auditing API
1183
AC_ARG_WITH(libaudit,
1184
AS_HELP_STRING([--with-libaudit],
1185
[Add Linux audit support @<:@default=auto@:>@]),,
1188
# libaudit detection
1189
if test x$with_libaudit = xno ; then
1192
# See if we have audit daemon library
1193
AC_CHECK_LIB(audit, audit_log_user_message,
1194
have_libaudit=yes, have_libaudit=no)
1197
AM_CONDITIONAL(HAVE_LIBAUDIT, test x$have_libaudit = xyes)
1199
if test x$have_libaudit = xyes ; then
1200
PAM_LIBS="$PAM_LIBS -laudit"
1201
AC_DEFINE(HAVE_LIBAUDIT,1,[linux audit support])
1205
# Subst the extra libs
1207
AC_SUBST(EXTRA_DAEMON_LIBS)
1208
AC_SUBST(EXTRA_SLAVE_LIBS)
1209
AC_SUBST(EXTRA_CHOOSER_LIBS)
1210
AC_SUBST(EXTRA_XNEST_LIBS)
1211
AC_SUBST(EXTRA_DYNAMIC_LIBS)
1212
AC_SUBST(EXTRA_SETUP_LIBS)
1213
AC_SUBST(EXTRA_TEST_LIBS)
1214
AC_SUBST(EXTRA_GREETER_LIBS)
1216
# Check for Solaris logindevperm support
1218
AC_CHECK_LIB(devinfo, di_devperm_login, [
1219
AC_DEFINE(HAVE_LOGINDEVPERM)
1220
PAM_LIBS="$PAM_LIBS -ldevinfo" ])
1222
dnl ---------------------------------------------------------------------------
1223
dnl - Check for X Server location
1224
dnl ---------------------------------------------------------------------------
1226
# First check with "! -h" for /usr/X11R6 and /usr/X11 since they often
1227
# symlink to each other, and configure should use the more stable
1228
# location (the real directory) if possible.
1230
# On Solaris, the /usr/bin/Xserver script is used to decide whether to
1231
# use Xsun or Xorg, so this is used on Solaris.
1233
# When testing for /usr/X11R6, first check with "! -h" for /usr/X11R6
1234
# and /usr/X11 since they often symlink to each other, and configure
1235
# should use the more stable location (the real directory) if possible.
1237
if test -x /usr/X11/bin/Xserver; then
1238
X_PATH="/usr/X11/bin"
1239
X_SERVER_PATH="/usr/X11/bin"
1240
X_SERVER="/usr/X11/bin/Xserver"
1241
elif test ! -h /usr/X11R6 -a -x /usr/X11R6/bin/X; then
1242
X_PATH="/usr/X11R6/bin"
1243
X_SERVER_PATH="/usr/X11R6/bin"
1244
X_SERVER="/usr/X11R6/bin/X"
1245
elif test ! -h /usr/X11 -a -x /usr/X11/bin/X; then
1246
X_PATH="/usr/X11/bin"
1247
X_SERVER_PATH="/usr/X11/bin"
1248
X_SERVER="/usr/X11/bin/X"
1249
elif test -x /usr/X11R6/bin/X; then
1250
X_PATH="/usr/X11R6/bin"
1251
X_SERVER_PATH="/usr/X11R6/bin"
1252
X_SERVER="/usr/X11R6/bin/X"
1253
elif test -x /usr/bin/Xorg; then
1255
X_SERVER_PATH="/usr/bin"
1256
X_SERVER="/usr/bin/Xorg"
1257
elif test -x /usr/X11/bin/X; then
1258
X_PATH="/usr/X11/bin"
1259
X_SERVER_PATH="/usr/X11/bin"
1260
X_SERVER="/usr/X11/bin/X"
1261
elif test -x /usr/openwin/bin/Xsun; then
1262
# Do not add /usr/openwin/bin here because on Solaris you need
1263
# /usr/openwin/bin in your PATH even if you are using the Xorg
1264
# Xserver. We add this to the path below.
1265
X_PATH="/usr/openwin/bin"
1266
X_SERVER_PATH="/usr/openwin/bin"
1267
X_SERVER="/usr/openwin/bin/Xsun"
1268
elif test -x /opt/X11R6/bin/X; then
1269
X_PATH="/opt/X11R6/bin"
1270
X_SERVER_PATH="/opt/X11R6/bin"
1271
X_SERVER="/opt/X11R6/bin/X"
1272
elif test -x /usr/bin/X; then
1274
X_SERVER_PATH="/usr/bin"
1275
X_SERVER="/usr/bin/X"
1277
# what to do, what to do, this is wrong, but this just sets the
1278
# defaults, perhaps this user is cross compiling or some such
1279
X_PATH="/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin"
1280
X_SERVER_PATH="/usr/bin"
1281
X_SERVER="/usr/bin/X"
1284
dnl ---------------------------------------------------------------------------
1285
dnl - Check for Xnest / Xephyr support
1286
dnl ---------------------------------------------------------------------------
1288
# Use Xephyr if it is available. It works better than Xnest since Xephyr
1289
# supports the Xserver extensions, even if on a remote machine.
1291
X_XNEST_UNSCALED_FONTPATH="true"
1292
if test -x $X_SERVER_PATH/Xephyr; then
1293
X_XNEST_CMD="$X_SERVER_PATH/Xephyr"
1294
X_XNEST_CONFIG_OPTIONS="-audit 0"
1296
if test -x /usr/openwin/bin/Xnest; then
1297
# If on Solaris, Xnest is only shipped with the Xsun Xserver, so
1300
X_XNEST_CMD="/usr/openwin/bin/Xnest"
1301
X_XNEST_CONFIG_OPTIONS="-audit 0 -name Xnest -pn"
1302
X_XNEST_UNSCALED_FONTPATH="false"
1304
if test -x $X_SERVER_PATH/Xnest; then
1305
X_XNEST_CMD="$X_SERVER_PATH/Xnest"
1306
X_XNEST_CONFIG_OPTIONS="-audit 0 -name Xnest"
1311
dnl ---------------------------------------------------------------------------
1313
dnl ---------------------------------------------------------------------------
1315
AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
1316
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
1317
AS_AC_EXPAND(DATADIR, $datadir)
1318
AS_AC_EXPAND(BINDIR, $bindir)
1319
AS_AC_EXPAND(SBINDIR, $sbindir)
1320
AS_AC_EXPAND(LIBDIR, $libdir)
1321
AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
1323
dnl ---------------------------------------------------------------------------
1325
dnl ---------------------------------------------------------------------------
1327
AC_ARG_WITH(pid-file,
1328
AS_HELP_STRING([--with-pid-file=<file>],
1331
if ! test -z "$with_pid_file"; then
1332
GDM_PID_FILE=$with_pid_file
1334
GDM_PID_FILE=/var/run/gdm.pid
1337
AC_SUBST(GDM_PID_FILE)
1338
AC_DEFINE_UNQUOTED(GDM_PID_FILE, "$GDM_PID_FILE", [pid file])
1340
dnl ---------------------------------------------------------------------------
1341
dnl - GREETER WORKING DIRECTORY
1342
dnl ---------------------------------------------------------------------------
1344
AC_ARG_WITH(working-directory,
1345
AS_HELP_STRING([--with-working-dir=<dir>],
1346
[working directory]))
1348
if ! test -z "$with_working_directory"; then
1349
GDM_WORKING_DIR=$with_working_directory
1351
GDM_WORKING_DIR=${localstatedir}/lib/gdm
1354
AC_SUBST(GDM_WORKING_DIR)
1356
dnl ---------------------------------------------------------------------------
1357
dnl - Directory for X auth cookies
1358
dnl ---------------------------------------------------------------------------
1360
AC_ARG_WITH(xauth-dir,
1361
AS_HELP_STRING([--with-xauth-dir=<dir>],
1362
[xauth cookie directory]))
1364
if ! test -z "$with_xauth_dir"; then
1365
GDM_XAUTH_DIR=$with_xauth_dir
1367
GDM_XAUTH_DIR=${localstatedir}/run/gdm
1370
AC_SUBST(GDM_XAUTH_DIR)
1372
dnl ---------------------------------------------------------------------------
1373
dnl - Directory for greeter screenshot
1374
dnl ---------------------------------------------------------------------------
1376
AC_ARG_WITH(screenshot-dir,
1377
AS_HELP_STRING([--with-screenshot-dir=<dir>],
1378
[directory to store greeter screenshot]))
1380
if ! test -z "$with_screenshot_dir"; then
1381
GDM_SCREENSHOT_DIR=$with_screenshot_dir
1383
GDM_SCREENSHOT_DIR=${localstatedir}/run/gdm/greeter
1386
AC_SUBST(GDM_SCREENSHOT_DIR)
1388
dnl ---------------------------------------------------------------------------
1389
dnl - Directory for simple greeter extensions
1390
dnl ---------------------------------------------------------------------------
1391
GDM_SIMPLE_GREETER_PLUGINS_DIR=${libdir}/gdm/simple-greeter/extensions
1392
AC_SUBST(GDM_SIMPLE_GREETER_PLUGINS_DIR)
1394
GDM_SIMPLE_GREETER_EXTENSIONS_DATA_DIR=${datadir}/gdm/simple-greeter/extensions
1395
AC_SUBST(GDM_SIMPLE_GREETER_EXTENSIONS_DATA_DIR)
1397
dnl ---------------------------------------------------------------------------
1399
dnl ---------------------------------------------------------------------------
1402
# Turn on the additional warnings last, so -Werror doesn't affect other tests.
1404
AC_ARG_ENABLE(more-warnings,
1405
AS_HELP_STRING([--enable-more-warnings],
1406
[Maximum compiler warnings]),
1407
set_more_warnings="$enableval",[
1408
if test -d $srcdir/.git; then
1409
set_more_warnings=yes
1411
set_more_warnings=no
1414
AC_MSG_CHECKING(for more warnings)
1415
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
1419
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
1420
-Wnested-externs -Wpointer-arith \
1421
-Wcast-align -Wsign-compare -Wp,-D_FORTIFY_SOURCE=2 \
1424
for option in -Wno-strict-aliasing -Wno-sign-compare; do
1425
SAVE_CFLAGS="$CFLAGS"
1426
CFLAGS="$CFLAGS $option"
1427
AC_MSG_CHECKING([whether gcc understands $option])
1428
AC_TRY_COMPILE([], [],
1431
if test $has_option = no; then
1432
CFLAGS="$SAVE_CFLAGS"
1434
AC_MSG_RESULT($has_option)
1446
AC_ARG_ENABLE(debug,
1447
AS_HELP_STRING([--enable-debug],
1448
[turn on debugging]),,
1451
if test "$enable_debug" = "yes"; then
1452
DEBUG_CFLAGS="-DG_ENABLE_DEBUG"
1454
if test "x$enable_debug" = "xno"; then
1455
DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
1460
AC_SUBST(DEBUG_CFLAGS)
1465
AC_ARG_ENABLE(profiling,
1466
AS_HELP_STRING([--enable-profiling],
1467
[turn on profiling]),,
1468
enable_profiling=yes)
1470
if test "$enable_profiling" = "yes"; then
1471
AC_DEFINE(ENABLE_PROFILING,1,[enable profiling])
1475
# Set SHELL to use in scripts.
1477
if test x$os_solaris = xyes ; then
1478
XSESSION_SHELL=/bin/ksh
1480
XSESSION_SHELL=/bin/sh
1484
# Set VT to use for initial server
1486
AC_ARG_WITH(initial-vt,
1487
AS_HELP_STRING([--with-initial-vt=<nr>],
1488
[Initial virtual terminal to use]))
1489
if ! test -z "$with_initial_vt"; then
1490
GDM_INITIAL_VT="$with_initial_vt"
1494
AC_SUBST(GDM_INITIAL_VT)
1495
AC_DEFINE_UNQUOTED(GDM_INITIAL_VT, "$GDM_INITIAL_VT", [Initial Virtual Terminal])
1497
# Set configuration choices.
1499
AC_SUBST(XSESSION_SHELL)
1500
AC_DEFINE_UNQUOTED(XSESSION_SHELL,"$XSESSION_SHELL",[xsession shell])
1501
AC_SUBST(SOUND_PROGRAM)
1502
AC_DEFINE_UNQUOTED(SOUND_PROGRAM,"$SOUND_PROGRAM",[])
1506
AC_SUBST(X_SERVER_PATH)
1507
AC_DEFINE_UNQUOTED(X_SERVER,"$X_SERVER",[])
1508
AC_DEFINE_UNQUOTED(X_SERVER_PATH,"$X_SERVER_PATH",[])
1510
AC_SUBST(X_XNEST_CMD)
1511
AC_SUBST(X_XNEST_CONFIG_OPTIONS)
1512
AC_SUBST(X_XNEST_UNSCALED_FONTPATH)
1513
AC_DEFINE_UNQUOTED(X_XNEST_CMD,"$X_XNEST_CMD",[])
1514
AC_DEFINE_UNQUOTED(X_XNEST_CONFIG_OPTIONS,"$X_XNEST_CONFIG_OPTIONS",[])
1515
AC_DEFINE_UNQUOTED(X_XNEST_UNSCALED_FONTPATH,"$X_XNEST_UNSCALED_FONTPATH",[])
1517
## Stuff for debian/changelog.in
1518
#if test -e "debian/changelog"; then
1519
# DEBIAN_DATESTAMP=`head -1 debian/changelog| sed -e 's/.*cvs.//' -e 's/).*//'`
1520
# DEBIAN_DATE=`grep '^ --' debian/changelog | head -1 | sed -e 's/.* //'`
1522
# DEBIAN_DATESTAMP=`date +%Y%m%d%H%M%s`
1523
# DEBIAN_DATE=`date -R`
1526
#AC_SUBST(DEBIAN_DATESTAMP)
1527
#AC_SUBST(DEBIAN_DATE)
1536
gui/simple-greeter/Makefile
1537
gui/simple-greeter/libgdmsimplegreeter/Makefile
1538
gui/simple-greeter/libgdmsimplegreeter/gdmsimplegreeter.pc
1539
gui/simple-greeter/extensions/Makefile
1540
gui/simple-greeter/extensions/unified/Makefile
1541
gui/simple-greeter/extensions/password/Makefile
1542
gui/simple-greeter/extensions/fingerprint/Makefile
1543
gui/simple-greeter/extensions/fingerprint/icons/Makefile
1544
gui/simple-greeter/extensions/fingerprint/icons/16x16/Makefile
1545
gui/simple-greeter/extensions/fingerprint/icons/48x48/Makefile
1546
gui/simple-greeter/extensions/smartcard/Makefile
1547
gui/simple-greeter/extensions/smartcard/icons/Makefile
1548
gui/simple-greeter/extensions/smartcard/icons/16x16/Makefile
1549
gui/simple-greeter/extensions/smartcard/icons/48x48/Makefile
1550
gui/simple-chooser/Makefile
1554
data/applications/Makefile
1555
data/autostart/Makefile
1556
data/pixmaps/Makefile
1557
data/pixmaps/16x16/Makefile
1558
data/pixmaps/32x32/Makefile
1559
data/pixmaps/48x48/Makefile
1567
dnl ---------------------------------------------------------------------------
1569
dnl ---------------------------------------------------------------------------
1576
exec_prefix: ${exec_prefix}
1580
sysconfdir: ${sysconfdir}
1581
sysconfsubdir: ${sysconfsubdir}
1582
gdmconfdir: ${gdmconfdir}
1583
dmconfdir: ${dmconfdir}
1584
localstatedir: ${localstatedir}
1586
consolekit location: ${with_consolekit_directory}
1587
gnome-session-check-accel location: ${with_check_accelerated_directory}
1588
polkit-gnome location: ${with_authentication_agent_directory}
1589
source code location: ${srcdir}
1592
Maintainer mode: ${USE_MAINTAINER_MODE}
1594
user: ${GDM_USERNAME}
1595
group: ${GDM_GROUPNAME}
1597
dbus-1 system.d dir: ${DBUS_SYS_DIR}
1598
PAM prefix: ${PAM_PREFIX}
1599
PAM config: ${with_default_pam_config}
1600
X server: ${X_SERVER}
1603
dnl TCP Wrappers support?
1604
if test x"$LIBWRAP_PATH" = x ; then
1606
" TCP Wrappers support: no"
1609
" TCP Wrappers support: yes"
1613
" Xinerama support: ${XINERAMA_SUPPORT}
1614
XDMCP support: ${XDMCP_SUPPORT}
1615
SELinux support: ${have_selinux}
1616
ConsoleKit support: ${use_console_kit}
1617
systemd support: ${use_systemd}
1618
systemd unit dir: ${with_systemdsystemunitdir}
1619
plymouth support: ${use_plymouth}
1620
UPower support: ${have_upower}
1621
Build with RBAC: ${msg_rbac_shutdown}
1622
Initial VT: ${GDM_INITIAL_VT}
1623
Enable documentation: ${enable_documentation}