couchbase-memcached 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +2 -0
- data/BENCHMARKS +134 -0
- data/CHANGELOG +127 -0
- data/LICENSE +184 -0
- data/Manifest +535 -0
- data/README +118 -0
- data/Rakefile +83 -0
- data/TODO +4 -0
- data/couchbase-memcached.gemspec +33 -0
- data/ext/extconf-make.rb +25 -0
- data/ext/extconf.rb +91 -0
- data/ext/libmemcached-0.50/AUTHORS +11 -0
- data/ext/libmemcached-0.50/COPYING +33 -0
- data/ext/libmemcached-0.50/ChangeLog +392 -0
- data/ext/libmemcached-0.50/Makefile.am +114 -0
- data/ext/libmemcached-0.50/Makefile.in +4232 -0
- data/ext/libmemcached-0.50/NEWS +1 -0
- data/ext/libmemcached-0.50/README +43 -0
- data/ext/libmemcached-0.50/README.FIRST +31 -0
- data/ext/libmemcached-0.50/README.win32 +25 -0
- data/ext/libmemcached-0.50/THANKS +14 -0
- data/ext/libmemcached-0.50/TODO +11 -0
- data/ext/libmemcached-0.50/aclocal.m4 +1077 -0
- data/ext/libmemcached-0.50/clients/client_options.h +45 -0
- data/ext/libmemcached-0.50/clients/execute.cc +131 -0
- data/ext/libmemcached-0.50/clients/execute.h +30 -0
- data/ext/libmemcached-0.50/clients/generator.cc +96 -0
- data/ext/libmemcached-0.50/clients/generator.h +36 -0
- data/ext/libmemcached-0.50/clients/include.am +116 -0
- data/ext/libmemcached-0.50/clients/memaslap.c +908 -0
- data/ext/libmemcached-0.50/clients/memcapable.cc +2094 -0
- data/ext/libmemcached-0.50/clients/memcat.cc +242 -0
- data/ext/libmemcached-0.50/clients/memcp.cc +317 -0
- data/ext/libmemcached-0.50/clients/memdump.cc +183 -0
- data/ext/libmemcached-0.50/clients/memerror.cc +102 -0
- data/ext/libmemcached-0.50/clients/memflush.cc +154 -0
- data/ext/libmemcached-0.50/clients/memparse.cc +68 -0
- data/ext/libmemcached-0.50/clients/memrm.cc +177 -0
- data/ext/libmemcached-0.50/clients/memslap.cc +495 -0
- data/ext/libmemcached-0.50/clients/memstat.cc +349 -0
- data/ext/libmemcached-0.50/clients/ms_atomic.h +69 -0
- data/ext/libmemcached-0.50/clients/ms_conn.c +3413 -0
- data/ext/libmemcached-0.50/clients/ms_conn.h +241 -0
- data/ext/libmemcached-0.50/clients/ms_memslap.h +132 -0
- data/ext/libmemcached-0.50/clients/ms_setting.c +1068 -0
- data/ext/libmemcached-0.50/clients/ms_setting.h +181 -0
- data/ext/libmemcached-0.50/clients/ms_sigsegv.c +126 -0
- data/ext/libmemcached-0.50/clients/ms_sigsegv.h +34 -0
- data/ext/libmemcached-0.50/clients/ms_stats.c +307 -0
- data/ext/libmemcached-0.50/clients/ms_stats.h +69 -0
- data/ext/libmemcached-0.50/clients/ms_task.c +1114 -0
- data/ext/libmemcached-0.50/clients/ms_task.h +94 -0
- data/ext/libmemcached-0.50/clients/ms_thread.c +351 -0
- data/ext/libmemcached-0.50/clients/ms_thread.h +78 -0
- data/ext/libmemcached-0.50/clients/utilities.cc +231 -0
- data/ext/libmemcached-0.50/clients/utilities.h +64 -0
- data/ext/libmemcached-0.50/config.h.in +647 -0
- data/ext/libmemcached-0.50/config/autorun.sh +126 -0
- data/ext/libmemcached-0.50/config/compile +143 -0
- data/ext/libmemcached-0.50/config/config.guess +1517 -0
- data/ext/libmemcached-0.50/config/config.rpath +666 -0
- data/ext/libmemcached-0.50/config/config.sub +1760 -0
- data/ext/libmemcached-0.50/config/depcomp +630 -0
- data/ext/libmemcached-0.50/config/install-sh +520 -0
- data/ext/libmemcached-0.50/config/ltmain.sh +9642 -0
- data/ext/libmemcached-0.50/config/missing +376 -0
- data/ext/libmemcached-0.50/config/pandora-plugin +752 -0
- data/ext/libmemcached-0.50/config/uncrustify.cfg +1112 -0
- data/ext/libmemcached-0.50/configure +27103 -0
- data/ext/libmemcached-0.50/configure.ac +186 -0
- data/ext/libmemcached-0.50/docs/conf.py.in +354 -0
- data/ext/libmemcached-0.50/docs/include.am +240 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_clone.3 +88 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_crc32.3 +105 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_create.3 +88 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_fnv1_32.3 +105 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_fnv1_64.3 +105 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_fnv1a_32.3 +105 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_fnv1a_64.3 +105 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_free.3 +88 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_functions.3 +105 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_hsieh.3 +105 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_is_allocated.3 +88 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_jenkins.3 +105 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_md5.3 +105 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_murmur.3 +105 -0
- data/ext/libmemcached-0.50/docs/man/hashkit_value.3 +66 -0
- data/ext/libmemcached-0.50/docs/man/libhashkit.3 +57 -0
- data/ext/libmemcached-0.50/docs/man/libmemcached.3 +208 -0
- data/ext/libmemcached-0.50/docs/man/libmemcached_check_configuration.3 +293 -0
- data/ext/libmemcached-0.50/docs/man/libmemcached_configuration.3 +293 -0
- data/ext/libmemcached-0.50/docs/man/libmemcached_examples.3 +144 -0
- data/ext/libmemcached-0.50/docs/man/libmemcachedutil.3 +68 -0
- data/ext/libmemcached-0.50/docs/man/memaslap.1 +1222 -0
- data/ext/libmemcached-0.50/docs/man/memcached.3 +293 -0
- data/ext/libmemcached-0.50/docs/man/memcached_add.3 +132 -0
- data/ext/libmemcached-0.50/docs/man/memcached_add_by_key.3 +132 -0
- data/ext/libmemcached-0.50/docs/man/memcached_analyze.3 +77 -0
- data/ext/libmemcached-0.50/docs/man/memcached_append.3 +111 -0
- data/ext/libmemcached-0.50/docs/man/memcached_append_by_key.3 +111 -0
- data/ext/libmemcached-0.50/docs/man/memcached_behavior_get.3 +333 -0
- data/ext/libmemcached-0.50/docs/man/memcached_behavior_set.3 +333 -0
- data/ext/libmemcached-0.50/docs/man/memcached_callback_get.3 +159 -0
- data/ext/libmemcached-0.50/docs/man/memcached_callback_set.3 +159 -0
- data/ext/libmemcached-0.50/docs/man/memcached_cas.3 +91 -0
- data/ext/libmemcached-0.50/docs/man/memcached_cas_by_key.3 +91 -0
- data/ext/libmemcached-0.50/docs/man/memcached_clone.3 +99 -0
- data/ext/libmemcached-0.50/docs/man/memcached_create.3 +99 -0
- data/ext/libmemcached-0.50/docs/man/memcached_decrement.3 +124 -0
- data/ext/libmemcached-0.50/docs/man/memcached_decrement_with_initial.3 +124 -0
- data/ext/libmemcached-0.50/docs/man/memcached_delete.3 +83 -0
- data/ext/libmemcached-0.50/docs/man/memcached_delete_by_key.3 +83 -0
- data/ext/libmemcached-0.50/docs/man/memcached_destroy_sasl_auth_data.3 +95 -0
- data/ext/libmemcached-0.50/docs/man/memcached_dump.3 +77 -0
- data/ext/libmemcached-0.50/docs/man/memcached_fetch.3 +174 -0
- data/ext/libmemcached-0.50/docs/man/memcached_fetch_execute.3 +174 -0
- data/ext/libmemcached-0.50/docs/man/memcached_fetch_result.3 +174 -0
- data/ext/libmemcached-0.50/docs/man/memcached_flush_buffers.3 +72 -0
- data/ext/libmemcached-0.50/docs/man/memcached_free.3 +99 -0
- data/ext/libmemcached-0.50/docs/man/memcached_generate_hash.3 +85 -0
- data/ext/libmemcached-0.50/docs/man/memcached_generate_hash_value.3 +85 -0
- data/ext/libmemcached-0.50/docs/man/memcached_get.3 +174 -0
- data/ext/libmemcached-0.50/docs/man/memcached_get_by_key.3 +174 -0
- data/ext/libmemcached-0.50/docs/man/memcached_get_memory_allocators.3 +111 -0
- data/ext/libmemcached-0.50/docs/man/memcached_get_sasl_callbacks.3 +95 -0
- data/ext/libmemcached-0.50/docs/man/memcached_get_user_data.3 +79 -0
- data/ext/libmemcached-0.50/docs/man/memcached_increment.3 +124 -0
- data/ext/libmemcached-0.50/docs/man/memcached_increment_with_initial.3 +124 -0
- data/ext/libmemcached-0.50/docs/man/memcached_lib_version.3 +76 -0
- data/ext/libmemcached-0.50/docs/man/memcached_mget.3 +174 -0
- data/ext/libmemcached-0.50/docs/man/memcached_mget_by_key.3 +174 -0
- data/ext/libmemcached-0.50/docs/man/memcached_mget_execute.3 +174 -0
- data/ext/libmemcached-0.50/docs/man/memcached_mget_execute_by_key.3 +174 -0
- data/ext/libmemcached-0.50/docs/man/memcached_pool_behavior_get.3 +139 -0
- data/ext/libmemcached-0.50/docs/man/memcached_pool_behavior_set.3 +139 -0
- data/ext/libmemcached-0.50/docs/man/memcached_pool_create.3 +139 -0
- data/ext/libmemcached-0.50/docs/man/memcached_pool_destroy.3 +139 -0
- data/ext/libmemcached-0.50/docs/man/memcached_pool_pop.3 +139 -0
- data/ext/libmemcached-0.50/docs/man/memcached_pool_push.3 +139 -0
- data/ext/libmemcached-0.50/docs/man/memcached_pool_st.3 +139 -0
- data/ext/libmemcached-0.50/docs/man/memcached_prepend.3 +111 -0
- data/ext/libmemcached-0.50/docs/man/memcached_prepend_by_key.3 +111 -0
- data/ext/libmemcached-0.50/docs/man/memcached_quit.3 +74 -0
- data/ext/libmemcached-0.50/docs/man/memcached_replace.3 +132 -0
- data/ext/libmemcached-0.50/docs/man/memcached_replace_by_key.3 +132 -0
- data/ext/libmemcached-0.50/docs/man/memcached_sasl_set_auth_data.3 +95 -0
- data/ext/libmemcached-0.50/docs/man/memcached_server_add.3 +141 -0
- data/ext/libmemcached-0.50/docs/man/memcached_server_count.3 +141 -0
- data/ext/libmemcached-0.50/docs/man/memcached_server_cursor.3 +141 -0
- data/ext/libmemcached-0.50/docs/man/memcached_server_list.3 +141 -0
- data/ext/libmemcached-0.50/docs/man/memcached_server_list_append.3 +111 -0
- data/ext/libmemcached-0.50/docs/man/memcached_server_list_count.3 +111 -0
- data/ext/libmemcached-0.50/docs/man/memcached_server_list_free.3 +111 -0
- data/ext/libmemcached-0.50/docs/man/memcached_server_push.3 +141 -0
- data/ext/libmemcached-0.50/docs/man/memcached_servers_parse.3 +111 -0
- data/ext/libmemcached-0.50/docs/man/memcached_set.3 +132 -0
- data/ext/libmemcached-0.50/docs/man/memcached_set_by_key.3 +132 -0
- data/ext/libmemcached-0.50/docs/man/memcached_set_memory_allocators.3 +111 -0
- data/ext/libmemcached-0.50/docs/man/memcached_set_sasl_callbacks.3 +95 -0
- data/ext/libmemcached-0.50/docs/man/memcached_set_user_data.3 +79 -0
- data/ext/libmemcached-0.50/docs/man/memcached_stat.3 +116 -0
- data/ext/libmemcached-0.50/docs/man/memcached_stat_execute.3 +116 -0
- data/ext/libmemcached-0.50/docs/man/memcached_stat_get_keys.3 +116 -0
- data/ext/libmemcached-0.50/docs/man/memcached_stat_get_value.3 +116 -0
- data/ext/libmemcached-0.50/docs/man/memcached_stat_servername.3 +116 -0
- data/ext/libmemcached-0.50/docs/man/memcached_strerror.3 +69 -0
- data/ext/libmemcached-0.50/docs/man/memcached_verbosity.3 +66 -0
- data/ext/libmemcached-0.50/docs/man/memcached_version.3 +76 -0
- data/ext/libmemcached-0.50/docs/man/memcapable.1 +92 -0
- data/ext/libmemcached-0.50/docs/man/memcat.1 +71 -0
- data/ext/libmemcached-0.50/docs/man/memcp.1 +77 -0
- data/ext/libmemcached-0.50/docs/man/memdump.1 +66 -0
- data/ext/libmemcached-0.50/docs/man/memerror.1 +65 -0
- data/ext/libmemcached-0.50/docs/man/memflush.1 +73 -0
- data/ext/libmemcached-0.50/docs/man/memrm.1 +72 -0
- data/ext/libmemcached-0.50/docs/man/memslap.1 +59 -0
- data/ext/libmemcached-0.50/docs/man/memstat.1 +70 -0
- data/ext/libmemcached-0.50/example/include.am +24 -0
- data/ext/libmemcached-0.50/example/interface_v0.c +594 -0
- data/ext/libmemcached-0.50/example/interface_v1.c +411 -0
- data/ext/libmemcached-0.50/example/memcached_light.c +474 -0
- data/ext/libmemcached-0.50/example/memcached_light.h +7 -0
- data/ext/libmemcached-0.50/example/storage.c +172 -0
- data/ext/libmemcached-0.50/example/storage.h +27 -0
- data/ext/libmemcached-0.50/example/storage_innodb.c +535 -0
- data/ext/libmemcached-0.50/libhashkit/algorithm.cc +69 -0
- data/ext/libmemcached-0.50/libhashkit/algorithm.h +96 -0
- data/ext/libmemcached-0.50/libhashkit/behavior.cc +9 -0
- data/ext/libmemcached-0.50/libhashkit/behavior.h +26 -0
- data/ext/libmemcached-0.50/libhashkit/common.h +33 -0
- data/ext/libmemcached-0.50/libhashkit/configure.h.in +19 -0
- data/ext/libmemcached-0.50/libhashkit/crc32.cc +86 -0
- data/ext/libmemcached-0.50/libhashkit/digest.cc +62 -0
- data/ext/libmemcached-0.50/libhashkit/digest.h +30 -0
- data/ext/libmemcached-0.50/libhashkit/fnv.cc +75 -0
- data/ext/libmemcached-0.50/libhashkit/function.cc +156 -0
- data/ext/libmemcached-0.50/libhashkit/function.h +44 -0
- data/ext/libmemcached-0.50/libhashkit/hashkit.cc +100 -0
- data/ext/libmemcached-0.50/libhashkit/hashkit.h +95 -0
- data/ext/libmemcached-0.50/libhashkit/hashkit.hpp +97 -0
- data/ext/libmemcached-0.50/libhashkit/hsieh.cc +70 -0
- data/ext/libmemcached-0.50/libhashkit/include.am +69 -0
- data/ext/libmemcached-0.50/libhashkit/jenkins.cc +214 -0
- data/ext/libmemcached-0.50/libhashkit/ketama.cc +164 -0
- data/ext/libmemcached-0.50/libhashkit/md5.cc +367 -0
- data/ext/libmemcached-0.50/libhashkit/murmur.cc +77 -0
- data/ext/libmemcached-0.50/libhashkit/one_at_a_time.cc +34 -0
- data/ext/libmemcached-0.50/libhashkit/str_algorithm.cc +58 -0
- data/ext/libmemcached-0.50/libhashkit/str_algorithm.h +48 -0
- data/ext/libmemcached-0.50/libhashkit/strerror.cc +25 -0
- data/ext/libmemcached-0.50/libhashkit/strerror.h +23 -0
- data/ext/libmemcached-0.50/libhashkit/types.h +90 -0
- data/ext/libmemcached-0.50/libhashkit/visibility.h +48 -0
- data/ext/libmemcached-0.50/libmemcached/allocators.cc +119 -0
- data/ext/libmemcached-0.50/libmemcached/allocators.h +87 -0
- data/ext/libmemcached-0.50/libmemcached/analyze.cc +110 -0
- data/ext/libmemcached-0.50/libmemcached/analyze.h +66 -0
- data/ext/libmemcached-0.50/libmemcached/array.c +128 -0
- data/ext/libmemcached-0.50/libmemcached/array.h +75 -0
- data/ext/libmemcached-0.50/libmemcached/auto.cc +383 -0
- data/ext/libmemcached-0.50/libmemcached/auto.h +111 -0
- data/ext/libmemcached-0.50/libmemcached/basic_string.h +55 -0
- data/ext/libmemcached-0.50/libmemcached/behavior.cc +590 -0
- data/ext/libmemcached-0.50/libmemcached/behavior.h +86 -0
- data/ext/libmemcached-0.50/libmemcached/byteorder.cc +90 -0
- data/ext/libmemcached-0.50/libmemcached/byteorder.h +52 -0
- data/ext/libmemcached-0.50/libmemcached/callback.cc +160 -0
- data/ext/libmemcached-0.50/libmemcached/callback.h +61 -0
- data/ext/libmemcached-0.50/libmemcached/common.h +182 -0
- data/ext/libmemcached-0.50/libmemcached/configure.h.in +52 -0
- data/ext/libmemcached-0.50/libmemcached/connect.cc +626 -0
- data/ext/libmemcached-0.50/libmemcached/constants.h +167 -0
- data/ext/libmemcached-0.50/libmemcached/delete.cc +266 -0
- data/ext/libmemcached-0.50/libmemcached/delete.h +57 -0
- data/ext/libmemcached-0.50/libmemcached/do.cc +100 -0
- data/ext/libmemcached-0.50/libmemcached/do.hpp +49 -0
- data/ext/libmemcached-0.50/libmemcached/dump.cc +107 -0
- data/ext/libmemcached-0.50/libmemcached/dump.h +51 -0
- data/ext/libmemcached-0.50/libmemcached/error.cc +419 -0
- data/ext/libmemcached-0.50/libmemcached/error.h +61 -0
- data/ext/libmemcached-0.50/libmemcached/error.hpp +87 -0
- data/ext/libmemcached-0.50/libmemcached/exception.hpp +63 -0
- data/ext/libmemcached-0.50/libmemcached/fetch.cc +267 -0
- data/ext/libmemcached-0.50/libmemcached/fetch.h +53 -0
- data/ext/libmemcached-0.50/libmemcached/flush.cc +149 -0
- data/ext/libmemcached-0.50/libmemcached/flush.h +49 -0
- data/ext/libmemcached-0.50/libmemcached/flush_buffers.cc +66 -0
- data/ext/libmemcached-0.50/libmemcached/flush_buffers.h +49 -0
- data/ext/libmemcached-0.50/libmemcached/get.cc +842 -0
- data/ext/libmemcached-0.50/libmemcached/get.h +135 -0
- data/ext/libmemcached-0.50/libmemcached/hash.cc +178 -0
- data/ext/libmemcached-0.50/libmemcached/hash.h +68 -0
- data/ext/libmemcached-0.50/libmemcached/hosts.cc +516 -0
- data/ext/libmemcached-0.50/libmemcached/include.am +183 -0
- data/ext/libmemcached-0.50/libmemcached/initialize_query.cc +70 -0
- data/ext/libmemcached-0.50/libmemcached/initialize_query.h +51 -0
- data/ext/libmemcached-0.50/libmemcached/internal.h +46 -0
- data/ext/libmemcached-0.50/libmemcached/io.cc +920 -0
- data/ext/libmemcached-0.50/libmemcached/io.h +119 -0
- data/ext/libmemcached-0.50/libmemcached/is.h +48 -0
- data/ext/libmemcached-0.50/libmemcached/key.cc +23 -0
- data/ext/libmemcached-0.50/libmemcached/libmemcached_probes.d +30 -0
- data/ext/libmemcached-0.50/libmemcached/libmemcached_probes.h +118 -0
- data/ext/libmemcached-0.50/libmemcached/memcached.cc +437 -0
- data/ext/libmemcached-0.50/libmemcached/memcached.h +214 -0
- data/ext/libmemcached-0.50/libmemcached/memcached.hpp +799 -0
- data/ext/libmemcached-0.50/libmemcached/memcached/README.txt +7 -0
- data/ext/libmemcached-0.50/libmemcached/memcached/protocol_binary.h +726 -0
- data/ext/libmemcached-0.50/libmemcached/memcached/vbucket.h +26 -0
- data/ext/libmemcached-0.50/libmemcached/memcached_util.h +44 -0
- data/ext/libmemcached-0.50/libmemcached/memory.h +79 -0
- data/ext/libmemcached-0.50/libmemcached/options.cc +178 -0
- data/ext/libmemcached-0.50/libmemcached/options.h +49 -0
- data/ext/libmemcached-0.50/libmemcached/options.hpp +56 -0
- data/ext/libmemcached-0.50/libmemcached/options/context.h +151 -0
- data/ext/libmemcached-0.50/libmemcached/options/include.am +19 -0
- data/ext/libmemcached-0.50/libmemcached/options/parser.am +0 -0
- data/ext/libmemcached-0.50/libmemcached/options/parser.cc +2324 -0
- data/ext/libmemcached-0.50/libmemcached/options/parser.h +122 -0
- data/ext/libmemcached-0.50/libmemcached/options/scanner.cc +3203 -0
- data/ext/libmemcached-0.50/libmemcached/options/scanner.h +479 -0
- data/ext/libmemcached-0.50/libmemcached/options/server.h +60 -0
- data/ext/libmemcached-0.50/libmemcached/options/symbol.h +57 -0
- data/ext/libmemcached-0.50/libmemcached/parse.cc +110 -0
- data/ext/libmemcached-0.50/libmemcached/parse.h +23 -0
- data/ext/libmemcached-0.50/libmemcached/platform.h +56 -0
- data/ext/libmemcached-0.50/libmemcached/prefix_key.cc +65 -0
- data/ext/libmemcached-0.50/libmemcached/prefix_key.h +49 -0
- data/ext/libmemcached-0.50/libmemcached/protocol/ascii_handler.c +963 -0
- data/ext/libmemcached-0.50/libmemcached/protocol/ascii_handler.h +40 -0
- data/ext/libmemcached-0.50/libmemcached/protocol/binary_handler.c +1121 -0
- data/ext/libmemcached-0.50/libmemcached/protocol/binary_handler.h +47 -0
- data/ext/libmemcached-0.50/libmemcached/protocol/cache.c +149 -0
- data/ext/libmemcached-0.50/libmemcached/protocol/cache.h +116 -0
- data/ext/libmemcached-0.50/libmemcached/protocol/callback.h +418 -0
- data/ext/libmemcached-0.50/libmemcached/protocol/common.h +163 -0
- data/ext/libmemcached-0.50/libmemcached/protocol/include.am +26 -0
- data/ext/libmemcached-0.50/libmemcached/protocol/pedantic.c +202 -0
- data/ext/libmemcached-0.50/libmemcached/protocol/protocol_handler.c +365 -0
- data/ext/libmemcached-0.50/libmemcached/protocol_handler.h +215 -0
- data/ext/libmemcached-0.50/libmemcached/purge.cc +90 -0
- data/ext/libmemcached-0.50/libmemcached/quit.cc +139 -0
- data/ext/libmemcached-0.50/libmemcached/quit.h +55 -0
- data/ext/libmemcached-0.50/libmemcached/response.cc +619 -0
- data/ext/libmemcached-0.50/libmemcached/response.h +57 -0
- data/ext/libmemcached-0.50/libmemcached/result.cc +173 -0
- data/ext/libmemcached-0.50/libmemcached/result.h +100 -0
- data/ext/libmemcached-0.50/libmemcached/return.h +98 -0
- data/ext/libmemcached-0.50/libmemcached/sasl.c +408 -0
- data/ext/libmemcached-0.50/libmemcached/sasl.h +86 -0
- data/ext/libmemcached-0.50/libmemcached/server.cc +351 -0
- data/ext/libmemcached-0.50/libmemcached/server.h +169 -0
- data/ext/libmemcached-0.50/libmemcached/server_list.cc +88 -0
- data/ext/libmemcached-0.50/libmemcached/server_list.h +77 -0
- data/ext/libmemcached-0.50/libmemcached/stats.cc +623 -0
- data/ext/libmemcached-0.50/libmemcached/stats.h +96 -0
- data/ext/libmemcached-0.50/libmemcached/storage.cc +567 -0
- data/ext/libmemcached-0.50/libmemcached/storage.h +133 -0
- data/ext/libmemcached-0.50/libmemcached/strerror.cc +189 -0
- data/ext/libmemcached-0.50/libmemcached/strerror.h +50 -0
- data/ext/libmemcached-0.50/libmemcached/string.cc +253 -0
- data/ext/libmemcached-0.50/libmemcached/string.h +121 -0
- data/ext/libmemcached-0.50/libmemcached/touch.cc +106 -0
- data/ext/libmemcached-0.50/libmemcached/touch.h +59 -0
- data/ext/libmemcached-0.50/libmemcached/types.h +117 -0
- data/ext/libmemcached-0.50/libmemcached/util.h +40 -0
- data/ext/libmemcached-0.50/libmemcached/util/flush.cc +61 -0
- data/ext/libmemcached-0.50/libmemcached/util/flush.h +50 -0
- data/ext/libmemcached-0.50/libmemcached/util/include.am +34 -0
- data/ext/libmemcached-0.50/libmemcached/util/ping.cc +62 -0
- data/ext/libmemcached-0.50/libmemcached/util/ping.h +49 -0
- data/ext/libmemcached-0.50/libmemcached/util/pool.cc +392 -0
- data/ext/libmemcached-0.50/libmemcached/util/pool.h +78 -0
- data/ext/libmemcached-0.50/libmemcached/util/version.cc +87 -0
- data/ext/libmemcached-0.50/libmemcached/util/version.h +53 -0
- data/ext/libmemcached-0.50/libmemcached/verbosity.cc +97 -0
- data/ext/libmemcached-0.50/libmemcached/verbosity.h +50 -0
- data/ext/libmemcached-0.50/libmemcached/version.cc +214 -0
- data/ext/libmemcached-0.50/libmemcached/version.h +52 -0
- data/ext/libmemcached-0.50/libmemcached/virtual_bucket.c +118 -0
- data/ext/libmemcached-0.50/libmemcached/virtual_bucket.h +59 -0
- data/ext/libmemcached-0.50/libmemcached/visibility.h +51 -0
- data/ext/libmemcached-0.50/libmemcached/watchpoint.h +110 -0
- data/ext/libmemcached-0.50/libtest/callbacks.h +21 -0
- data/ext/libmemcached-0.50/libtest/collection.h +19 -0
- data/ext/libmemcached-0.50/libtest/common.h +50 -0
- data/ext/libmemcached-0.50/libtest/core.h +11 -0
- data/ext/libmemcached-0.50/libtest/error.h +18 -0
- data/ext/libmemcached-0.50/libtest/failed.h +52 -0
- data/ext/libmemcached-0.50/libtest/framework.cc +57 -0
- data/ext/libmemcached-0.50/libtest/framework.h +137 -0
- data/ext/libmemcached-0.50/libtest/get.h +22 -0
- data/ext/libmemcached-0.50/libtest/include.am +52 -0
- data/ext/libmemcached-0.50/libtest/runner.h +19 -0
- data/ext/libmemcached-0.50/libtest/server.c +355 -0
- data/ext/libmemcached-0.50/libtest/server.h +43 -0
- data/ext/libmemcached-0.50/libtest/stats.h +30 -0
- data/ext/libmemcached-0.50/libtest/strerror.h +14 -0
- data/ext/libmemcached-0.50/libtest/test.cc +319 -0
- data/ext/libmemcached-0.50/libtest/test.h +162 -0
- data/ext/libmemcached-0.50/libtest/test.hpp +46 -0
- data/ext/libmemcached-0.50/libtest/visibility.h +69 -0
- data/ext/libmemcached-0.50/m4/ac_cxx_header_stdcxx_98.m4 +83 -0
- data/ext/libmemcached-0.50/m4/acx_pthread.m4 +271 -0
- data/ext/libmemcached-0.50/m4/byteorder.m4 +19 -0
- data/ext/libmemcached-0.50/m4/deprecated.m4 +17 -0
- data/ext/libmemcached-0.50/m4/eagain.m4 +28 -0
- data/ext/libmemcached-0.50/m4/enable_utillib.m4 +16 -0
- data/ext/libmemcached-0.50/m4/gettext.m4 +379 -0
- data/ext/libmemcached-0.50/m4/hsieh.m4 +18 -0
- data/ext/libmemcached-0.50/m4/iconv.m4 +214 -0
- data/ext/libmemcached-0.50/m4/lib-ld.m4 +110 -0
- data/ext/libmemcached-0.50/m4/lib-link.m4 +767 -0
- data/ext/libmemcached-0.50/m4/lib-prefix.m4 +221 -0
- data/ext/libmemcached-0.50/m4/libtool.m4 +7851 -0
- data/ext/libmemcached-0.50/m4/ltoptions.m4 +369 -0
- data/ext/libmemcached-0.50/m4/ltsugar.m4 +123 -0
- data/ext/libmemcached-0.50/m4/ltversion.m4 +23 -0
- data/ext/libmemcached-0.50/m4/lt~obsolete.m4 +98 -0
- data/ext/libmemcached-0.50/m4/memaslap.m4 +9 -0
- data/ext/libmemcached-0.50/m4/memcached.m4 +31 -0
- data/ext/libmemcached-0.50/m4/murmur.m4 +18 -0
- data/ext/libmemcached-0.50/m4/pandora_64bit.m4 +60 -0
- data/ext/libmemcached-0.50/m4/pandora_bison.m4 +33 -0
- data/ext/libmemcached-0.50/m4/pandora_canonical.m4 +418 -0
- data/ext/libmemcached-0.50/m4/pandora_check_compiler_version.m4 +37 -0
- data/ext/libmemcached-0.50/m4/pandora_check_cxx_standard.m4 +23 -0
- data/ext/libmemcached-0.50/m4/pandora_cinttypes.m4 +39 -0
- data/ext/libmemcached-0.50/m4/pandora_clock_gettime.m4 +15 -0
- data/ext/libmemcached-0.50/m4/pandora_compile_stdcxx_0x.m4 +103 -0
- data/ext/libmemcached-0.50/m4/pandora_cstdint.m4 +38 -0
- data/ext/libmemcached-0.50/m4/pandora_cxx_demangle.m4 +27 -0
- data/ext/libmemcached-0.50/m4/pandora_enable_dtrace.m4 +60 -0
- data/ext/libmemcached-0.50/m4/pandora_ensure_gcc_version.m4 +62 -0
- data/ext/libmemcached-0.50/m4/pandora_extensions.m4 +16 -0
- data/ext/libmemcached-0.50/m4/pandora_fdatasync.m4 +25 -0
- data/ext/libmemcached-0.50/m4/pandora_flex.m4 +33 -0
- data/ext/libmemcached-0.50/m4/pandora_have_better_malloc.m4 +66 -0
- data/ext/libmemcached-0.50/m4/pandora_have_boost.m4 +93 -0
- data/ext/libmemcached-0.50/m4/pandora_have_gcc_atomics.m4 +37 -0
- data/ext/libmemcached-0.50/m4/pandora_have_innodb.m4 +41 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libaio.m4 +56 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libavahi.m4 +41 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libbdb.m4 +40 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libboost_date_time.m4 +46 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libboost_filesystem.m4 +47 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libboost_iostreams.m4 +49 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libboost_options.m4 +47 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libboost_regex.m4 +54 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libboost_test.m4 +45 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libboost_thread.m4 +54 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libcassandra.m4 +44 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libcurl.m4 +62 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libdl.m4 +51 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libdrizzle.m4 +61 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libevent.m4 +66 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libgearman.m4 +41 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libgtest.m4 +47 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libhaildb.m4 +43 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libhashkit.m4 +42 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libinnodb.m4 +64 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libldap.m4 +73 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libmemcached.m4 +106 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libmysqlclient.m4 +146 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libndbclient.m4 +80 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libpcre.m4 +73 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libpq.m4 +46 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libpqxx.m4 +44 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libsqlite3.m4 +42 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libtokyocabinet.m4 +54 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libuuid.m4 +55 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libvbucket.m4 +40 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libxml2.m4 +52 -0
- data/ext/libmemcached-0.50/m4/pandora_have_libz.m4 +51 -0
- data/ext/libmemcached-0.50/m4/pandora_have_protobuf.m4 +82 -0
- data/ext/libmemcached-0.50/m4/pandora_have_sasl.m4 +133 -0
- data/ext/libmemcached-0.50/m4/pandora_have_thrift.m4 +45 -0
- data/ext/libmemcached-0.50/m4/pandora_header_assert.m4 +23 -0
- data/ext/libmemcached-0.50/m4/pandora_header_stdcxx_98.m4 +83 -0
- data/ext/libmemcached-0.50/m4/pandora_intltool.m4 +225 -0
- data/ext/libmemcached-0.50/m4/pandora_libtool.m4 +25 -0
- data/ext/libmemcached-0.50/m4/pandora_optimize.m4 +75 -0
- data/ext/libmemcached-0.50/m4/pandora_platform.m4 +117 -0
- data/ext/libmemcached-0.50/m4/pandora_plugins.m4 +62 -0
- data/ext/libmemcached-0.50/m4/pandora_print_callstack.m4 +61 -0
- data/ext/libmemcached-0.50/m4/pandora_pthread.m4 +258 -0
- data/ext/libmemcached-0.50/m4/pandora_python3_devel.m4 +236 -0
- data/ext/libmemcached-0.50/m4/pandora_run_cpplint.m4 +8 -0
- data/ext/libmemcached-0.50/m4/pandora_sasl.m4 +133 -0
- data/ext/libmemcached-0.50/m4/pandora_shared_ptr.m4 +59 -0
- data/ext/libmemcached-0.50/m4/pandora_stack_direction.m4 +39 -0
- data/ext/libmemcached-0.50/m4/pandora_stl_hash.m4 +94 -0
- data/ext/libmemcached-0.50/m4/pandora_swig.m4 +39 -0
- data/ext/libmemcached-0.50/m4/pandora_use_pipe.m4 +36 -0
- data/ext/libmemcached-0.50/m4/pandora_vc_build.m4 +168 -0
- data/ext/libmemcached-0.50/m4/pandora_version.m4 +11 -0
- data/ext/libmemcached-0.50/m4/pandora_visibility.m4 +75 -0
- data/ext/libmemcached-0.50/m4/pandora_warnings.m4 +447 -0
- data/ext/libmemcached-0.50/m4/pandora_with_gettext.m4 +44 -0
- data/ext/libmemcached-0.50/m4/pandora_with_lua.m4 +55 -0
- data/ext/libmemcached-0.50/m4/pandora_with_memcached.m4 +41 -0
- data/ext/libmemcached-0.50/m4/pandora_with_perl.m4 +81 -0
- data/ext/libmemcached-0.50/m4/pandora_with_php.m4 +56 -0
- data/ext/libmemcached-0.50/m4/pandora_with_python.m4 +37 -0
- data/ext/libmemcached-0.50/m4/pandora_with_python3.m4 +44 -0
- data/ext/libmemcached-0.50/m4/pandora_with_r.m4 +33 -0
- data/ext/libmemcached-0.50/m4/pandora_with_ruby.m4 +79 -0
- data/ext/libmemcached-0.50/m4/pandora_with_valgrind.m4 +17 -0
- data/ext/libmemcached-0.50/m4/pkg.m4 +157 -0
- data/ext/libmemcached-0.50/m4/po.m4 +449 -0
- data/ext/libmemcached-0.50/m4/progtest.m4 +92 -0
- data/ext/libmemcached-0.50/m4/protocol_binary.m4 +36 -0
- data/ext/libmemcached-0.50/m4/setsockopt.m4 +73 -0
- data/ext/libmemcached-0.50/m4/socket_send_flags.m4 +66 -0
- data/ext/libmemcached-0.50/poll/include.am +8 -0
- data/ext/libmemcached-0.50/poll/poll.c +77 -0
- data/ext/libmemcached-0.50/poll/poll.h +45 -0
- data/ext/libmemcached-0.50/support/include.am +11 -0
- data/ext/libmemcached-0.50/support/libmemcached-fc.spec.in +105 -0
- data/ext/libmemcached-0.50/support/libmemcached.pc.in +10 -0
- data/ext/libmemcached-0.50/support/libmemcached.spec.in +281 -0
- data/ext/libmemcached-0.50/support/set_benchmark.sh +5 -0
- data/ext/libmemcached-0.50/tests/atomsmasher.cc +295 -0
- data/ext/libmemcached-0.50/tests/basic.cc +134 -0
- data/ext/libmemcached-0.50/tests/basic.h +66 -0
- data/ext/libmemcached-0.50/tests/cpp_example.cc +195 -0
- data/ext/libmemcached-0.50/tests/deprecated.cc +72 -0
- data/ext/libmemcached-0.50/tests/deprecated.h +49 -0
- data/ext/libmemcached-0.50/tests/error_conditions.cc +63 -0
- data/ext/libmemcached-0.50/tests/error_conditions.h +48 -0
- data/ext/libmemcached-0.50/tests/hash_plus.cc +225 -0
- data/ext/libmemcached-0.50/tests/hash_results.h +127 -0
- data/ext/libmemcached-0.50/tests/hashkit_functions.cc +619 -0
- data/ext/libmemcached-0.50/tests/include.am +342 -0
- data/ext/libmemcached-0.50/tests/ketama_test_cases.h +121 -0
- data/ext/libmemcached-0.50/tests/ketama_test_cases_spy.h +118 -0
- data/ext/libmemcached-0.50/tests/libmemcached_world.h +205 -0
- data/ext/libmemcached-0.50/tests/mem_functions.cc +6648 -0
- data/ext/libmemcached-0.50/tests/mem_udp.cc +510 -0
- data/ext/libmemcached-0.50/tests/output_plus.res +5 -0
- data/ext/libmemcached-0.50/tests/parser.cc +599 -0
- data/ext/libmemcached-0.50/tests/parser.h +109 -0
- data/ext/libmemcached-0.50/tests/plus.cpp +240 -0
- data/ext/libmemcached-0.50/tests/pool.cc +78 -0
- data/ext/libmemcached-0.50/tests/pool.h +49 -0
- data/ext/libmemcached-0.50/tests/print.cc +58 -0
- data/ext/libmemcached-0.50/tests/print.h +51 -0
- data/ext/libmemcached-0.50/tests/replication.cc +333 -0
- data/ext/libmemcached-0.50/tests/replication.h +64 -0
- data/ext/libmemcached-0.50/tests/start.cc +29 -0
- data/ext/libmemcached-0.50/tests/string.cc +174 -0
- data/ext/libmemcached-0.50/tests/string.h +67 -0
- data/ext/libmemcached-0.50/tests/virtual_buckets.cc +143 -0
- data/ext/libmemcached-0.50/tests/virtual_buckets.h +51 -0
- data/ext/libmemcached-0.50/win32/include.am +11 -0
- data/ext/libmemcached-0.50/win32/wrappers.h +55 -0
- data/ext/rlibmemcached.i +263 -0
- data/ext/rlibmemcached_wrap.c +16732 -0
- data/lib/memcached.rb +32 -0
- data/lib/memcached/auth.rb +16 -0
- data/lib/memcached/behaviors.rb +77 -0
- data/lib/memcached/exceptions.rb +84 -0
- data/lib/memcached/experimental.rb +48 -0
- data/lib/memcached/memcached.rb +660 -0
- data/lib/memcached/rails.rb +133 -0
- data/test/profile/benchmark.rb +245 -0
- data/test/profile/c_profiler.rb +14 -0
- data/test/profile/exercise.rb +185 -0
- data/test/profile/rb_profiler.rb +21 -0
- data/test/profile/valgrind.rb +10 -0
- data/test/setup.rb +30 -0
- data/test/teardown.rb +0 -0
- data/test/test_helper.rb +19 -0
- data/test/unit/binding_test.rb +8 -0
- data/test/unit/memcached_experimental_test.rb +274 -0
- data/test/unit/memcached_test.rb +1293 -0
- data/test/unit/rails_test.rb +122 -0
- metadata +650 -0
- metadata.gz.sig +0 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
# ltversion.m4 -- version numbers -*- Autoconf -*-
|
2
|
+
#
|
3
|
+
# Copyright (C) 2004 Free Software Foundation, Inc.
|
4
|
+
# Written by Scott James Remnant, 2004
|
5
|
+
#
|
6
|
+
# This file is free software; the Free Software Foundation gives
|
7
|
+
# unlimited permission to copy and/or distribute it, with or without
|
8
|
+
# modifications, as long as this notice is preserved.
|
9
|
+
|
10
|
+
# @configure_input@
|
11
|
+
|
12
|
+
# serial 3293 ltversion.m4
|
13
|
+
# This file is part of GNU Libtool
|
14
|
+
|
15
|
+
m4_define([LT_PACKAGE_VERSION], [2.4])
|
16
|
+
m4_define([LT_PACKAGE_REVISION], [1.3293])
|
17
|
+
|
18
|
+
AC_DEFUN([LTVERSION_VERSION],
|
19
|
+
[macro_version='2.4'
|
20
|
+
macro_revision='1.3293'
|
21
|
+
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
22
|
+
_LT_DECL(, macro_revision, 0)
|
23
|
+
])
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
|
2
|
+
#
|
3
|
+
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
|
4
|
+
# Written by Scott James Remnant, 2004.
|
5
|
+
#
|
6
|
+
# This file is free software; the Free Software Foundation gives
|
7
|
+
# unlimited permission to copy and/or distribute it, with or without
|
8
|
+
# modifications, as long as this notice is preserved.
|
9
|
+
|
10
|
+
# serial 5 lt~obsolete.m4
|
11
|
+
|
12
|
+
# These exist entirely to fool aclocal when bootstrapping libtool.
|
13
|
+
#
|
14
|
+
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
|
15
|
+
# which have later been changed to m4_define as they aren't part of the
|
16
|
+
# exported API, or moved to Autoconf or Automake where they belong.
|
17
|
+
#
|
18
|
+
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
|
19
|
+
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
|
20
|
+
# using a macro with the same name in our local m4/libtool.m4 it'll
|
21
|
+
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
|
22
|
+
# and doesn't know about Autoconf macros at all.)
|
23
|
+
#
|
24
|
+
# So we provide this file, which has a silly filename so it's always
|
25
|
+
# included after everything else. This provides aclocal with the
|
26
|
+
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
|
27
|
+
# because those macros already exist, or will be overwritten later.
|
28
|
+
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
|
29
|
+
#
|
30
|
+
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
|
31
|
+
# Yes, that means every name once taken will need to remain here until
|
32
|
+
# we give up compatibility with versions before 1.7, at which point
|
33
|
+
# we need to keep only those names which we still refer to.
|
34
|
+
|
35
|
+
# This is to help aclocal find these macros, as it can't see m4_define.
|
36
|
+
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
|
37
|
+
|
38
|
+
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
|
39
|
+
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
|
40
|
+
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
|
41
|
+
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
|
42
|
+
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
|
43
|
+
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
|
44
|
+
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
|
45
|
+
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
|
46
|
+
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
|
47
|
+
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
|
48
|
+
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
|
49
|
+
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
|
50
|
+
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
|
51
|
+
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
|
52
|
+
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
|
53
|
+
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
|
54
|
+
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
|
55
|
+
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
|
56
|
+
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
|
57
|
+
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
|
58
|
+
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
|
59
|
+
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
|
60
|
+
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
|
61
|
+
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
|
62
|
+
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
|
63
|
+
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
|
64
|
+
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
|
65
|
+
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
|
66
|
+
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
|
67
|
+
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
|
68
|
+
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
|
69
|
+
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
|
70
|
+
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
|
71
|
+
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
|
72
|
+
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
|
73
|
+
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
|
74
|
+
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
|
75
|
+
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
|
76
|
+
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
|
77
|
+
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
|
78
|
+
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
|
79
|
+
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
|
80
|
+
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
|
81
|
+
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
|
82
|
+
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
|
83
|
+
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
|
84
|
+
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
|
85
|
+
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
|
86
|
+
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
|
87
|
+
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
|
88
|
+
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
|
89
|
+
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
|
90
|
+
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
|
91
|
+
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
|
92
|
+
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
|
93
|
+
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
|
94
|
+
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
|
95
|
+
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
|
96
|
+
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
|
97
|
+
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
|
98
|
+
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
|
@@ -0,0 +1,9 @@
|
|
1
|
+
AC_DEFUN([ENABLE_MEMASLAP],
|
2
|
+
[AC_ARG_ENABLE([memaslap],
|
3
|
+
[AS_HELP_STRING([--enable-memaslap],
|
4
|
+
[build with memaslap tool. @<:@default=off@:>@])],
|
5
|
+
[ac_cv_enable_memaslap=yes],
|
6
|
+
[ac_cv_enable_memaslap=no])
|
7
|
+
|
8
|
+
AM_CONDITIONAL([BUILD_MEMASLAP], [test "$ac_cv_enable_memaslap" = "yes"])
|
9
|
+
])
|
@@ -0,0 +1,31 @@
|
|
1
|
+
AC_DEFUN([WITH_MEMCACHED],
|
2
|
+
[AC_ARG_WITH([memcached],
|
3
|
+
[AS_HELP_STRING([--with-memcached],
|
4
|
+
[Memcached binary to use for make test])],
|
5
|
+
[ac_cv_with_memcached="$withval"],
|
6
|
+
[ac_cv_with_memcached=memcached])
|
7
|
+
|
8
|
+
# just ignore the user if --without-memcached is passed.. it is
|
9
|
+
# only used by make test
|
10
|
+
AS_IF([test "x$withval" = "xno"],
|
11
|
+
[
|
12
|
+
ac_cv_with_memcached=memcached
|
13
|
+
MEMC_BINARY=memcached
|
14
|
+
],
|
15
|
+
[
|
16
|
+
AS_IF([test -f "$withval"],
|
17
|
+
[
|
18
|
+
ac_cv_with_memcached=$withval
|
19
|
+
MEMC_BINARY=$withval
|
20
|
+
],
|
21
|
+
[
|
22
|
+
AC_PATH_PROG([MEMC_BINARY], [$ac_cv_with_memcached], "no")
|
23
|
+
AS_IF([test "x$MEMC_BINARY" = "xno"],
|
24
|
+
AC_MSG_ERROR(["could not find memcached binary"]))
|
25
|
+
])
|
26
|
+
])
|
27
|
+
|
28
|
+
AC_DEFINE_UNQUOTED([MEMCACHED_BINARY], "$MEMC_BINARY",
|
29
|
+
[Name of the memcached binary used in make test])
|
30
|
+
AC_SUBST(MEMC_BINARY)
|
31
|
+
])
|
@@ -0,0 +1,18 @@
|
|
1
|
+
dnl ---------------------------------------------------------------------------
|
2
|
+
dnl Macro: ENABLE_MURMUR_HASH
|
3
|
+
dnl ---------------------------------------------------------------------------
|
4
|
+
AC_DEFUN([ENABLE_MURMUR_HASH],
|
5
|
+
[AC_ARG_ENABLE([murmur_hash],
|
6
|
+
[AS_HELP_STRING([--disable-murmur_hash],
|
7
|
+
[build with support for murmur hashing. @<:@default=on@:>@])],
|
8
|
+
[ac_cv_enable_murmur_hash=no],
|
9
|
+
[ac_cv_enable_murmur_hash=yes])
|
10
|
+
|
11
|
+
AS_IF([test "$ac_cv_enable_murmur_hash" = "yes"],
|
12
|
+
[AC_DEFINE([HAVE_MURMUR_HASH], [1], [Enables murmur hashing support])])
|
13
|
+
|
14
|
+
AM_CONDITIONAL([INCLUDE_MURMUR_SRC], [test "$ac_cv_enable_murmur_hash" = "yes"])
|
15
|
+
])
|
16
|
+
dnl ---------------------------------------------------------------------------
|
17
|
+
dnl End Macro: ENABLE_MURMUR_HASH
|
18
|
+
dnl ---------------------------------------------------------------------------
|
@@ -0,0 +1,60 @@
|
|
1
|
+
dnl Copyright (C) 2009 Sun Microsystems, Inc.
|
2
|
+
dnl This file is free software; Sun Microsystems, Inc.
|
3
|
+
dnl gives unlimited permission to copy and/or distribute it,
|
4
|
+
dnl with or without modifications, as long as this notice is preserved.
|
5
|
+
|
6
|
+
dnl ---------------------------------------------------------------------------
|
7
|
+
dnl Macro: PANDORA_64BIT
|
8
|
+
dnl ---------------------------------------------------------------------------
|
9
|
+
AC_DEFUN([PANDORA_64BIT],[
|
10
|
+
AC_BEFORE([$0], [AC_LIB_PREFIX])
|
11
|
+
|
12
|
+
AC_ARG_ENABLE([64bit],
|
13
|
+
[AS_HELP_STRING([--disable-64bit],
|
14
|
+
[Build 64 bit binary @<:@default=on@:>@])],
|
15
|
+
[ac_enable_64bit="$enableval"],
|
16
|
+
[ac_enable_64bit="yes"])
|
17
|
+
|
18
|
+
AC_CHECK_PROGS(ISAINFO, [isainfo], [no])
|
19
|
+
AS_IF([test "x$ISAINFO" != "xno"],
|
20
|
+
[isainfo_b=`${ISAINFO} -b`],
|
21
|
+
[isainfo_b="x"])
|
22
|
+
|
23
|
+
AS_IF([test "$isainfo_b" != "x" -a "$isainfo_b" != "32"],[
|
24
|
+
|
25
|
+
isainfo_k=`${ISAINFO} -k`
|
26
|
+
DTRACEFLAGS="${DTRACEFLAGS} -${isainfo_b}"
|
27
|
+
|
28
|
+
AS_IF([test "x$ac_enable_64bit" = "xyes"],[
|
29
|
+
|
30
|
+
AS_IF([test "x${ac_cv_env_LDFLAGS_set}" = "x"],[
|
31
|
+
LDFLAGS="-L/usr/local/lib/${isainfo_k} ${LDFLAGS}"
|
32
|
+
])
|
33
|
+
|
34
|
+
AS_IF([test "x$libdir" = "x\${exec_prefix}/lib"],[
|
35
|
+
dnl The user hasn't overridden the default libdir, so we'll
|
36
|
+
dnl the dir suffix to match solaris 32/64-bit policy
|
37
|
+
libdir="${libdir}/${isainfo_k}"
|
38
|
+
])
|
39
|
+
|
40
|
+
AS_IF([test "x${ac_cv_env_CFLAGS_set}" = "x"],[
|
41
|
+
CFLAGS="${CFLAGS} -m64"
|
42
|
+
ac_cv_env_CFLAGS_set=set
|
43
|
+
ac_cv_env_CFLAGS_value='-m64'
|
44
|
+
])
|
45
|
+
AS_IF([test "x${ac_cv_env_CXXFLAGS_set}" = "x"],[
|
46
|
+
CXXFLAGS="${CXXFLAGS} -m64"
|
47
|
+
ac_cv_env_CXXFLAGS_set=set
|
48
|
+
ac_cv_env_CXXFLAGS_value='-m64'
|
49
|
+
])
|
50
|
+
|
51
|
+
AS_IF([test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes"],[
|
52
|
+
AM_CFLAGS="-xmemalign=8s ${AM_CFLAGS}"
|
53
|
+
AM_CXXFLAGS="-xmemalign=8s ${AM_CXXFLAGS}"
|
54
|
+
])
|
55
|
+
])
|
56
|
+
])
|
57
|
+
])
|
58
|
+
dnl ---------------------------------------------------------------------------
|
59
|
+
dnl End Macro: PANDORA_64BIT
|
60
|
+
dnl ---------------------------------------------------------------------------
|
@@ -0,0 +1,33 @@
|
|
1
|
+
dnl Copyright (C) 2010 Monty Taylor
|
2
|
+
dnl Copyright (C) 2010 Hartmut Holzgraefe
|
3
|
+
dnl This file is free software; Monty Taylor and Hartmut Holzgraefe
|
4
|
+
dnl give unlimited permission to copy and/or distribute it,
|
5
|
+
dnl with or without modifications, as long as this notice is preserved.
|
6
|
+
|
7
|
+
AC_DEFUN([_PANDORA_SEARCH_BISON],[
|
8
|
+
|
9
|
+
dnl --------------------------------------------------------------------
|
10
|
+
dnl Check for bison
|
11
|
+
dnl --------------------------------------------------------------------
|
12
|
+
|
13
|
+
AC_CHECK_PROGS([YACC], ['bison -y'], [:])
|
14
|
+
AS_IF([test "x$YACC" = "x:"],[
|
15
|
+
pandora_have_bison=no
|
16
|
+
YACC='if test -f "$@"; then echo "WARNING: no proper bison binary found, ignoring changes to $<"; exit 0; else echo "ERROR: no proper bison binary found"; exit 1; fi;'
|
17
|
+
],[
|
18
|
+
pandora_have_bison=yes
|
19
|
+
])
|
20
|
+
|
21
|
+
AM_CONDITIONAL(HAVE_BISON, [test "x${pandora_have_bison}" = "xyes"])
|
22
|
+
])
|
23
|
+
|
24
|
+
AC_DEFUN([PANDORA_HAVE_BISON],[
|
25
|
+
AC_REQUIRE([_PANDORA_SEARCH_BISON])
|
26
|
+
])
|
27
|
+
|
28
|
+
AC_DEFUN([PANDORA_REQUIRE_BISON],[
|
29
|
+
AC_REQUIRE([PANDORA_HAVE_BISON])
|
30
|
+
AS_IF([test "x${pandora_have_bison}" = "xno" -a "$pandora_building_from_bzr" = "yes"],
|
31
|
+
AC_MSG_ERROR(["bison is required for ${PACKAGE} to build from a bzr branch"])
|
32
|
+
)
|
33
|
+
])
|
@@ -0,0 +1,418 @@
|
|
1
|
+
dnl Copyright (C) 2009 Sun Microsystems, Inc.
|
2
|
+
dnl This file is free software; Sun Microsystems, Inc.
|
3
|
+
dnl gives unlimited permission to copy and/or distribute it,
|
4
|
+
dnl with or without modifications, as long as this notice is preserved.
|
5
|
+
|
6
|
+
dnl Which version of the canonical setup we're using
|
7
|
+
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.175])
|
8
|
+
|
9
|
+
AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[
|
10
|
+
AC_ARG_ENABLE([fat-binaries],
|
11
|
+
[AS_HELP_STRING([--enable-fat-binaries],
|
12
|
+
[Enable fat binary support on OSX @<:@default=off@:>@])],
|
13
|
+
[ac_enable_fat_binaries="$enableval"],
|
14
|
+
[ac_enable_fat_binaries="no"])
|
15
|
+
|
16
|
+
dnl Force dependency tracking on for Sun Studio builds
|
17
|
+
AS_IF([test "x${enable_dependency_tracking}" = "x"],[
|
18
|
+
enable_dependency_tracking=yes
|
19
|
+
])
|
20
|
+
dnl If we're building OSX Fat Binaries, we have to turn off -M options
|
21
|
+
AS_IF([test "x${ac_enable_fat_binaries}" = "xyes"],[
|
22
|
+
enable_dependency_tracking=no
|
23
|
+
])
|
24
|
+
])
|
25
|
+
|
26
|
+
AC_DEFUN([PANDORA_BLOCK_BAD_OPTIONS],[
|
27
|
+
AS_IF([test "x${prefix}" = "x"],[
|
28
|
+
AC_MSG_ERROR([--prefix requires an argument])
|
29
|
+
])
|
30
|
+
])
|
31
|
+
|
32
|
+
dnl The standard setup for how we build Pandora projects
|
33
|
+
AC_DEFUN([PANDORA_CANONICAL_TARGET],[
|
34
|
+
AC_REQUIRE([PANDORA_FORCE_DEPEND_TRACKING])
|
35
|
+
ifdef([m4_define],,[define([m4_define], defn([define]))])
|
36
|
+
ifdef([m4_undefine],,[define([m4_undefine], defn([undefine]))])
|
37
|
+
m4_define([PCT_ALL_ARGS],[$*])
|
38
|
+
m4_define([PCT_REQUIRE_CXX],[no])
|
39
|
+
m4_define([PCT_FORCE_GCC42],[no])
|
40
|
+
m4_define([PCT_DONT_SUPPRESS_INCLUDE],[no])
|
41
|
+
m4_define([PCT_NO_VC_CHANGELOG],[no])
|
42
|
+
m4_define([PCT_VERSION_FROM_VC],[no])
|
43
|
+
m4_define([PCT_USE_VISIBILITY],[yes])
|
44
|
+
m4_foreach([pct_arg],[$*],[
|
45
|
+
m4_case(pct_arg,
|
46
|
+
[require-cxx], [
|
47
|
+
m4_undefine([PCT_REQUIRE_CXX])
|
48
|
+
m4_define([PCT_REQUIRE_CXX],[yes])
|
49
|
+
],
|
50
|
+
[force-gcc42], [
|
51
|
+
m4_undefine([PCT_FORCE_GCC42])
|
52
|
+
m4_define([PCT_FORCE_GCC42],[yes])
|
53
|
+
],
|
54
|
+
[skip-visibility], [
|
55
|
+
m4_undefine([PCT_USE_VISIBILITY])
|
56
|
+
m4_define([PCT_USE_VISIBILITY],[no])
|
57
|
+
],
|
58
|
+
[dont-suppress-include], [
|
59
|
+
m4_undefine([PCT_DONT_SUPPRESS_INCLUDE])
|
60
|
+
m4_define([PCT_DONT_SUPPRESS_INCLUDE],[yes])
|
61
|
+
],
|
62
|
+
[no-vc-changelog], [
|
63
|
+
m4_undefine([PCT_NO_VC_CHANGELOG])
|
64
|
+
m4_define([PCT_NO_VC_CHANGELOG],[yes])
|
65
|
+
],
|
66
|
+
[version-from-vc], [
|
67
|
+
m4_undefine([PCT_VERSION_FROM_VC])
|
68
|
+
m4_define([PCT_VERSION_FROM_VC],[yes])
|
69
|
+
])
|
70
|
+
])
|
71
|
+
|
72
|
+
AC_CONFIG_MACRO_DIR([m4])
|
73
|
+
|
74
|
+
m4_if(m4_substr(m4_esyscmd(test -d src && echo 0),0,1),0,[
|
75
|
+
AC_CONFIG_HEADERS([src/config.h])
|
76
|
+
],[
|
77
|
+
AC_CONFIG_HEADERS([config.h])
|
78
|
+
])
|
79
|
+
|
80
|
+
PANDORA_BLOCK_BAD_OPTIONS
|
81
|
+
|
82
|
+
# We need to prevent canonical target
|
83
|
+
# from injecting -O2 into CFLAGS - but we won't modify anything if we have
|
84
|
+
# set CFLAGS on the command line, since that should take ultimate precedence
|
85
|
+
AS_IF([test "x${ac_cv_env_CFLAGS_set}" = "x"],
|
86
|
+
[CFLAGS=""])
|
87
|
+
AS_IF([test "x${ac_cv_env_CXXFLAGS_set}" = "x"],
|
88
|
+
[CXXFLAGS=""])
|
89
|
+
|
90
|
+
AC_CANONICAL_TARGET
|
91
|
+
|
92
|
+
m4_if(PCT_DONT_SUPRESS_INCLUDE,yes,[
|
93
|
+
AM_INIT_AUTOMAKE(-Wall -Werror -Wno-portability subdir-objects foreign tar-ustar)
|
94
|
+
],[
|
95
|
+
AM_INIT_AUTOMAKE(-Wall -Werror -Wno-portability nostdinc subdir-objects foreign tar-ustar)
|
96
|
+
])
|
97
|
+
|
98
|
+
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
99
|
+
|
100
|
+
m4_if(m4_substr(m4_esyscmd(test -d gnulib && echo 0),0,1),0,[
|
101
|
+
gl_EARLY
|
102
|
+
],[
|
103
|
+
PANDORA_EXTENSIONS
|
104
|
+
])
|
105
|
+
|
106
|
+
AC_REQUIRE([AC_PROG_CC])
|
107
|
+
m4_if(PCT_FORCE_GCC42, [yes], [
|
108
|
+
AC_REQUIRE([PANDORA_ENSURE_GCC_VERSION])
|
109
|
+
])
|
110
|
+
AC_REQUIRE([PANDORA_64BIT])
|
111
|
+
|
112
|
+
m4_if(PCT_NO_VC_CHANGELOG,yes,[
|
113
|
+
vc_changelog=no
|
114
|
+
],[
|
115
|
+
vc_changelog=yes
|
116
|
+
])
|
117
|
+
m4_if(PCT_VERSION_FROM_VC,yes,[
|
118
|
+
PANDORA_VC_INFO_HEADER
|
119
|
+
],[
|
120
|
+
PANDORA_TEST_VC_DIR
|
121
|
+
|
122
|
+
changequote(<<, >>)dnl
|
123
|
+
PANDORA_RELEASE_ID=`echo $VERSION | sed 's/[^0-9]//g'`
|
124
|
+
changequote([, ])dnl
|
125
|
+
|
126
|
+
PANDORA_RELEASE_COMMENT=""
|
127
|
+
AC_DEFINE_UNQUOTED([PANDORA_RELEASE_VERSION],["$VERSION"],
|
128
|
+
[Version of the software])
|
129
|
+
|
130
|
+
AC_SUBST(PANDORA_RELEASE_COMMENT)
|
131
|
+
AC_SUBST(PANDORA_RELEASE_VERSION)
|
132
|
+
AC_SUBST(PANDORA_RELEASE_ID)
|
133
|
+
])
|
134
|
+
PANDORA_VERSION
|
135
|
+
|
136
|
+
dnl Once we can use a modern autoconf, we can use this
|
137
|
+
dnl AC_PROG_CC_C99
|
138
|
+
AC_REQUIRE([AC_PROG_CXX])
|
139
|
+
PANDORA_EXTENSIONS
|
140
|
+
AM_PROG_CC_C_O
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
PANDORA_PLATFORM
|
145
|
+
|
146
|
+
PANDORA_LIBTOOL
|
147
|
+
|
148
|
+
dnl autoconf doesn't automatically provide a fail-if-no-C++ macro
|
149
|
+
dnl so we check c++98 features and fail if we don't have them, mainly
|
150
|
+
dnl for that reason
|
151
|
+
PANDORA_CHECK_CXX_STANDARD
|
152
|
+
m4_if(PCT_REQUIRE_CXX, [yes], [
|
153
|
+
AS_IF([test "$ac_cv_cxx_stdcxx_98" = "no"],[
|
154
|
+
AC_MSG_ERROR([No working C++ Compiler has been found. ${PACKAGE} requires a C++ compiler that can handle C++98])
|
155
|
+
])
|
156
|
+
])
|
157
|
+
PANDORA_CXX_CSTDINT
|
158
|
+
PANDORA_CXX_CINTTYPES
|
159
|
+
|
160
|
+
m4_if(m4_substr(m4_esyscmd(test -d gnulib && echo 0),0,1),0,[
|
161
|
+
gl_INIT
|
162
|
+
AC_CONFIG_LIBOBJ_DIR([gnulib])
|
163
|
+
])
|
164
|
+
|
165
|
+
PANDORA_CHECK_C_VERSION
|
166
|
+
PANDORA_CHECK_CXX_VERSION
|
167
|
+
|
168
|
+
AC_C_BIGENDIAN
|
169
|
+
AC_C_CONST
|
170
|
+
AC_C_INLINE
|
171
|
+
AC_C_VOLATILE
|
172
|
+
AC_C_RESTRICT
|
173
|
+
|
174
|
+
AC_HEADER_TIME
|
175
|
+
AC_STRUCT_TM
|
176
|
+
AC_TYPE_SIZE_T
|
177
|
+
AC_SYS_LARGEFILE
|
178
|
+
PANDORA_CLOCK_GETTIME
|
179
|
+
|
180
|
+
AC_CHECK_HEADERS(sys/socket.h)
|
181
|
+
|
182
|
+
# off_t is not a builtin type
|
183
|
+
AC_CHECK_SIZEOF(off_t, 4)
|
184
|
+
AS_IF([test "$ac_cv_sizeof_off_t" -eq 0],[
|
185
|
+
AC_MSG_ERROR("${PACKAGE} needs an off_t type.")
|
186
|
+
])
|
187
|
+
|
188
|
+
AC_CHECK_SIZEOF(size_t)
|
189
|
+
AS_IF([test "$ac_cv_sizeof_size_t" -eq 0],[
|
190
|
+
AC_MSG_ERROR("${PACKAGE} needs an size_t type.")
|
191
|
+
])
|
192
|
+
|
193
|
+
AC_DEFINE_UNQUOTED([SIZEOF_SIZE_T],[$ac_cv_sizeof_size_t],[Size of size_t as computed by sizeof()])
|
194
|
+
AC_CHECK_SIZEOF(long long)
|
195
|
+
AC_DEFINE_UNQUOTED([SIZEOF_LONG_LONG],[$ac_cv_sizeof_long_long],[Size of long long as computed by sizeof()])
|
196
|
+
AC_CACHE_CHECK([if time_t is unsigned], [ac_cv_time_t_unsigned],[
|
197
|
+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
198
|
+
[[
|
199
|
+
#include <time.h>
|
200
|
+
]],
|
201
|
+
[[
|
202
|
+
int array[(((time_t)-1) > 0) ? 1 : -1];
|
203
|
+
]])
|
204
|
+
],[
|
205
|
+
ac_cv_time_t_unsigned=yes
|
206
|
+
],[
|
207
|
+
ac_cv_time_t_unsigned=no
|
208
|
+
])
|
209
|
+
])
|
210
|
+
AS_IF([test "$ac_cv_time_t_unsigned" = "yes"],[
|
211
|
+
AC_DEFINE([TIME_T_UNSIGNED], 1, [Define to 1 if time_t is unsigned])
|
212
|
+
])
|
213
|
+
|
214
|
+
AC_CACHE_CHECK([if system defines RUSAGE_THREAD], [ac_cv_rusage_thread],[
|
215
|
+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
216
|
+
[[
|
217
|
+
#include <sys/time.h>
|
218
|
+
#include <sys/resource.h>
|
219
|
+
]],[[
|
220
|
+
int x= RUSAGE_THREAD;
|
221
|
+
]])
|
222
|
+
],[
|
223
|
+
ac_cv_rusage_thread=yes
|
224
|
+
],[
|
225
|
+
ac_cv_rusage_thread=no
|
226
|
+
])
|
227
|
+
])
|
228
|
+
AS_IF([test "$ac_cv_rusage_thread" = "no"],[
|
229
|
+
AC_DEFINE([RUSAGE_THREAD], [RUSAGE_SELF],
|
230
|
+
[Define if system doesn't define])
|
231
|
+
])
|
232
|
+
|
233
|
+
AC_CHECK_LIBM
|
234
|
+
dnl Bug on FreeBSD - LIBM check doesn't set the damn variable
|
235
|
+
AC_SUBST([LIBM])
|
236
|
+
|
237
|
+
AC_CHECK_FUNC(setsockopt, [], [AC_CHECK_LIB(socket, setsockopt)])
|
238
|
+
AC_CHECK_FUNC(bind, [], [AC_CHECK_LIB(bind, bind)])
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
PANDORA_OPTIMIZE
|
243
|
+
|
244
|
+
AC_LANG_PUSH(C++)
|
245
|
+
# Test whether madvise() is declared in C++ code -- it is not on some
|
246
|
+
# systems, such as Solaris
|
247
|
+
AC_CHECK_DECLS([madvise], [], [], [AC_INCLUDES_DEFAULT[
|
248
|
+
#if HAVE_SYS_MMAN_H
|
249
|
+
#include <sys/types.h>
|
250
|
+
#include <sys/mman.h>
|
251
|
+
#endif
|
252
|
+
]])
|
253
|
+
AC_LANG_POP()
|
254
|
+
|
255
|
+
PANDORA_HAVE_GCC_ATOMICS
|
256
|
+
|
257
|
+
m4_if(PCT_USE_VISIBILITY,[yes],[
|
258
|
+
PANDORA_ENABLE_VISIBILITY
|
259
|
+
],[
|
260
|
+
PANDORA_CHECK_VISIBILITY
|
261
|
+
])
|
262
|
+
|
263
|
+
PANDORA_HEADER_ASSERT
|
264
|
+
|
265
|
+
PANDORA_WARNINGS(PCT_ALL_ARGS)
|
266
|
+
|
267
|
+
PANDORA_ENABLE_DTRACE
|
268
|
+
|
269
|
+
AC_LIB_PREFIX
|
270
|
+
PANDORA_HAVE_BETTER_MALLOC
|
271
|
+
PANDORA_WITH_VALGRIND
|
272
|
+
|
273
|
+
AC_CHECK_PROGS([DOXYGEN], [doxygen])
|
274
|
+
AC_CHECK_PROGS([PERL], [perl])
|
275
|
+
AC_CHECK_PROGS([DPKG_GENSYMBOLS], [dpkg-gensymbols], [:])
|
276
|
+
AC_CHECK_PROGS([LCOV], [lcov], [echo lcov not found])
|
277
|
+
AC_CHECK_PROGS([LCOV_GENHTML], [genhtml], [echo genhtml not found])
|
278
|
+
|
279
|
+
AC_CHECK_PROGS([SPHINXBUILD], [sphinx-build], [:])
|
280
|
+
AS_IF([test "x${SPHINXBUILD}" != "x:"],[
|
281
|
+
AC_CACHE_CHECK([if sphinx is new enough],[ac_cv_recent_sphinx],[
|
282
|
+
|
283
|
+
${SPHINXBUILD} -Q -C -b man -d conftest.d . . >/dev/null 2>&1
|
284
|
+
AS_IF([test $? -eq 0],[ac_cv_recent_sphinx=yes],
|
285
|
+
[ac_cv_recent_sphinx=no])
|
286
|
+
rm -rf conftest.d
|
287
|
+
])
|
288
|
+
])
|
289
|
+
|
290
|
+
AM_CONDITIONAL(HAVE_DPKG_GENSYMBOLS,[test "x${DPKG_GENSYMBOLS}" != "x:"])
|
291
|
+
AM_CONDITIONAL(HAVE_SPHINX,[test "x${SPHINXBUILD}" != "x:"])
|
292
|
+
AM_CONDITIONAL(HAVE_RECENT_SPHINX,[test "x${ac_cv_recent_sphinx}" = "xyes"])
|
293
|
+
|
294
|
+
m4_if(m4_substr(m4_esyscmd(test -d po && echo 0),0,1),0, [
|
295
|
+
AM_PO_SUBDIRS
|
296
|
+
IT_PROG_INTLTOOL([0.35],[no-xml])
|
297
|
+
|
298
|
+
GETTEXT_PACKAGE=$PACKAGE
|
299
|
+
AC_CHECK_LIB(intl, libintl_gettext)
|
300
|
+
AC_SUBST([GETTEXT_PACKAGE])
|
301
|
+
AS_IF([test "x${USE_NLS}" = "xyes" -a "x${pandora_have_intltool}" = "xyes"],
|
302
|
+
[AC_DEFINE([ENABLE_NLS],[1],[Turn on language support])
|
303
|
+
AC_CONFIG_FILES([po/Makefile.in])
|
304
|
+
])
|
305
|
+
])
|
306
|
+
AM_CONDITIONAL(BUILD_PO,[test "x${USE_NLS}" = "xyes" -a "x${pandora_have_intltool}" = "xyes"])
|
307
|
+
|
308
|
+
AS_IF([test "x${gl_LIBOBJS}" != "x"],[
|
309
|
+
AS_IF([test "$GCC" = "yes"],[
|
310
|
+
AM_CPPFLAGS="-isystem \${top_srcdir}/gnulib -isystem \${top_builddir}/gnulib ${AM_CPPFLAGS}"
|
311
|
+
],[
|
312
|
+
AM_CPPFLAGS="-I\${top_srcdir}/gnulib -I\${top_builddir}/gnulib ${AM_CPPFLAGS}"
|
313
|
+
])
|
314
|
+
])
|
315
|
+
m4_if(m4_substr(m4_esyscmd(test -d src && echo 0),0,1),0,[
|
316
|
+
AM_CPPFLAGS="-I\$(top_srcdir)/src -I\$(top_builddir)/src ${AM_CPPFLAGS}"
|
317
|
+
],[
|
318
|
+
AM_CPPFLAGS="-I\$(top_srcdir) -I\$(top_builddir) ${AM_CPPFLAGS}"
|
319
|
+
])
|
320
|
+
|
321
|
+
PANDORA_USE_PIPE
|
322
|
+
|
323
|
+
AH_TOP([
|
324
|
+
#ifndef __CONFIG_H__
|
325
|
+
#define __CONFIG_H__
|
326
|
+
|
327
|
+
/* _SYS_FEATURE_TESTS_H is Solaris, _FEATURES_H is GCC */
|
328
|
+
#if defined( _SYS_FEATURE_TESTS_H) || defined(_FEATURES_H)
|
329
|
+
#error "You should include config.h as your first include file"
|
330
|
+
#endif
|
331
|
+
|
332
|
+
#include <config/top.h>
|
333
|
+
])
|
334
|
+
mkdir -p config
|
335
|
+
cat > config/top.h.stamp <<EOF_CONFIG_TOP
|
336
|
+
|
337
|
+
#if defined(i386) && !defined(__i386__)
|
338
|
+
#define __i386__
|
339
|
+
#endif
|
340
|
+
|
341
|
+
#if defined(_FILE_OFFSET_BITS)
|
342
|
+
# undef _FILE_OFFSET_BITS
|
343
|
+
#endif
|
344
|
+
EOF_CONFIG_TOP
|
345
|
+
|
346
|
+
diff config/top.h.stamp config/top.h >/dev/null 2>&1 || mv config/top.h.stamp config/top.h
|
347
|
+
rm -f config/top.h.stamp
|
348
|
+
|
349
|
+
AH_BOTTOM([
|
350
|
+
#if defined(__cplusplus)
|
351
|
+
# include CSTDINT_H
|
352
|
+
# include CINTTYPES_H
|
353
|
+
#else
|
354
|
+
# include <stdint.h>
|
355
|
+
# include <inttypes.h>
|
356
|
+
#endif
|
357
|
+
|
358
|
+
#if !defined(HAVE_ULONG) && !defined(__USE_MISC)
|
359
|
+
# define HAVE_ULONG 1
|
360
|
+
typedef unsigned long int ulong;
|
361
|
+
#endif
|
362
|
+
|
363
|
+
/* To hide the platform differences between MS Windows and Unix, I am
|
364
|
+
* going to use the Microsoft way and #define the Microsoft-specific
|
365
|
+
* functions to the unix way. Microsoft use a separate subsystem for sockets,
|
366
|
+
* but Unix normally just use a filedescriptor on the same functions. It is
|
367
|
+
* a lot easier to map back to the unix way with macros than going the other
|
368
|
+
* way without side effect ;-)
|
369
|
+
*/
|
370
|
+
#ifdef TARGET_OS_WINDOWS
|
371
|
+
#define random() rand()
|
372
|
+
#define srandom(a) srand(a)
|
373
|
+
#define get_socket_errno() WSAGetLastError()
|
374
|
+
#else
|
375
|
+
#define INVALID_SOCKET -1
|
376
|
+
#define SOCKET_ERROR -1
|
377
|
+
#define closesocket(a) close(a)
|
378
|
+
#define get_socket_errno() errno
|
379
|
+
#endif
|
380
|
+
|
381
|
+
#if defined(__cplusplus)
|
382
|
+
# if defined(DEBUG)
|
383
|
+
# include <cassert>
|
384
|
+
# include <cstddef>
|
385
|
+
# endif
|
386
|
+
template<typename To, typename From>
|
387
|
+
inline To implicit_cast(From const &f) {
|
388
|
+
return f;
|
389
|
+
}
|
390
|
+
template<typename To, typename From> // use like this: down_cast<T*>(foo);
|
391
|
+
inline To down_cast(From* f) { // so we only accept pointers
|
392
|
+
// Ensures that To is a sub-type of From *. This test is here only
|
393
|
+
// for compile-time type checking, and has no overhead in an
|
394
|
+
// optimized build at run-time, as it will be optimized away
|
395
|
+
// completely.
|
396
|
+
if (false) {
|
397
|
+
implicit_cast<From*, To>(0);
|
398
|
+
}
|
399
|
+
|
400
|
+
#if defined(DEBUG)
|
401
|
+
assert(f == NULL || dynamic_cast<To>(f) != NULL); // RTTI: debug mode only!
|
402
|
+
#endif
|
403
|
+
return static_cast<To>(f);
|
404
|
+
}
|
405
|
+
#endif /* defined(__cplusplus) */
|
406
|
+
|
407
|
+
#endif /* __CONFIG_H__ */
|
408
|
+
])
|
409
|
+
|
410
|
+
AM_CFLAGS="${AM_CFLAGS} ${CC_WARNINGS} ${CC_PROFILING} ${CC_COVERAGE}"
|
411
|
+
AM_CXXFLAGS="${AM_CXXFLAGS} ${CXX_WARNINGS} ${CC_PROFILING} ${CC_COVERAGE}"
|
412
|
+
|
413
|
+
AC_SUBST([AM_CFLAGS])
|
414
|
+
AC_SUBST([AM_CXXFLAGS])
|
415
|
+
AC_SUBST([AM_CPPFLAGS])
|
416
|
+
AC_SUBST([AM_LDFLAGS])
|
417
|
+
|
418
|
+
])
|