-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
61 lines (49 loc) · 1.56 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
AC_INIT([Eclipse], [00.12.23])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
AC_PROG_MAKE_SET
if test -z ${CXXFLAGS}; then
CXXFLAGS='-g -O2 -march=native'
fi
AC_PROG_CXX
# Checks for boost library {{{
have_boost=yes
AC_LANG_PUSH([C++])
AC_CHECK_HEADERS([boost/foreach.hpp \
boost/property_tree/json_parser.hpp \
boost/property_tree/exceptions.hpp], [], [have_boost=no])
if test "x${have_boost}" = xno; then
AC_MSG_NOTICE([Is it Centos? assuming path /usr/include/boost141/])
AC_SUBST(include, ["-I /usr/include/boost141/"])
AC_MSG_WARN([If it doesnt compile, set CPLUS_INCLUDE_PATH env to boost include path])
fi
AC_LANG_POP([C++])
# }}}
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h stddef.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
AC_HEADER_STDC
AC_OUTPUT
echo \
"-------------------------------------------------
${PACKAGE_NAME} Version ${PACKAGE_VERSION}
Prefix: '${prefix}'.
Compiler: '${CXX} ${CXXFLAGS}'
Includes: '${include}'
Now type 'make FS=@<:@<type>@:>@ @<:@<target>@:>@'
where type is:
dht - description
nfs - description
hdfs - description
where the optional <target> is:
all|'nothing' - build all binaries
install - install everything
--------------------------------------------------"
# vim: foldmethod=marker