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 | |||||
7 | AM_INIT_AUTOMAKE | ||||
8 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 9 | AC_FUNC_MALLOC |
10 | |||||
11 | AC_FUNC_REALLOC | ||||
12 | |||||
13 | AC_FUNC_SELECT_ARGTYPES | ||||
14 | |||||
15 | AC_CHECK_FUNCS([bzero]) | ||||
16 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 17 | AC_CHECK_FUNCS([gethostbyname]) |
18 | |||||
19 | AC_CHECK_FUNCS([gettimeofday]) | ||||
20 | |||||
21 | AC_CHECK_FUNCS([memset]) | ||||
22 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 23 | AC_CHECK_FUNCS([select]) |
24 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 25 | AC_CHECK_FUNCS([socket]) |
26 | |||||
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 27 | AC_CHECK_FUNCS([strtol]) |
28 | |||||
29 | AC_CHECK_FUNCS([strtoul]) | ||||
30 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 31 | AC_CHECK_HEADERS([arpa/inet.h]) |
32 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 33 | AC_CHECK_HEADERS([fcntl.h]) |
34 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 35 | AC_CHECK_HEADERS([inttypes.h]) |
36 | |||||
37 | AC_CHECK_HEADERS([netdb.h]) | ||||
38 | |||||
39 | AC_CHECK_HEADERS([netinet/in.h]) | ||||
40 | |||||
41 | AC_CHECK_HEADERS([pthread.h]) | ||||
42 | |||||
43 | AC_CHECK_HEADERS([stddef.h]) | ||||
44 | |||||
45 | AC_CHECK_HEADERS([sys/socket.h]) | ||||
46 | |||||
47 | AC_CHECK_HEADERS([sys/time.h]) | ||||
48 | |||||
49 | AC_CHECK_HEADERS([unistd.h]) | ||||
50 | |||||
Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 51 | AC_C_INLINE |
52 | |||||
Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 53 | AX_BOOST_BASE([1.33.1]) |
54 | |||||
Marc Slemko | 85ca7a1 | 2007-01-17 08:32:16 +0000 | [diff] [blame] | 55 | AX_EVENT_BASE([1.2.0]) |
56 | |||||
Marc Slemko | e03da18 | 2006-07-21 21:32:36 +0000 | [diff] [blame] | 57 | AC_CHECK_LIB(pthread, pthread_create) |
58 | |||||
Marc Slemko | c778297 | 2006-07-25 02:26:35 +0000 | [diff] [blame] | 59 | AC_CHECK_LIB(rt, sched_get_priority_min) |
60 | |||||
61 | AC_CHECK_FUNCS([clock_gettime]) | ||||
62 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 63 | AC_C_CONST |
64 | |||||
65 | AC_C_VOLATILE | ||||
66 | |||||
67 | AC_HEADER_STDBOOL | ||||
68 | |||||
69 | AC_HEADER_STDC | ||||
70 | |||||
71 | AC_HEADER_TIME | ||||
72 | |||||
Marc Slemko | 75c2f70 | 2007-01-17 07:59:38 +0000 | [diff] [blame] | 73 | AC_TYPE_OFF_T |
74 | |||||
75 | AC_TYPE_MODE_T | ||||
76 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 77 | AC_TYPE_SIZE_T |
78 | |||||
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 79 | AC_TYPE_INT16_T |
80 | |||||
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 81 | AC_TYPE_INT32_T |
Marc Slemko | e03da18 | 2006-07-21 21:32:36 +0000 | [diff] [blame] | 82 | |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 83 | AC_TYPE_INT64_T |
84 | |||||
85 | AC_TYPE_UINT16_T | ||||
86 | |||||
87 | AC_TYPE_UINT32_T | ||||
88 | |||||
89 | AC_TYPE_UINT64_T | ||||
90 | |||||
91 | AC_TYPE_UINT8_T | ||||
92 | |||||
Marc Slemko | 9f0ba25 | 2006-07-21 03:53:13 +0000 | [diff] [blame] | 93 | AC_CONFIG_HEADERS(config.h:config.hin) |
94 | |||||
95 | AC_PROG_CC | ||||
96 | |||||
97 | AC_PROG_CXX | ||||
98 | |||||
99 | AC_PROG_INSTALL | ||||
100 | |||||
101 | AC_PROG_LIBTOOL | ||||
102 | |||||
Mark Slee | 3cd75f5 | 2007-02-20 20:57:36 +0000 | [diff] [blame] | 103 | CFLAGS="-g -O2" |
Mark Slee | 2905078 | 2006-09-29 00:12:30 +0000 | [diff] [blame] | 104 | |
Mark Slee | 3cd75f5 | 2007-02-20 20:57:36 +0000 | [diff] [blame] | 105 | CXXFLAGS="-g -O2" |
Mark Slee | 2905078 | 2006-09-29 00:12:30 +0000 | [diff] [blame] | 106 | |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 107 | AC_OUTPUT(Makefile) |