--- netkit-bootparamd-0.17-pre20000412/configure.sopwith 2004-07-02 16:09:42.000000000 -0400 +++ netkit-bootparamd-0.17-pre20000412/configure 2004-07-02 16:47:08.000000000 -0400 @@ -160,29 +160,35 @@ cat <<EOF >__conftest.c #include <unistd.h> #include <signal.h> -int count=0; +volatile int count=0; void handle(int foo) { count++; } int main() { + sigset_t sset; int pid=getpid(); + sigemptyset(&sset); + sigaddset(&sset, SIGINT); + sigprocmask(SIG_UNBLOCK, &sset, NULL); signal(SIGINT, handle); kill(pid,SIGINT); kill(pid,SIGINT); kill(pid,SIGINT); + sleep(1); if (count!=3) return 1; return 0; } EOF +cat __conftest.c if ( $CC $CFLAGS __conftest.c -o __conftest || exit 1 ./__conftest || exit 1 - ) >/dev/null 2>&1; then + ); then echo 'yes' else if ( $CC $CFLAGS -D__USE_BSD_SIGNAL __conftest.c -o __conftest || exit 1 ./__conftest || exit 1 - ) >/dev/null 2>&1; then + ); then echo '-D__USE_BSD_SIGNAL' CFLAGS="$CFLAGS -D__USE_BSD_SIGNAL" else