configure: support --enable-glibgxx-debug

Part of #184.

* m4/devel.m4 (adl_ENABLE_GLIBCXX_DEBUG): New macro.
* configure.ac: Use it.
* README: Mention it.
* spot/twa/acc.cc: Fix a small issue found with this
option.
This commit is contained in:
Alexandre Duret-Lutz 2016-07-24 00:05:25 +02:00
parent 1a5de86c1e
commit 9f7bf5ab2d
4 changed files with 21 additions and 1 deletions

View file

@ -27,3 +27,13 @@ AC_DEFUN([adl_ENABLE_DEVEL],
enable_optimizations=${enable_optimizations--O}
fi
])
AC_DEFUN([adl_ENABLE_GLIBCXX_DEBUG],
[AC_ARG_ENABLE([glibcxx-debug],
[AC_HELP_STRING([--enable-glibcxx-debug],
[turn on use the libstdc++ debug mode (see README)])])
if test x$enable_glibcxx_debug = xyes; then
CPPFLAGS="$CPPFLAGS -D_GLIBCXX_DEBUG"
fi
])