]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed -Wno-deprecated-register detection
authorkinkie@buildmaster.squid-cache.org <>
Sat, 3 Jan 2015 21:25:56 +0000 (21:25 +0000)
committerkinkie@buildmaster.squid-cache.org <>
Sat, 3 Jan 2015 21:25:56 +0000 (21:25 +0000)
configure.ac

index ccf625ae045419305030d0d6f4ff5cca7a37b7f5..4c760ec42d0d73d9bbb56832c05d32730d17d2d6 100644 (file)
@@ -365,13 +365,17 @@ else
 fi
 
 dnl CentOS (and RHEL) still define ntohs() using deprecated C++ features
-SQUID_CC_REQUIRE_ARGUMENT([ac_cv_require_Wno_deprecated_register],[-Wno-deprecated-register],[[#include <arpa/inet.h>]],[[int fox=ntohs(1);]])
+SQUID_CC_REQUIRE_ARGUMENT([ac_cv_require_wno_deprecated_register],[-Wno-deprecated-register],[[#include <arpa/inet.h>]],[[int fox=ntohs(1);]])
 
 if test "x$enable_strict_error_checking" != "xno"; then
   SQUID_CFLAGS="$SQUID_CFLAGS $squid_cv_cc_option_werror"
   SQUID_CXXFLAGS="$SQUID_CXXFLAGS $squid_cv_cxx_option_werror"
 fi
 
+if test "x$ac_cv_require_wno_deprecated_register" = "xyes"; then
+  SQUID_CXXFLAGS="$SQUID_CXXFLAGS -Wno-deprecated-register"
+fi
+
 # squid_cv_cc_arg_pipe is set by SQUID_CC_GUESS_OPTIONS
 SQUID_CXXFLAGS="$SQUID_CXXFLAGS $squid_cv_cc_arg_pipe"
 SQUID_CFLAGS="$SQUID_CFLAGS $squid_cv_cc_arg_pipe"