[patch #9926] AC_PROG_CC_FOR_BUILD: "test: =: unary operator expected"
Max Horn <[email protected]> Wed, 17 Jun 2020 05:09:12 -0400 (EDT)
| Newsgroups | gmane.comp.sysutils.autoconf.archive-maintainers |
|---|---|
| Message-ID | <[email protected]> |
Follow-up Comment #1, patch #9926 (project autoconf-archive):
The relevant shell script triggering the warning is this:
if test $ac_compiler_gnu = yes; then
GCC_FOR_BUILD=yes
else
GCC_FOR_BUILD=
fi
So this is a classical case of $ac_compiler_gnu not being set. One can fix it
by checking `$ac_compiler_gnu = xyes` instead.
As such, I would suspect this commit as source of the regression:
http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=commitdiff;h=10e1f73a781df74eb7b088948d78793b11b12225
But that might be totally wrong. Unfortunately, I don't know enough about m4
or the autoconf internals to figure out what the proper fix for this ought to
be :-(. Perhaps the patch author (Jannick) has an idea?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?9926>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/