blob: 25b6152c2eba8f1e108fc3567fd5123f134c527d [file] [log] [blame]
Marc Slemko9f0ba252006-07-21 03:53:13 +00001AC_PREREQ(2.59)
2
Marc Slemkob09f5882006-08-23 22:03:34 +00003AC_INIT(thriftcpp, 1.0)
Marc Slemko9f0ba252006-07-21 03:53:13 +00004
5AC_CONFIG_SRCDIR(src/Thrift.h)
6
David Reissbc3dddb2007-08-22 23:20:24 +00007AC_PROG_CC
8
9AC_PROG_CXX
10
11AC_LANG([C++])
12
Marc Slemko9f0ba252006-07-21 03:53:13 +000013AM_INIT_AUTOMAKE
14
Marc Slemko75c2f702007-01-17 07:59:38 +000015AC_FUNC_MALLOC
16
Mark Slee79b16942007-11-26 19:05:29 +000017AC_FUNC_MEMCMP
18
Marc Slemko75c2f702007-01-17 07:59:38 +000019AC_FUNC_REALLOC
20
21AC_FUNC_SELECT_ARGTYPES
22
David Reissbc3dddb2007-08-22 23:20:24 +000023AC_FUNC_STRERROR_R
24
Marc Slemko75c2f702007-01-17 07:59:38 +000025AC_CHECK_FUNCS([bzero])
26
Marc Slemko9f0ba252006-07-21 03:53:13 +000027AC_CHECK_FUNCS([gethostbyname])
28
29AC_CHECK_FUNCS([gettimeofday])
30
31AC_CHECK_FUNCS([memset])
32
Marc Slemko75c2f702007-01-17 07:59:38 +000033AC_CHECK_FUNCS([select])
34
Marc Slemko9f0ba252006-07-21 03:53:13 +000035AC_CHECK_FUNCS([socket])
36
Marc Slemkod42a2c22006-08-10 03:30:18 +000037AC_CHECK_FUNCS([strtol])
38
39AC_CHECK_FUNCS([strtoul])
40
Mark Slee3303f362007-03-05 20:09:37 +000041AC_CHECK_FUNCS([memmove])
42
43AC_CHECK_FUNCS([strstr])
44
45AC_CHECK_FUNCS([strchr])
46
Marc Slemko9f0ba252006-07-21 03:53:13 +000047AC_CHECK_HEADERS([arpa/inet.h])
48
Marc Slemko75c2f702007-01-17 07:59:38 +000049AC_CHECK_HEADERS([fcntl.h])
50
Marc Slemko9f0ba252006-07-21 03:53:13 +000051AC_CHECK_HEADERS([inttypes.h])
52
53AC_CHECK_HEADERS([netdb.h])
54
55AC_CHECK_HEADERS([netinet/in.h])
56
57AC_CHECK_HEADERS([pthread.h])
58
59AC_CHECK_HEADERS([stddef.h])
60
61AC_CHECK_HEADERS([sys/socket.h])
62
63AC_CHECK_HEADERS([sys/time.h])
64
65AC_CHECK_HEADERS([unistd.h])
66
Mark Slee4f261c52007-04-13 00:33:24 +000067AC_CHECK_HEADERS([endian.h])
68
Mark Sleeeb0d0242007-01-25 07:58:55 +000069AC_C_INLINE
70
Marc Slemko6f038a72006-08-03 18:58:09 +000071AX_BOOST_BASE([1.33.1])
72
David Reiss79ae0f82007-09-17 21:15:47 +000073AX_LIB_EVENT([1.0])
74AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$success" = "yes"])
Marc Slemko85ca7a12007-01-17 08:32:16 +000075
David Reissfaebedd2007-09-17 23:20:38 +000076AX_LIB_ZLIB([1.2.3])
77AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"])
78
Marc Slemkoe03da182006-07-21 21:32:36 +000079AC_CHECK_LIB(pthread, pthread_create)
80
Marc Slemkoc7782972006-07-25 02:26:35 +000081AC_CHECK_LIB(rt, sched_get_priority_min)
82
83AC_CHECK_FUNCS([clock_gettime])
84
Marc Slemko9f0ba252006-07-21 03:53:13 +000085AC_C_CONST
86
87AC_C_VOLATILE
88
89AC_HEADER_STDBOOL
90
91AC_HEADER_STDC
92
93AC_HEADER_TIME
94
Marc Slemko75c2f702007-01-17 07:59:38 +000095AC_TYPE_OFF_T
96
97AC_TYPE_MODE_T
98
Marc Slemko9f0ba252006-07-21 03:53:13 +000099AC_TYPE_SIZE_T
100
Marc Slemkod42a2c22006-08-10 03:30:18 +0000101AC_TYPE_INT16_T
102
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000103AC_TYPE_INT32_T
Marc Slemkoe03da182006-07-21 21:32:36 +0000104
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000105AC_TYPE_INT64_T
106
107AC_TYPE_UINT16_T
108
109AC_TYPE_UINT32_T
110
111AC_TYPE_UINT64_T
112
113AC_TYPE_UINT8_T
114
Marc Slemko9f0ba252006-07-21 03:53:13 +0000115AC_CONFIG_HEADERS(config.h:config.hin)
116
Marc Slemko9f0ba252006-07-21 03:53:13 +0000117AC_PROG_INSTALL
118
119AC_PROG_LIBTOOL
120
Mark Slee5d06fea2007-03-05 22:18:18 +0000121AC_PROG_MAKE_SET
122
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000123AC_OUTPUT(Makefile)