1 # ===========================================================================
2 # http://autoconf-archive.cryp.to/ac_cxx_gnucxx_hashmap.html
3 # ===========================================================================
7 # AC_CXX_GNUCXX_HASHMAP
11 # Test for the presence of GCC's hashmap STL extension.
19 # Copyright (c) 2008 Patrick Mauritz <oxygene@studentenbude.ath.cx>
21 # Copying and distribution of this file, with or without modification, are
22 # permitted in any medium without royalty provided the copyright notice
23 # and this notice are preserved.
25 AC_DEFUN([AC_CXX_GNUCXX_HASHMAP],[
26 AC_CACHE_CHECK(whether the compiler supports __gnu_cxx::hash_map,
27 ac_cv_cxx_gnucxx_hashmap,
30 AC_TRY_COMPILE([#include <ext/hash_map>
31 using __gnu_cxx::hash_map;],
33 ac_cv_cxx_gnucxx_hashmap=yes, ac_cv_cxx_gnucxx_hashmap=no)
36 if test "$ac_cv_cxx_gnucxx_hashmap" = yes; then
37 AC_DEFINE(HAVE_GNUCXX_HASHMAP,,[define if the compiler supports __gnu_cxx::hash_map])