]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/m4/ntp_sntp.m4
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / m4 / ntp_sntp.m4
1 dnl ######################################################################
2 dnl Common m4sh code SNTP
3 AC_DEFUN([NTP_WITHSNTP], [
4
5 dnl preset withsntp=no in env to change default to --without-sntp
6 AC_MSG_CHECKING([if sntp will be built])
7 AC_ARG_WITH(
8     [sntp],
9     [AS_HELP_STRING(
10         [--without-sntp],
11         [- disable building sntp and sntp/tests]
12     )],
13     [],
14     [with_sntp="${withsntp=yes}"]
15 )
16 case "$with_sntp" in
17  no)
18     SNTP=
19     ;;
20  *)
21     SNTP=sntp
22     ;;
23 esac
24 AC_SUBST([SNTP])
25 AM_CONDITIONAL([BUILD_SNTP], [test -n "$SNTP"])
26 AC_MSG_RESULT([$with_sntp])
27
28 ])dnl
29 dnl ======================================================================