iscc.c: avoid use of isl_token internals
[barvinok.git] / m4 / ac_cxx_gnucxx_hashmap.m4
blobe503956a4d76eaa24c19aa41cf78d876e89d31da
1 # ===========================================================================
2 #         http://autoconf-archive.cryp.to/ac_cxx_gnucxx_hashmap.html
3 # ===========================================================================
5 # SYNOPSIS
7 #   AC_CXX_GNUCXX_HASHMAP
9 # DESCRIPTION
11 #   Test for the presence of GCC's hashmap STL extension.
13 # LAST MODIFICATION
15 #   2008-04-12
17 # COPYLEFT
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,
28 [AC_LANG_SAVE
29  AC_LANG_CPLUSPLUS
30  AC_TRY_COMPILE([#include <ext/hash_map>
31 using __gnu_cxx::hash_map;],
32  [],
33  ac_cv_cxx_gnucxx_hashmap=yes, ac_cv_cxx_gnucxx_hashmap=no)
34  AC_LANG_RESTORE
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])