]> git.ipfire.org Git - people/ms/libloc.git/blob - configure.ac
Introduce object to store an AS
[people/ms/libloc.git] / configure.ac
1 AC_PREREQ(2.60)
2 AC_INIT([libloc],
3 [0],
4 [michael.tremer@ipfire.org],
5 [libloc],
6 [https://www.ipfire.org/])
7
8 AC_CONFIG_SRCDIR([src/libloc.c])
9 AC_CONFIG_AUX_DIR([build-aux])
10 AM_INIT_AUTOMAKE([
11 foreign
12 1.11
13 -Wall
14 -Wno-portability
15 silent-rules
16 tar-pax
17 no-dist-gzip
18 dist-xz
19 subdir-objects
20 ])
21 AC_PROG_CC_STDC
22 AC_USE_SYSTEM_EXTENSIONS
23 AC_SYS_LARGEFILE
24 AC_CONFIG_MACRO_DIR([m4])
25 AM_SILENT_RULES([yes])
26 LT_INIT([
27 disable-static
28 pic-only
29 ])
30 AC_PREFIX_DEFAULT([/usr])
31
32 AC_PROG_SED
33 AC_PROG_MKDIR_P
34
35 AC_ARG_ENABLE([debug],
36 AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]),
37 [], [enable_debug=no])
38 AS_IF([test "x$enable_debug" = "xyes"], [
39 AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
40 ])
41
42 AC_CHECK_FUNCS([ \
43 __secure_getenv \
44 secure_getenv \
45 qsort \
46 ])
47
48 my_CFLAGS="\
49 -Wall \
50 -Wchar-subscripts \
51 -Wformat-security \
52 -Wmissing-declarations \
53 -Wmissing-prototypes \
54 -Wnested-externs \
55 -Wpointer-arith \
56 -Wshadow \
57 -Wsign-compare \
58 -Wstrict-prototypes \
59 -Wtype-limits \
60 "
61 AC_SUBST([my_CFLAGS])
62
63 AC_CONFIG_HEADERS(config.h)
64 AC_CONFIG_FILES([
65 Makefile
66 ])
67
68 AC_OUTPUT
69 AC_MSG_RESULT([
70 $PACKAGE $VERSION
71 =====
72
73 prefix: ${prefix}
74 sysconfdir: ${sysconfdir}
75 libdir: ${libdir}
76 includedir: ${includedir}
77
78 compiler: ${CC}
79 cflags: ${CFLAGS}
80 ldflags: ${LDFLAGS}
81
82 logging: ${enable_logging}
83 debug: ${enable_debug}
84 ])