blob: ffff2e9653d5bea230db630051594170ac9e0300 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# ===========================================================================
# http://www.nongnu.org/autoconf-archive/ax_cxx_gnucxx_hashmap.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_CXX_GNUCXX_HASHMAP
#
# DESCRIPTION
#
# Test for the presence of GCC's hashmap STL extension.
#
# LICENSE
#
# Copyright (c) 2008 Patrick Mauritz <oxygene@studentenbude.ath.cx>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved.
AC_DEFUN([AX_CXX_GNUCXX_HASHMAP],[
AC_CACHE_CHECK(whether the compiler supports __gnu_cxx::hash_map,
ax_cv_cxx_gnucxx_hashmap,
[AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_TRY_COMPILE([#include <ext/hash_map>
using __gnu_cxx::hash_map;],
[],
ax_cv_cxx_gnucxx_hashmap=yes, ax_cv_cxx_gnucxx_hashmap=no)
AC_LANG_RESTORE
])
if test "$ax_cv_cxx_gnucxx_hashmap" = yes; then
AC_DEFINE(HAVE_GNUCXX_HASHMAP,,[define if the compiler supports __gnu_cxx::hash_map])
fi
])
|