-
Notifications
You must be signed in to change notification settings - Fork 51
/
configure.ac
39 lines (34 loc) · 1.27 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
# At this point, the Xcode project assumes the version string will be three
# integers separated by periods and surrounded by square brackets (e.g.
# "[1.0.1]"). It also asumes that there won't be any closing parenthesis
# between "AC_INIT(" and the closing ")" including comments and strings.
AC_INIT([C++ Client for Apache Kafka v0.8+],
[0.5.0],
[libkafka])
# Provide various options to initialize the Autoconf and configure processes.
AC_PREREQ([2.59])
AC_CONFIG_SRCDIR([lib/src])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_HEADERS([config/config.h])
AC_CONFIG_FILES([Makefile])
# Initialize Automake with various options. We require at least v1.9, prevent
# pedantic complaints about package files, and enable various distribution
# targets.
AM_INIT_AUTOMAKE([1.9 dist-bzip2 dist-zip foreign subdir-objects])
# Check for programs used in building libkafka
AC_PROG_CC([gcc-mp-4.8 gcc])
AC_PROG_CXX([g++-mp-4.8 g++])
AC_CHECK_PROGS(GCOV, [gcov-mp-4.8 gcov], gcov)
AC_LANG([C++])
AC_PROG_LIBTOOL
GTEST_LIB_CHECK(,AC_MSG_WARN(foo),AC_MSG_WARN(bar))
###########################
# gcov coverage reporting
###########################
AC_TDD_GCOV
AC_SUBST(COVERAGE_CFLAGS)
AC_SUBST(COVERAGE_CXXFLAGS)
AC_SUBST(COVERAGE_LDFLAGS)
AC_OUTPUT