X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=configure.in;h=575113190ed25a676f55d2d06f2b25af8dc60265;hp=899c19af36ca3594a213db733f396b9074a4db5f;hb=93cd0e33defba46f8e51d9a98a94599ceb0d521c;hpb=b16bf68a6dc27b364cb76156a7be0208594f1e94 diff --git a/configure.in b/configure.in index 899c19af..57511319 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -dnl $Id: configure.in,v 1.13.2.37 2001/11/15 23:26:27 zarq Exp $ +dnl $Id: configure.in,v 1.13.2.38 2001/11/15 23:49:46 zarq Exp $ AC_INIT(src/tincd.c) AM_INIT_AUTOMAKE(tinc, 1.0-cvs) @@ -68,6 +68,21 @@ AC_TYPE_SIZE_T AC_HEADER_TIME AC_STRUCT_TM +AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [ + AC_TRY_COMPILE( + [ +#include +#include +#include + ], + [ struct addrinfo s; s.ai_flags = 0; ], + [ ac_cv_have_struct_addrinfo="yes" ], + [ ac_cv_have_struct_addrinfo="no" ] + )]) +if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then + AC_DEFINE(HAVE_STRUCT_ADDRINFO) +fi + dnl Checks for library functions. AC_FUNC_MEMCMP AC_FUNC_ALLOCA