forked from laurolins/nanocube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
69 lines (51 loc) · 1.25 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
62
63
64
65
66
67
68
69
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
AC_INIT([nanocube], [0.0.1], [[email protected]])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([aux-scripts])
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC
AC_PROG_CPP
AC_PROG_LIBTOOL
# Checks for programs.
host_os=`uname`
if test "$host_os" = "Darwin"; then
AS_VAR_SET([cpp_compiler],[clang++])
CXX="clang++ "
CXXFLAGS+=" -stdlib=libc++ -mmacosx-version-min=10.7"
else
AS_VAR_SET([cpp_compiler],[])
fi
# echo "----------------> $CC"
AC_PROG_CXX([AS_VAR_GET([cpp_compiler])])
LT_LIB_DLLOAD
LT_INIT([dlopen])
AC_LANG([C++])
# turn on c++11
AX_CXX_COMPILE_STDCXX_11(noext)
# check zlib
AX_CHECK_ZLIB
# Check OpenSSL
AX_CHECK_OPENSSL
#check boost
BOOST_REQUIRE([1.48])
BOOST_THREADS
BOOST_SYSTEM
BOOST_ASIO
AC_CHECK_CURL(7.35)
TS_CHECK_TCMALLOC
# Checks for header files.
AC_CHECK_HEADERS([stdint.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
# Checks for library functions.
AC_CONFIG_FILES([Makefile
src/Makefile
scripts/Makefile])
AC_OUTPUT