From: Ruben Kerkhof Date: Mon, 14 May 2018 21:23:36 +0000 (+0200) Subject: Use sane CFLAGS while checking for strtok_r X-Git-Tag: collectd-5.9.0~269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9aaf837d506abb28e607ff86da03cbdf00cb40d;p=thirdparty%2Fcollectd.git Use sane CFLAGS while checking for strtok_r Instead of using the flags passed in via the environment. This makes `./configure CC=clang CFLAGS="-Weverything` work properly. --- diff --git a/configure.ac b/configure.ac index 6876829db..0443dbc7b 100644 --- a/configure.ac +++ b/configure.ac @@ -766,9 +766,7 @@ AC_CHECK_FUNCS_ONCE([ \ AC_FUNC_STRERROR_R SAVE_CFLAGS="$CFLAGS" -# Emulate behavior of src/Makefile.am -if test "x$GCC" = "xyes"; then - CFLAGS="$CFLAGS -Wall -Werror" +CFLAGS="-Wall -Werror" fi AC_CACHE_CHECK([for strtok_r],