summaryrefslogtreecommitdiff
path: root/libsanitizer/configure
diff options
context:
space:
mode:
authorYury Gribov <y.gribov@samsung.com>2014-01-23 14:32:05 +0000
committerYury Gribov <ygribov@gcc.gnu.org>2014-01-23 14:32:05 +0000
commit4a7eaf5f94ee68466b2c6419ffbf5b99dcf4d969 (patch)
tree4d075b27403ec43fc7f118adb0e459bdd3ad930b /libsanitizer/configure
parent652fea39227eeead0e9876097cacc6bf727b39a6 (diff)
downloadgcc-4a7eaf5f94ee68466b2c6419ffbf5b99dcf4d969.tar.gz
re PR sanitizer/57316 (build failure in libsanitizer)
2014-01-23 Yury Gribov <y.gribov@samsung.com> Jakub Jelinek <jakub@redhat.com> PR sanitizer/57316 * configure.ac: Check for missing syscalls. * Makefile.am: Likewise. * configure: Regenerate. * Makefile.in: Regenerate. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r206966
Diffstat (limited to 'libsanitizer/configure')
-rwxr-xr-xlibsanitizer/configure51
1 files changed, 49 insertions, 2 deletions
diff --git a/libsanitizer/configure b/libsanitizer/configure
index c20735921ef..5e4840ffea4 100755
--- a/libsanitizer/configure
+++ b/libsanitizer/configure
@@ -612,6 +612,8 @@ ALLOC_FILE
VIEW_FILE
BACKTRACE_SUPPORTED
FORMAT_FILE
+SANITIZER_SUPPORTED_FALSE
+SANITIZER_SUPPORTED_TRUE
USING_MAC_INTERPOSE_FALSE
USING_MAC_INTERPOSE_TRUE
link_liblsan
@@ -12017,7 +12019,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12020 "configure"
+#line 12022 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12123,7 +12125,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12126 "configure"
+#line 12128 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -15586,6 +15588,47 @@ fi
backtrace_supported=yes
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
+$as_echo_n "checking for necessary platform features... " >&6; }
+case "$target" in
+ *-*-linux*)
+ # Some old Linux distributions miss required syscalls.
+ sanitizer_supported=no
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/syscall.h>
+int
+main ()
+{
+
+ syscall (__NR_gettid);
+ syscall (__NR_futex);
+ syscall (__NR_exit_group);
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ sanitizer_supported=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ;;
+ *)
+ sanitizer_supported=yes
+ ;;
+esac
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
+$as_echo "$sanitizer_supported" >&6; }
+ if test "$sanitizer_supported" = yes; then
+ SANITIZER_SUPPORTED_TRUE=
+ SANITIZER_SUPPORTED_FALSE='#'
+else
+ SANITIZER_SUPPORTED_TRUE='#'
+ SANITIZER_SUPPORTED_FALSE=
+fi
+
+
# Test for __sync support.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
$as_echo_n "checking __sync extensions... " >&6; }
@@ -16456,6 +16499,10 @@ if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE
as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
+ as_fn_error "conditional \"SANITIZER_SUPPORTED\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
as_fn_error "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5