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
|
$NetBSD: patch-ac,v 1.8 1999/09/07 17:58:22 bad Exp $
--- configure.in.orig Thu Jul 9 16:44:06 1998
+++ configure.in Tue Sep 7 09:51:28 1999
@@ -13,7 +13,7 @@
fi
if test "$GCC" = yes
then
- CFLAGS="$CFLAGS -fstrength-reduce -fpcc-struct-return "
+ CFLAGS="$CFLAGS -fstrength-reduce "
fi
AC_SUBST(CC)
AC_SUBST(CFLAGS)
@@ -195,10 +195,12 @@
syslog.h \
net/errno.h \
unistd.h \
+stdlib.h \
+string.h \
+time.h \
netinet/in.h \
maillock.h \
ndbm.h \
-gdbm.h \
dbm.h \
shadow.h \
)
@@ -209,10 +211,17 @@
AC_CHECK_LIB(socket, socket, NETWORK_LIBS="$NETWORK_LIBS -lsocket")
AC_CHECK_LIB(resolv, res_init, NETWORK_LIBS="$NETWORK_LIBS -lresolv")
AC_CHECK_LIB(mail, maillock, NETWORK_LIBS="$NETWORK_LIBS -lmail"; AC_DEFINE(MAILOCK))
+AC_ARG_ENABLE(kerberos,
+ [ --enable-kerberos compile in Kerberos authentification support],
+ [with_kerberos=$enableval],
+ [with_kerberos=no])
+if test "$with_kerberos" = "yes" ;then
AC_CHECK_LIB(krb, krb_recvauth, KERBEROS_LIBS="$KERBEROS_LIBS -lkrb")
+AC_CHECK_LIB(des, des_set_key, KERBEROS_LIBS="$KERBEROS_LIBS -ldes")
+AC_DEFINE(KERBEROS)
+fi
AC_CHECK_LIB(ndbm, dbm_open, DBM_LIBS="-lndbm")
AC_CHECK_LIB(dbm, dbm_open, DBM_LIBS="-ldbm")
-AC_CHECK_LIB(gdbm, gdbm_open, DBM_LIBS="-lgdbm"; AC_DEFINE(GDBM))
AC_CHECK_LIB(security, set_auth_parameters, LIBS="$LIBS -lsecurity")
AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt")
AC_CHECK_LIB(shadow, pw_encrypt, LIBS="$LIBS -lshadow")
|