On 02/15/2017 04:52 AM, Bruno Haible wrote:
> Hi all,
> 
> Some uses of AC_EGREP_CPP and AC_EGREP_HEADER probably assume that when
> no continuation lines (backslash-newline) and no multiline macro invocations
> are involved, each source line produces at most one output line.
> 
> This is no longer the case with GCC >= 5.

> As you can see, here 1 source line produces up to 4 output lines (ignoring the
> line number comment lines). Attempts to use 'grep Version' to find the values 
> of
> __GLIBC__ and __GLIBC_VERSION__ don't work any more.
> 
> Maybe the documentation of AC_EGREP_CPP and AC_EGREP_HEADER could include
> a caveat about this?

Indeed. grep'ping has always been fragile, but adding another warning
can't hurt.  I'll see if I can come up with a patch

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to