~registry/kmod/master

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Lucas De Marchi
  • Date: 2011-12-12 12:30:01 UTC
  • mfrom: (161.1.30)
  • Revision ID: git-v1:2fee2f13ce5f6b17dd672389de422217c56105e2
Merge branch 'use-mmap'

Conflicts:
        libkmod/libkmod.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
AC_CONFIG_SRCDIR([libkmod/libkmod.c])
9
9
AC_CONFIG_AUX_DIR([build-aux])
10
 
AM_INIT_AUTOMAKE([check-news foreign 1.11 -Wall -Wno-portability silent-rules tar-pax dist-bzip2 subdir-objects])
 
10
AM_INIT_AUTOMAKE([check-news foreign 1.11 silent-rules tar-pax dist-bzip2 subdir-objects])
11
11
AC_PROG_CC_STDC
12
12
AC_USE_SYSTEM_EXTENSIONS
13
13
AC_SYS_LARGEFILE
22
22
AM_PROG_CC_C_O
23
23
AC_PROG_GCC_TRADITIONAL
24
24
 
 
25
AC_ARG_ENABLE([tools],
 
26
        AS_HELP_STRING([--disable-tools], [disable building tools that provide same functionality as module-init-tools @<:@default=enabled@:>@]),
 
27
        [], enable_tools=yes)
 
28
AM_CONDITIONAL([BUILD_TOOLS], [test "x$enable_tools" = "xyes"])
 
29
 
25
30
AC_ARG_ENABLE([logging],
26
31
        AS_HELP_STRING([--disable-logging], [disable system logging @<:@default=enabled@:>@]),
27
32
        [], enable_logging=yes)
36
41
        AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
37
42
])
38
43
 
 
44
CC_CHECK_CFLAGS_APPEND([ \
 
45
        -pipe \
 
46
        -Wall \
 
47
        -W \
 
48
        -Wextra \
 
49
        -Wno-inline \
 
50
        -Wvla \
 
51
        -Wundef \
 
52
        -Wformat=2 \
 
53
        -Wlogical-op \
 
54
        -Wsign-compare \
 
55
        -Wformat-security \
 
56
        -Wmissing-include-dirs \
 
57
        -Wformat-nonliteral \
 
58
        -Wold-style-definition \
 
59
        -Wpointer-arith \
 
60
        -Winit-self \
 
61
        -Wdeclaration-after-statement \
 
62
        -Wfloat-equal \
 
63
        -Wmissing-prototypes \
 
64
        -Wstrict-prototypes \
 
65
        -Wredundant-decls \
 
66
        -Wmissing-declarations \
 
67
        -Wmissing-noreturn \
 
68
        -Wshadow \
 
69
        -Wendif-labels \
 
70
        -Wcast-align \
 
71
        -Wstrict-aliasing=2 \
 
72
        -Wwrite-strings \
 
73
        -Wno-long-long \
 
74
        -Wno-overlength-strings \
 
75
        -Wno-unused-parameter \
 
76
        -Wno-missing-field-initializers \
 
77
        -Wno-unused-result \
 
78
        -Wp,-D_FORTIFY_SOURCE=2 \
 
79
        -ffast-math \
 
80
        -fno-common \
 
81
        -fdiagnostics-show-option \
 
82
        -fno-strict-aliasing \
 
83
        -fvisibility=hidden \
 
84
        -ffunction-sections \
 
85
        -fdata-sections \
 
86
        -Wl,--as-needed \
 
87
        -Wl,--gc-sections])
 
88
 
 
89
 
39
90
AC_CONFIG_HEADERS(config.h)
40
91
AC_CONFIG_FILES([
41
92
        Makefile
51
102
        sysconfdir:             ${sysconfdir}
52
103
        libdir:                 ${libdir}
53
104
        includedir:             ${includedir}
 
105
        bindir:                 ${bindir}
54
106
 
55
107
        compiler:               ${CC}
56
108
        cflags:                 ${CFLAGS}
57
109
        ldflags:                ${LDFLAGS}
58
110
 
 
111
        tools:                  ${enable_tools}
59
112
        logging:                ${enable_logging}
60
113
        debug:                  ${enable_debug}
61
114
])