Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 1 | AC_PREREQ(2.59) |
2 | |||||
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 3 | AC_INIT(thriftcpp, 1.0) |
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 4 | |
5 | AC_CONFIG_SRCDIR(src/Thrift.h) | ||||
6 | |||||
David Reiss | bc3dddb | 2007-08-22 23:20:24 +0000 | [diff] [blame] | 7 | AC_PROG_CC |
8 | |||||
9 | AC_PROG_CXX | ||||
10 | |||||
11 | AC_LANG([C++]) | ||||
12 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 13 | AM_INIT_AUTOMAKE |
14 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 15 | AC_FUNC_MALLOC |
16 | |||||
17 | AC_FUNC_REALLOC | ||||
18 | |||||
19 | AC_FUNC_SELECT_ARGTYPES | ||||
20 | |||||
David Reiss | bc3dddb | 2007-08-22 23:20:24 +0000 | [diff] [blame] | 21 | AC_FUNC_STRERROR_R |
22 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 23 | AC_CHECK_FUNCS([bzero]) |
24 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 25 | AC_CHECK_FUNCS([gethostbyname]) |
26 | |||||
27 | AC_CHECK_FUNCS([gettimeofday]) | ||||
28 | |||||
29 | AC_CHECK_FUNCS([memset]) | ||||
30 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 31 | AC_CHECK_FUNCS([select]) |
32 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 33 | AC_CHECK_FUNCS([socket]) |
34 | |||||
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 35 | AC_CHECK_FUNCS([strtol]) |
36 | |||||
37 | AC_CHECK_FUNCS([strtoul]) | ||||
38 | |||||
Mark Slee | 3303f36 | 2007-03-05 20:09:37 +0000 | [diff] [blame] | 39 | AC_CHECK_FUNCS([memmove]) |
40 | |||||
41 | AC_CHECK_FUNCS([strstr]) | ||||
42 | |||||
43 | AC_CHECK_FUNCS([strchr]) | ||||
44 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 45 | AC_CHECK_HEADERS([arpa/inet.h]) |
46 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 47 | AC_CHECK_HEADERS([fcntl.h]) |
48 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 49 | AC_CHECK_HEADERS([inttypes.h]) |
50 | |||||
51 | AC_CHECK_HEADERS([netdb.h]) | ||||
52 | |||||
53 | AC_CHECK_HEADERS([netinet/in.h]) | ||||
54 | |||||
55 | AC_CHECK_HEADERS([pthread.h]) | ||||
56 | |||||
57 | AC_CHECK_HEADERS([stddef.h]) | ||||
58 | |||||
59 | AC_CHECK_HEADERS([sys/socket.h]) | ||||
60 | |||||
61 | AC_CHECK_HEADERS([sys/time.h]) | ||||
62 | |||||
63 | AC_CHECK_HEADERS([unistd.h]) | ||||
64 | |||||
Mark Slee | 4f261c5 | 2007-04-13 00:33:24 +0000 | [diff] [blame] | 65 | AC_CHECK_HEADERS([endian.h]) |
66 | |||||
Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 67 | AC_C_INLINE |
68 | |||||
Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 69 | AX_BOOST_BASE([1.33.1]) |
70 | |||||
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 71 | AX_LIB_EVENT([1.0]) |
72 | AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$success" = "yes"]) | ||||
Marc Slemko | 85ca7a1 | 2007-01-17 08:32:16 +0000 | [diff] [blame] | 73 | |
David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame] | 74 | AX_LIB_ZLIB([1.2.3]) |
75 | AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"]) | ||||
76 | |||||
Marc Slemko | e03da18 | 2006-07-21 21:32:36 +0000 | [diff] [blame] | 77 | AC_CHECK_LIB(pthread, pthread_create) |
78 | |||||
Marc Slemko | c778297 | 2006-07-25 02:26:35 +0000 | [diff] [blame] | 79 | AC_CHECK_LIB(rt, sched_get_priority_min) |
80 | |||||
81 | AC_CHECK_FUNCS([clock_gettime]) | ||||
82 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 83 | AC_C_CONST |
84 | |||||
85 | AC_C_VOLATILE | ||||
86 | |||||
87 | AC_HEADER_STDBOOL | ||||
88 | |||||
89 | AC_HEADER_STDC | ||||
90 | |||||
91 | AC_HEADER_TIME | ||||
92 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 93 | AC_TYPE_OFF_T |
94 | |||||
95 | AC_TYPE_MODE_T | ||||
96 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 97 | AC_TYPE_SIZE_T |
98 | |||||
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 99 | AC_TYPE_INT16_T |
100 | |||||
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 101 | AC_TYPE_INT32_T |
Marc Slemko | e03da18 | 2006-07-21 21:32:36 +0000 | [diff] [blame] | 102 | |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 103 | AC_TYPE_INT64_T |
104 | |||||
105 | AC_TYPE_UINT16_T | ||||
106 | |||||
107 | AC_TYPE_UINT32_T | ||||
108 | |||||
109 | AC_TYPE_UINT64_T | ||||
110 | |||||
111 | AC_TYPE_UINT8_T | ||||
112 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 113 | AC_CONFIG_HEADERS(config.h:config.hin) |
114 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 115 | AC_PROG_INSTALL |
116 | |||||
117 | AC_PROG_LIBTOOL | ||||
118 | |||||
Mark Slee | 5d06fea | 2007-03-05 22:18:18 +0000 | [diff] [blame] | 119 | AC_PROG_MAKE_SET |
120 | |||||
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 121 | AC_OUTPUT(Makefile) |