Deleted Added
full compact
ntp_libntp.m4 (1.1.1.7) ntp_libntp.m4 (1.1.1.8)
1dnl ######################################################################
2dnl Common m4sh code for libntp and clients
3dnl
4dnl Any configure tests which libntp or libisc code depends upon should
5dnl be here or in another m4 macro used by the top-level and sntp
6dnl configure.ac files, so that libntp can be moved into the sntp
7dnl subpackage while retaining access to such test results.
8dnl

--- 679 unchanged lines hidden (view full) ---

688case "$ntp_have_solarisprivs" in
689 yes)
690 AC_DEFINE([HAVE_SOLARIS_PRIVS], [1],
691 [Are Solaris privileges available?])
692esac
693
694AC_MSG_RESULT([$ntp_have_solarisprivs])
695
1dnl ######################################################################
2dnl Common m4sh code for libntp and clients
3dnl
4dnl Any configure tests which libntp or libisc code depends upon should
5dnl be here or in another m4 macro used by the top-level and sntp
6dnl configure.ac files, so that libntp can be moved into the sntp
7dnl subpackage while retaining access to such test results.
8dnl

--- 679 unchanged lines hidden (view full) ---

688case "$ntp_have_solarisprivs" in
689 yes)
690 AC_DEFINE([HAVE_SOLARIS_PRIVS], [1],
691 [Are Solaris privileges available?])
692esac
693
694AC_MSG_RESULT([$ntp_have_solarisprivs])
695
696case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
696AC_CHECK_HEADERS([sys/mac.h])
697
698AC_ARG_ENABLE(
699 [trustedbsd_mac],
700 [AS_HELP_STRING(
701 [--enable-trustedbsd-mac],
702 [s Use TrustedBSD MAC policy for non-root clock control]
703 )],
704 [ntp_use_trustedbsd_mac=$enableval]
705)
706
707AC_MSG_CHECKING([if we should use TrustedBSD MAC privileges])
708
709case "$ntp_use_trustedbsd_mac$ac_cv_header_sys_mac_h" in
710 yesyes)
711 AC_DEFINE([HAVE_TRUSTEDBSD_MAC], [1],
712 [Are TrustedBSD MAC policy privileges available?])
713esac
714
715AC_MSG_RESULT([$ntp_use_trustedbsd_mac])
716
717case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs$ntp_use_trustedbsd_mac" in
697 *yes*)
698 AC_DEFINE([HAVE_DROPROOT], [1],
699 [Can we drop root privileges?])
700esac
701
702case "$host" in
703 *-*-darwin*)
704 AC_SEARCH_LIBS([res_9_init], [resolv])

--- 436 unchanged lines hidden ---
718 *yes*)
719 AC_DEFINE([HAVE_DROPROOT], [1],
720 [Can we drop root privileges?])
721esac
722
723case "$host" in
724 *-*-darwin*)
725 AC_SEARCH_LIBS([res_9_init], [resolv])

--- 436 unchanged lines hidden ---