]> git.proxmox.com Git - mirror_kronosnet.git/blame - configure.ac
[tests] fix build and cast aligment on Debian/sparc64 unstable (gcc7)
[mirror_kronosnet.git] / configure.ac
CommitLineData
ab4c538f 1#
20f9cc1e 2# Copyright (C) 2010-2017 Red Hat, Inc. All rights reserved.
ab4c538f
FDN
3#
4# Authors: Fabio M. Di Nitto <fabbione@kronosnet.org>
5# Federico Simoncelli <fsimon@kronosnet.org>
6#
7# This software licensed under GPL-2.0+, LGPL-2.0+
8#
9
99afbd6e
FDN
10# -*- Autoconf -*-
11# Process this file with autoconf to produce a configure script.
ab4c538f 12#
99afbd6e
FDN
13
14AC_PREREQ([2.63])
07072a06
FDN
15AC_INIT([kronosnet],
16 m4_esyscmd([build-aux/git-version-gen .tarball-version]),
17 [devel@lists.kronosnet.org])
4359cb72 18AC_USE_SYSTEM_EXTENSIONS
762c0098 19AM_INIT_AUTOMAKE([1.11.1 dist-bzip2 dist-xz color-tests -Wno-portability subdir-objects])
99afbd6e
FDN
20LT_PREREQ([2.2.6])
21LT_INIT
22
23AC_CONFIG_MACRO_DIR([m4])
4aa63ad7 24AC_CONFIG_SRCDIR([kronosnetd/main.c])
99afbd6e
FDN
25AC_CONFIG_HEADERS([config.h])
26
27AC_CANONICAL_HOST
28AC_PROG_LIBTOOL
29
30AC_LANG([C])
31
905cb809
FDN
32systemddir=${prefix}/lib/systemd/system
33
99afbd6e
FDN
34if test "$prefix" = "NONE"; then
35 prefix="/usr"
36 if test "$localstatedir" = "\${prefix}/var"; then
37 localstatedir="/var"
38 fi
39 if test "$sysconfdir" = "\${prefix}/etc"; then
40 sysconfdir="/etc"
41 fi
905cb809
FDN
42 if test "$systemddir" = "NONE/lib/systemd/system"; then
43 systemddir=/lib/systemd/system
44 fi
e8b52625
JF
45 if test "$libdir" = "\${exec_prefix}/lib"; then
46 if test -e /usr/lib64; then
47 libdir="/usr/lib64"
48 else
49 libdir="/usr/lib"
50 fi
51 fi
99afbd6e
FDN
52fi
53
54# Checks for programs.
55if ! ${MAKE-make} --version /cannot/make/this >/dev/null 2>&1; then
ae9ebb47 56 AC_MSG_ERROR(["you don't seem to have GNU make; it is required"])
99afbd6e 57fi
ae9ebb47 58
5842a2f9 59AC_PROG_AWK
e3683ec7
FDN
60AC_PROG_GREP
61AC_PROG_SED
5842a2f9 62AC_PROG_CPP
99afbd6e 63AC_PROG_CC
dd8bbbde
FDN
64AC_PROG_CC_C99
65if test "x$ac_cv_prog_cc_c99" = "xno"; then
66 AC_MSG_ERROR(["C99 support is required"])
67fi
99afbd6e
FDN
68AC_PROG_LN_S
69AC_PROG_INSTALL
70AC_PROG_MAKE_SET
71AC_PROG_CXX
72AC_PROG_RANLIB
b8bf8c7f 73AC_CHECK_PROGS([PUBLICAN], [publican], [:])
99afbd6e
FDN
74AC_CHECK_PROGS([PKGCONFIG], [pkg-config])
75
43bd160d
FDN
76AC_ARG_ENABLE([libknet-sctp],
77 [ --disable-libknet-sctp : disable libknet SCTP support ],,
78 [ enable_libknet_sctp="yes" ])
20f9cc1e 79AM_CONDITIONAL([BUILDSCTP], [test x$enable_libknet_sctp = xyes])
43bd160d 80
c59268f2
FDN
81AC_ARG_ENABLE([crypto-all],
82 [ --disable-crypto-all : disable libknet all crypto modules support ],,
83 [ enable_crypto_all="yes" ])
84
85AC_ARG_ENABLE([crypto-nss],
86 [ --disable-crypto-nss : disable libknet nss support ],,
87 [ enable_crypto_nss="$enable_crypto_all" ])
20f9cc1e 88AM_CONDITIONAL([BUILDCRYPTONSS], [test x$enable_crypto_nss = xyes])
c59268f2 89
62c0a9f9
FDN
90AC_ARG_ENABLE([crypto-openssl],
91 [ --disable-crypto-openssl : disable libknet openssl support ],,
92 [ enable_crypto_openssl="$enable_crypto_all" ])
93AM_CONDITIONAL([BUILDCRYPTOOPENSSL], [test x$enable_crypto_openssl = xyes])
94
7322344c 95AC_ARG_ENABLE([compress-all],
c59268f2 96 [ --disable-compress-all : disable libknet all compress modules support ],,
7322344c
FDN
97 [ enable_compress_all="yes" ])
98
226e5109
FDN
99AC_ARG_ENABLE([compress-zlib],
100 [ --disable-compress-zlib : disable libknet zlib support ],,
7322344c 101 [ enable_compress_zlib="$enable_compress_all" ])
20f9cc1e 102AM_CONDITIONAL([BUILDCOMPZLIB], [test x$enable_compress_zlib = xyes])
226e5109
FDN
103
104AC_ARG_ENABLE([compress-lz4],
105 [ --disable-compress-lz4 : disable libknet lz4 support ],,
7322344c 106 [ enable_compress_lz4="$enable_compress_all" ])
20f9cc1e 107AM_CONDITIONAL([BUILDCOMPLZ4], [test x$enable_compress_lz4 = xyes])
226e5109
FDN
108
109AC_ARG_ENABLE([compress-lzo2],
110 [ --disable-compress-lzo2 : disable libknet lzo2 support ],,
7322344c 111 [ enable_compress_lzo2="$enable_compress_all" ])
20f9cc1e 112AM_CONDITIONAL([BUILDCOMPLZO2], [test x$enable_compress_lzo2 = xyes])
226e5109
FDN
113
114AC_ARG_ENABLE([compress-lzma],
115 [ --disable-compress-lzma : disable libknet lzma support ],,
7322344c 116 [ enable_compress_lzma="$enable_compress_all" ])
20f9cc1e 117AM_CONDITIONAL([BUILDCOMPLZMA], [test x$enable_compress_lzma = xyes])
226e5109
FDN
118
119AC_ARG_ENABLE([compress-bzip2],
120 [ --disable-compress-bzip2 : disable libknet bzip2 support ],,
7322344c 121 [ enable_compress_bzip2="$enable_compress_all" ])
20f9cc1e 122AM_CONDITIONAL([BUILDCOMPBZIP2], [test x$enable_compress_bzip2 = xyes])
226e5109 123
1c75eb10 124AC_ARG_ENABLE([poc],
11223d55 125 [ --enable-poc : enable building poc code ],,
89c58e91 126 [ enable_poc="no" ])
5449d795 127AM_CONDITIONAL([BUILD_POC], [test x$enable_poc = xyes])
1c75eb10 128
ace7cd0e 129AC_ARG_ENABLE([kronosnetd],
226e5109
FDN
130 [ --enable-kronosnetd : Kronosnetd support ],,
131 [ enable_kronosnetd="no" ])
5449d795 132AM_CONDITIONAL([BUILD_KRONOSNETD], [test x$enable_kronosnetd = xyes])
ace7cd0e
CC
133
134AC_ARG_ENABLE([libtap],
226e5109
FDN
135 [ --enable-libtap : libtap support ],,
136 [ enable_libtap="no" ])
58b997ce
CC
137
138if test "x$enable_kronosnetd" = xyes; then
226e5109 139 enable_libtap=yes
58b997ce 140fi
5449d795 141AM_CONDITIONAL([BUILD_LIBTAP], [test x$enable_libtap = xyes])
ace7cd0e 142
99afbd6e
FDN
143## local helper functions
144# this function checks if CC support options passed as
145# args. Global CFLAGS are ignored during this test.
146cc_supports_flag() {
ae9ebb47
FDN
147 saveCPPFLAGS="$CPPFLAGS"
148 CPPFLAGS="$@"
30f44d00
FDN
149 if echo $CC | grep -q clang; then
150 CPPFLAGS="-Werror $CPPFLAGS"
151 fi
99afbd6e 152 AC_MSG_CHECKING([whether $CC supports "$@"])
ae9ebb47 153 AC_PREPROC_IFELSE([AC_LANG_PROGRAM([])],
99afbd6e
FDN
154 [RC=0; AC_MSG_RESULT([yes])],
155 [RC=1; AC_MSG_RESULT([no])])
ae9ebb47 156 CPPFLAGS="$saveCPPFLAGS"
99afbd6e
FDN
157 return $RC
158}
159
160# helper macro to check libs without adding them to LIBS
161check_lib_no_libs() {
162 lib_no_libs_arg1=$1
163 shift
164 lib_no_libs_arg2=$1
165 shift
166 lib_no_libs_args=$@
167 AC_CHECK_LIB([$lib_no_libs_arg1],
168 [$lib_no_libs_arg2],,,
169 [$lib_no_libs_args])
170 LIBS=$ac_check_lib_save_LIBS
171}
172
c3776828
FDN
173# Checks for C features
174AC_C_INLINE
175
99afbd6e 176# Checks for libraries.
516a47e6 177AC_CHECK_LIB([pthread], [pthread_create], [AC_SUBST([pthread_LIBS], [-lpthread])], [AC_MSG_ERROR([kronosnet requires pthread library])])
4d137be1 178AC_CHECK_LIB([m], [ceil], [AC_SUBST([m_LIBS], [-lm])], [AC_MSG_ERROR([kronosnet requires m library])])
516a47e6 179AC_CHECK_LIB([rt], [clock_gettime], [AC_SUBST([rt_LIBS], [-lrt])], [AC_MSG_ERROR([kronosnet requires rt library])])
99afbd6e 180
e6459532
FDN
181AC_SEARCH_LIBS([dlopen], [dl dld], [dllibs=$ac_res], [AC_MSG_ERROR([kronosnet requires dl library])])
182
183if test "x$dllibs" != "xnone required"; then
184 AC_SUBST([dl_LIBS], [$dllibs])
185fi
b0aab085 186
c59268f2
FDN
187# workaround pkg-config bootstrapping
188PKG_CHECK_MODULES([foobarbaz],[foobarbaz], [AC_MSG_NOTICE([bootstrapping pkg-config])], [AC_MSG_NOTICE([bootstrapping pkg-config])])
189
2052faab 190# crypto libraries checks
c59268f2
FDN
191if test "x$enable_crypto_nss" = xyes; then
192 PKG_CHECK_MODULES([nss],[nss])
193 AC_DEFINE_UNQUOTED([BUILDCRYPTONSS], [1], [Enable nss crypto])
194fi
56407f26 195
62c0a9f9 196if test "x$enable_crypto_openssl" = xyes; then
0678b5c2
FDN
197 PKG_CHECK_MODULES([openssl],[openssl < 1.1],
198 [AC_DEFINE_UNQUOTED([BUILDCRYPTOOPENSSL10], [1], [openssl 1.0 crypto])],
199 [PKG_CHECK_MODULES([openssl],[openssl >= 1.1],
200 [AC_DEFINE_UNQUOTED([BUILDCRYPTOOPENSSL11], [1], [openssl 1.1 crypto])])])
62c0a9f9
FDN
201 AC_DEFINE_UNQUOTED([BUILDCRYPTOOPENSSL], [1], [Enable openssl crypto])
202fi
203
2052faab 204# compress libraries checks
7322344c
FDN
205if test "x$enable_compress_zlib" = xyes; then
206 PKG_CHECK_MODULES([zlib], [zlib])
207 AC_DEFINE_UNQUOTED([BUILDCOMPZLIB], [1], [Enable zlib compression])
208fi
209if test "x$enable_compress_lz4" = xyes; then
210 PKG_CHECK_MODULES([liblz4], [liblz4])
211 AC_DEFINE_UNQUOTED([BUILDCOMPLZ4], [1], [Enable lz4 compress])
212fi
213if test "x$enable_compress_lzo2" = xyes; then
214 PKG_CHECK_MODULES([lzo2], [lzo2],,
215 [AC_CHECK_HEADERS([lzo/lzo1x.h],
216 [AC_CHECK_LIB([lzo2], [lzo1x_decompress_safe],
217 [AC_SUBST([lzo2_LIBS], [-llzo2])])],
218 [AC_MSG_ERROR(["missing required lzo/lzo1x.h header"])])])
219 AC_DEFINE_UNQUOTED([BUILDCOMPLZO2], [1], [Enable lzo2 compress])
220fi
221if test "x$enable_compress_lzma" = xyes; then
222 PKG_CHECK_MODULES([liblzma], [liblzma])
223 AC_DEFINE_UNQUOTED([BUILDCOMPLZMA], [1], [Enable lzma compress])
224fi
225if test "x$enable_compress_bzip2" = xyes; then
226 PKG_CHECK_MODULES([bzip2], [bzip2],,
227 [AC_CHECK_HEADERS([bzlib.h],
228 [AC_CHECK_LIB([bz2], [BZ2_bzBuffToBuffCompress],
229 [AC_SUBST([bzip2_LIBS], [-lbz2])])],
230 [AC_MSG_ERROR(["missing required bzlib.h"])])])
231 AC_DEFINE_UNQUOTED([BUILDCOMPBZIP2], [1], [Enable bzip2 compress])
226e5109 232fi
2052faab 233
99afbd6e 234# Checks for header files.
bba2a8d7
FDN
235AC_CHECK_HEADERS([fcntl.h])
236AC_CHECK_HEADERS([stdlib.h])
237AC_CHECK_HEADERS([string.h])
5842a2f9 238AC_CHECK_HEADERS([strings.h])
bba2a8d7
FDN
239AC_CHECK_HEADERS([sys/ioctl.h])
240AC_CHECK_HEADERS([syslog.h])
241AC_CHECK_HEADERS([unistd.h])
6d727d3c
FDN
242AC_CHECK_HEADERS([netinet/in.h])
243AC_CHECK_HEADERS([sys/socket.h])
c3776828 244AC_CHECK_HEADERS([arpa/inet.h])
521b047e 245AC_CHECK_HEADERS([netdb.h])
ba6bc349 246AC_CHECK_HEADERS([limits.h])
5842a2f9 247AC_CHECK_HEADERS([stdint.h])
3a50d466 248AC_CHECK_HEADERS([sys/epoll.h])
d75f2295
FDN
249
250if test "x$enable_libknet_sctp" = xyes; then
fd28a29f 251 AC_CHECK_HEADERS([netinet/sctp.h],, [AC_MSG_ERROR(["missing required SCTP headers"])])
d75f2295 252fi
99afbd6e
FDN
253
254# Checks for typedefs, structures, and compiler characteristics.
5842a2f9 255AC_C_INLINE
bba2a8d7 256AC_TYPE_SIZE_T
6d727d3c 257AC_TYPE_PID_T
c3776828 258AC_TYPE_SSIZE_T
31f37826 259AC_TYPE_UINT8_T
c3776828
FDN
260AC_TYPE_UINT16_T
261AC_TYPE_UINT32_T
efc95595
FDN
262AC_TYPE_UINT64_T
263AC_TYPE_INT32_T
99afbd6e
FDN
264
265# Checks for library functions.
6d727d3c
FDN
266AC_FUNC_ALLOCA
267AC_FUNC_FORK
268AC_FUNC_MALLOC
269AC_FUNC_REALLOC
bba2a8d7
FDN
270AC_CHECK_FUNCS([memset])
271AC_CHECK_FUNCS([strdup])
272AC_CHECK_FUNCS([strerror])
6d727d3c
FDN
273AC_CHECK_FUNCS([dup2])
274AC_CHECK_FUNCS([select])
275AC_CHECK_FUNCS([socket])
31f37826
FDN
276AC_CHECK_FUNCS([inet_ntoa])
277AC_CHECK_FUNCS([memmove])
278AC_CHECK_FUNCS([strchr])
bc5fdb83
FDN
279AC_CHECK_FUNCS([atexit])
280AC_CHECK_FUNCS([ftruncate])
7a00930f
FDN
281AC_CHECK_FUNCS([strrchr])
282AC_CHECK_FUNCS([strstr])
ba6bc349 283AC_CHECK_FUNCS([clock_gettime])
efc95595 284AC_CHECK_FUNCS([strcasecmp])
f762bb6e 285AC_CHECK_FUNCS([kevent])
3a50d466
FDN
286# if neither sys/epoll.h nor kevent are present, we should fail.
287
288if test "x$ac_cv_header_sys_epoll_h" = xno && test "x$ac_cv_func_kevent" = xno; then
289 AC_MSG_ERROR([Both epoll and kevent unavailable on this OS])
290fi
291
292if test "x$ac_cv_header_sys_epoll_h" = xyes && test "x$ac_cv_func_kevent" = xyes; then
293 AC_MSG_ERROR([Both epoll and kevent available on this OS, please contact the maintainers to fix the code])
294fi
71fd62d6 295
fa8c7f32 296# checks (for kronosnetd)
ace7cd0e 297if test "x$enable_kronosnetd" = xyes; then
226e5109
FDN
298 AC_CHECK_HEADERS([security/pam_appl.h],
299 [AC_CHECK_LIB([pam], [pam_start])],
300 [AC_MSG_ERROR([Unable to find LinuxPAM devel files])])
e311acaa 301
226e5109
FDN
302 AC_CHECK_HEADERS([security/pam_misc.h],
303 [AC_CHECK_LIB([pam_misc], [misc_conv])],
304 [AC_MSG_ERROR([Unable to find LinuxPAM MISC devel files])])
38cb1bb7 305
226e5109 306 PKG_CHECK_MODULES([libqb], [libqb])
fa8c7f32 307
226e5109
FDN
308 AC_CHECK_LIB([qb], [qb_log_thread_priority_set],
309 [have_qb_log_thread_priority_set="yes"],
310 [have_qb_log_thread_priority_set="no"])
311 if test "x${have_qb_log_thread_priority_set}" = xyes; then
312 AC_DEFINE_UNQUOTED([HAVE_QB_LOG_THREAD_PRIORITY_SET], [1], [have qb_log_thread_priority_set])
313 fi
ace7cd0e 314fi
38cb1bb7 315
99afbd6e
FDN
316# local options
317AC_ARG_ENABLE([debug],
318 [ --enable-debug enable debug build. ],
319 [ default="no" ])
320
c8ed20e0
FDN
321AC_ARG_ENABLE([publicandocs],
322 [ --enable-publicandocs enable docs build. ],
323 [ default="no" ])
324
2e687dd8
FDN
325AC_ARG_WITH([initdefaultdir],
326 [ --with-initdefaultdir : path to /etc/sysconfig/.. or /etc/default dir. ],
327 [ INITDEFAULTDIR="$withval" ],
328 [ INITDEFAULTDIR="$sysconfdir/default" ])
329
0472de45
FDN
330AC_ARG_WITH([initddir],
331 [ --with-initddir=DIR : path to init script directory. ],
332 [ INITDDIR="$withval" ],
333 [ INITDDIR="$sysconfdir/init.d" ])
334
335AC_ARG_WITH([systemddir],
336 [ --with-systemddir=DIR : path to systemd unit files directory. ],
337 [ SYSTEMDDIR="$withval" ],
905cb809 338 [ SYSTEMDDIR="$systemddir" ])
0472de45 339
99afbd6e 340AC_ARG_WITH([syslogfacility],
e3aa8728 341 [ --with-syslogfacility=FACILITY
99afbd6e
FDN
342 default syslog facility. ],
343 [ SYSLOGFACILITY="$withval" ],
2d022f7f 344 [ SYSLOGFACILITY="LOG_DAEMON" ])
99afbd6e
FDN
345
346AC_ARG_WITH([sysloglevel],
e3aa8728 347 [ --with-sysloglevel=LEVEL
99afbd6e
FDN
348 default syslog level. ],
349 [ SYSLOGLEVEL="$withval" ],
350 [ SYSLOGLEVEL="LOG_INFO" ])
351
e3aa8728
FDN
352AC_ARG_WITH([defaultadmgroup],
353 [ --with-defaultadmgroup=GROUP
354 define PAM group. Users part of this group will be
355 allowed to configure kronosnet. Others will only
356 receive read-only rights. ],
357 [ DEFAULTADMGROUP="$withval" ],
358 [ DEFAULTADMGROUP="kronosnetadm" ])
359
99afbd6e
FDN
360## random vars
361LOGDIR=${localstatedir}/log/
362RUNDIR=${localstatedir}/run/
afce19e1 363DEFAULT_CONFIG_DIR=${sysconfdir}/kronosnet
99afbd6e
FDN
364
365## do subst
366
4fc6106b 367AM_CONDITIONAL([BUILD_DOCS], [test "x${enable_publicandocs}" = xyes])
fa8c7f32 368AM_CONDITIONAL([DEBUG], [test "x${enable_debug}" = xyes])
c8ed20e0 369
afce19e1 370AC_SUBST([DEFAULT_CONFIG_DIR])
2e687dd8 371AC_SUBST([INITDEFAULTDIR])
0472de45
FDN
372AC_SUBST([INITDDIR])
373AC_SUBST([SYSTEMDDIR])
b386f39b 374AC_SUBST([LOGDIR])
2e687dd8 375AC_SUBST([DEFAULTADMGROUP])
0472de45 376
4fc6106b
FDN
377AC_DEFINE_UNQUOTED([DEFAULT_CONFIG_DIR],
378 ["$(eval echo ${DEFAULT_CONFIG_DIR})"],
afce19e1
FDN
379 [Default config directory])
380
381AC_DEFINE_UNQUOTED([DEFAULT_CONFIG_FILE],
4fc6106b 382 ["$(eval echo ${DEFAULT_CONFIG_DIR}/kronosnetd.conf)"],
99afbd6e
FDN
383 [Default config file])
384
4fc6106b
FDN
385AC_DEFINE_UNQUOTED([LOGDIR],
386 ["$(eval echo ${LOGDIR})"],
99afbd6e
FDN
387 [Default logging directory])
388
2d022f7f 389AC_DEFINE_UNQUOTED([DEFAULT_LOG_FILE],
4fc6106b 390 ["$(eval echo ${LOGDIR}/kronosnetd.log)"],
2d022f7f
FDN
391 [Default log file])
392
4fc6106b
FDN
393AC_DEFINE_UNQUOTED([RUNDIR],
394 ["$(eval echo ${RUNDIR})"],
99afbd6e
FDN
395 [Default run directory])
396
4fc6106b
FDN
397AC_DEFINE_UNQUOTED([SYSLOGFACILITY],
398 [$(eval echo ${SYSLOGFACILITY})],
99afbd6e
FDN
399 [Default syslog facility])
400
4fc6106b
FDN
401AC_DEFINE_UNQUOTED([SYSLOGLEVEL],
402 [$(eval echo ${SYSLOGLEVEL})],
99afbd6e
FDN
403 [Default syslog level])
404
4fc6106b
FDN
405AC_DEFINE_UNQUOTED([DEFAULTADMGROUP],
406 ["$(eval echo ${DEFAULTADMGROUP})"],
e3aa8728
FDN
407 [Default admin group])
408
99afbd6e
FDN
409## *FLAGS handling
410ENV_CFLAGS="$CFLAGS"
411ENV_CPPFLAGS="$CPPFLAGS"
412ENV_LDFLAGS="$LDFLAGS"
413
414# debug build stuff
415if test "x${enable_debug}" = xyes; then
416 AC_DEFINE_UNQUOTED([DEBUG], [1], [Compiling Debugging code])
417 OPT_CFLAGS="-O0"
418else
419 OPT_CFLAGS="-O3"
420fi
421
422# gdb flags
423if test "x${GCC}" = xyes; then
424 GDB_FLAGS="-ggdb3"
425else
426 GDB_FLAGS="-g"
427fi
428
429# extra warnings
430EXTRA_WARNINGS=""
431
432WARNLIST="
433 all
0dbd680b
MJ
434 extra
435 unused
99afbd6e
FDN
436 shadow
437 missing-prototypes
438 missing-declarations
0dbd680b
MJ
439 suggest-attribute=noreturn
440 suggest-attribute=format
99afbd6e
FDN
441 strict-prototypes
442 declaration-after-statement
443 pointer-arith
444 write-strings
445 cast-align
446 bad-function-cast
447 missing-format-attribute
0dbd680b 448 float-equal
99afbd6e 449 format=2
fb2cc79f 450 format-signedness
99afbd6e
FDN
451 format-security
452 format-nonliteral
453 no-long-long
454 unsigned-char
455 gnu89-inline
456 no-strict-aliasing
457 error
ade3159b
FDN
458 address
459 cpp
ade3159b
FDN
460 overflow
461 parentheses
462 sequence-point
463 switch
0dbd680b
MJ
464 shift-overflow=2
465 overlength-strings
466 retundent-decls
467 init-self
ade3159b
FDN
468 uninitialized
469 unused-but-set-variable
470 unused-function
471 unused-result
472 unused-value
473 unused-variable
0dbd680b
MJ
474 unknown-pragmas
475 no-unused-parameter
99afbd6e
FDN
476 "
477
478for j in $WARNLIST; do
479 if cc_supports_flag -W$j; then
480 EXTRA_WARNINGS="$EXTRA_WARNINGS -W$j";
481 fi
482done
483
ae9ebb47 484CFLAGS="$ENV_CFLAGS $lt_prog_compiler_pic $OPT_CFLAGS $GDB_FLAGS \
99afbd6e
FDN
485 $EXTRA_WARNINGS $WERROR_CFLAGS"
486CPPFLAGS="$ENV_CPPFLAGS"
e3c019fd 487LDFLAGS="$ENV_LDFLAGS $lt_prog_compiler_pic -Wl,--as-needed"
99afbd6e 488
19ceca42
FDN
489AC_CONFIG_FILES([
490 Makefile
0472de45 491 init/Makefile
5d4a4eec
FDN
492 libtap/Makefile
493 libtap/libtap.pc
4aa63ad7 494 kronosnetd/Makefile
b386f39b 495 kronosnetd/kronosnetd.logrotate
10244a3f
FS
496 libknet/Makefile
497 libknet/libknet.pc
a86247e6 498 libknet/tests/Makefile
19ceca42 499 docs/Makefile
7368d54c 500 poc-code/Makefile
77213908 501 poc-code/iov-hash/Makefile
712dee58 502 poc-code/access-list/Makefile
19ceca42 503 ])
99afbd6e
FDN
504
505AC_OUTPUT