summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-11-15 00:16:42 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-11-15 00:16:42 +0000
commit8070faa83ac7cb3ca984b2c7da5c44d45cb131c8 (patch)
tree785d7b406f1aca7a544f909854fbfc60b1191aeb /configure
parentad8ce5ff044928b14d9777497a75f5c2f1d55118 (diff)
downloadbinutils-redhat-8070faa83ac7cb3ca984b2c7da5c44d45cb131c8.tar.gz
Sync toplevel files with GCC
2012-11-13 Richard Henderson <rth@redhat.com> * configure.ac: Move libsanitizer logic to subdirectory. * configure: Regenerate. 2012-11-13 Dodji Seketeli <dodji@redhat.com> * configure.ac: Enable libsanitizer just on x86 linux for now. * configure: Re-generate. 2012-11-13 David Edelsohn <dje.gcc@gmail.com> * configure.ac: Merge libquadmath sections. * configure: Regenerate. 2012-11-12 Wei Mi <wmi@google.com> * configure.ac: Add libsanitizer to target_libraries. * Makefile.def: Ditto. * configure: Regenerate. * Makefile.in: Regenerate.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure30
1 files changed, 23 insertions, 7 deletions
diff --git a/configure b/configure
index 95828ae39d..45e521e992 100755
--- a/configure
+++ b/configure
@@ -2773,6 +2773,7 @@ target_libraries="target-libgcc \
target-libitm \
target-libstdc++-v3 \
target-libmudflap \
+ target-libsanitizer \
target-libssp \
target-libquadmath \
target-libgfortran \
@@ -3195,8 +3196,30 @@ $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-*-*)
+ noconfigdirs="$noconfigdirs target-libquadmath"
+ ;;
# libquadmath is unused on AIX and libquadmath build process use of
# LD_LIBRARY_PATH can break AIX bootstrap.
powerpc-*-aix* | rs6000-*-aix*)
@@ -3221,13 +3244,6 @@ case "${target}" in
;;
esac
-# Disable libquadmath for some systems.
-case "${target}" in
- avr-*-*)
- noconfigdirs="$noconfigdirs target-libquadmath"
- ;;
-esac
-
# Disable libstdc++-v3 for some systems.
# Allow user to override this if they pass --enable-libstdc++-v3
if test "${ENABLE_LIBSTDCXX}" = "default" ; then