configure.ac in 9.11.35 contains a syntactically invalid test
Summary
My shell tells me:
Compiler: /opt/aCC/bin/aCC -Ae -Ae -z
./configure[136]: ==: A test command parameter is not valid.
aCC: HP C/aC++ B3910B A.06.29 [Oct 18 2016]
BIND version used
9.11.35
Steps to reproduce
Run configure
with a non-GCC compiler
What is the current bug behavior?
Test is not executed.
What is the expected correct behavior?
Test is not executed.
Relevant configuration files
I have reported the same issue with MIT Kerberos seven years ago: https://github.com/krb5/krb5/commit/fefd465614f11f374f5ff183e6eb6cbc1b550de5
Possible fixes
# diff -u configure.ac.orig configure.ac
--- configure.ac.orig 2021-08-19 22:44:23 +0000
+++ configure.ac 2021-08-19 22:45:46 +0000
@@ -5257,7 +5257,7 @@
[
SO_CFLAGS="-fPIC"
])
- AS_IF([test "$GCC" = "yes"],[
+ AS_IF([test "X$GCC" = "Xyes"],[
SO_CFLAGS="-fPIC"
AS_IF([test -z "$SO_LD"],
[AS_IF([test "$use_libtool" = "yes"],[
@@ -5769,7 +5769,7 @@
echo " localstatedir: $localstatedir"
echo "-------------------------------------------------------------------------------"
echo "Compiler: $CC"
- if test "yes" == "$GCC"; then
+ if test "X$GCC" = "Xyes" ; then
$CC --version 2>&1 | sed 's/^/ /'
else
case "$host_os" in
I have also applied the same pattern done by other $GCC
checks.