798ff2c4541f8f81621abf2e68d47561ffd84bdc
[m6w6/libmemcached] / m4 / bottom.m4
1 AC_DEFUN([CONFIG_EXTRA], [
2
3 AH_TOP([
4 #pragma once
5
6 /* _SYS_FEATURE_TESTS_H is Solaris, _FEATURES_H is GCC */
7 #if defined( _SYS_FEATURE_TESTS_H) || defined(_FEATURES_H)
8 #error "You should include config.h as your first include file"
9 #endif
10
11 ])
12
13 AH_BOTTOM([
14
15 #if defined(__cplusplus)
16 #include CSTDINT_H
17 #include CINTTYPES_H
18 #else
19 #include <stdint.h>
20 #include <inttypes.h>
21 #endif
22
23 #if !defined(HAVE_ULONG) && !defined(__USE_MISC)
24 # define HAVE_ULONG 1
25 typedef unsigned long int ulong;
26 #endif
27
28
29 #if defined(RMEMCACHED_PACKAGE)
30 #undef VERSION
31 #define VERSION VERSION_NUMBER
32 #endif
33
34 #if defined(RMEMCACHED_PACKAGE)
35 #undef PACKAGE
36 #define PACKAGE RMEMCACHED_PACKAGE
37 #endif
38
39
40 ])
41
42 ])dnl CONFIG_EXTRA