From 0af9a867ca7865d8ef09147cf2985df8df8e8f56 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 29 Oct 1997 01:07:23 +0000 Subject: [PATCH] add --{enable,disable}-otp. check for compatible prototypes for gethostbyname, gethostbyaddr, getservbyname, and openlog (they have strange prototypes on Crays) git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3686 ec53bebd-3082-4978-b11e-865c3cabbd6b --- configure.in | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 81 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 3cddd0769..c25621d0f 100644 --- a/configure.in +++ b/configure.in @@ -55,7 +55,7 @@ AC_SUBST(LIB_krb4) AC_SUBST(INCLUDE_krb4) AC_ARG_ENABLE(kaserver, -[ --enable-kaserver if you want the KDC to try to emulate a kaserver], +[ --enable-kaserver if you want the KDC to try to emulate a kaserver], [ if test "$enableval" != no; then AC_DEFINE(KASERVER, 1) @@ -66,6 +66,22 @@ if test "$enableval" != no; then fi ]) +otp=yes +AC_ARG_ENABLE(otp, +[ --disable-otp if you don't want OTP support], +[ +if test "$enableval" = "no"; then + otp=no +fi +]) +if test "$otp" = "yes"; then + AC_DEFINE(OTP) + LIB_otp='-L$(top_builddir)/lib/otp -lotp' + OTP_dir=otp +fi +AC_SUBST(LIB_otp) +AC_SUBST(OTP_dir) + AC_PATH_PROG(NROFF, nroff) AC_PATH_PROG(GROFF, groff) AC_CACHE_CHECK(how to format man pages,ac_cv_sys_man_format, @@ -227,6 +243,70 @@ dnl dnl Checks for prototypes and declarations dnl +AC_PROTO_COMPAT([ +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_INET_H +#include +#endif +#ifdef HAVE_NETDB_H +#include +#endif +], +gethostbyname, struct hostent *gethostbyname(const char *)) + +AC_PROTO_COMPAT([ +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_INET_H +#include +#endif +#ifdef HAVE_NETDB_H +#include +#endif +], +gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int)) + +AC_PROTO_COMPAT([ +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_INET_H +#include +#endif +#ifdef HAVE_NETDB_H +#include +#endif +], +getservbyname, struct servent *getservbyname(const char *, const char *)) + +AC_PROTO_COMPAT([ +#ifdef HAVE_SYSLOG_H +#include +#endif +], +openlog, void openlog(const char *, int, int)) + AC_NEED_PROTO([ #ifdef HAVE_CRYPT_H #include