More Hashing methods
[m6w6/libmemcached] / configure.in
1 AC_INIT(src/memcat.c)
2 AC_CONFIG_AUX_DIR(config)
3 AM_CONFIG_HEADER(include/libmemcached_config.h)
4 AM_INIT_AUTOMAKE("libmemcached", 0.8)
5
6 AC_PROG_CC
7 AC_PROG_LIBTOOL
8 LIBTOOL="$LIBTOOL --preserve-dup-deps"
9 AC_SUBST(LIBTOOL)dnl
10
11 sinclude(config/debug.m4)
12 sinclude(config/dtrace.m4)
13
14 # We only support GCC and Sun's forte at the moment
15 if test "$GCC" = "yes"
16 then
17 if test "$ENABLE_DEBUG" = "yes"
18 then
19 CFLAGS="-Wall -ggdb -DHAVE_DEBUG"
20 else
21 CFLAGS="-Wall -O3"
22 fi
23 else
24 CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ -fast -m64"
25 LDFLAGS="-lsocket -lnsl"
26 DTRACEFLAGS="-64"
27 fi
28
29 AC_C_CONST
30 AC_TYPE_SIZE_T
31 AC_CHECK_HEADERS(limits.h syslimits.h)
32 AC_OUTPUT(Makefile src/Makefile tests/Makefile docs/Makefile lib/Makefile include/Makefile support/Makefile)