From: Jelte Jansen Date: Thu, 22 May 2008 08:51:38 +0000 (+0000) Subject: remove default compiler flags, and check for them individually X-Git-Tag: release-1.3.0~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb38e03fbc02608db91cf3e799ec1d4b6e55c828;p=thirdparty%2Fldns.git remove default compiler flags, and check for them individually -g and -O2 seem to be added bij autoreconf by default --- diff --git a/configure.ac b/configure.ac index da72f2c4..428fd3da 100644 --- a/configure.ac +++ b/configure.ac @@ -11,8 +11,6 @@ PACKAGE_VERSION="$PACKAGE_VERSION" OURCPPFLAGS='' CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}} -OURCFLAGS='-g -Wall -W -Wwrite-strings' -CFLAGS=${CFLAGS:-${OURCFLAGS}} AC_AIX # Checks for programs. @@ -101,11 +99,13 @@ fi fi ]) + # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_LANG_C -CHECK_COMPILER_FLAG(g, [CFLAGS="$CFLAGS -g"]) -CHECK_COMPILER_FLAG(O2, [CFLAGS="$CFLAGS -O2"]) +CHECK_COMPILER_FLAG(Wall, [CFLAGS="$CFLAGS -Wall"]) +CHECK_COMPILER_FLAG(W, [CFLAGS="$CFLAGS -w"]) +CHECK_COMPILER_FLAG(Wwrite-strings, [CFLAGS="$CFLAGS -Wwrite-strings"]) AC_CHECK_HEADERS([getopt.h time.h],,, [AC_INCLUDES_DEFAULT])