File: debugmode.m4

package info (click to toggle)
libchipcard2 2.1.9-2
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 7,052 kB
  • ctags: 3,761
  • sloc: ansic: 53,628; xml: 11,689; sh: 8,909; makefile: 1,394; cpp: 400
file content (24 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (2)
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: debugmode.m4 2 2005-01-02 10:05:37Z aquamaniac $
# (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)
])