Author: billblough
Date: Thu May 10 02:52:15 2018
New Revision: 1831294
URL: http://svn.apache.org/viewvc?rev=1831294&view=rev
Log:
Add configure support for AddressSanitizer
Modified:
axis/axis2/c/core/trunk/axiom/configure.ac
axis/axis2/c/core/trunk/configure.ac
axis/axis2/c/core/trunk/guththila/configure.ac
axis/axis2/c/core/trunk/neethi/configure.ac
axis/axis2/c/core/trunk/util/configure.ac
Modified: axis/axis2/c/core/trunk/axiom/configure.ac
URL:
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/axiom/configure.ac?rev=1831294&r1=1831293&r2=1831294&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/axiom/configure.ac (original)
+++ axis/axis2/c/core/trunk/axiom/configure.ac Thu May 10 02:52:15 2018
@@ -179,6 +179,28 @@ AC_ARG_ENABLE(coverage, [ --enable-cove
CXXFLAGS="$CXXFLAGS"]
)
+AC_MSG_CHECKING(whether to enable address sanitizer)
+AC_ARG_ENABLE(asan, [ --enable-asan
+ enable address sanitizer (default=no)],
+[ case "${enableval}" in
+ no)
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"
+ ;;
+ *)
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ CPPFLAGS="$CPPFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ CXXFLAGS="$CXXFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ ;;
+ esac ],[
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"]
+)
+
+
AC_MSG_CHECKING(whether to use the Google test framework)
AC_ARG_WITH(gtest,
[ --with-gtest[=PATH] Find the gtest source files in
'PATH'.],
Modified: axis/axis2/c/core/trunk/configure.ac
URL:
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/configure.ac?rev=1831294&r1=1831293&r2=1831294&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/configure.ac (original)
+++ axis/axis2/c/core/trunk/configure.ac Thu May 10 02:52:15 2018
@@ -460,6 +460,28 @@ AC_ARG_ENABLE(coverage, [ --enable-cove
CPPFLAGS="$CPPFLAGS"]
)
+AC_MSG_CHECKING(whether to enable address sanitizer)
+AC_ARG_ENABLE(asan, [ --enable-asan
+ enable address sanitizer (default=no)],
+[ case "${enableval}" in
+ no)
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"
+ ;;
+ *)
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ CPPFLAGS="$CPPFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ CXXFLAGS="$CXXFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ ;;
+ esac ],[
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"]
+)
+
+
AC_MSG_CHECKING(whether to enable multi threading)
AC_ARG_ENABLE(multi-thread, [ --enable-multi-thread
enable multi threaded axis2 worker (default=yes)],
Modified: axis/axis2/c/core/trunk/guththila/configure.ac
URL:
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/guththila/configure.ac?rev=1831294&r1=1831293&r2=1831294&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/guththila/configure.ac (original)
+++ axis/axis2/c/core/trunk/guththila/configure.ac Thu May 10 02:52:15 2018
@@ -89,6 +89,28 @@ AC_ARG_ENABLE(coverage, [ --enable-cove
CPPFLAGS="$CPPFLAGS"]
)
+AC_MSG_CHECKING(whether to enable address sanitizer)
+AC_ARG_ENABLE(asan, [ --enable-asan
+ enable address sanitizer (default=no)],
+[ case "${enableval}" in
+ no)
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"
+ ;;
+ *)
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ CPPFLAGS="$CPPFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ CXXFLAGS="$CXXFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ ;;
+ esac ],[
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"]
+)
+
+
AC_MSG_CHECKING(whether to use the Google test framework)
AC_ARG_WITH(gtest,
[ --with-gtest[=PATH] Find the gtest source files in
'PATH'.],
Modified: axis/axis2/c/core/trunk/neethi/configure.ac
URL:
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/neethi/configure.ac?rev=1831294&r1=1831293&r2=1831294&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/neethi/configure.ac (original)
+++ axis/axis2/c/core/trunk/neethi/configure.ac Thu May 10 02:52:15 2018
@@ -132,6 +132,28 @@ AC_ARG_ENABLE(coverage, [ --enable-cove
CPPFLAGS="$CPPFLAGS"]
)
+AC_MSG_CHECKING(whether to enable address sanitizer)
+AC_ARG_ENABLE(asan, [ --enable-asan
+ enable address sanitizer (default=no)],
+[ case "${enableval}" in
+ no)
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"
+ ;;
+ *)
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ CPPFLAGS="$CPPFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ CXXFLAGS="$CXXFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ ;;
+ esac ],[
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"]
+)
+
+
AC_MSG_CHECKING(whether to use the Google test framework)
AC_ARG_WITH(gtest,
[ --with-gtest[=PATH] Find the gtest source files in
'PATH'.],
Modified: axis/axis2/c/core/trunk/util/configure.ac
URL:
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/configure.ac?rev=1831294&r1=1831293&r2=1831294&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/configure.ac (original)
+++ axis/axis2/c/core/trunk/util/configure.ac Thu May 10 02:52:15 2018
@@ -240,6 +240,28 @@ AC_ARG_ENABLE(coverage, [ --enable-cove
CPPFLAGS="$CPPFLAGS"]
)
+AC_MSG_CHECKING(whether to enable address sanitizer)
+AC_ARG_ENABLE(asan, [ --enable-asan
+ enable address sanitizer (default=no)],
+[ case "${enableval}" in
+ no)
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"
+ ;;
+ *)
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ CPPFLAGS="$CPPFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ CXXFLAGS="$CXXFLAGS -fsanitize=address -fno-omit-frame-pointer"
+ ;;
+ esac ],[
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"]
+)
+
+
AC_MSG_CHECKING(whether to use use the Google test framework)
AC_ARG_WITH(gtest,
[ --with-gtest[=PATH] Find the gtest source files in
'PATH'.],