diff options
author | roberto <roberto@FreeBSD.org> | 2009-12-15 14:58:10 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2009-12-15 14:58:10 +0000 |
commit | 230e76b5380d386df4ba9fee065378a39a10e8b5 (patch) | |
tree | 2928c8428ba1c1401c7dcd5d3c3c610fbb90b794 /contrib/ntp/sntp/configure.ac | |
parent | 2bc44b96096e82af8f7720c1883039f28c130aa0 (diff) | |
parent | ecc42837d301a8d8e257020b30492277ad558d30 (diff) | |
download | FreeBSD-src-230e76b5380d386df4ba9fee065378a39a10e8b5.zip FreeBSD-src-230e76b5380d386df4ba9fee065378a39a10e8b5.tar.gz |
Merge 4.2.4p8 into contrib (r200452 & r200454).
Subversion is being difficult here so take a hammer and get it in.
MFC after: 2 weeks
Security: CVE-2009-3563
Diffstat (limited to 'contrib/ntp/sntp/configure.ac')
-rw-r--r-- | contrib/ntp/sntp/configure.ac | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/contrib/ntp/sntp/configure.ac b/contrib/ntp/sntp/configure.ac index 5cc52b1..be6943f 100644 --- a/contrib/ntp/sntp/configure.ac +++ b/contrib/ntp/sntp/configure.ac @@ -12,6 +12,9 @@ AC_PROG_CC # It's a small library - we might as well use a static version of it. AC_DISABLE_SHARED +m4_defun([_LT_AC_LANG_CXX_CONFIG], [:]) +m4_defun([_LT_AC_LANG_F77_CONFIG], [:]) + AC_PROG_LIBTOOL # NTP has (so far) been relying on leading-edge autogen. @@ -40,6 +43,17 @@ case "$ac_cv_cpp_warning" in ;; esac +AC_C_INLINE + +case "$ac_cv_c_inline" in + '') + ;; + *) + AC_DEFINE(HAVE_INLINE,1,[inline keyword or macro available]) + AC_SUBST(HAVE_INLINE) +esac + + # Checks for libraries. # Checks for header files. @@ -96,14 +110,14 @@ case "$ac_cv_have_ss_family_in_struct_ss$ac_cv_have___ss_family_in_struct_ss" in esac # Checks for library functions. -AC_FUNC_MEMCMP +#AC_FUNC_MEMCMP dnl HMS: we don't have a memcmp.c to use here, so why bother? AC_FUNC_SETVBUF_REVERSED AC_TYPE_SIGNAL AC_CHECK_FUNCS([alarm]) -AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent, , , -lsocket)) +AC_CHECK_FUNC([gethostent], , AC_SEARCH_LIBS([gethostent], [nsl], , , [-lsocket])) AC_CHECK_FUNCS([gettimeofday inet_ntoa memset]) -AC_CHECK_FUNCS(socket, , AC_CHECK_LIB(socket, socket)) -AC_CHECK_FUNCS(sqrt, , AC_CHECK_LIB(m, sqrt)) +AC_CHECK_FUNCS([socket], , AC_SEARCH_LIBS([socket], [socket])) +AC_CHECK_FUNCS([sqrt], , AC_SEARCH_LIBS([sqrt], [m])) AC_CHECK_FUNCS([strrchr]) case "$host" in |