From 4134554eaa2ff4af3c54367935c2c8c864b4e78b Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Thu, 28 Jun 2007 19:29:34 +0000 Subject: [PATCH] add a check for gethostbyname_r so we can simplify the handling e.g. in utils.c Also add comments on a couple of features which are not working on FreeBSD. All the above has been already done in trunk so the merge must be blocked. Can someone please regenerate ./configure ? git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72489 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index fd546ceee9..770334f64f 100644 --- a/configure.ac +++ b/configure.ac @@ -22,7 +22,7 @@ AC_COPYRIGHT("Asterisk") AC_REVISION($Revision$) AC_GNU_SOURCE -AC_USE_SYSTEM_EXTENSIONS +AC_USE_SYSTEM_EXTENSIONS # note- does not work on FreeBSD case "${host_os}" in freebsd*) @@ -120,7 +120,7 @@ AC_PROG_CPP AC_PROG_CXXCPP # This macro is just copied into our local acinclude.m4 from libtool.m4 so that # the developers regenerating the configure script don't have to install libtool. -AST_PROG_LD +AST_PROG_LD # note - does not work on freebsd AC_PROG_AWK AC_PROG_INSTALL AC_PROG_LN_S @@ -261,6 +261,9 @@ AC_FUNC_UTIME_NULL AC_FUNC_VPRINTF AC_CHECK_FUNCS([asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf]) +# some systems already have gethostbyname_r so we don't need to build ours in main/utils.c +AC_CHECK_FUNCS([gethostbyname_r]) + AC_MSG_CHECKING(for PTHREAD_RWLOCK_INITIALIZER) AC_LINK_IFELSE( AC_LANG_PROGRAM([#include ],