aboutsummaryrefslogtreecommitdiff
path: root/src/kadmin/configure.in
blob: 28ac06ddefaff1b71fc8096a9bb92164a0d4d8e7 (plain)
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
AC_INIT(configure.in)
CONFIG_RULES
AC_PROG_INSTALL
AC_PROG_YACC
AC_PROG_AWK
AC_CHECK_HEADERS(unistd.h stdlib.h krb_db.h kdc.h regex.h alloca.h sys/time.h sys/select.h memory.h arpa/inet.h)
AC_CHECK_FUNCS(ftime timezone getcwd strstr waitpid vsprintf)
AC_REPLACE_FUNCS([memmove strftime])
KRB5_NEED_PROTO([#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif],daemon,1)
AC_HEADER_TIME
CHECK_SIGNALS
CHECK_WAIT_TYPE
CHECK_SETJMP
KRB5_GETSOCKNAME_ARGS
AC_CANONICAL_HOST
ath_compat=
AC_ARG_ENABLE([athena],
[  --enable-athena         build with MIT Project Athena configuration],
ath_compat=compat,)
dnl
dnl The following are tests for the presence of programs required for testing 
AC_CHECK_PROG(have_RUNTEST,runtest,runtest)
AC_CHECK_PROG(have_PERL,perl,perl)
AC_KRB5_TCL	
if test "$have_PERL" = perl -a "$have_RUNTEST" = runtest -a "$TCL_LIBS" != ""; then
 	DO_TEST=ok
fi
AC_SUBST(DO_TEST) 
dnl
DO_V4_TEST=
if test "$have_PERL" = perl -a "$have_RUNTEST" = runtest -a "$TCL_LIBS" != "" -a "$ath_compat" != ""; then
 	DO_V4_TEST=ok
fi
AC_SUBST(DO_V4_TEST)
dnl
dnl For ndbm password checking kludge.
dnl
if test "$ath_compat" = "compat"; then
	AC_DEFINE(NDBM_PW_CHECK)
fi
dnl
dnl The following are substituted into testing/scripts/env-setup.sh
RBUILD=`pwd`/..
AC_SUBST(RBUILD)
case "$srcdir" in
/*)
	S_TOP=$srcdir/..
	;;
*)
	S_TOP=`pwd`/$srcdir/..
	;;
esac
AC_SUBST(S_TOP)
AC_PATH_PROG(PERL,perl)
AC_PATH_PROG(EXPECT,expect)
dnl
KRB5_RUN_FLAGS
dnl For testing/util/Makefile.in
if test "$TCL_LIBS" != "" ;  then
	DO_ALL=tcl
fi
AC_SUBST(DO_ALL)
dnl See if we should build v4server
if test -z "$KRB4_LIB"; then
V4SERVER=""
else
V4SERVER=v4server
fi
AC_SUBST(V4SERVER)
dnl
KRB5_BUILD_PROGRAM
dnl
K5_GEN_MAKEFILE(.)
K5_GEN_MAKEFILE(cli)
K5_GEN_MAKEFILE(dbutil)
K5_GEN_MAKEFILE(passwd)
K5_GEN_MAKEFILE(passwd/unit-test)
K5_GEN_MAKEFILE(ktutil)
K5_GEN_MAKEFILE(server)
K5_GEN_MAKEFILE(v4server)
K5_GEN_MAKEFILE(v4server/unit-test)
K5_GEN_MAKEFILE(v5passwdd)
K5_GEN_MAKEFILE(testing)
K5_GEN_MAKEFILE(testing/scripts)
K5_GEN_FILE(testing/scripts/env-setup.sh:testing/scripts/env-setup.shin)
K5_GEN_MAKEFILE(testing/util)
K5_AC_OUTPUT