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.432.2.14 $)
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
50 if test "$sunos" != no; then
51 AC_DEFINE_UNQUOTED(SunOS, $sunos,
52 [Define to what version of SunOS you are running.])
58 # We want these before the checks, so the checks can modify their values.
59 test -z "$LDFLAGS" && LDFLAGS=-g
62 dnl check for programs
74 AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, :)
76 dnl Use make Wall or make WFLAGS=".."
79 WFLAGS_NOIMPLICITINT=""
81 AC_SUBST(WFLAGS_NOUNUSED) dnl
82 AC_SUBST(WFLAGS_NOIMPLICITINT) dnl
85 dnl check for build options
88 AC_TEST_PACKAGE_NEW(socks,[#include <socks.h>],-lsocks5)
89 CFLAGS="$INCLUDE_socks $CFLAGS"
90 LIBS="$LIB_socks $LIBS"
92 AC_ARG_ENABLE(legacy-kdestroy,
93 [ --enable-legacy-kdestroy kdestroy doesn't destroy tokens by default],[
94 if test "$enableval" = "yes"; then
95 AC_DEFINE(LEGACY_KDESTROY,1, [Define to enable old kdestroy behavior.])
99 AC_ARG_ENABLE(match-subdomains,
100 [ --enable-match-subdomains match realm in subdomains],
101 [if test "$enableval" = "yes"; then
102 AC_DEFINE(MATCH_SUBDOMAINS,1, [Define if you want to match subdomains.])
106 AC_ARG_WITH(ld-flags,
107 [ --with-ld-flags=flags what flags use when linking])
109 AC_ARG_WITH(cracklib,
110 [ --with-cracklib=dir use the cracklib.a in dir],
113 AC_ARG_WITH(dictpath,
114 [ --with-dictpath=path use this dictionary with cracklib]
117 (test -z "$with_cracklib" && test -n "$with_dictpath") ||
118 (test -n "$with_cracklib" && test -z "$with_dictpath") &&
119 AC_MSG_ERROR(--with-cracklib requires --with-dictpath and vice versa)
120 test -n "$with_cracklib" &&
121 CRACKLIB="-L$with_cracklib -lcrack" &&
122 AC_MSG_RESULT(Using cracklib in $with_cracklib)
123 AC_SUBST(CRACKLIB)dnl
124 test -n "$with_dictpath" &&
125 AC_MSG_RESULT(Using dictpath=$with_dictpath) &&
126 AC_DEFINE_UNQUOTED(DICTPATH,"$with_dictpath", [Define this to be the directory where the
127 dictionary for cracklib resides.])
129 AC_ARG_WITH(mailspool,
130 [ --with-mailspool=dir this is the mail spool directory]
133 test -n "$with_mailspool" &&
134 AC_DEFINE_UNQUOTED(KRB4_MAILDIR, "$with_mailspool", [Define this to the path of the mail spool directory.])
137 [ --with-db-dir=dir this is the database directory (default /var/kerberos)])
139 test -n "$with_db_dir" &&
140 AC_DEFINE_UNQUOTED(DB_DIR, "$with_db_dir", [Define this to the kerberos database directory.])
142 AC_ARG_ENABLE(random-mkey,
143 [ --enable-random-mkey use new code for master keys],[
144 if test "$enableval" = "yes"; then
145 AC_DEFINE(RANDOM_MKEY,1, [Define to enable new master key code.])
150 [ --with-mkey=file where to put the master key],[
151 if test -n "$withval"; then
152 AC_DEFINE_UNQUOTED(MKEYFILE,"$withval", [Define this to the location of the master key.])
158 [ --disable-otp if you don't want OTP support],
160 if test "$enableval" = "no"; then
165 if test "$otp" = "yes"; then
167 LIB_otp='-L$(top_builddir)/lib/otp -lotp'
169 LIB_SUBDIRS="$LIB_SUBDIRS otp"
178 [ --disable-mmap disable use of mmap],
180 if test "$enableval" = "no"; then
184 if test "$mmap" = "no"; then
185 AC_DEFINE(NO_MMAP, 1, [Define if you don't want to use mmap.])
189 AC_ARG_ENABLE(dynamic-afs,
190 [ --disable-dynamic-afs don't use loaded AFS library with AIX],[
191 if test "$enableval" = "no"; then
197 AC_ARG_WITH(berkeley-db,
198 [ --without-berkeley-db if you don't want berkeley db],[
199 if test "$withval" = no; then
205 AC_ARG_WITH(afs-support,
206 [ --without-afs-support if you don't want support for afs],[
207 if test "$withval" = no; then
208 AC_DEFINE(NO_AFS, 1, [Define if you don't wan't support for AFS.])
214 AC_ARG_WITH(des-quad-checksum,
215 [ --with-des-quad-checksum=kind
216 default checksum to use (new, old, or guess)],[
219 if test "$des_quad" = "new"; then
221 elif test "$des_quad" = "old"; then
226 AC_DEFINE_UNQUOTED(DES_QUAD_DEFAULT,$ac_x,
227 [Set this to the type of des-quad-cheksum to use.])
230 [ --with-afsws=dir use AFS includes and libraries from dir=/usr/afsws],
234 test "$AFSWS" = "yes" && AFSWS=/usr/afsws
238 [ --enable-rxkad build rxkad library])
240 if test "$afs_support" = yes -a "$enable_rxkad" = yes; then
241 LIB_SUBDIRS="$LIB_SUBDIRS rxkad"
243 AC_SUBST(LIB_SUBDIRS)
245 AC_ARG_ENABLE(cat-manpages,
246 [ --disable-cat-manpages don't install any preformatted manpages],
248 if test "$enableval" = "no"; then
249 disable_cat_manpages=yes
253 AC_SUBST(disable_cat_manpages)dnl
255 AC_TEST_PACKAGE_NEW(readline,[
257 #include <readline.h>
262 AC_TEST_PACKAGE_NEW(hesiod,[#include <hesiod.h>],-lhesiod)
267 dnl Check for endian-ness, this breaks cross compilation
272 dnl Check for constness
277 dnl Check for inline keyword
282 dnl Check for __attribute__
287 dnl Check for strange operating systems that you need to handle differently
293 if test "$krb_cv_sys_aix" = yes ;then
294 if test "$aix_dynamic_afs" = yes; then
296 AFS_EXTRA_LIBS=afslib.so
297 # this works differently in AIX <=3 and 4
298 if test `uname -v` = 4 ; then
299 AFS_EXTRA_LD="-bnoentry"
301 AFS_EXTRA_LD="-e _nostart"
304 AC_FIND_FUNC_NO_LIBS(dlopen, dl)
305 if test "$ac_cv_funclib_dlopen" = yes; then
307 elif test "$ac_cv_funclib_dlopen" != no; then
308 AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen"
310 AFS_EXTRA_OBJS="$AFS_EXTRA_OBJS dlfcn.o"
314 AFS_EXTRA_OBJS='$(srcdir)/afsl.exp afslib.o'
316 AFS_EXTRA_DEFS='-DSTATIC_AFS_SYSCALLS'
319 AC_SUBST(AFS_EXTRA_OBJS)dnl
320 AC_SUBST(AFS_EXTRA_LIBS)dnl
321 AC_SUBST(AFS_EXTRA_LD)dnl
322 AC_SUBST(AFS_EXTRA_DEFS)dnl
323 AC_SUBST(AIX_EXTRA_KAFS)dnl
327 # AIX needs /lib/pse.exp for getmsg, but alas that file is broken in
333 if test -f /lib/pse.exp ;then
334 LIBS="$LIBS -Wl,-bnolibpath -Wl,-bI:/lib/pse.exp"
338 LIBS="$LIBS -Wl,-bnolibpath"
343 dnl Various checks for headers and their contents
348 AC_CHECK_HEADERS([arpa/ftp.h \
379 netinet/in6_machtypes.h \
388 security/pam_modules.h \
448 CHECK_NETINET_IP_AND_TCP
452 if test "$ac_cv_header_err_h" != yes; then
453 EXTRA_HEADERS="$EXTRA_HEADERS err.h"
455 if test "$ac_cv_header_fnmatch_h" != yes; then
456 EXTRA_LOCL_HEADERS="$EXTRA_LOCL_HEADERS fnmatch.h"
458 AC_SUBST(EXTRA_HEADERS)
459 AC_SUBST(EXTRA_LOCL_HEADERS)
461 AC_GROK_TYPES(int8_t int16_t int32_t int64_t)
462 AC_GROK_TYPES(u_int8_t u_int16_t u_int32_t u_int64_t)
464 AC_MSG_CHECKING(for strange sys/bitypes.h)
465 AC_CACHE_VAL(krb_cv_int8_t_ifdef, [
467 #ifdef HAVE_SYS_TYPES_H
468 #include <sys/types.h>
470 #ifdef HAVE_SYS_BITYPES_H
471 #include <sys/bitypes.h>
473 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
474 #include <netinet/in6_machtypes.h>
479 krb_cv_int8_t_ifdef=no,
480 krb_cv_int8_t_ifdef=yes)])
481 AC_MSG_RESULT($krb_cv_int8_t_ifdef)
482 if test "$krb_cv_int8_t_ifdef" = "yes"; then
483 AC_DEFINE(HAVE_STRANGE_INT8_T, 1, [Huh?])dnl
487 dnl Various checks for libraries and their contents
490 AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
493 dnl System V is have misplaced the socket routines, should really be in libc
496 AC_FIND_FUNC(socket, socket,
497 [#ifdef HAVE_SYS_TYPES_H
498 #include <sys/types.h>
500 #ifdef HAVE_SYS_SOCKET_H
501 #include <sys/socket.h>
504 AC_FIND_FUNC(gethostbyname, nsl,
505 [#ifdef HAVE_SYS_TYPES_H
506 #include <sys/types.h>
508 #ifdef HAVE_SYS_SOCKET_H
509 #include <sys/socket.h>
514 dnl Horror AIX needs -lodm -lcfg to link login
517 AC_FIND_FUNC(odm_initialize, odm)
518 AC_FIND_FUNC(getattr, cfg)
519 AC_FIND_FUNC(setpcred, s)
520 AC_FIND_FUNC(logwtmp, util)
522 AC_FIND_FUNC(logout, util)
523 AC_FIND_FUNC_NO_LIBS(tgetent, termcap ncurses curses)
526 dnl See if there is any X11 present
529 if test "$no_x" = "yes" ; then
531 MAKE_X_SCRIPTS_BIN=""
532 MAKE_X_PROGS_LIBEXEC=""
534 MAKE_X_PROGS_BIN='$(X_PROGS_BIN)'
535 MAKE_X_SCRIPTS_BIN='$(X_SCRIPTS_BIN)'
536 MAKE_X_PROGS_LIBEXEC='$(X_PROGS_LIBEXEC)'
538 AC_SUBST(MAKE_X_PROGS_BIN)dnl
539 AC_SUBST(MAKE_X_SCRIPTS_BIN)dnl
540 AC_SUBST(MAKE_X_PROGS_LIBEXEC)dnl
545 dnl Look for berkeley db, gdbm, and ndbm in that order.
548 KRB_FIND_DB("" $berkeley_db gdbm ndbm)
550 AC_FIND_FUNC(syslog, syslog)
555 if test "$ac_cv_func_glob_working" != yes; then
556 EXTRA_LOCL_HEADERS="$EXTRA_LOCL_HEADERS glob.h"
557 LIBOBJS="$LIBOBJS glob.o"
612 yp_get_default_domain \
617 AC_CHECK_GETPWNAM_R_POSIX
619 AC_FIND_FUNC_NO_LIBS(getsockopt,,
620 [#ifdef HAVE_SYS_TYPES_H
621 #include <sys/types.h>
623 #ifdef HAVE_SYS_SOCKET_H
624 #include <sys/socket.h>
627 AC_FIND_FUNC_NO_LIBS(setsockopt,,
628 [#ifdef HAVE_SYS_TYPES_H
629 #include <sys/types.h>
631 #ifdef HAVE_SYS_SOCKET_H
632 #include <sys/socket.h>
637 AC_CHECK_FUNCS(getudbnam setlim)
639 AC_FIND_FUNC(res_search, resolv,
642 #ifdef HAVE_SYS_TYPES_H
643 #include <sys/types.h>
645 #ifdef HAVE_NETINET_IN_H
646 #include <netinet/in.h>
648 #ifdef HAVE_ARPA_NAMESER_H
649 #include <arpa/nameser.h>
657 AC_FIND_FUNC(dn_expand, resolv,
660 #ifdef HAVE_SYS_TYPES_H
661 #include <sys/types.h>
663 #ifdef HAVE_NETINET_IN_H
664 #include <netinet/in.h>
666 #ifdef HAVE_ARPA_NAMESER_H
667 #include <arpa/nameser.h>
675 AC_SUBST(LIB_res_search)dnl
676 AC_SUBST(LIB_dn_expand)dnl
683 AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
688 if test "$ac_cv_func_hstrerror" = yes; then
696 AC_BROKEN(chown copyhostent daemon err errx fchown flock fnmatch freehostent)
697 AC_BROKEN(getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname)
698 AC_BROKEN(geteuid getgid getegid)
699 AC_BROKEN(getopt getusershell)
700 AC_BROKEN(inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat)
702 AC_BROKEN(mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid)
703 AC_BROKEN(strcasecmp strncasecmp strdup strerror strftime)
704 AC_BROKEN(strlcat strlcpy strlwr)
705 AC_BROKEN(strndup strnlen strptime strsep strtok_r strupr)
706 AC_BROKEN(swab unsetenv verr verrx vsyslog)
707 AC_BROKEN(vwarn vwarnx warn warnx writev)
709 if test "$ac_cv_func_gethostname" = "yes"; then
711 #include <unistd.h>],
715 if test "$ac_cv_func_mkstemp" = "yes"; then
717 #include <unistd.h>],
721 if test "$ac_cv_func_inet_aton" = "yes"; then
723 #ifdef HAVE_SYS_TYPES_H
724 #include <sys/types.h>
726 #ifdef HAVE_SYS_SOCKET_H
727 #include <sys/socket.h>
729 #ifdef HAVE_NETINET_IN_H
730 #include <netinet/in.h>
732 #ifdef HAVE_ARPA_INET_H
733 #include <arpa/inet.h>
738 AC_CACHE_CHECK(if realloc is broken, ac_cv_func_realloc_broken, [
739 ac_cv_func_realloc_broken=no
746 return realloc(NULL, 17) == NULL;
748 ],:, ac_cv_func_realloc_broken=yes, :)
750 if test "$ac_cv_func_realloc_broken" = yes ; then
751 AC_DEFINE(BROKEN_REALLOC, 1, [Define if realloc(NULL, X) doesn't work.])
754 AC_KRB_FUNC_GETCWD_BROKEN
757 dnl Figure what authentication modules should be built
760 AC_MSG_CHECKING(which authentication modules should be built)
764 if test "$ac_cv_header_siad_h" = yes; then
765 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
768 if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then
769 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
774 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
778 AC_MSG_RESULT($LIB_AUTH_SUBDIRS)
780 AC_SUBST(LIB_AUTH_SUBDIRS)dnl
783 dnl Checks for prototypes and declarations
787 #ifdef HAVE_SYS_TYPES_H
788 #include <sys/types.h>
790 #ifdef HAVE_SYS_SOCKET_H
791 #include <sys/socket.h>
793 #ifdef HAVE_NETINET_IN_H
794 #include <netinet/in.h>
796 #ifdef HAVE_ARPA_INET_H
797 #include <arpa/inet.h>
803 gethostbyname, struct hostent *gethostbyname(const char *))
806 #ifdef HAVE_SYS_TYPES_H
807 #include <sys/types.h>
809 #ifdef HAVE_SYS_SOCKET_H
810 #include <sys/socket.h>
812 #ifdef HAVE_NETINET_IN_H
813 #include <netinet/in.h>
815 #ifdef HAVE_ARPA_INET_H
816 #include <arpa/inet.h>
822 gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int))
825 #ifdef HAVE_SYS_TYPES_H
826 #include <sys/types.h>
828 #ifdef HAVE_SYS_SOCKET_H
829 #include <sys/socket.h>
831 #ifdef HAVE_NETINET_IN_H
832 #include <netinet/in.h>
834 #ifdef HAVE_ARPA_INET_H
835 #include <arpa/inet.h>
841 getservbyname, struct servent *getservbyname(const char *, const char *))
848 openlog, void openlog(const char *, int, int))
887 AC_CHECK_VAR([#ifdef HAVE_SYS_TYPES_H
888 #include <sys/types.h>
895 AC_CHECK_VAR([#ifdef HAVE_NETDB_H
900 AC_CHECK_VAR([#ifdef HAVE_NETDB_H
905 AC_CHECK_VAR([#ifdef HAVE_ERR_H
907 #endif],[__progname])
909 AC_CHECK_DECLARATION([#include <stdlib.h>
913 AC_CHECK_DECLARATION([#include <stdlib.h>
917 AC_CHECK_DECLARATION([#include <stdlib.h>
921 AC_CHECK_DECLARATION([#include <stdlib.h>
926 AC_CHECK_DECLARATION([#include <stdlib.h>], environ)
929 dnl According to ANSI you are explicitly allowed to cast to void,
930 dnl but the standard fails to say what should happen. Some compilers
931 dnl think this is illegal:
938 dnl Thus explicitly test for void
941 if test "$ac_cv_type_signal" = "void" ; then
942 AC_DEFINE(VOID_RETSIGTYPE, 1, [Define if RETSIGTYPE == void.])
946 dnl Check for fields in struct utmp
949 AC_HAVE_STRUCT_FIELD(struct utmp, ut_addr,
950 [#include <sys/types.h>
952 AC_HAVE_STRUCT_FIELD(struct utmp, ut_host,
953 [#include <sys/types.h>
955 AC_HAVE_STRUCT_FIELD(struct utmp, ut_id,
956 [#include <sys/types.h>
958 AC_HAVE_STRUCT_FIELD(struct utmp, ut_pid,
959 [#include <sys/types.h>
961 AC_HAVE_STRUCT_FIELD(struct utmp, ut_type,
962 [#include <sys/types.h>
964 AC_HAVE_STRUCT_FIELD(struct utmp, ut_user,
965 [#include <sys/types.h>
967 AC_HAVE_STRUCT_FIELD(struct utmpx, ut_exit,
968 [#include <sys/types.h>
970 AC_HAVE_STRUCT_FIELD(struct utmpx, ut_syslen,
971 [#include <sys/types.h>
975 dnl Check for fields in struct tm
978 AC_HAVE_STRUCT_FIELD(struct tm, tm_gmtoff, [#include <time.h>])
979 AC_HAVE_STRUCT_FIELD(struct tm, tm_zone, [#include <time.h>])
982 dnl or do we have a variable `timezone' ?
989 AC_HAVE_TYPE([sa_family_t],[#include <sys/socket.h>])
991 AC_HAVE_TYPE([socklen_t],[#include <sys/socket.h>])
993 AC_HAVE_TYPE([struct sockaddr_storage], [#include <sys/socket.h>])
1000 dnl Check for struct winsize
1003 AC_KRB_STRUCT_WINSIZE
1006 dnl Check for some common types
1014 AC_CHECK_TYPE_EXTRA(ssize_t, int, [
1015 #ifdef HAVE_UNISTD_H
1019 AC_CHECK_TYPE_EXTRA(sig_atomic_t, int, [#include <signal.h>])
1022 dnl Check for broken ultrix sys/socket.h
1025 AC_MSG_CHECKING(for broken sys/socket.h)
1026 AC_CACHE_VAL(krb_cv_header_sys_socket_h_broken, [
1028 [#include <sys/types.h>
1029 #include <sys/socket.h>
1030 #include <sys/socket.h>],[],
1031 krb_cv_header_sys_socket_h_broken=no,
1032 krb_cv_header_sys_socket_h_broken=yes)])
1033 AC_MSG_RESULT($krb_cv_header_sys_socket_h_broken)
1034 AC_SUBST(krb_cv_header_sys_socket_h_broken)
1037 dnl Check for broken ultrix netdb.h
1040 AC_MSG_CHECKING(for broken netdb.h)
1041 AC_CACHE_VAL(krb_cv_header_netdb_h_broken, [
1043 [#include <sys/types.h>
1045 #include <netdb.h>],[],
1046 krb_cv_header_netdb_h_broken=no,
1047 krb_cv_header_netdb_h_broken=yes)])
1048 AC_MSG_RESULT($krb_cv_header_netdb_h_broken)
1049 AC_SUBST(krb_cv_header_netdb_h_broken)
1050 if test "$krb_cv_header_netdb_h_broken" = "yes"; then
1051 EXTRA_HEADERS="$EXTRA_HEADERS netdb.h"
1055 dnl Check for sa_len in sys/socket.h
1058 AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
1059 #include <sys/socket.h>])
1062 dnl Check for ouid in sys/siad.h
1065 if test "$ac_cv_header_siad_h" = yes; then
1066 AC_HAVE_STRUCT_FIELD(SIAENTITY, ouid, [#include <siad.h>])
1070 dnl you can link with getmsg on AIX 3.2 but you cannot run the program
1073 AC_CHECK_FUNC(getmsg)
1075 if test "$ac_cv_func_getmsg" = "yes"; then
1077 AC_CACHE_CHECK(for working getmsg, ac_cv_func_getmsg_work,
1086 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
1087 if(ret < 0 && errno == ENOSYS)
1091 ], ac_cv_func_getmsg_work=yes, ac_cv_func_getmsg_work=no,
1092 ac_cv_func_getmsg_work=no))
1093 test "$ac_cv_func_getmsg_work" = "yes" &&
1094 AC_DEFINE(HAVE_GETMSG, 1, [Define if you have a working getmsg.])
1099 dnl Tests for editline
1104 AC_FIND_FUNC_NO_LIBS(el_init, edit, [], [], [$LIB_tgetent])
1105 if test "$ac_cv_func_el_init" = yes ; then
1106 AC_CACHE_CHECK(for four argument el_init, ac_cv_func_el_init_four,[
1107 AC_TRY_COMPILE([#include <stdio.h>
1108 #include <histedit.h>],
1109 [el_init("", NULL, NULL, NULL);],
1110 ac_cv_func_el_init_four=yes,
1111 ac_cv_func_el_init_four=no)])
1112 if test "$ac_cv_func_el_init_four" = yes; then
1113 AC_DEFINE(HAVE_FOUR_VALUED_EL_INIT, 1, [Define if el_init takes four arguments.])
1120 LIBS="$LIB_tgetent $LIBS"
1121 AC_FIND_FUNC_NO_LIBS(readline, edit readline)
1124 if test "$with_readline" -a "$with_readline" != "no"; then
1126 elif test "$ac_cv_func_readline" = yes; then
1128 elif test "$ac_cv_func_el_init" = yes; then
1130 LIB_readline="-L\$(top_builddir)/lib/editline -lel_compat $LIB_el_init"
1131 INCLUDE_readline='-I$(top_srcdir)/lib/editline'
1133 LIB_readline='-L$(top_builddir)/lib/editline -leditline'
1134 INCLUDE_readline='-I$(top_srcdir)/lib/editline'
1136 LIB_readline="$LIB_readline \$(LIB_tgetent)"
1137 AC_DEFINE(HAVE_READLINE, 1, [Define if you have a readline function.])dnl XXX
1138 AC_SUBST(LIB_readline)
1139 AC_SUBST(INCLUDE_readline)
1142 dnl telnet muck --------------------------------------------------
1144 AC_DEFINE(AUTHENTICATION)dnl
1146 AC_DEFINE(ENCRYPTION)dnl
1147 AC_DEFINE(DES_ENCRYPTION)dnl
1148 AC_DEFINE(DIAGNOSTICS)dnl
1149 AC_DEFINE(OLD_ENVIRON)dnl
1151 # Simple test for streamspty, based on the existance of getmsg(), alas
1152 # this breaks on SunOS4 which have streams but BSD-like ptys
1154 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
1156 AC_MSG_CHECKING(for streamspty)
1157 case "`uname -sr`" in
1158 SunOS\ 4*|OSF1*|IRIX\ 4*|HP-UX\ ?.1[[01]].*)
1159 krb_cv_sys_streamspty=no
1162 os_rel=`uname -v`.`uname -r`
1163 if expr "$os_rel" : "3*" >/dev/null 2>&1; then
1164 krb_cv_sys_streamspty=no
1166 krb_cv_sys_streamspty="$ac_cv_func_getmsg_work"
1170 krb_cv_sys_streamspty="$ac_cv_func_getmsg_work"
1173 if test "$krb_cv_sys_streamspty" = yes; then
1174 AC_DEFINE(STREAMSPTY, 1, [Define if you have working stream ptys.])
1176 dnl AC_SUBST(STREAMSPTY)
1177 AC_MSG_RESULT($krb_cv_sys_streamspty)
1179 AC_MSG_CHECKING([if /bin/ls takes -A])
1180 if /bin/ls -A > /dev/null 2>&1 ;then
1181 AC_DEFINE(HAVE_LS_A, 1, [Define if /bin/ls has a \`-A' flag.])
1186 AC_MSG_RESULT($krb_ls_a)
1188 dnl ------------------------------------------------------------
1189 AC_CACHE_CHECK(for suffix of preformatted manual pages, krb_cv_sys_cat_suffix,
1190 if grep _version /etc/man.conf > /dev/null 2>&1; then
1191 krb_cv_sys_cat_suffix=0
1193 krb_cv_sys_cat_suffix=number
1195 if test "$krb_cv_sys_cat_suffix" = number; then
1202 dnl ------------------------------------------------------------
1204 KRB_KAFS_LIB="-L\$(top_builddir)/lib/kafs -lkafs $AIX_EXTRA_KAFS"
1205 AC_SUBST(KRB_KAFS_LIB)dnl
1207 dnl ------------------------------------------------------------
1210 dnl This is done by AC_OUTPUT but we need the result here.
1212 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1215 for i in bin lib libexec sbin; do
1217 foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'`
1220 while test "x$y" != "x$x"; do
1224 AC_DEFINE_UNQUOTED($foo,"$x")
1228 dnl We are all set to emit the Makefiles and config.h
1233 include/sys/Makefile \
1238 lib/com_err/Makefile \
1245 lib/roken/Makefile \
1248 lib/editline/Makefile \
1249 lib/rxkad/Makefile \
1251 lib/auth/pam/Makefile \
1252 lib/auth/sia/Makefile \
1253 lib/auth/afskauthlib/Makefile \
1263 appl/afsutil/Makefile \
1265 appl/ftp/common/Makefile \
1266 appl/ftp/ftp/Makefile \
1267 appl/ftp/ftpd/Makefile \
1268 appl/telnet/Makefile \
1269 appl/telnet/libtelnet/Makefile \
1270 appl/telnet/telnet/Makefile \
1271 appl/telnet/telnetd/Makefile \
1273 appl/kauth/Makefile \
1274 appl/popper/Makefile \
1275 appl/movemail/Makefile \
1276 appl/push/Makefile \
1277 appl/sample/Makefile \
1278 appl/xnlock/Makefile \
1283 etc/inetd.conf.changes \
1284 ) dnl end of AC_OUTPUT