Moved to using vector send for writes (lowers function call count).
[awesomized/libmemcached] / configure.ac
1 #!/usr/bin/env bash
2 # libmemcached
3 # Copyright (C) 2008 Brian Aker, Monty Taylor
4 # All rights reserved.
5 #
6 # Use and distribution licensed under the BSD license. See
7 # the COPYING file in this directory for full text.
8
9 AC_PREREQ(2.59)
10 AC_INIT([libmemcached],[0.38],[http://tangent.org/552/libmemcached.html])
11 AC_CONFIG_SRCDIR([libmemcached/memcached.c])
12 AC_CONFIG_AUX_DIR(config)
13 AM_CONFIG_HEADER([config.h])
14 AC_CONFIG_MACRO_DIR([m4])
15
16 PANDORA_CANONICAL_TARGET
17
18 #shared library versioning
19 MEMCACHED_LIBRARY_VERSION=3:0:0
20 # | | |
21 # +------+ | +---+
22 # | | |
23 # current:revision:age
24 # | | |
25 # | | +- increment if interfaces have been added
26 # | | set to zero if interfaces have been removed or changed
27 # | +- increment if source code has changed
28 # | set to zero if current is incremented
29 # +- increment if interfaces have been added, removed or changed
30 AC_SUBST(MEMCACHED_LIBRARY_VERSION)
31
32
33 HASHKIT_LIBRARY_VERSION=0:0:0
34 AC_SUBST(HASHKIT_LIBRARY_VERSION)
35
36 AC_SEARCH_LIBS(getopt_long, gnugetopt)
37 AC_SEARCH_LIBS(gethostbyname, nsl)
38
39 AC_CHECK_FUNCS([getline])
40
41 PANDORA_HAVE_LIBEVENT
42 PANDORA_REQUIRE_PTHREAD
43 PANDORA_CXX_DEMANGLE
44
45 dnl Specialty checks
46 DETECT_BYTEORDER
47 ENABLE_UTILLIB
48 SETSOCKOPT_SANITY
49 ENABLE_HSIEH_HASH
50 REQUIRE_POD2MAN
51 REQUIRE_PODCHECKER
52 PROTOCOL_BINARY_TEST
53 WITH_MEMCACHED
54 ENABLE_DEPRECATED
55 PANDORA_HAVE_LIBINNODB
56 PANDORA_PRINT_CALLSTACK
57 DETECT_BITFIELD
58 PANDORA_HAVE_SASL
59
60 dnl The sasl functions should only be visible if we build with sasl support
61 AS_IF([test "x$ac_cv_sasl" = "xyes"],
62 [LIBMEMCACHED_WITH_SASL_SUPPORT="#define LIBMEMCACHED_WITH_SASL_SUPPORT 1"])
63 AC_SUBST(LIBMEMCACHED_WITH_SASL_SUPPORT)
64
65 AC_CHECK_HEADERS([atomic.h])
66 AS_IF([test "x$ac_cv_header_atomic_h" = "xyes"],[
67 AC_CHECK_FUNCS(atomic_add_64)
68 AC_CHECK_FUNCS(atomic_add_32)
69 AS_IF([test "x$ac_cv_func_atomic_add_64" = "xyes" -a "x$ac_cv_func_atomic_add_32" = "xyes"],[
70 AC_DEFINE([USE_ATOMIC_H],
71 [1],
72 [Define to true if you want to use functions from atomic.h])])])
73
74 AC_CONFIG_FILES([
75 Makefile
76 docs/Makefile
77 libhashkit/configure.h
78 libmemcached/configure.h
79 support/libmemcached.pc
80 support/libmemcached.spec
81 support/libmemcached-fc.spec
82 ])
83 AC_OUTPUT
84
85 echo "---"
86 echo "Configuration summary for $PACKAGE_NAME version $VERSION"
87 echo ""
88 echo " * Installation prefix: $prefix"
89 echo " * System type: $host_vendor-$host_os"
90 echo " * Host CPU: $host_cpu"
91 echo " * C Compiler: $CC_VERSION"
92 echo " * Assertions enabled: $ac_cv_assert"
93 echo " * Debug enabled: $with_debug"
94 echo " * Warnings as failure: $ac_cv_warnings_as_errors"
95 echo ""
96 echo "---"
97