6306aee178a873508c98976a5ea32c86dfba1019
[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 #ifndef __STDC_FORMAT_MACROS
16 # define __STDC_FORMAT_MACROS
17 #endif
18
19 #if defined(__cplusplus)
20 # include CINTTYPES_H
21 #else
22 # include <inttypes.h>
23 #endif
24
25 #if !defined(HAVE_ULONG) && !defined(__USE_MISC)
26 # define HAVE_ULONG 1
27 typedef unsigned long int ulong;
28 #endif
29
30 #define RPACKAGE "memcached"
31
32 #define RVERSION "1.4.13"
33
34 #ifdef WORDS_BIGENDIAN
35 # define ENDIAN_BIG 1
36 #else
37 # define ENDIAN_LITTLE 1
38 #endif
39
40 ])
41
42 ])dnl CONFIG_EXTRA