From 27a2ecc1adc97497b97092a820177c0666238baf Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 22 Aug 2008 01:20:23 +0000 Subject: [PATCH] Check for struct sockaddr_storage only in top-level configure script, not in code common to all. Use an existing AC_CHECK_TYPES invocation, not a special-purpose test. Eliminate now-unused KRB5_AC_CHECK_TYPE_WITH_HEADERS and KRB5_AC_CHECK_SOCKADDR_STORAGE macros. Merge KRB5_AC_CHECK_INET6 into the one place where it gets used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20681 dc483132-0cff-0310-8789-dd5450dbe970 --- src/aclocal.m4 | 29 ----------------------------- src/configure.in | 2 +- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 898cca5b8..d788f0a5e 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -411,35 +411,6 @@ fi dnl AC_REQUIRE([KRB5_SOCKADDR_SA_LEN])dnl AC_ARG_ENABLE([ipv6], , AC_MSG_WARN(enable/disable-ipv6 option is deprecated))dnl -KRB5_AC_CHECK_INET6 -])dnl -dnl -AC_DEFUN(KRB5_AC_CHECK_TYPE_WITH_HEADERS,[ -AC_MSG_CHECKING(for type $1) -changequote(<<,>>)dnl -varname=`echo $1 | sed 's,[ -],_,g'` -changequote([,])dnl -AC_CACHE_VAL(krb5_cv_$varname,[ -AC_TRY_COMPILE([$2],[ $1 foo; ], eval krb5_cv_$varname=yes, eval krb5_cv_$varname=no)]) -eval x="\$krb5_cv_$varname" -AC_MSG_RESULT($x) -if eval test "$x" = yes ; then - AC_DEFINE_UNQUOTED(HAVE_`echo $varname | tr '[[[a-z]]]' '[[[A-Z]]]'`) -fi]) -dnl -dnl -AC_DEFUN(KRB5_AC_CHECK_SOCKADDR_STORAGE,[ -KRB5_AC_CHECK_TYPE_WITH_HEADERS(struct sockaddr_storage, [ -#ifdef HAVE_SYS_TYPES_H -#include -#endif -#include -#include -])])dnl -dnl -dnl -AC_DEFUN(KRB5_AC_CHECK_INET6,[ -AC_REQUIRE([KRB5_AC_CHECK_SOCKADDR_STORAGE])dnl AC_MSG_CHECKING(for IPv6 compile-time support) AC_CACHE_VAL(krb5_cv_inet6,[ if test "$ac_cv_func_inet_ntop" != "yes" ; then diff --git a/src/configure.in b/src/configure.in index 0e9bd3ab5..cb12875e1 100644 --- a/src/configure.in +++ b/src/configure.in @@ -606,7 +606,7 @@ AC_CHECK_TYPES([uint32_t, int32_t, uint64_t, int64_t, uint_least32_t, uintptr_t, # include #endif ]) -AC_CHECK_TYPES([struct cmsghdr, struct in_pktinfo, struct in6_pktinfo], , , [ +AC_CHECK_TYPES([struct cmsghdr, struct in_pktinfo, struct in6_pktinfo, struct sockaddr_storage], , , [ #include #include #include -- 2.26.2