~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_stl_hash.m4

  • Committer: Brian Aker
  • Date: 2009-11-26 18:48:20 UTC
  • mfrom: (1226.1.3 push)
  • Revision ID: brian@gaz-20091126184820-hltr0upee0ahopsj
Bundle Brian + Monty  (been through staging, just collecting it as want
overall patch as seen by staging).

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
      AC_MSG_WARN([could not find an STL hash_map])
52
52
   fi
53
53
   AC_CACHE_CHECK(
 
54
     [whether hash_map has rehash method],
 
55
     [ac_cv_hash_map_has_rehash],
 
56
     [AC_COMPILE_IFELSE(
 
57
       [AC_LANG_PROGRAM([[
 
58
#include HASH_MAP_H
 
59
using namespace HASH_NAMESPACE;
 
60
       ]],[[
 
61
HASH_MAP_CLASS<int, int> test_hash;
 
62
test_hash.rehash(100);
 
63
          ]])],
 
64
       [ac_cv_hash_map_has_rehash=yes],
 
65
       [ac_cv_hash_map_has_rehash=no])])
 
66
   AS_IF([test $ac_cv_hash_map_has_rehash = yes],[
 
67
      AC_DEFINE(HASH_MAP_HAS_REHASH, 1, [if hash_map<> hash rehash method])
 
68
   ])
 
69
   AC_CACHE_CHECK(
 
70
     [whether hash_map has resize method],
 
71
     [ac_cv_hash_map_has_resize],
 
72
     [AC_COMPILE_IFELSE(
 
73
       [AC_LANG_PROGRAM([[
 
74
#include HASH_MAP_H
 
75
using namespace HASH_NAMESPACE;
 
76
       ]],[[
 
77
HASH_MAP_CLASS<int, int> test_hash;
 
78
test_hash.resize(100);
 
79
          ]])],
 
80
       [ac_cv_hash_map_has_resize=yes],
 
81
       [ac_cv_hash_map_has_resize=no])])
 
82
   AS_IF([test $ac_cv_hash_map_has_resize = yes],[
 
83
      AC_DEFINE(HASH_MAP_HAS_RESIZE, 1, [if hash_map<> hash resize method])
 
84
   ])
 
85
   AC_CACHE_CHECK(
54
86
     [whether to redefine hash<string>],
55
87
     [ac_cv_redefine_hash_string],
56
88
     [AC_COMPILE_IFELSE(