1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
AC_INIT(daemon/gdm.h)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gdm,2.0.97)
AM_MAINTAINER_MODE
AM_ACLOCAL_INCLUDE(macros)
GNOME_INIT
AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_ARG_PROGRAM
AM_PROG_LIBTOOL
GNOME_X_CHECKS
AM_PATH_LIBGLADE(,,gnome)
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
dnl ## internationalization support
ALL_LINGUAS="ca cs da de el es et fi fr ga gl hu it ja ko lt nl nn no pl pt_BR ro ru sk sl sv tr uk zh_CN.GB2312 zh_TW.Big5"
AM_GNOME_GETTEXT
AC_CHECK_FUNCS([setenv unsetenv])
# TCP Wrappers for XDMCP access control
AC_MSG_CHECKING("whether to use TCP wrappers")
LIBWRAP_PATH=""
for I in $LDFLAGS $LIBS -L/usr/lib; do
case "$I" in
-L*)
THEFILE="`echo $I | sed -e 's,^-L,,'`"
echo "From $I, checking in dir $THEFILE for libwrap.a" 1>&5
if test -f $THEFILE/libwrap.a; then
LIBWRAP_PATH=$THEFILE/libwrap.a
echo "Found $LIBWRAP_PATH" 1>&5
break
fi
esac
done
if test -n "$LIBWRAP_PATH"; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
if test -n "$LIBWRAP_PATH"; then
nm $LIBWRAP_PATH | grep 'T setenv' && LIBWRAP_PATH=""
if test -z "$LIBWRAP_PATH"; then
echo "*********************************************************"
echo " You have a broken TCP wrappers library (setenv included)"
echo " Please get the latest TCP wrappers package from your OS"
echo " vendor, or recompile TCP wrappers to not include a"
echo " setenv() implementation."
echo
echo "Not using TCP wrappers after all."
echo "*********************************************************"
else
AC_DEFINE(HAVE_TCPWRAPPERS)
fi
fi
LIBS="$LIBS $LIBWRAP_PATH"
dnl find out if we need -lnsl or whatever
LIB_NSL=
if test -n "$LIBWRAP_PATH"; then
AC_MSG_CHECKING(whether -lwrap requires -lnsl)
ORIG_LIBS="$LIBS"
LIBS="$LIBWRAP_PATH $LIBS"
AC_TRY_LINK([
#include <tcpd.h>
int allow_severity, deny_severity;
], [return hosts_access;], ,[
dnl try with -lnsl
OLD_LIBS="$LIBS"
LIBS="$LIBS -lnsl"
AC_TRY_LINK([
#include <tcpd.h>
int allow_severity, deny_severity;
], [return hosts_access;], LIB_NSL="-lnsl",
LIBWRAP_PATH="")
LIBS="$OLD_LIBS"
])
LIBS="$ORIG_LIBS"
if test -n "$LIB_NSL"; then
AC_MSG_RESULT(yes)
LIBS="$LIBS $LIB_NSL"
else
AC_MSG_RESULT(no)
fi
fi
dnl ## Autentication scheme
have_pam=no
VRFY="verify-crypt"
AC_CHECK_HEADERS(security/pam_appl.h, [
have_pam=yes
LIBS="$LIBS -lpam"
VRFY="verify-pam"
AC_DEFINE(HAVE_PAM)])
if test $have_pam = no; then
# Check if -lcrypt is necessary
AC_CHECK_LIB(crypt, crypt, [
LIBS="$LIBS -lcrypt"])
# Check if crypt lives in a separate header file
AC_CHECK_HEADERS(crypt.h, [
AC_DEFINE(HAVE_CRYPT)])
# Check for shadow passwords (hack)
AC_MSG_CHECKING("for /etc/shadow")
if test -f /etc/shadow; then
VRFY="verify-shadow"
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_SHADOW)
else
AC_MSG_RESULT(no)
fi
fi
AC_SUBST(VRFY)
# X11 Xinerama extension
AC_CHECK_HEADER(X11/extensions/Xinerama.h, [
AC_CHECK_LIB(Xinerama, XineramaQueryScreens,,, $GTK_LIBS)
])
AC_OUTPUT([
Makefile
daemon/Makefile
gui/Makefile
pixmaps/Makefile
macros/Makefile
config/Makefile
docs/Makefile
docs/C/Makefile
po/Makefile.in
intl/Makefile
],[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])
|