On Mon, Jan 25, 2021 at 5:49 PM Bruno Haible <br...@clisp.org> wrote:
>
> Hi,
>
> Peter Dyballa wrote:
> > The configure script of wget 1.21.1 seems to have a bug, which becomes 
> > visible
> > at least on old Mac OS X versions which use old GCC 4.2, see this report:
> > https://trac.macports.org/ticket/62134. It's my assumption that the tests 
> > for
> > C99 and C11 capabilities are incorrect while the maintainer assumes that 
> > it's
> > a bug in gnulib I should report. Could you check whether we are both wrong?
> > Or right?
>
> In my understanding, it's a bug in Autoconf:
> <https://savannah.gnu.org/support/?110425>
>
> The workaround is to set CC="/usr/bin/gcc-4.2 -std=gnu99" instead of
> CC="/usr/bin/gcc-4.2", before running configure.

Placing flags in CC breaks other scripts. For example, this no longer works:

    if [[ ! $(command -v "${CC}") ]]; then
        echo "The compiler is not valid. Please install a compiler."
        exit 1
    fi

Jeff

Reply via email to