diff options
author | Richard Henderson <rth@redhat.com> | 2012-11-13 14:19:44 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2012-11-13 14:19:44 -0800 |
commit | 93bf539055e8ad7972ff3de821b81df3c097001f (patch) | |
tree | dd156eee0ba51f7c0c86f86bfe11a78d9133fc1c /configure | |
parent | beb42d2022899f07712a3537beedbedd13f67fab (diff) | |
download | gcc-93bf539055e8ad7972ff3de821b81df3c097001f.zip gcc-93bf539055e8ad7972ff3de821b81df3c097001f.tar.gz gcc-93bf539055e8ad7972ff3de821b81df3c097001f.tar.bz2 |
Move libsanitizer configure logic to subdirectory
From-SVN: r193487
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 28 |
1 files changed, 19 insertions, 9 deletions
@@ -3196,6 +3196,25 @@ $as_echo "yes" >&6; } fi fi +# Disable libsanitizer on unsupported systems. +if test -d ${srcdir}/libsanitizer; then + if test x$enable_libsanitizer = x; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 +$as_echo_n "checking for libsanitizer support... " >&6; } + if (srcdir=${srcdir}/libsanitizer; \ + . ${srcdir}/configure.tgt; \ + test -n "$UNSUPPORTED") + then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + noconfigdirs="$noconfigdirs target-libsanitizer" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + fi + fi +fi + # Disable libquadmath for some systems. case "${target}" in avr-*-*) @@ -3208,15 +3227,6 @@ case "${target}" in ;; esac -# Disable libsanitizer on all systems but x86 linux for now. -case "${target}" in - x86_64-*-linux-* | i?86-*-linux-*) - ;; - *) - noconfigdirs="$noconfigdirs target-libsanitizer" - ;; -esac - # Disable libssp for some systems. case "${target}" in avr-*-*) |