Re: bogus configure output for strstr

2010-08-30 Thread Eric Blake
On 08/30/2010 05:20 PM, Bruno Haible wrote: static void quit (int sig) { exit (sig + 128); } ... signal (SIGALRM, quit); I tested this on FreeBSD, and it indeed works. And given that sleep.m4 already installs a handler, it's no less portable than what we are already doing in other test

Re: bogus configure output for strstr

2010-08-30 Thread Bruno Haible
Hi Eric, > Is it worth trying to silence the spurious "Alarm clock" message Yes: The normal configure output should be as regular as possible, because we want users to report anomalies to us. > by changing strstr.m4 (and friends with related timeout idioms) to use: > > static void quit (int sig

bogus configure output for strstr

2010-08-30 Thread Eric Blake
I noticed this when testing m4 on FreeBSD: checking whether strstr works in linear time... Alarm clock no That's because conftest ends via a signal in this case, and some shells, including FreeBSD's /bin/sh, are rather verbose about processes that died because of a signal rather than a normal