argpar.h: `BABELTRACE_ARGPAR_H` -> `ARGPAR_ARGPAR_H`
[argpar.git] / configure.ac
... / ...
CommitLineData
1AC_INIT([argpar], [1])
2AM_INIT_AUTOMAKE([foreign])
3LT_INIT
4
5AC_CONFIG_MACRO_DIRS([m4])
6
7AC_USE_SYSTEM_EXTENSIONS
8
9# Depend on glib just for the tests.
10PKG_CHECK_MODULES([GLIB], [glib-2.0])
11
12# When given, add -Werror to WARN_CFLAGS and WARN_CXXFLAGS.
13# Disabled by default
14AE_FEATURE_DEFAULT_DISABLE
15AE_FEATURE([Werror],[Treat compiler warnings as errors.])
16
17# Detect warning flags supported by the C compiler and append them to
18# WARN_CFLAGS.
19#
20m4_define([WARN_FLAGS_LIST], [ dnl
21 -Wall dnl
22 -Wextra dnl
23 -Wmissing-prototypes dnl
24 -Wmissing-declarations dnl
25 -Wnull-dereference dnl
26 -Wundef dnl
27 -Wredundant-decls dnl
28 -Wshadow dnl
29 -Wjump-misses-init dnl
30 -Wsuggest-attribute=format dnl
31 -Wtautological-constant-out-of-range-compare dnl
32 -Wnested-externs dnl
33 -Wwrite-strings dnl
34 -Wformat=2 dnl
35 -Wstrict-aliasing dnl
36 -Wmissing-noreturn dnl
37 -Winit-self dnl
38 -Wduplicated-cond dnl
39 -Wduplicated-branches dnl
40 -Wlogical-op dnl
41])
42
43AX_APPEND_COMPILE_FLAGS([WARN_FLAGS_LIST], [WARN_CFLAGS], [-Werror])
44AE_IF_FEATURE_ENABLED([Werror], [WARN_CFLAGS="${WARN_CFLAGS} -Werror"])
45AM_CFLAGS="${AM_CFLAGS} ${WARN_CFLAGS}"
46
47AC_SUBST(AM_CFLAGS)
48
49AC_CONFIG_FILES([
50 Makefile
51 argpar/Makefile
52 tests/Makefile
53 tests/tap/Makefile
54])
55
56AC_OUTPUT
This page took 0.021614 seconds and 4 git commands to generate.