blob: d9a66dafb0a1f12c8e0fb2641d6fccc3fa5ed73c [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
17AC_FUNC_REALLOC
18
19AC_FUNC_SELECT_ARGTYPES
20
David Reissbc3dddb2007-08-22 23:20:24 +000021AC_FUNC_STRERROR_R
22
Marc Slemko75c2f702007-01-17 07:59:38 +000023AC_CHECK_FUNCS([bzero])
24
Marc Slemko9f0ba252006-07-21 03:53:13 +000025AC_CHECK_FUNCS([gethostbyname])
26
27AC_CHECK_FUNCS([gettimeofday])
28
29AC_CHECK_FUNCS([memset])
30
Marc Slemko75c2f702007-01-17 07:59:38 +000031AC_CHECK_FUNCS([select])
32
Marc Slemko9f0ba252006-07-21 03:53:13 +000033AC_CHECK_FUNCS([socket])
34
Marc Slemkod42a2c22006-08-10 03:30:18 +000035AC_CHECK_FUNCS([strtol])
36
37AC_CHECK_FUNCS([strtoul])
38
Mark Slee3303f362007-03-05 20:09:37 +000039AC_CHECK_FUNCS([memmove])
40
41AC_CHECK_FUNCS([strstr])
42
43AC_CHECK_FUNCS([strchr])
44
Marc Slemko9f0ba252006-07-21 03:53:13 +000045AC_CHECK_HEADERS([arpa/inet.h])
46
Marc Slemko75c2f702007-01-17 07:59:38 +000047AC_CHECK_HEADERS([fcntl.h])
48
Marc Slemko9f0ba252006-07-21 03:53:13 +000049AC_CHECK_HEADERS([inttypes.h])
50
51AC_CHECK_HEADERS([netdb.h])
52
53AC_CHECK_HEADERS([netinet/in.h])
54
55AC_CHECK_HEADERS([pthread.h])
56
57AC_CHECK_HEADERS([stddef.h])
58
59AC_CHECK_HEADERS([sys/socket.h])
60
61AC_CHECK_HEADERS([sys/time.h])
62
63AC_CHECK_HEADERS([unistd.h])
64
Mark Slee4f261c52007-04-13 00:33:24 +000065AC_CHECK_HEADERS([endian.h])
66
Mark Sleeeb0d0242007-01-25 07:58:55 +000067AC_C_INLINE
68
Marc Slemko6f038a72006-08-03 18:58:09 +000069AX_BOOST_BASE([1.33.1])
70
David Reiss79ae0f82007-09-17 21:15:47 +000071AX_LIB_EVENT([1.0])
72AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$success" = "yes"])
Marc Slemko85ca7a12007-01-17 08:32:16 +000073
David Reissfaebedd2007-09-17 23:20:38 +000074AX_LIB_ZLIB([1.2.3])
75AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"])
76
Marc Slemkoe03da182006-07-21 21:32:36 +000077AC_CHECK_LIB(pthread, pthread_create)
78
Marc Slemkoc7782972006-07-25 02:26:35 +000079AC_CHECK_LIB(rt, sched_get_priority_min)
80
81AC_CHECK_FUNCS([clock_gettime])
82
Marc Slemko9f0ba252006-07-21 03:53:13 +000083AC_C_CONST
84
85AC_C_VOLATILE
86
87AC_HEADER_STDBOOL
88
89AC_HEADER_STDC
90
91AC_HEADER_TIME
92
Marc Slemko75c2f702007-01-17 07:59:38 +000093AC_TYPE_OFF_T
94
95AC_TYPE_MODE_T
96
Marc Slemko9f0ba252006-07-21 03:53:13 +000097AC_TYPE_SIZE_T
98
Marc Slemkod42a2c22006-08-10 03:30:18 +000099AC_TYPE_INT16_T
100
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000101AC_TYPE_INT32_T
Marc Slemkoe03da182006-07-21 21:32:36 +0000102
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000103AC_TYPE_INT64_T
104
105AC_TYPE_UINT16_T
106
107AC_TYPE_UINT32_T
108
109AC_TYPE_UINT64_T
110
111AC_TYPE_UINT8_T
112
Marc Slemko9f0ba252006-07-21 03:53:13 +0000113AC_CONFIG_HEADERS(config.h:config.hin)
114
Marc Slemko9f0ba252006-07-21 03:53:13 +0000115AC_PROG_INSTALL
116
117AC_PROG_LIBTOOL
118
Mark Slee5d06fea2007-03-05 22:18:18 +0000119AC_PROG_MAKE_SET
120
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000121AC_OUTPUT(Makefile)