aboutsummaryrefslogtreecommitdiff
path: root/m4/ac_espik_debug.m4
blob: 0b904b2c819bd5b8788c73c703603f950cbaab26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
dnl Debug mode
AC_DEFUN([AC_ESPIK_DEBUG]),
[
  AC_ARG_ENABLE(
    [debug],
    AC_HELP_STRING(
      [--enable-debug], [Enable debug mode (default=yes)]),
      [if test "$enable_debug" = "yes" ; then
        DEBUG_CFLAGS="-g -D_ESPIK_DEBUG_"
       else
        DEBUG_LDFLAGS="-s"
       fi], [debug="yes"])

  AC_SUBST(DEBUG_CFLAGS)
  AC_SUBST(DEBUG_LDFLAGS)
])