]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: Drop an unused, misleading condition (#1169)
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 21 Oct 2022 15:57:49 +0000 (15:57 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 22 Oct 2022 17:48:02 +0000 (17:48 +0000)
According to Autoconf NEWS, AC_USE_SYSTEM_EXTENSIONS is defined with
AC_DEFUN_ONCE since Autoconf v2.63b: "This means a subtle change in
semantics; previously, an AC_DEFUN macro could expand [this macro]
multiple times or surround the macro inside shell conditional text to
bypass [its] effects, but now the macro will expand exactly once, and
prior to the start of any enclosing AC_DEFUN macro".

In the generated ./configure script, the if statement no longer had any
code inside it, and AC_USE_SYSTEM_EXTENSIONS was unconditionally
expanded above the if statement.

configure.ac

index ecdfa46943912ae527296354747984ef7b200af5..cf01c9a66e788d1ee9363ba99c3a103a472a2e5b 100644 (file)
@@ -55,9 +55,7 @@ AM_PROG_CC_C_O
 AC_PROG_CXX
 
 # AC_USE_SYSTEM_EXTENSIONS should be called before any macros that run the C compiler.
-AS_IF([test "x$squid_host_os" = "solaris" -a "x$GCC" = "xyes"],[
-  AC_USE_SYSTEM_EXTENSIONS
-])
+AC_USE_SYSTEM_EXTENSIONS
 
 AC_LANG([C++])