On 8/17/21 10:01 AM, Osipov, Michael (LDA IT PLM) wrote:
But is still logically doesn't add up. From ./configure:
if test $ac_compiler_gnu = yes; then
GCC=yes
else
GCC=
fi
So the variable is *always* set. Thus word is always substituted. I would
expect no else branch in the if clause then I would competely agree with
Chet. Removing the else block makes the sript works as expected.
What am I missing here?
I think that's the issue. But since that code fragment isn't in the bash
or readline configure.ac, it's inserted by autoconf, probably as part of
AC_PROG_CC.
The documentation for AC_PROG_CC doesn't mention setting GCC to the empty
string if the compilation is not using gcc, but it seems to do that.
I guess I'll have to work around it.