]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/m4/ntp_debug.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_debug.m4
1 dnl ######################################################################
2 dnl Common m4sh code for debug
3 AC_DEFUN([NTP_DEBUG], [
4
5 AC_MSG_CHECKING([if we're including debugging code])
6 AC_ARG_ENABLE(
7     [debugging],
8     [AS_HELP_STRING(
9         [--enable-debugging],
10         [+ include ntpd debugging code]
11     )],
12     [ntp_ok=$enableval],
13     [ntp_ok=yes]
14 )
15 case "$ntp_ok" in
16  yes)
17     AC_DEFINE([DEBUG], [1], [Enable debugging code?])
18 esac
19 AC_MSG_RESULT([$ntp_ok])
20
21 ])dnl
22 dnl ======================================================================