blob: d0fc7c14e9cfa1acd6faca6f5b8742be644959bf [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
7AM_INIT_AUTOMAKE
8
Marc Slemko75c2f702007-01-17 07:59:38 +00009AC_FUNC_MALLOC
10
11AC_FUNC_REALLOC
12
13AC_FUNC_SELECT_ARGTYPES
14
15AC_CHECK_FUNCS([bzero])
16
Marc Slemko9f0ba252006-07-21 03:53:13 +000017AC_CHECK_FUNCS([gethostbyname])
18
19AC_CHECK_FUNCS([gettimeofday])
20
21AC_CHECK_FUNCS([memset])
22
Marc Slemko75c2f702007-01-17 07:59:38 +000023AC_CHECK_FUNCS([select])
24
Marc Slemko9f0ba252006-07-21 03:53:13 +000025AC_CHECK_FUNCS([socket])
26
Marc Slemkod42a2c22006-08-10 03:30:18 +000027AC_CHECK_FUNCS([strtol])
28
29AC_CHECK_FUNCS([strtoul])
30
Marc Slemko9f0ba252006-07-21 03:53:13 +000031AC_CHECK_HEADERS([arpa/inet.h])
32
Marc Slemko75c2f702007-01-17 07:59:38 +000033AC_CHECK_HEADERS([fcntl.h])
34
Marc Slemko9f0ba252006-07-21 03:53:13 +000035AC_CHECK_HEADERS([inttypes.h])
36
37AC_CHECK_HEADERS([netdb.h])
38
39AC_CHECK_HEADERS([netinet/in.h])
40
41AC_CHECK_HEADERS([pthread.h])
42
43AC_CHECK_HEADERS([stddef.h])
44
45AC_CHECK_HEADERS([sys/socket.h])
46
47AC_CHECK_HEADERS([sys/time.h])
48
49AC_CHECK_HEADERS([unistd.h])
50
Mark Sleeeb0d0242007-01-25 07:58:55 +000051AC_C_INLINE
52
Marc Slemko6f038a72006-08-03 18:58:09 +000053AX_BOOST_BASE([1.33.1])
54
Marc Slemko85ca7a12007-01-17 08:32:16 +000055AX_EVENT_BASE([1.2.0])
56
Marc Slemkoe03da182006-07-21 21:32:36 +000057AC_CHECK_LIB(pthread, pthread_create)
58
Marc Slemkoc7782972006-07-25 02:26:35 +000059AC_CHECK_LIB(rt, sched_get_priority_min)
60
61AC_CHECK_FUNCS([clock_gettime])
62
Marc Slemko9f0ba252006-07-21 03:53:13 +000063AC_C_CONST
64
65AC_C_VOLATILE
66
67AC_HEADER_STDBOOL
68
69AC_HEADER_STDC
70
71AC_HEADER_TIME
72
Marc Slemko75c2f702007-01-17 07:59:38 +000073AC_TYPE_OFF_T
74
75AC_TYPE_MODE_T
76
Marc Slemko9f0ba252006-07-21 03:53:13 +000077AC_TYPE_SIZE_T
78
Marc Slemkod42a2c22006-08-10 03:30:18 +000079AC_TYPE_INT16_T
80
Marc Slemko9d4a3e22006-07-21 19:53:48 +000081AC_TYPE_INT32_T
Marc Slemkoe03da182006-07-21 21:32:36 +000082
Marc Slemko9d4a3e22006-07-21 19:53:48 +000083AC_TYPE_INT64_T
84
85AC_TYPE_UINT16_T
86
87AC_TYPE_UINT32_T
88
89AC_TYPE_UINT64_T
90
91AC_TYPE_UINT8_T
92
Marc Slemko9f0ba252006-07-21 03:53:13 +000093AC_CONFIG_HEADERS(config.h:config.hin)
94
95AC_PROG_CC
96
97AC_PROG_CXX
98
99AC_PROG_INSTALL
100
101AC_PROG_LIBTOOL
102
Mark Slee29050782006-09-29 00:12:30 +0000103CFLAGS="-O2"
104
105CXXFLAGS="-O2"
106
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000107AC_OUTPUT(Makefile)