Add manual page for memcapable
[awesomized/libmemcached] / configure.ac
1 # libmemcached
2 # Copyright (C) 2008 Brian Aker, Monty Taylor
3 # All rights reserved.
4 #
5 # Use and distribution licensed under the BSD license. See
6 # the COPYING file in this directory for full text.
7
8 AC_PREREQ(2.59)
9 AC_INIT([libmemcached],[0.32],[http://tangent.org/552/libmemcached.html])
10 AC_CONFIG_SRCDIR([libmemcached/memcached.c])
11 AC_CONFIG_AUX_DIR(config)
12 AM_CONFIG_HEADER([config.h])
13 AC_CONFIG_MACRO_DIR([m4])
14
15 PANDORA_CANONICAL_TARGET
16
17 #shared library versioning
18 MEMCACHED_LIBRARY_VERSION=3:0:0
19 # | | |
20 # +------+ | +---+
21 # | | |
22 # current:revision:age
23 # | | |
24 # | | +- increment if interfaces have been added
25 # | | set to zero if interfaces have been removed or changed
26 # | +- increment if source code has changed
27 # | set to zero if current is incremented
28 # +- increment if interfaces have been added, removed or changed
29 AC_SUBST(MEMCACHED_LIBRARY_VERSION)
30 MEMCACHEDUTIL_LIBRARY_VERSION=0:0:0
31 AC_SUBST(MEMCACHEDUTIL_LIBRARY_VERSION)
32
33
34 # libmemcached versioning when linked with GNU ld.
35 if test "$lt_cv_prog_gnu_ld" = "yes"
36 then
37 LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/libmemcached/libmemcached.ver"
38 LD_UTIL_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/libmemcachedutil/libmemcachedutil.ver"
39 fi
40 AC_SUBST(LD_VERSION_SCRIPT)
41 AC_SUBST(LD_UTIL_VERSION_SCRIPT)
42
43
44 #--------------------------------------------------------------------
45 # Check for libpthread
46 #--------------------------------------------------------------------
47
48 ACX_PTHREAD(,AC_MSG_ERROR(could not find libpthread))
49 LIBS="${PTHREAD_LIBS} ${LIBS}"
50 CFLAGS="${PTHREAD_CFLAGS} ${CFLAGS}"
51 CC="$PTHREAD_CC"
52
53
54 AC_SEARCH_LIBS(getopt_long, gnugetopt)
55 AC_SEARCH_LIBS(socket, socket)
56 AC_SEARCH_LIBS(gethostbyname, nsl)
57
58 save_LIBS="$LIBS"
59 LIBS="$LIBS -lm"
60 AC_LINK_IFELSE(
61 [AC_LANG_PROGRAM(
62 [[
63 #include <stdlib.h>
64 ]],[[
65 float f= floorf((float) 1.0);
66 ]],
67 [LIBM="-lm"],[LIBM=""])])
68
69 AC_SUBST(LIBM)
70 LIBS="$save_LIBS"
71
72 AC_SEARCH_LIBS(floorf, m)
73
74 dnl Specialty checks
75 DETECT_BYTEORDER
76 ENABLE_UTILLIB
77 SETSOCKOPT_SANITY
78 ENABLE_HSIEH_HASH
79 REQUIRE_POD2MAN
80 PROTOCOL_BINARY_TEST
81 WITH_MEMCACHED
82 ENABLE_DEPRECATED
83
84
85 AC_CONFIG_FILES([
86 Makefile
87 clients/Makefile
88 tests/Makefile
89 docs/Makefile
90 libmemcached/Makefile
91 libmemcached/memcached_configure.h
92 libmemcachedutil/Makefile
93 support/Makefile
94 support/libmemcached.pc
95 support/libmemcached.spec
96 support/libmemcached-fc.spec
97 ])
98 AC_OUTPUT
99
100 echo "---"
101 echo "Configuration summary for $PACKAGE_NAME version $VERSION"
102 echo ""
103 echo " * Installation prefix: $prefix"
104 echo " * System type: $host_vendor-$host_os"
105 echo " * Host CPU: $host_cpu"
106 echo " * C Compiler: $CC_VERSION"
107 echo " * Assertions enabled: $ac_cv_assert"
108 echo " * Debug enabled: $with_debug"
109 echo " * Warnings as failure: $ac_cv_warnings_as_errors"
110 echo ""
111 echo "---"
112