2 dnl *** PLEASE NOTE ***
3 dnl *** PLEASE NOTE ***
4 dnl *** PLEASE NOTE ***
6 dnl Update $VERSION before making a new release
9 dnl Process this file with autoconf to produce a configure script.
11 AC_REVISION($Revision: 1.415.2.9 $)
12 AC_INIT(lib/krb/getrealm.c)
13 AC_CONFIG_HEADER(include/config.h)
23 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])dnl
24 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])dnl
26 # This may be overridden using --prefix=/usr to configure
27 AC_PREFIX_DEFAULT(/usr/athena)
31 AC_SUBST(CANONICAL_HOST)
33 dnl OS specific defines
47 if test "$sunos" != no; then
48 AC_DEFINE_UNQUOTED(SunOS, $sunos,
49 [Define to what version of SunOS you are running.])
55 # We want these before the checks, so the checks can modify their values.
56 test -z "$LDFLAGS" && LDFLAGS=-g
59 dnl check for programs
71 dnl mawk seems to mishandle \# in lib/roken/roken.awk
72 AC_CHECK_PROGS(AWK, gawk nawk awk, )
73 AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, :)
75 dnl Use make Wall or make WFLAGS=".."
78 WFLAGS_NOIMPLICITINT=""
80 AC_SUBST(WFLAGS_NOUNUSED) dnl
81 AC_SUBST(WFLAGS_NOIMPLICITINT) dnl
84 dnl check for build options
87 AC_TEST_PACKAGE_NEW(socks,[#include <socks.h>],-lsocks5)
88 CFLAGS="$INCLUDE_socks $CFLAGS"
89 LIBS="$LIB_socks $LIBS"
91 AC_ARG_ENABLE(legacy-kdestroy,
92 [ --enable-legacy-kdestroy kdestroy doesn't destroy tokens by default],[
93 if test "$enableval" = "yes"; then
94 AC_DEFINE(LEGACY_KDESTROY,1, [Define to enable old kdestroy behavior.])
98 AC_ARG_ENABLE(match-subdomains,
99 [ --enable-match-subdomains match realm in subdomains],
100 [if test "$enableval" = "yes"; then
101 AC_DEFINE(MATCH_SUBDOMAINS,1, [Define if you want to match subdomains.])
105 AC_ARG_WITH(ld-flags,
106 [ --with-ld-flags=flags what flags use when linking])
108 AC_ARG_WITH(cracklib,
109 [ --with-cracklib=dir use the cracklib.a in dir],
112 AC_ARG_WITH(dictpath,
113 [ --with-dictpath=path use this dictionary with cracklib]
116 (test -z "$with_cracklib" && test -n "$with_dictpath") ||
117 (test -n "$with_cracklib" && test -z "$with_dictpath") &&
118 AC_MSG_ERROR(--with-cracklib requires --with-dictpath and vice versa)
119 test -n "$with_cracklib" &&
120 CRACKLIB="-L$with_cracklib -lcrack" &&
121 AC_MSG_RESULT(Using cracklib in $with_cracklib)
122 AC_SUBST(CRACKLIB)dnl
123 test -n "$with_dictpath" &&
124 AC_MSG_RESULT(Using dictpath=$with_dictpath) &&
125 AC_DEFINE_UNQUOTED(DICTPATH,"$with_dictpath", [Define this to be the directory where the
126 dictionary for cracklib resides.])
128 AC_ARG_WITH(mailspool,
129 [ --with-mailspool=dir this is the mail spool directory]
132 test -n "$with_mailspool" &&
133 AC_DEFINE_UNQUOTED(KRB4_MAILDIR, "$with_mailspool", [Define this to the path of the mail spool directory.])
136 [ --with-db-dir=dir this is the database directory (default /var/kerberos)])
138 test -n "$with_db_dir" &&
139 AC_DEFINE_UNQUOTED(DB_DIR, "$with_db_dir", [Define this to the kerberos database directory.])
141 AC_ARG_ENABLE(random-mkey,
142 [ --enable-random-mkey use new code for master keys],[
143 if test "$enableval" = "yes"; then
144 AC_DEFINE(RANDOM_MKEY,1, [Define to enable new master key code.])
149 [ --with-mkey=file where to put the master key],[
150 if test -n "$withval"; then
151 AC_DEFINE_UNQUOTED(MKEYFILE,"$withval", [Define this to the location of the master key.])
157 [ --disable-otp if you don't want OTP support],
159 if test "$enableval" = "no"; then
164 if test "$otp" = "yes"; then
166 LIB_otp='-L$(top_builddir)/lib/otp -lotp'
168 LIB_SUBDIRS="$LIB_SUBDIRS otp"
177 [ --disable-mmap disable use of mmap],
179 if test "$enableval" = "no"; then
183 if test "$mmap" = "no"; then
184 AC_DEFINE(NO_MMAP, 1, [Define if you don't want to use mmap.])
188 AC_ARG_ENABLE(dynamic-afs,
189 [ --disable-dynamic-afs don't use loaded AFS library with AIX],[
190 if test "$enableval" = "no"; then
196 AC_ARG_WITH(berkeley-db,
197 [ --without-berkeley-db if you don't want berkeley db],[
198 if test "$withval" = no; then
204 AC_ARG_WITH(afs-support,
205 [ --without-afs-support if you don't want support for afs],[
206 if test "$withval" = no; then
207 AC_DEFINE(NO_AFS, 1, [Define if you don't wan't support for AFS.])
213 AC_ARG_WITH(des-quad-checksum,
214 [ --with-des-quad-checksum=kind
215 default checksum to use (new, old, or guess)],[
218 if test "$des_quad" = "new"; then
220 elif test "$des_quad" = "old"; then
225 AC_DEFINE_UNQUOTED(DES_QUAD_DEFAULT,$ac_x,
226 [Set this to the type of des-quad-cheksum to use.])
229 [ --with-afsws=dir use AFS includes and libraries from dir=/usr/afsws],
233 test "$AFSWS" = "yes" && AFSWS=/usr/afsws
237 [ --enable-rxkad build rxkad library],,[
238 test -f $AFSWS/include/rx/rx.h && enable_rxkad=yes
241 if test "$afs_support" = yes -a "$enable_rxkad" = yes; then
242 LIB_SUBDIRS="$LIB_SUBDIRS rxkad"
244 AC_SUBST(LIB_SUBDIRS)
246 AC_ARG_ENABLE(cat-manpages,
247 [ --disable-cat-manpages don't install any preformatted manpages],
249 if test "$enableval" = "no"; then
250 disable_cat_manpages=yes
254 AC_SUBST(disable_cat_manpages)dnl
256 AC_TEST_PACKAGE_NEW(readline,[
258 #include <readline.h>
263 AC_TEST_PACKAGE_NEW(hesiod,[#include <hesiod.h>],-lhesiod)
268 dnl Check for endian-ness, this breaks cross compilation
273 dnl Check for constness
278 dnl Check for inline keyword
283 dnl Check for __attribute__
288 dnl Check for strange operating systems that you need to handle differently
294 if test "$krb_cv_sys_aix" = yes ;then
295 if test "$aix_dynamic_afs" = yes; then
297 AFS_EXTRA_LIBS=afslib.so
298 # this works differently in AIX <=3 and 4
299 if test `uname -v` = 4 ; then
300 AFS_EXTRA_LD="-bnoentry"
302 AFS_EXTRA_LD="-e _nostart"
305 AC_FIND_FUNC_NO_LIBS(dlopen, dl)
306 if test "$ac_cv_funclib_dlopen" = yes; then
308 elif test "$ac_cv_funclib_dlopen" != no; then
309 AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen"
311 AFS_EXTRA_OBJS="$AFS_EXTRA_OBJS dlfcn.o"
315 AFS_EXTRA_OBJS='$(srcdir)/afsl.exp afslib.o'
317 AFS_EXTRA_DEFS='-DSTATIC_AFS_SYSCALLS'
320 AC_SUBST(AFS_EXTRA_OBJS)dnl
321 AC_SUBST(AFS_EXTRA_LIBS)dnl
322 AC_SUBST(AFS_EXTRA_LD)dnl
323 AC_SUBST(AFS_EXTRA_DEFS)dnl
324 AC_SUBST(AIX_EXTRA_KAFS)dnl
328 # AIX needs /lib/pse.exp for getmsg, but alas that file is broken in
332 if test -f /lib/pse.exp ;then
333 LIBS="$LIBS -Wl,-bnolibpath -Wl,-bI:/lib/pse.exp"
337 dnl Various checks for headers and their contents
342 AC_CHECK_HEADERS([arpa/ftp.h \
372 netinet/in6_machtypes.h \
381 security/pam_modules.h \
442 CHECK_NETINET_IP_AND_TCP
446 if test "$ac_cv_header_err_h" != yes; then
447 EXTRA_HEADERS="$EXTRA_HEADERS err.h"
449 if test "$ac_cv_header_fnmatch_h" != yes; then
450 EXTRA_LOCL_HEADERS="$EXTRA_LOCL_HEADERS fnmatch.h"
452 AC_SUBST(EXTRA_HEADERS)
453 AC_SUBST(EXTRA_LOCL_HEADERS)
455 AC_GROK_TYPES(int8_t int16_t int32_t int64_t)
456 AC_GROK_TYPES(u_int8_t u_int16_t u_int32_t u_int64_t)
458 AC_MSG_CHECKING(for strange sys/bitypes.h)
459 AC_CACHE_VAL(krb_cv_int8_t_ifdef, [
461 #ifdef HAVE_SYS_TYPES_H
462 #include <sys/types.h>
464 #ifdef HAVE_SYS_BITYPES_H
465 #include <sys/bitypes.h>
467 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
468 #include <netinet/in6_machtypes.h>
473 krb_cv_int8_t_ifdef=no,
474 krb_cv_int8_t_ifdef=yes)])
475 AC_MSG_RESULT($krb_cv_int8_t_ifdef)
476 if test "$krb_cv_int8_t_ifdef" = "yes"; then
477 AC_DEFINE(HAVE_STRANGE_INT8_T, 1, [Huh?])dnl
481 dnl Various checks for libraries and their contents
484 AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
487 dnl System V is have misplaced the socket routines, should really be in libc
490 AC_FIND_FUNC(socket, socket,
491 [#ifdef HAVE_SYS_TYPES_H
492 #include <sys/types.h>
494 #ifdef HAVE_SYS_SOCKET_H
495 #include <sys/socket.h>
498 AC_FIND_FUNC(gethostbyname, nsl,
499 [#ifdef HAVE_SYS_TYPES_H
500 #include <sys/types.h>
502 #ifdef HAVE_SYS_SOCKET_H
503 #include <sys/socket.h>
508 dnl Horror AIX needs -lodm -lcfg to link login
511 AC_FIND_FUNC(odm_initialize, odm)
512 AC_FIND_FUNC(getattr, cfg)
513 AC_FIND_FUNC(setpcred, s)
514 AC_FIND_FUNC(logwtmp, util)
516 AC_FIND_FUNC(logout, util)
517 AC_FIND_FUNC_NO_LIBS(tgetent, termcap ncurses curses)
520 dnl See if there is any X11 present
523 if test "$no_x" = "yes" ; then
525 MAKE_X_PROGS_LIBEXEC=""
527 MAKE_X_PROGS_BIN='$(X_PROGS_BIN)'
528 MAKE_X_PROGS_LIBEXEC='$(X_PROGS_LIBEXEC)'
530 AC_SUBST(MAKE_X_PROGS_BIN)dnl
531 AC_SUBST(MAKE_X_PROGS_LIBEXEC)dnl
536 dnl Look for berkeley db, gdbm, and ndbm in that order.
539 KRB_FIND_DB("" $berkeley_db gdbm ndbm)
541 AC_FIND_FUNC(syslog, syslog)
546 if test "$ac_cv_func_glob_working" != yes; then
547 EXTRA_LOCL_HEADERS="$EXTRA_LOCL_HEADERS glob.h"
548 LIBOBJS="$LIBOBJS glob.o"
551 AC_CHECK_FUNCS(asnprintf asprintf vasprintf vasnprintf vsnprintf)
553 AC_CHECK_FUNCS(atexit _getpty _scrsize _setsid _stricmp chroot fattach fchmod)
554 AC_CHECK_FUNCS(fcntl forkpty frevoke getlogin getpriority)
555 AC_CHECK_FUNCS(getrlimit getservbyname getspnam getspuid gettimeofday)
556 AC_CHECK_FUNCS(gettosbyname getuid grantpt mktime parsetos ptsname)
557 AC_CHECK_FUNCS(rand random revoke setitimer setlogin setpgid setpriority)
558 AC_CHECK_FUNCS(setproctitle setregid setresgid setresuid setreuid setsid)
559 AC_CHECK_FUNCS(setutent sigaction sysconf sysctl ttyname ttyslot)
560 AC_CHECK_FUNCS(ulimit uname unlockpt vhangup yp_get_default_domain)
561 AC_CHECK_FUNCS(on_exit sgi_getcapabilitybyname cap_set_proc)
563 AC_CHECK_GETPWNAM_R_POSIX
565 AC_FIND_FUNC_NO_LIBS(getsockopt, ,
566 [#ifdef HAVE_SYS_TYPES_H
567 #include <sys/types.h>
569 #ifdef HAVE_SYS_SOCKET_H
570 #include <sys/socket.h>
573 AC_FIND_FUNC_NO_LIBS(setsockopt, ,
574 [#ifdef HAVE_SYS_TYPES_H
575 #include <sys/types.h>
577 #ifdef HAVE_SYS_SOCKET_H
578 #include <sys/socket.h>
583 AC_CHECK_FUNCS(getudbnam setlim)
585 AC_FIND_FUNC(res_search, resolv,
588 #ifdef HAVE_SYS_TYPES_H
589 #include <sys/types.h>
591 #ifdef HAVE_NETINET_IN_H
592 #include <netinet/in.h>
594 #ifdef HAVE_ARPA_NAMESER_H
595 #include <arpa/nameser.h>
603 AC_FIND_FUNC(dn_expand, resolv,
606 #ifdef HAVE_SYS_TYPES_H
607 #include <sys/types.h>
609 #ifdef HAVE_NETINET_IN_H
610 #include <netinet/in.h>
612 #ifdef HAVE_ARPA_NAMESER_H
613 #include <arpa/nameser.h>
621 AC_SUBST(LIB_res_search)dnl
622 AC_SUBST(LIB_dn_expand)dnl
628 # Test for POSIX (broken) getlogin
631 if test "$ac_cv_func_getlogin" = yes; then
632 AC_CACHE_CHECK(if getlogin is posix, ac_cv_func_getlogin_posix, [
633 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
634 ac_cv_func_getlogin_posix=no
636 ac_cv_func_getlogin_posix=yes
639 if test "$ac_cv_func_getlogin_posix" = yes; then
640 AC_DEFINE(POSIX_GETLOGIN, 1, [Define if getlogin has POSIX flavour (and not BSD).])
644 AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
649 if test "$ac_cv_func_hstrerror" = yes; then
657 AC_BROKEN(chown daemon err errx fchown flock fnmatch)
658 AC_BROKEN(getcwd getdtablesize gethostname geteuid getgid getegid)
659 AC_BROKEN(getopt getusershell inet_aton initgroups innetgr iruserok lstat)
660 AC_BROKEN(memmove mkstemp putenv rcmd readv setegid setenv seteuid)
661 AC_BROKEN(strcasecmp strncasecmp strdup strerror strftime strlwr)
662 AC_BROKEN(strndup strnlen strsep strtok_r strupr)
663 AC_BROKEN(swab unsetenv verr verrx vsyslog)
664 AC_BROKEN(vwarn vwarnx warn warnx writev)
666 if test "$ac_cv_func_gethostname" = "yes"; then
668 #include <unistd.h>],
672 if test "$ac_cv_func_mkstemp" = "yes"; then
674 #include <unistd.h>],
678 if test "$ac_cv_func_inet_aton" = "yes"; then
680 #ifdef HAVE_SYS_TYPES_H
681 #include <sys/types.h>
683 #ifdef HAVE_SYS_SOCKET_H
684 #include <sys/socket.h>
686 #ifdef HAVE_NETINET_IN_H
687 #include <netinet/in.h>
689 #ifdef HAVE_ARPA_INET_H
690 #include <arpa/inet.h>
695 AC_CACHE_CHECK(if realloc is broken, ac_cv_func_realloc_broken, [
696 ac_cv_func_realloc_broken=no
703 return realloc(NULL, 17) == NULL;
705 ],:, ac_cv_func_realloc_broken=yes, :)
707 if test "$ac_cv_func_realloc_broken" = yes ; then
708 AC_DEFINE(BROKEN_REALLOC, 1, [Define if realloc(NULL, X) doesn't work.])
711 AC_KRB_FUNC_GETCWD_BROKEN
714 dnl Figure what authentication modules should be built
717 AC_MSG_CHECKING(which authentication modules should be built)
721 if test "$ac_cv_header_siad_h" = yes; then
722 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
725 if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then
726 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
731 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
735 AC_MSG_RESULT($LIB_AUTH_SUBDIRS)
737 AC_SUBST(LIB_AUTH_SUBDIRS)dnl
740 dnl Figure out if we have tunnels
743 AC_MSG_CHECKING(for tunnel devices)
747 if test "$ac_cv_header_net_if_tun_h" = "yes"; then
751 AC_MSG_RESULT($ac_cv_header_net_if_tun_h)
753 AC_SUBST(APPL_KIP_DIR)dnl
756 dnl Checks for prototypes and declarations
760 #ifdef HAVE_SYS_TYPES_H
761 #include <sys/types.h>
763 #ifdef HAVE_SYS_SOCKET_H
764 #include <sys/socket.h>
766 #ifdef HAVE_NETINET_IN_H
767 #include <netinet/in.h>
769 #ifdef HAVE_ARPA_INET_H
770 #include <arpa/inet.h>
776 gethostbyname, struct hostent *gethostbyname(const char *))
779 #ifdef HAVE_SYS_TYPES_H
780 #include <sys/types.h>
782 #ifdef HAVE_SYS_SOCKET_H
783 #include <sys/socket.h>
785 #ifdef HAVE_NETINET_IN_H
786 #include <netinet/in.h>
788 #ifdef HAVE_ARPA_INET_H
789 #include <arpa/inet.h>
795 gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int))
798 #ifdef HAVE_SYS_TYPES_H
799 #include <sys/types.h>
801 #ifdef HAVE_SYS_SOCKET_H
802 #include <sys/socket.h>
804 #ifdef HAVE_NETINET_IN_H
805 #include <netinet/in.h>
807 #ifdef HAVE_ARPA_INET_H
808 #include <arpa/inet.h>
814 getservbyname, struct servent *getservbyname(const char *, const char *))
821 openlog, void openlog(const char *, int, int))
860 AC_CHECK_VAR([#ifdef HAVE_SYS_TYPES_H
861 #include <sys/types.h>
868 AC_CHECK_VAR([#ifdef HAVE_NETDB_H
873 AC_CHECK_VAR([#ifdef HAVE_NETDB_H
878 AC_CHECK_VAR([#ifdef HAVE_ERR_H
880 #endif],[__progname])
882 AC_CHECK_DECLARATION([#include <stdlib.h>], optarg)
883 AC_CHECK_DECLARATION([#include <stdlib.h>], optind)
884 AC_CHECK_DECLARATION([#include <stdlib.h>], opterr)
885 AC_CHECK_DECLARATION([#include <stdlib.h>], optopt)
887 AC_CHECK_DECLARATION([#include <stdlib.h>], environ)
890 dnl According to ANSI you are explicitly allowed to cast to void,
891 dnl but the standard fails to say what should happen. Some compilers
892 dnl think this is illegal:
899 dnl Thus explicitly test for void
902 if test "$ac_cv_type_signal" = "void" ; then
903 AC_DEFINE(VOID_RETSIGTYPE, 1, [Define if RETSIGTYPE == void.])
907 dnl Check for fields in struct utmp
910 AC_HAVE_STRUCT_FIELD(struct utmp, ut_addr,
911 [#include <sys/types.h>
913 AC_HAVE_STRUCT_FIELD(struct utmp, ut_host,
914 [#include <sys/types.h>
916 AC_HAVE_STRUCT_FIELD(struct utmp, ut_id,
917 [#include <sys/types.h>
919 AC_HAVE_STRUCT_FIELD(struct utmp, ut_pid,
920 [#include <sys/types.h>
922 AC_HAVE_STRUCT_FIELD(struct utmp, ut_type,
923 [#include <sys/types.h>
925 AC_HAVE_STRUCT_FIELD(struct utmp, ut_user,
926 [#include <sys/types.h>
928 AC_HAVE_STRUCT_FIELD(struct utmpx, ut_exit,
929 [#include <sys/types.h>
931 AC_HAVE_STRUCT_FIELD(struct utmpx, ut_syslen,
932 [#include <sys/types.h>
940 dnl Check for struct winsize
943 AC_KRB_STRUCT_WINSIZE
946 dnl Check for some common types
954 AC_CHECK_TYPE_EXTRA(ssize_t, int, [
960 dnl Check for broken ultrix sys/socket.h
963 AC_MSG_CHECKING(for broken sys/socket.h)
964 AC_CACHE_VAL(krb_cv_header_sys_socket_h_broken, [
966 [#include <sys/types.h>
967 #include <sys/socket.h>
968 #include <sys/socket.h>],[],
969 krb_cv_header_sys_socket_h_broken=no,
970 krb_cv_header_sys_socket_h_broken=yes)])
971 AC_MSG_RESULT($krb_cv_header_sys_socket_h_broken)
972 AC_SUBST(krb_cv_header_sys_socket_h_broken)
975 dnl Check for sa_len in sys/socket.h
978 AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
979 #include <sys/socket.h>])
982 dnl Check for ouid in sys/siad.h
985 if test "$ac_cv_header_siad_h" = yes; then
986 AC_HAVE_STRUCT_FIELD(SIAENTITY, ouid, [#include <siad.h>])
990 dnl you can link with getmsg on AIX 3.2 but you cannot run the program
993 AC_CHECK_FUNCS(getmsg)
995 if test "$ac_cf_func_getmsg" = "yes"; then
997 AC_CACHE_CHECK(for working getmsg, ac_cv_func_getmsg,
1004 getmsg(open("/dev/null", 0), NULL, NULL, NULL);
1007 ], ac_cv_func_getmsg=yes, ac_cv_func_getmsg=no, ac_cv_func_getmsg=no))
1008 test "$ac_cv_func_getmsg" = "yes" &&
1009 AC_DEFINE(HAVE_GETMSG, 1, [Define if you have a working getmsg.])
1014 dnl Tests for editline
1019 AC_FIND_FUNC_NO_LIBS(el_init, edit)
1020 if test "$ac_cv_func_el_init" = yes ; then
1021 AC_CACHE_CHECK(for four argument el_init, ac_cv_func_el_init_four,[
1022 AC_TRY_COMPILE([#include <stdio.h>
1023 #include <histedit.h>],
1024 [el_init("", NULL, NULL, NULL);],
1025 ac_cv_func_el_init_four=yes,
1026 ac_cv_func_el_init_four=no)])
1027 if test "$ac_cv_func_el_init_four" = yes; then
1028 AC_DEFINE(HAVE_FOUR_VALUED_EL_INIT, 1, [Define if el_init takes four arguments.])
1035 LIBS="$LIB_tgetent $LIBS"
1036 AC_FIND_FUNC_NO_LIBS(readline, edit readline)
1039 if test "$with_readline" -a "$with_readline" != "no"; then
1041 elif test "$ac_cv_func_readline" = yes; then
1043 elif test "$ac_cv_func_el_init" = yes; then
1045 LIB_readline="-L\$(top_builddir)/lib/editline -lel_compat $LIB_el_init"
1046 INCLUDE_readline='-I$(top_srcdir)/lib/editline'
1048 LIB_readline='-L$(top_builddir)/lib/editline -leditline'
1049 INCLUDE_readline='-I$(top_srcdir)/lib/editline'
1051 LIB_readline="$LIB_readline \$(LIB_tgetent)"
1052 AC_DEFINE(HAVE_READLINE, 1, [Define if you have a readline function.])dnl XXX
1053 AC_SUBST(LIB_readline)
1054 AC_SUBST(INCLUDE_readline)
1057 dnl telnet muck --------------------------------------------------
1059 AC_DEFINE(AUTHENTICATION)dnl
1061 AC_DEFINE(ENCRYPTION)dnl
1062 AC_DEFINE(DES_ENCRYPTION)dnl
1063 AC_DEFINE(DIAGNOSTICS)dnl
1064 AC_DEFINE(OLD_ENVIRON)dnl
1066 # Simple test for streamspty, based on the existance of getmsg(), alas
1067 # this breaks on SunOS4 which have streams but BSD-like ptys
1069 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
1071 AC_MSG_CHECKING(for streamspty)
1072 case "`uname -sr`" in
1073 SunOS\ 4*|OSF1*|IRIX\ 4*|HP-UX\ ?.10.*)
1074 krb_cv_sys_streamspty=no
1077 os_rel=`uname -v`.`uname -r`
1078 if expr "$os_rel" : "3*" >/dev/null 2>&1; then
1079 krb_cv_sys_streamspty=no
1081 krb_cv_sys_streamspty="$ac_cv_func_getmsg"
1085 krb_cv_sys_streamspty="$ac_cv_func_getmsg"
1088 if test "$krb_cv_sys_streamspty" = yes; then
1089 AC_DEFINE(STREAMSPTY, 1, [Define if you have working stream ptys.])
1091 dnl AC_SUBST(STREAMSPTY)
1092 AC_MSG_RESULT($krb_cv_sys_streamspty)
1094 AC_MSG_CHECKING([if /bin/ls takes -A])
1095 if /bin/ls -A > /dev/null 2>&1 ;then
1096 AC_DEFINE(HAVE_LS_A, 1, [Define if /bin/ls has a \`-A' flag.])
1101 AC_MSG_RESULT($krb_ls_a)
1103 dnl ------------------------------------------------------------
1104 AC_CACHE_CHECK(for suffix of preformatted manual pages, krb_cv_sys_cat_suffix,
1105 if grep _version /etc/man.conf > /dev/null 2>&1; then
1106 krb_cv_sys_cat_suffix=0
1108 krb_cv_sys_cat_suffix=number
1110 if test "$krb_cv_sys_cat_suffix" = number; then
1117 dnl ------------------------------------------------------------
1119 KRB_KAFS_LIB="-L\$(top_builddir)/lib/kafs -lkafs $AIX_EXTRA_KAFS"
1120 AC_SUBST(KRB_KAFS_LIB)dnl
1122 dnl ------------------------------------------------------------
1125 dnl This is done by AC_OUTPUT but we need the result here.
1127 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1128 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1130 for i in bin lib libexec sbin; do
1132 foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'`
1135 while test "x$y" != "x$x"; do
1139 AC_DEFINE_UNQUOTED($foo,"$x")
1143 dnl We are all set to emit the Makefiles and config.h
1148 include/sys/Makefile \
1153 lib/com_err/Makefile \
1160 lib/roken/Makefile \
1163 lib/editline/Makefile \
1164 lib/rxkad/Makefile \
1166 lib/auth/pam/Makefile \
1167 lib/auth/sia/Makefile \
1168 lib/auth/afskauthlib/Makefile \
1178 appl/afsutil/Makefile \
1180 appl/ftp/common/Makefile \
1181 appl/ftp/ftp/Makefile \
1182 appl/ftp/ftpd/Makefile \
1183 appl/telnet/Makefile \
1184 appl/telnet/libtelnet/Makefile \
1185 appl/telnet/telnet/Makefile \
1186 appl/telnet/telnetd/Makefile \
1188 appl/kauth/Makefile \
1189 appl/popper/Makefile \
1190 appl/movemail/Makefile \
1191 appl/push/Makefile \
1192 appl/sample/Makefile \
1193 appl/xnlock/Makefile \
1198 ) dnl end of AC_OUTPUT