-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.ac
61 lines (51 loc) · 1.45 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([cldcb], [0.1A], [[email protected]])
AC_CONFIG_AUX_DIR([auxdir])
AM_INIT_AUTOMAKE([subdir-objects tar-ustar])
AC_CONFIG_SRCDIR([client/plugin.cpp])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIRS([m4])
AC_REQUIRE_AUX_FILE([test-driver])
LT_INIT
# Checks for programs.
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX_11
AC_LANG([C++])
AC_PROG_AWK
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AX_VALGRIND_CHECK()
AM_CONDITIONAL([USE_VALGRIND], [test x"$enable_valgrind" = xyes])
# Checks for libraries.
AX_PTHREAD([:],[
AC_MSG_ERROR([Need pthread,])
])
AX_LIB_EV
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h netdb.h stddef.h stdlib.h string.h sys/socket.h unistd.h], [:], [
AC_MSG_ERROR([Missing required header file ${ac_header}.])
])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
# Checks for library functions.
AC_FUNC_FORK
AC_CHECK_FUNCS([dup2 ftruncate gethostname memset mkdir socket strerror], [:], [
AC_MSG_ERROR([Missing required system function ${ac_func}.])
])
# Outputs.
AC_SUBST([PTHREAD_CC])
AC_SUBST([PTHREAD_CFLAGS])
AC_SUBST([PTHREAD_LIBS])
AC_CONFIG_FILES([Makefile
client/Makefile
common/Makefile
integration/Makefile
server/Makefile
])
AC_CONFIG_SUBDIRS([external/libsodium
external/secp256k1
])
AC_OUTPUT