From 13b221963b185cebe8cb691f936b186f2fa89310 Mon Sep 17 00:00:00 2001 From: "Diego E. 'Flameeyes' Pettenò" Date: Wed, 19 Nov 2008 03:19:39 +0100 Subject: Update the attributes.m4 macro file from xine-lib/lscube. Also use the new CC_CHECK_CFLAGS_APPEND macro instead of doing the for loop manually. --- configure.ac | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a185464..3078ab4 100644 --- a/configure.ac +++ b/configure.ac @@ -44,11 +44,7 @@ AC_USE_SYSTEM_EXTENSIONS AC_PROG_MAKE_SET AC_PROG_LIBTOOL -DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -ffast-math" - -for flag in $DESIRED_FLAGS ; do - CC_CHECK_CFLAGS([$flag], [CFLAGS="$CFLAGS $flag"]) -done +CC_CHECK_CFLAGS_APPEND([-Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -ffast-math]) # Checks for header files. AC_HEADER_ASSERT -- cgit From b406ecda2ce06fdb056d7ec6522893f38c3bbbdf Mon Sep 17 00:00:00 2001 From: "Diego E. 'Flameeyes' Pettenò" Date: Wed, 19 Nov 2008 03:21:30 +0100 Subject: If the linker suppors it, ensure that the library has no undefined references. This is important to make sure that no bugs are introduced that breaks when using --as-needed. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 3078ab4..38b7701 100644 --- a/configure.ac +++ b/configure.ac @@ -70,6 +70,8 @@ AC_TYPE_SIZE_T AC_SYS_LARGEFILE +CC_NOUNDEFINED + ZP_LYNX_DOC AC_ARG_ENABLE(examples, -- cgit