[asterisk-commits] rizzo: branch 1.4 r72489 - /branches/1.4/configure.ac

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 28 14:29:34 CDT 2007


Author: rizzo
Date: Thu Jun 28 14:29:34 2007
New Revision: 72489

URL: http://svn.digium.com/view/asterisk?view=rev&rev=72489
Log:
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 ?


Modified:
    branches/1.4/configure.ac

Modified: branches/1.4/configure.ac
URL: http://svn.digium.com/view/asterisk/branches/1.4/configure.ac?view=diff&rev=72489&r1=72488&r2=72489
==============================================================================
--- branches/1.4/configure.ac (original)
+++ branches/1.4/configure.ac Thu Jun 28 14:29:34 2007
@@ -22,7 +22,7 @@
 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_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
@@ -260,6 +260,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(




More information about the asterisk-commits mailing list