File: debugmode.m4

package info (click to toggle)
libchipcard 5.1.0beta-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,688 kB
  • sloc: ansic: 21,052; xml: 6,746; sh: 4,177; makefile: 610; cpp: 448
file content (24 lines) | stat: -rw-r--r-- 576 bytes parent folder | download | duplicates (29)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# $Id$
# (c) 2002 Martin Preuss<martin@libchipcard.de>
# This function checks for the debugmode


AC_DEFUN([AQ_DEBUGMODE],[
dnl IN: 
dnl   nothing
dnl OUT:
dnl   Variables:
dnl     DEBUGMODE: number of the debug level (subst)
dnl   Defines:
dnl     DEBUGMODE: number of the debug level (subst)

dnl check for debugmode
AC_MSG_CHECKING(for debug mode)
AC_ARG_WITH(debug-mode,
  [  --with-debug-mode=MODE  debug mode],
  [DEBUGMODE="$withval"],
  [DEBUGMODE="0"])
AC_SUBST(DEBUGMODE)
AC_DEFINE_UNQUOTED(DEBUGMODE,$DEBUGMODE,[debug mode to be used])
AC_MSG_RESULT($DEBUGMODE)
])