-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfigure.ac
64 lines (47 loc) · 1.26 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
62
63
64
m4_include([VERSION]) #Force reconf on VERSION change
AC_INIT(LIBCDADA, m4_esyscmd_s(cat VERSION), [email protected], libcdada, http://github.com/msune/libcdada)
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
AC_PROG_INSTALL
AC_PROG_CC
AC_PROG_CXX
AM_PROG_CC_C_O
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
PKG_PROG_PKG_CONFIG
AUTOCONF_ENV="SHELL=/bin/sh"
LT_INIT
AC_ENABLE_STATIC
# Some useful default flags
CFLAGS="-std=gnu89 -Werror -Wall $CFLAGS"
CXXFLAGS="-Werror -Wall $CXXFLAGS"
AC_DEFINE([__STDC_FORMAT_MACROS], [], [Description])
# Check for Python3
AM_PATH_PYTHON([3],, [:])
AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
# Debug
m4_include([config_m4/debug.m4])
# Check for profiling mode
m4_include([config_m4/profiling.m4])
# Checking version
m4_include([config_m4/versioning.m4])
# Checking valgrind
m4_include([config_m4/valgrind.m4])
# Checking RDTSC
m4_include([config_m4/rdtsc.m4])
# Tests
m4_include([config_m4/tests.m4])
# Examples
m4_include([config_m4/examples.m4])
# Output files
AC_CONFIG_FILES([
Makefile
include/Makefile
examples/Makefile
src/Makefile
test/Makefile
tools/Makefile
include/cdada/version.h
])
AC_OUTPUT