-
Notifications
You must be signed in to change notification settings - Fork 20
/
configure.ac
71 lines (61 loc) · 1.5 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
65
66
67
68
69
70
71
m4_define([libcanardbc_version_major], [1])
m4_define([libcanardbc_version_minor], [0])
m4_define([libcanardbc_version_micro], [0])
m4_define([libcanardbc_version],
[libcanardbc_version_major.libcanardbc_version_minor.libcanardbc_version_micro])
AC_PREREQ([2.63])
AC_INIT([libcanardbc], [libcanardbc_version])
AM_INIT_AUTOMAKE([
check-news
foreign
1.11
-Wall -Wno-portability
silent-rules
tar-pax
subdir-objects
])
AC_CONFIG_MACRO_DIR([m4])
# Check for programs.
AC_PROG_CC
AC_PROG_LEX
AC_PROG_YACC
LT_INIT([disable-static win32-dll pic-only])
AC_CHECK_HEADERS([ \
stdlib.h \
string.h \
])
AC_CHECK_FUNCS([ \
strdup \
strtol \
strtoul \
])
AC_FUNC_MALLOC
AC_FUNC_STRTOD
AC_SEARCH_LIBS([lrint], [m], [], [
AC_MSG_ERROR([Unable to find lrint() function])
])
PKG_CHECK_MODULES(TESTS, [glib-2.0 >= 2.42 json-glib-1.0 >= 1.0.2])
CFLAGS="$CFLAGS -Wall \
-Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
-Wpointer-arith -Wsign-compare -Wchar-subscripts \
-Wstrict-prototypes -Wshadow \
-Wformat-security -Wtype-limits"
AC_SUBST([CFLAGS])
AC_CONFIG_FILES([
Makefile
src/Makefile
tools/Makefile
])
AC_OUTPUT
AC_MSG_RESULT([
$PACKAGE $VERSION
=================
prefix: ${prefix}
sysconfdir: ${sysconfdir}
libdir: ${libdir}
includedir: ${includedir}
compiler: ${CC}
cflags: ${CFLAGS}
ldflags: ${LDFLAGS}
])