From e40542ef3a415d163a5ff5fee26c888fead79fa6 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 9 May 2017 16:46:41 +0200 Subject: Minor autoconf cleanup and documentation update --- configure.ac | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 2180bcdf..ca8d7690 100644 --- a/configure.ac +++ b/configure.ac @@ -241,25 +241,7 @@ case $sysdesc in esac AC_CHECK_HEADERS_ONCE([alloca.h syslog.h]) - -AC_MSG_CHECKING(whether 'struct sockaddr' has sa_len) -AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM( - [[ - #include - #include - ]], - [[ - static struct sockaddr sa; - int i = sizeof(sa.sa_len); - ]] - )], - [ - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_SIN_LEN,,sin_len) - ], - [AC_MSG_RESULT(no)] -) +AC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [], [#include ]) AC_C_BIGENDIAN( [AC_DEFINE([CPU_BIG_ENDIAN], [1], [Define to 1 if cpu is big endian])], -- cgit v1.2.3