X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=configure.in;h=0769fb9da56ff0d6f2c5f2a4e2fdaf2a912a45d8;hb=fd209bd5cc9ffc7989c461a2f2a2011790668d32;hp=69e75c6144aea3d3b34063bdfaa78cdbc4f6367e;hpb=7aea2bdc026e2ba25140b74b26c17b18810b951c;p=srvx.git diff --git a/configure.in b/configure.in index 69e75c6..0769fb9 100644 --- a/configure.in +++ b/configure.in @@ -73,13 +73,22 @@ AC_CHECK_MEMBER([struct dirent.d_type], [AC_DEFINE(HAVE_DIRENT_D_TYPE, 1, [Define if struct dirent exists and includes the d_type element.])],,[#include ]) dnl portability stuff, hurray! -Jedi +AC_CHECK_MEMBER([struct sockaddr.sa_len], + [AC_DEFINE([HAVE_SOCKADDR_SA_LEN],,[Define if struct sockaddr has sa_len field])], + [],[#include +#include ]) +AC_CHECK_MEMBER([struct addrinfo.ai_flags], + [AC_DEFINE([HAVE_STRUCT_ADDRINFO],,[Define if struct addrinfo declared])], + [],[#include +#include +#include ]) AC_CHECK_FUNCS(gettimeofday) if test $ac_cv_func_gettimeofday = no; then AC_CHECK_FUNCS(ftime,,AC_MSG_ERROR([ftime or gettimeofday required. srvx build will fail.])) fi dnl We have fallbacks in case these are missing, so just check for them. -AC_CHECK_FUNCS(bcopy getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit inet_ntoa getopt getopt_long regcomp regexec regfree sysconf,,) +AC_CHECK_FUNCS(freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long regcomp regexec regfree sysconf,,) dnl Check for absolutely required library functions. AC_CHECK_FUNCS(select socket strcspn strspn strtod strtoul,,AC_MSG_ERROR([a required function was not found. srvx build will fail.]))