acinclude: Always assume buggy strtok_r() for glibc < 2.8.
authorBen Pfaff <blp@nicira.com>
Fri, 3 Apr 2015 22:10:57 +0000 (15:10 -0700)
committerBen Pfaff <blp@nicira.com>
Sat, 4 Apr 2015 00:19:20 +0000 (17:19 -0700)
commit416e71322f82beea869b2e5928be5ae60f2577de
tree2a5cdb7c867845b29f212430f6f3a957aebd1ac4
parent4f7e5c274bfff6187313588a66491bcf45b7a709
acinclude: Always assume buggy strtok_r() for glibc < 2.8.

Lately our internal build system has been seeing intermittent failures that
I can't explain.  With old glibc versions, the "configure" time check will
pass, but the equivalent (almost identical) "make check" test will fail.
One possibility, I guess, is that occasionally address space randomization
will put valid data at the 0xc0ffee address that the test assumes will
segfault, and another is that some change in compiler optimization flags
is making a difference.  At any rate, I think it's safe to just always
assume that this strtok_r() bug is present whenever glibc before 2.8 is
in use.

Specifically we've seen this happen intermittently when building against
the XenServer DDK 5.6.100 build 39265, which uses glibc 2.5.

Reported-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
acinclude.m4