blob: dcef075baa586700b2d4fe399e5c7698b662677f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
dnl Debug mode
AC_DEFUN([AC_ESPIK_DEBUG],
[
AC_MSG_CHECKING(for debug)
AC_ARG_ENABLE(
[debug],
AC_HELP_STRING([--enable-debug], [Enable debug mode (default=yes)]),
[if test "$enable_debug" = "no"; then
debug="no"
else
debug="yes"
fi
],
[debug="yes"])
if test "$debug" != "no"; then
debug="yes"
DEBUG_CFLAGS="-g -D_ESPIK_DEBUG_"
else
DEBUG_LDFLAGS="-s"
fi
AC_MSG_RESULT($debug ($DEBUG_CFLAGS$DEBUG_LDFLAGS))
AC_SUBST(DEBUG_CFLAGS)
AC_SUBST(DEBUG_LDFLAGS)
])
|