-
Notifications
You must be signed in to change notification settings - Fork 14
/
configure.ac
66 lines (58 loc) · 1.89 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
AC_PREREQ(2.59)
m4_include([m4/version.m4])
AC_INIT(memcachetest, VERSION_NUMBER, [email protected])
AC_CONFIG_SRCDIR([main.c])
AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_DISABLE_STATIC
PANDORA_CANONICAL_TARGET(less-warnings, warnings-always-on)
AM_CPPFLAGS="$AM_CPPFLAGS $NO_WERROR"
AM_CFLAGS="$AM_CFLAGS $NO_WERROR"
PANDORA_HAVE_LIBMEMCACHED
PANDORA_HAVE_LIBVBUCKET
PANDORA_HAVE_LIBCOUCHBASE
PANDORA_HAVE_LIBEVENT
AH_TOP([
#ifndef CONFIG_H
#define CONFIG_H
#ifdef _SYS_FEATURE_TESTS_H
#error "You should include config.h as your first include file"
#endif
])
AC_SEARCH_LIBS(socket, socket)
AC_SEARCH_LIBS(gethostbyname, nsl)
AC_SEARCH_LIBS(log, m)
AC_SEARCH_LIBS(sqrt, m)
AC_SEARCH_LIBS(pthread_create, pthread)
AC_SEARCH_LIBS(clock_gettime, rt)
AC_CHECK_HEADERS_ONCE(mach/mach_time.h)
AC_CHECK_HEADERS_ONCE(memcached/protocol_binary.h)
AC_CHECK_FUNCS_ONCE(gethrtime clock_gettime gettimeofday)
AH_BOTTOM(
#ifndef HAVE_GETHRTIME
#include <stdint.h>
typedef uint64_t hrtime_t;
extern hrtime_t gethrtime(void);
#endif
#endif
)
dnl ----------------------------------------------------------------------------
AC_CONFIG_FILES(Makefile)
AC_OUTPUT
echo "---"
echo "Configuration summary for $PACKAGE_NAME version $VERSION"
echo ""
echo " * Installation prefix: $prefix"
echo " * System type: $host_vendor-$host_os"
echo " * Host CPU: $host_cpu"
echo " * C Compiler: $CC_VERSION"
echo " * C++ Compiler: $CXX_VERSION"
echo " * Assertions enabled: $ac_cv_assert"
echo " * Debug enabled: $with_debug"
echo " * Warnings as failure: $ac_cv_warnings_as_errors"
echo " * Support for binary protocol $ac_cv_header_memcached_protocol_binary_h"
echo " * Support for libmemcached $ac_cv_libmemcached"
echo " * Support for libvbucket $ac_cv_libvbucket"
echo ""
echo "---"