Skip to content
Snippets Groups Projects
Commit 4647fa22 authored by yanmorin's avatar yanmorin
Browse files

Adding --with-debug option

parent fbf041f0
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ AC_SUBST(PKGADD_VENDOR)
dnl Check for programs
AC_PROG_CC
SFL_CXX_WITH_DEBUG
AC_PROG_CXX
AC_PROG_CPP
AC_PROG_INSTALL
......
AC_DEFUN([SFL_CXX_WITH_DEBUG],[
AC_ARG_WITH(debug,
AS_HELP_STRING(
[--with-debug],
[Set 'full' to enable debugging information @<:@default=no@:>@]
),
[with_debug=${withval}],
[with_debug=no]
)
if test "x$with_debug" = "xfull" -o "x$with_debug" = "xyes"; then
CXXFLAGS="$CXXFLAGS -g"
CPPFLAGS="$CPPFLAGS -DDEBUG"
fi
])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment