-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfigure.ac
37 lines (28 loc) · 950 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59])
AC_INIT([allocator], [0.1.0], [https://github.com/vincetse/allocator])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/buffer_allocator_test.cpp])
CXXFLAGS+=" -Wall -Werror -std=c++0x -g -O0 -fprofile-arcs -ftest-coverage"
CPPFLAGS+=" -I../include"
CPPFLAGS+=" -I/usr/local/include"
LDFLAGS+=" -L/usr/local/lib"
# Checks for programs.
AC_PROG_CXX
# Checks for libraries.
AC_CHECK_LIB([boost_unit_test_framework], [main])
# Checks for header files.
AC_LANG_PUSH([C++])
AC_FUNC_ALLOCA
AC_CHECK_HEADERS([boost/test/unit_test.hpp], [], [AC_MSG_ERROR(You need the Boost.Test library.)])
AC_LANG_POP([C++])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_CHECK_TYPES([ptrdiff_t])
# Checks for library functions.
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT