2 AC_CONFIG_AUX_DIR(config)
3 AM_CONFIG_HEADER(include/libmemcached_config.h)
5 MEMCACHED_LIBRARY_NAME=libmemcached
8 MEMCACHED_MAJOR_VERSION=0
9 MEMCACHED_MINOR_VERSION=8
10 MEMCACHED_MICRO_VERSION=0
13 MEMCACHED_API_VERSION=1.0
14 AC_SUBST(MEMCACHED_API_VERSION)
16 #shared library versioning
17 MEMCACHED_LIBRARY_VERSION=1:0:0
21 # current:revision:age
23 # | | +- increment if interfaces have been added
24 # | | set to zero if interfaces have been removed or changed
25 # | +- increment if source code has changed
26 # | set to zero if current is incremented
27 # +- increment if interfaces have been added, removed or changed
29 AC_SUBST(MEMCACHED_LIBRARY_VERSION)
31 PACKAGE=$MEMCACHED_LIBRARY_NAME
32 AC_SUBST(MEMCACHED_LIBRARY_NAME)
34 MEMCACHED_VERSION=$MEMCACHED_MAJOR_VERSION.$MEMCACHED_MINOR_VERSION.$MEMCACHED_MICRO_VERSION
35 MEMCACHED_RELEASE=$MEMCACHED_MAJOR_VERSION.$MEMCACHED_MINOR_VERSION
36 AC_SUBST(MEMCACHED_RELEASE)
37 AC_SUBST(MEMCACHED_VERSION)
39 VERSION=$MEMCACHED_RELEASE
41 AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
47 LIBTOOL="$LIBTOOL --preserve-dup-deps"
51 sinclude(config/debug.m4)
52 sinclude(config/dtrace.m4)
54 # We only support GCC and Sun's forte at the moment
55 if test "$GCC" = "yes"
57 if test "$ENABLE_DEBUG" = "yes"
59 CFLAGS="-Wall -ggdb -DHAVE_DEBUG"
64 CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ -fast -m64"
65 LDFLAGS="-lsocket -lnsl"
71 AC_CHECK_HEADERS(limits.h syslimits.h)
72 AC_OUTPUT(Makefile src/Makefile tests/Makefile docs/Makefile lib/Makefile include/Makefile support/Makefile support/libmemcached.pc support/libmemcached.spec)