-
Notifications
You must be signed in to change notification settings - Fork 11
/
configure.ac
42 lines (29 loc) · 940 Bytes
/
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
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([egihash],[1.23.0])
AC_PROG_CC
AC_PROG_CXX
AC_CANONICAL_TARGET
AC_CONFIG_MACRO_DIR([m4])
dnl Initialize automake
AM_INIT_AUTOMAKE([foreign])
dnl this allows us specify individual liking flags for each target
AM_PROG_CC_C_O
dnl Initialize Libtool
LT_INIT
#AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory], [nodefault])
dnl Check for boost libs
AX_BOOST_BASE
AX_BOOST_SYSTEM
AX_BOOST_FILESYSTEM
AX_BOOST_UNIT_TEST_FRAMEWORK
BOOST_LIBS="$BOOST_LDFLAGS $BOOST_SYSTEM_LIB $BOOST_FILESYSTEM_LIB"
LIBS="$BOOST_LIBS $LIBS"
CPPFLAGS="$BOOST_CPPFLAGS"
CXXFLAGS="$BOOST_CXXFLAGS -O3 -std=c++11 -Wall -Wextra -Werror -Wno-unused-function"
CCFLAGS="$BOOST_CCFLAGS -O3 -Wall -Wextra -Werror -Wno-unused-function"
AC_CONFIG_FILES(Makefile
test/Makefile
libegihash/Makefile
include/Makefile)
AC_OUTPUT