2 # Copyright (C) 2008 Brian Aker, Monty Taylor
5 # Use and distribution licensed under the BSD license. See
6 # the COPYING file in this directory for full text.
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])
15 PANDORA_CANONICAL_TARGET
17 #shared library versioning
18 MEMCACHED_LIBRARY_VERSION=3:0:0
22 # current:revision:age
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)
34 # libmemcached versioning when linked with GNU ld.
35 if test "$lt_cv_prog_gnu_ld" = "yes"
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"
40 AC_SUBST(LD_VERSION_SCRIPT)
41 AC_SUBST(LD_UTIL_VERSION_SCRIPT)
44 #--------------------------------------------------------------------
45 # Check for libpthread
46 #--------------------------------------------------------------------
48 ACX_PTHREAD(,AC_MSG_ERROR(could not find libpthread))
49 LIBS="${PTHREAD_LIBS} ${LIBS}"
50 CFLAGS="${PTHREAD_CFLAGS} ${CFLAGS}"
54 AC_SEARCH_LIBS(getopt_long, gnugetopt)
55 AC_SEARCH_LIBS(socket, socket)
56 AC_SEARCH_LIBS(gethostbyname, nsl)
65 float f= floorf((float) 1.0);
67 [LIBM="-lm"],[LIBM=""])])
72 AC_SEARCH_LIBS(floorf, m)
91 libmemcached/memcached_configure.h
92 libmemcachedutil/Makefile
94 support/libmemcached.pc
95 support/libmemcached.spec
96 support/libmemcached-fc.spec
101 echo "Configuration summary for $PACKAGE_NAME version $VERSION"
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"