Fixup for release
[awesomized/libmemcached] / configure.ac
1 AC_INIT(src/memcat.c)
2 AC_CONFIG_AUX_DIR(config)
3 AM_CONFIG_HEADER(include/libmemcached_config.h)
4
5 MEMCACHED_LIBRARY_NAME=libmemcached
6
7 #release versioning
8 MEMCACHED_MAJOR_VERSION=0
9 MEMCACHED_MINOR_VERSION=8
10 MEMCACHED_MICRO_VERSION=0
11
12 #API version
13 MEMCACHED_API_VERSION=1.0
14 AC_SUBST(MEMCACHED_API_VERSION)
15
16 #shared library versioning
17 MEMCACHED_LIBRARY_VERSION=1:0:0
18 # | | |
19 # +------+ | +---+
20 # | | |
21 # current:revision:age
22 # | | |
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
28
29 AC_SUBST(MEMCACHED_LIBRARY_VERSION)
30
31 PACKAGE=$MEMCACHED_LIBRARY_NAME
32 AC_SUBST(MEMCACHED_LIBRARY_NAME)
33
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)
38
39 VERSION=$MEMCACHED_RELEASE
40
41 AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
42
43 AC_PROG_CC
44 AC_PROG_CXX
45 AC_PROG_LIBTOOL
46 AM_SANITY_CHECK
47 LIBTOOL="$LIBTOOL --preserve-dup-deps"
48 AC_SUBST(LIBTOOL)dnl
49 AC_LANG_CPLUSPLUS
50
51 sinclude(config/debug.m4)
52 sinclude(config/dtrace.m4)
53
54 # We only support GCC and Sun's forte at the moment
55 if test "$GCC" = "yes"
56 then
57 if test "$ENABLE_DEBUG" = "yes"
58 then
59 CFLAGS="-Wall -ggdb -DHAVE_DEBUG"
60 else
61 CFLAGS="-Wall -O3"
62 fi
63 else
64 CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ -fast -m64"
65 LDFLAGS="-lsocket -lnsl"
66 DTRACEFLAGS="-64"
67 fi
68
69 AC_C_CONST
70 AC_TYPE_SIZE_T
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)