summaryrefslogtreecommitdiff
path: root/gold/configure
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2013-12-18 15:53:05 -0800
committerCary Coutant <ccoutant@google.com>2013-12-18 15:53:31 -0800
commit8356f2d009e20e5ca567f5f9456a40f75e9560dc (patch)
tree0a3ef9f8198083e62512b134e53159d6f2d008ac /gold/configure
parenta6d17b01944cc51fec7f4bb74012a92e6f6a4293 (diff)
downloadbinutils-gdb-8356f2d009e20e5ca567f5f9456a40f75e9560dc.tar.gz
Add configure checks for <unordered_set> and <unordered_map>.
gold/ * configure.ac: Check for <unordered_set> and <unordered_map>. * config.in: Regenerate. * configure: Regenerate. * system.h: Use <unordered_set> and <unordered_map> if available.
Diffstat (limited to 'gold/configure')
-rwxr-xr-xgold/configure14
1 files changed, 14 insertions, 0 deletions
diff --git a/gold/configure b/gold/configure
index 24140cfec25..22573247808 100755
--- a/gold/configure
+++ b/gold/configure
@@ -7133,6 +7133,20 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+for ac_header in unordered_set unordered_map
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+eval as_val=\$$as_ac_Header
+ if test "x$as_val" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
for ac_header in tr1/unordered_set tr1/unordered_map
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`