no)
AC_MSG_WARN([ANSI C89/ISO C90 is the minimum to compile NTP ]
[version 4.2.5 and higher.])
+ ;;
esac
# HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
case "$ac_cv_cpp_warning" in
no)
AC_DEFINE([NO_OPTION_NAME_WARNINGS], [1], [Should we avoid @%:@warning on option name collisions?])
+ ;;
esac
case "$GCC" in
# $ac_cv_gcc_Wstrict_overflow is tested later to add the
# flag to CFLAGS.
#
+ ;;
esac
# $ac_cv_gcc_Winit_self is tested later to add the
# flag to CFLAGS.
#
+ ;;
esac
# Expose a cross-compilation indicator to makefiles
case "$ans" in
yes)
AC_MSG_WARN([Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized.])
+ ;;
esac
AC_ARG_WITH(rpath,
case "$ac_cv_gcc_Winit_self" in
yes)
CFLAGS="$CFLAGS -Winit-self"
+ ;;
esac
case "$ac_cv_gcc_Wstrict_overflow" in
yes)
CFLAGS="$CFLAGS -Wstrict-overflow"
+ ;;
esac
# -W[no-]strict-prototypes is added later depending on OpenSSL
+ ;;
esac
ac_busted_vpath_in_make=no
*) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
'')
AC_MSG_ERROR([building outside of the main directory requires GNU make])
+ ;;
esac
+ ;;
esac
AC_SUBST(CFLAGS)dnl
case "$ac_cv_search_getsockopt" in
-lxnet)
LIBS="-lxnet -lsocket $saved_LIBS"
+ ;;
+ *) LIBS="-lsocket $saved_LIBS"
+ ;;
esac
+ ;;
esac
$as_unset saved_LIBS
case "$host" in
*-*-sunos*|*-*-solaris*)
AC_CHECK_FUNCS([getpassphrase])
+ ;;
esac
AC_CHECK_HEADERS([arpa/nameser.h])
case "$ac_cv_ip_tos" in
yes)
AC_DEFINE(HAVE_IPTOS_SUPPORT, 1, [Do we have IPTOS support?])
+ ;;
esac
AC_CHECK_HEADERS(netinfo/ni.h, [AC_DEFINE(HAVE_NETINFO, 1, [NetInfo support?])])
case "$ntp_cv_type_int32_with_dns" in
yes)
AC_DEFINE([HAVE_INT32_ONLY_WITH_DNS], , [int32 type in DNS headers, not others.])
+ ;;
esac
+ ;;
esac
case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
case "$ntp_cv_type_u_int32_with_dns" in
yes)
AC_DEFINE([HAVE_U_INT32_ONLY_WITH_DNS], , [u_int32 type in DNS headers, not others.])
+ ;;
esac
+ ;;
esac
AC_CHECK_SIZEOF([time_t])
case "$ntp_cv_sockaddr_storage" in
yes)
AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE, 1, [Does a system header define struct sockaddr_storage?])
+ ;;
esac
AC_CACHE_CHECK(
case "$ntp_cv_have___ss_family" in
yes)
AC_DEFINE(HAVE___SS_FAMILY_IN_SS, 1, [Does struct sockaddr_storage have __ss_family?])
+ ;;
esac
+ ;;
esac
AH_VERBATIM(
case "$ntp_cv_have___ss_len" in
yes)
AC_DEFINE(HAVE___SS_LEN_IN_SS, 1, [Does struct sockaddr_storage have __ss_len?])
+ ;;
esac
+ ;;
esac
AH_VERBATIM(
)
case "$isc_cv_have_in_port_t" in
no)
- AC_DEFINE(ISC_PLATFORM_NEEDPORTT, 1, [Declare in_port_t?])
+ AC_DEFINE(ISC_PLATFORM_NEEDPORTT, 1, [Declare in_port_t?])
+ ;;
esac
case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
*)
AC_DEFINE(HAVE_INLINE,1,[inline keyword or macro available])
AC_SUBST(HAVE_INLINE)
+ ;;
esac
AC_C_CHAR_UNSIGNED dnl CROSS_COMPILE?
want_getifaddrs="$enableval", want_getifaddrs="yes")
case $want_getifaddrs in
-yes|glibc)
-#
-# Do we have getifaddrs() ?
-#
-case $host in
-*-*linux*)
+ yes|glibc)
+ #
+ # Do we have getifaddrs() ?
+ #
+ case $host in
+ *-*linux*)
# Some recent versions of glibc support getifaddrs() which does not
# provide AF_INET6 addresses while the function provided by the USAGI
# project handles the AF_INET6 case correctly. We need to avoid
LIBS=${save_LIBS})
fi
;;
-*)
+ *)
AC_CHECK_FUNCS([getifaddrs])
;;
-esac
-;;
-no)
-;;
+ esac
+ ;;
+ no)
+ ;;
esac
AC_MSG_CHECKING([type of socklen arg for getsockname()])
ac_cv_have_if_nametoindex=no)
case $ac_cv_have_if_nametoindex in
no)
- case "$host" in
- *-hp-hpux*)
- AC_CHECK_LIB(ipv6, if_nametoindex,
- ac_cv_have_if_nametoindex=yes
- LIBS="-lipv6 $LIBS",)
+ case "$host" in
+ *-hp-hpux*)
+ AC_CHECK_LIB(ipv6, if_nametoindex,
+ ac_cv_have_if_nametoindex=yes
+ LIBS="-lipv6 $LIBS",)
;;
esac
+ ;;
esac
case $ac_cv_have_if_nametoindex in
yes)
# http://bugs.ntp.org/737
case "$ac_cv_func_recvmsg" in
yes)
- AC_MSG_CHECKING([if we need extra help to define struct iovec])
- AC_CACHE_VAL(ac_cv_struct_iovec_help,dnl
- [for ac_cv_struct_iovec_help in '0' '1'; do
- AC_TRY_COMPILE(dnl
+ AC_MSG_CHECKING([if we need extra help to define struct iovec])
+ AC_CACHE_VAL(ac_cv_struct_iovec_help,dnl
+ [for ac_cv_struct_iovec_help in '0' '1'; do
+ AC_TRY_COMPILE(dnl
[#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
ans=yes
;;
*) ans=no
+ ;;
esac
AC_MSG_RESULT([$ans])
;;
;;
*)
ans=no
+ ;;
esac
ntp_cv_func_ctty_for_f_setown=$ans
]
case "$ntp_cv_func_ctty_for_f_setown" in
yes)
AC_DEFINE(USE_FSETOWNCTTY, 1, [Must we have a CTTY for fsetown?])
+ ;;
esac
AC_CACHE_CHECK([if the OS fails to clear cached routes when more specific routes become available], ac_cv_os_routeupdates,
i?86-*-*linux*)
ans=yes
;;
- mips-sgi-irix*)
+ mipe-sgi-irix*)
ans=yes
;;
i?86-*-freebsd[[123]].*)
case "$ans" in
yes)
AC_DEFINE(IGNORE_DNS_ERRORS, 1, [[Retry queries on _any_ DNS error?]])
+ ;;
esac
AC_MSG_RESULT([$ans])
[ntp_cv_multicast=yes],
[]
)
+ ;;
esac
]
)
;;
*)
ntp_cv_typeof_ip_multicast_loop=u_char
+ ;;
esac
]
)
$ntp_cv_typeof_ip_multicast_loop,
[What type to use for setsockopt]
)
+ ;;
esac
AC_CACHE_CHECK([[availability of ntp_{adj,get}time()]], ac_cv_var_ntp_syscalls,
*)
AC_DEFINE(AUTOKEY, , [Support NTP Autokey protocol?])
ntp_autokey=yes
+ ;;
esac
+ ;;
esac
AC_MSG_RESULT([$ntp_autokey])
ans=yes
;;
*) ans=no
+ ;;
esac
case "$host" in
*)
can_kmem=no
AC_DEFINE(NOKMEM, 1, [Should we NOT read /dev/kmem?])
+ ;;
esac
ans=yes
;;
*) ans=no
+ ;;
esac
# --enable-accurate-adjtime / --disable-accurate-adjtime
;;
*)
adjtime_is_accurate=no
+ ;;
esac
AC_CACHE_CHECK([the name of 'tick' in the kernel],
case "$adjtime_is_accurate" in
yes)
ans='tick/16'
+ ;;
esac
;;
XXX-*-pc-cygwin*)
case "$can_kmem" in
no)
ans=1000
+ ;;
esac
;;
*-*-domainos) # Skippy: won't be found...
case "$can_kmem" in
no)
ans=668
+ ;;
esac
;;
*-*-hpux*)
case "$adjtime_is_accurate" in
yes)
ans='tick/16'
+ ;;
esac
;;
*-*-irix*)
;;
*-*-unicosmp*)
ans=150
+ ;;
esac
AC_ARG_ENABLE(
ans=yes
;;
*) ans=no
+ ;;
esac
AC_ARG_ENABLE(
;;
*)
ans=no
+ ;;
esac
AC_ARG_ENABLE(
;;
*)
ans=yes
+ ;;
esac
;;
*-*-solaris2.7)
;;
*)
ans=yes
+ ;;
esac
;;
*)
ans=no
+ ;;
esac
AC_ARG_ENABLE(
case "$ans" in
no)
AC_DEFINE([DISABLE_BUG1243_FIX], 1, [use old autokey session key behavior?])
+ ;;
esac
ans=yes
;;
*) ans=no
+ ;;
esac
AC_ARG_ENABLE(
yes) AC_DEFINE(IRIG_SUCKS, 1, [Should we use the IRIG sawtooth filter?]) ;;
esac
-
AC_MSG_CHECKING([if we should enable NIST lockclock scheme])
AC_ARG_ENABLE(
yes) AC_DEFINE(LOCKCLOCK, 1, [Should we align with the NIST lockclock scheme?]) ;;
esac
-
AC_MSG_CHECKING([if we want support for Samba's signing daemon])
AC_ARG_ENABLE(
*)
AC_DEFINE(HAVE_NTP_SIGND, ,[Do we want support for Samba's signing daemon?])
AC_DEFINE_UNQUOTED(NTP_SIGND_PATH, "$ntp_signd_path", [Path to sign daemon rendezvous socket])
+ ;;
esac
-
AC_CHECK_HEADERS(sys/clockctl.h)
case "$host" in
;;
*)
ntp_have_linuxcaps=no
+ ;;
esac
AC_ARG_ENABLE(
yes)
AC_DEFINE(HAVE_LINUX_CAPABILITIES, ,[Do we have Linux capabilities?])
LIBS="$LIBS -lcap"
+ ;;
esac
case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in
*yes*)
AC_DEFINE(HAVE_DROPROOT, ,[Can we drop root privileges?])
+ ;;
esac
-
AC_CHECK_HEADERS([libscf.h])
case "$ac_cv_header_libscf_h" in
yes)
AC_SUBST(LSCF, [-lscf])
+ ;;
esac
AC_CHECK_FUNC(
AC_DEFINE(HAVE_SOLARIS_PRIVS, ,[Are Solaris privileges available?])
)
-
#
# ISC stuff
#
;;
*)
isc_netinet6in6_hack=""
+ ;;
esac
#
;;
*)
isc_netinetin6_hack=""
+ ;;
esac
case "$ac_cv_have_in6_pktinfo" in
yes)
AC_DEFINE(ISC_PLATFORM_HAVEIN6PKTINFO, , [have struct in6_pktinfo?])
+ ;;
esac
case "$ac_cv_have_sin6_scope_id" in
yes)
AC_DEFINE(ISC_PLATFORM_HAVESCOPEID, , [have sin6_scope_id?])
+ ;;
esac
+ ;;
esac
case "$isc_cv_have_in6addr_any" in
no)
AC_DEFINE(ISC_PLATFORM_NEEDIN6ADDRANY, , [missing in6addr_any?])
+ ;;
esac
case "$ac_cv_isc_struct_if_laddrconf" in
yes)
AC_DEFINE(ISC_PLATFORM_HAVEIF_LADDRCONF, , [have struct if_laddrconf?])
+ ;;
esac
AC_CACHE_CHECK(
case "$ac_cv_isc_struct_if_laddrreq" in
yes)
AC_DEFINE(ISC_PLATFORM_HAVEIF_LADDRREQ, , [have struct if_laddrreq?])
+ ;;
esac
#
case "$ac_cv_iflist_sysctl" in
yes)
AC_DEFINE(HAVE_IFLIST_SYSCTL,1,[have iflist_sysctl?])
+ ;;
esac
###