X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=configure.in;h=b1527b42245935a24a04bbb4565049b0098c1971;hb=a9937fa4dd4a174e609bb304f5d7f874f4c4c3a6;hp=7d5c89a3cafd4a0e7532dbb079db8d380db3a07e;hpb=361d3471e8ee2799213178b854b3b13935b89be9;p=privoxy.git diff --git a/configure.in b/configure.in index 7d5c89a3..b1527b42 100644 --- a/configure.in +++ b/configure.in @@ -168,6 +168,18 @@ if test "x$with_asan" = "xyes"; then LDFLAGS="$LDFLAGS -fsanitize=address" fi +AC_ARG_WITH(asan, [ --with-msan Enable MemorySanitizer. Requires compiler support.]) +if test "x$with_msan" = "xyes"; then + CFLAGS="$CFLAGS -fsanitize=memory" + LDFLAGS="$LDFLAGS -fsanitize=memory" +fi + +AC_ARG_WITH(usan, [ --with-usan Enable UndefinedBehaviorSanitizer. Requires compiler support.]) +if test "x$with_usan" = "xyes"; then + CFLAGS="$CFLAGS -fsanitize=undefined" + LDFLAGS="$LDFLAGS -fsanitize=undefined" +fi + dnl ================================================================= dnl Check for user and group validity dnl ================================================================= @@ -447,9 +459,10 @@ AC_ARG_ENABLE(pthread, [ --disable-pthread Don't use POSIX threads (pthreads)], [if test $enableval = no; then # Disable pthreads - if test $have_pthread = yes; then + if test $have_pthread = yes -a $target_type != mingw; then AC_MSG_WARN([pthreads seem to be available but you are using --disable-pthread.]) AC_MSG_WARN([This is almost always a mistake and can render Privoxy unacceptable slow.]) + AC_MSG_WARN([Also various Privoxy features only work when using threads and won't even compile without them.]) fi have_pthread=no fi])