| 30 |
ashish |
1 |
# -*- Autoconf -*-
|
|
|
2 |
# Process this file with autoconf to produce a configure script.
|
|
|
3 |
|
|
|
4 |
AC_PREREQ([2.64])
|
|
|
5 |
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
|
|
|
6 |
AC_CONFIG_SRCDIR([contrib/thrift_dump.cpp])
|
|
|
7 |
AC_CONFIG_HEADERS([config.h])
|
|
|
8 |
|
|
|
9 |
# Checks for programs.
|
|
|
10 |
AC_PROG_CXX
|
|
|
11 |
AC_PROG_CC
|
|
|
12 |
AC_PROG_CPP
|
|
|
13 |
AC_PROG_INSTALL
|
|
|
14 |
AC_PROG_MAKE_SET
|
|
|
15 |
|
|
|
16 |
# Checks for libraries.
|
|
|
17 |
# FIXME: Replace `main' with a function in `-ldl':
|
|
|
18 |
AC_CHECK_LIB([dl], [main])
|
|
|
19 |
# FIXME: Replace `main' with a function in `-lthrift':
|
|
|
20 |
AC_CHECK_LIB([thrift], [main])
|
|
|
21 |
|
|
|
22 |
# Checks for header files.
|
|
|
23 |
AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h])
|
|
|
24 |
|
|
|
25 |
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
26 |
AC_HEADER_STDBOOL
|
|
|
27 |
AC_C_INLINE
|
|
|
28 |
AC_TYPE_INT16_T
|
|
|
29 |
AC_TYPE_INT32_T
|
|
|
30 |
AC_TYPE_INT64_T
|
|
|
31 |
AC_TYPE_INT8_T
|
|
|
32 |
AC_TYPE_MODE_T
|
|
|
33 |
AC_TYPE_OFF_T
|
|
|
34 |
AC_TYPE_SIZE_T
|
|
|
35 |
AC_TYPE_SSIZE_T
|
|
|
36 |
AC_TYPE_UINT16_T
|
|
|
37 |
AC_TYPE_UINT32_T
|
|
|
38 |
AC_TYPE_UINT64_T
|
|
|
39 |
AC_TYPE_UINT8_T
|
|
|
40 |
AC_CHECK_TYPES([ptrdiff_t])
|
|
|
41 |
|
|
|
42 |
# Checks for library functions.
|
|
|
43 |
AC_FUNC_MALLOC
|
|
|
44 |
AC_FUNC_REALLOC
|
|
|
45 |
AC_FUNC_STRERROR_R
|
|
|
46 |
AC_CHECK_FUNCS([bzero clock_gettime ftruncate gettimeofday memmove memset realpath socket sqrt strchr strdup strerror strstr strtol])
|
|
|
47 |
|
|
|
48 |
AC_CONFIG_FILES([Makefile
|
|
|
49 |
compiler/cpp/Makefile
|
|
|
50 |
lib/Makefile
|
|
|
51 |
lib/cpp/Makefile
|
|
|
52 |
lib/csharp/Makefile
|
|
|
53 |
lib/erl/Makefile
|
|
|
54 |
lib/erl/src/Makefile
|
|
|
55 |
lib/java/Makefile
|
|
|
56 |
lib/ocaml/Makefile
|
|
|
57 |
lib/ocaml/src/Makefile
|
|
|
58 |
lib/perl/Makefile
|
|
|
59 |
lib/perl/test/Makefile
|
|
|
60 |
lib/py/Makefile
|
|
|
61 |
lib/rb/Makefile
|
|
|
62 |
test/Makefile
|
|
|
63 |
test/cpp/realloc/Makefile
|
|
|
64 |
test/erl/Makefile
|
|
|
65 |
test/ocaml/Makefile
|
|
|
66 |
test/ocaml/client/Makefile
|
|
|
67 |
test/ocaml/server/Makefile
|
|
|
68 |
test/perl/Makefile
|
|
|
69 |
test/php/Makefile
|
|
|
70 |
test/py/Makefile
|
|
|
71 |
test/rb/Makefile
|
|
|
72 |
test/threads/Makefile
|
|
|
73 |
tutorial/cpp/Makefile])
|
|
|
74 |
AC_CONFIG_SUBDIRS([contrib/fb303])
|
|
|
75 |
AC_OUTPUT
|