add --enable-sanitize config option

Change-Id: I6c0c91abc0d3fa737dbe3db1e6473358da64c2a5
This commit is contained in:
Neels Hofmeyr 2017-11-17 01:43:36 +01:00 committed by Harald Welte
parent f1521a14df
commit 7cec38852a
1 changed files with 12 additions and 0 deletions

View File

@ -50,6 +50,18 @@ PKG_CHECK_MODULES(LIBOSMOSCCP, libosmo-sccp)
PKG_CHECK_MODULES(LIBCRYPTO, libcrypto >= 0.9.5)
PKG_CHECK_MODULES(LIBOSMOMGCPCLIENT, libosmo-mgcp-client >= 1.1.0)
[Compile with address sanitizer enabled],
[sanitize=$enableval], [sanitize="no"])
if test x"$sanitize" = x"yes"
CFLAGS="$CFLAGS -fsanitize=address -fsanitize=undefined"
CPPFLAGS="$CPPFLAGS -fsanitize=address -fsanitize=undefined"
# Enable/disable smpp support in the msc?
AC_ARG_ENABLE([smpp], [AS_HELP_STRING([--enable-smpp], [Build the SMPP interface])],