xref: /freebsd-src/contrib/ntp/sntp/m4/ntp_debug.m4 (revision 416ba5c74546f32a993436a99516d35008e9f384)
1*2b15cb3dSCy Schubertdnl ######################################################################
2*2b15cb3dSCy Schubertdnl Common m4sh code for debug
3*2b15cb3dSCy SchubertAC_DEFUN([NTP_DEBUG], [
4*2b15cb3dSCy Schubert
5*2b15cb3dSCy SchubertAC_MSG_CHECKING([if we're including debugging code])
6*2b15cb3dSCy SchubertAC_ARG_ENABLE(
7*2b15cb3dSCy Schubert    [debugging],
8*2b15cb3dSCy Schubert    [AS_HELP_STRING(
9*2b15cb3dSCy Schubert        [--enable-debugging],
10*2b15cb3dSCy Schubert        [+ include ntpd debugging code]
11*2b15cb3dSCy Schubert    )],
12*2b15cb3dSCy Schubert    [ntp_ok=$enableval],
13*2b15cb3dSCy Schubert    [ntp_ok=yes]
14*2b15cb3dSCy Schubert)
15*2b15cb3dSCy Schubertcase "$ntp_ok" in
16*2b15cb3dSCy Schubert yes)
17*2b15cb3dSCy Schubert    AC_DEFINE([DEBUG], [1], [Enable debugging code?])
18*2b15cb3dSCy Schubertesac
19*2b15cb3dSCy SchubertAC_MSG_RESULT([$ntp_ok])
20*2b15cb3dSCy Schubert
21*2b15cb3dSCy Schubert])dnl
22*2b15cb3dSCy Schubertdnl ======================================================================
23