blob: 0208f1b28342e6a49582c1dac7645d1896834a0a [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
Marc Slemko85ca7a12007-01-17 08:32:16 +000071AX_EVENT_BASE([1.2.0])
72
Marc Slemkoe03da182006-07-21 21:32:36 +000073AC_CHECK_LIB(pthread, pthread_create)
74
Marc Slemkoc7782972006-07-25 02:26:35 +000075AC_CHECK_LIB(rt, sched_get_priority_min)
76
77AC_CHECK_FUNCS([clock_gettime])
78
Marc Slemko9f0ba252006-07-21 03:53:13 +000079AC_C_CONST
80
81AC_C_VOLATILE
82
83AC_HEADER_STDBOOL
84
85AC_HEADER_STDC
86
87AC_HEADER_TIME
88
Marc Slemko75c2f702007-01-17 07:59:38 +000089AC_TYPE_OFF_T
90
91AC_TYPE_MODE_T
92
Marc Slemko9f0ba252006-07-21 03:53:13 +000093AC_TYPE_SIZE_T
94
Marc Slemkod42a2c22006-08-10 03:30:18 +000095AC_TYPE_INT16_T
96
Marc Slemko9d4a3e22006-07-21 19:53:48 +000097AC_TYPE_INT32_T
Marc Slemkoe03da182006-07-21 21:32:36 +000098
Marc Slemko9d4a3e22006-07-21 19:53:48 +000099AC_TYPE_INT64_T
100
101AC_TYPE_UINT16_T
102
103AC_TYPE_UINT32_T
104
105AC_TYPE_UINT64_T
106
107AC_TYPE_UINT8_T
108
Marc Slemko9f0ba252006-07-21 03:53:13 +0000109AC_CONFIG_HEADERS(config.h:config.hin)
110
Marc Slemko9f0ba252006-07-21 03:53:13 +0000111AC_PROG_INSTALL
112
113AC_PROG_LIBTOOL
114
Mark Slee5d06fea2007-03-05 22:18:18 +0000115AC_PROG_MAKE_SET
116
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000117AC_OUTPUT(Makefile)