6 [http://git.profusion.mobi/cgit.cgi/lucas/libkmod/])
8 AC_CONFIG_SRCDIR([libkmod/libkmod.c])
9 AC_CONFIG_AUX_DIR([build-aux])
10 AM_INIT_AUTOMAKE([check-news foreign 1.11 silent-rules tar-pax dist-bzip2 subdir-objects])
12 AC_USE_SYSTEM_EXTENSIONS
14 AC_CONFIG_MACRO_DIR([m4])
15 AM_SILENT_RULES([yes])
16 LT_INIT([disable-static pic-only])
17 AC_PREFIX_DEFAULT([/usr])
23 AC_PROG_GCC_TRADITIONAL
25 AC_ARG_ENABLE([logging],
26 AS_HELP_STRING([--disable-logging], [disable system logging @<:@default=enabled@:>@]),
27 [], enable_logging=yes)
28 AS_IF([test "x$enable_logging" = "xyes"], [
29 AC_DEFINE(ENABLE_LOGGING, [1], [System logging.])
32 AC_ARG_ENABLE([debug],
33 AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]),
34 [], [enable_debug=no])
35 AS_IF([test "x$enable_debug" = "xyes"], [
36 AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
39 CC_CHECK_CFLAGS_APPEND([ \
51 -Wmissing-include-dirs \
53 -Wold-style-definition \
56 -Wdeclaration-after-statement \
58 -Wmissing-prototypes \
61 -Wmissing-declarations \
69 -Wno-overlength-strings \
70 -Wno-unused-parameter \
71 -Wno-missing-field-initializers \
73 -Wp,-D_FORTIFY_SOURCE=2 \
76 -fdiagnostics-show-option \
77 -fno-strict-aliasing \
85 AC_CONFIG_HEADERS(config.h)
97 sysconfdir: ${sysconfdir}
99 includedir: ${includedir}
105 logging: ${enable_logging}
106 debug: ${enable_debug}