forked from drachtio/drachtio-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
53 lines (39 loc) · 1.15 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
AC_INIT([drachtio],[1.2],[[email protected]])
AM_INIT_AUTOMAKE([subdir-objects -Wno-portability])
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_LANG(C++)
AX_CXX_COMPILE_STDCXX_11()
AX_CXX_COMPILE_STDCXX_17(noext, optional)
AM_CONDITIONAL([DEP_BOOST], [test -d "${srcdir}/deps/boost/libs"])
AM_CONDITIONAL(OSX, false)
AM_CONDITIONAL(LINUX, false)
AC_CANONICAL_HOST
case $host_os in
*darwin* | *rhapsody* | *macosx*)
AM_CONDITIONAL(OSX, true)
;;
*)
AM_CONDITIONAL(LINUX, true)
;;
esac
# optional linking with tcmalloc
AC_ARG_ENABLE([tcmalloc],
[ --enable-tcmalloc Link with tcmalloc (requires libgoogle-perftools-dev)],
[case "${enableval}" in
yes) tcmalloc=true ;;
no) tcmalloc=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-tcmalloc]) ;;
esac],[tcmalloc=false])
AM_CONDITIONAL([TCMALLOC], [test x$tcmalloc = xtrue])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
LIBCURL_CHECK_CONFIG
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile])
AC_OUTPUT