Branch: Tag:

1998-02-27

1998-02-27 17:35:04 by Marcus Comstedt <marcus@mc.pp.se>

Signal test is now more "POSIX friendly"... :)

Rev: src/acconfig.h:1.17
Rev: src/configure.in:1.162

1: - AC_REVISION("$Id: configure.in,v 1.161 1998/02/27 17:08:44 marcus Exp $") + AC_REVISION("$Id: configure.in,v 1.162 1998/02/27 17:35:04 marcus Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
650:   locale.h sys/resource.h sys/select.h sys/mman.h setjmp.h limits.h pthread.h \   thread.h dlfcn.h dld.h sys/times.h sched.h sys/procfs.h sys/param.h winsock.h \   sys/ioct.h sys/socket.h malloc.h netinet/in.h sys/wait.h winbase.h grp.h pwd.h \ - passwd.h group.h winsock2.h) + passwd.h group.h winsock2.h signal.h)      AC_CHECK_SIZEOF(char *,4)   AC_CHECK_SIZEOF(long,4)
1482:      ########################################################################    + AC_MSG_CHECKING(for sig_atomic_t) + AC_CACHE_VAL(ac_cv_type_sig_atomic_t, + [ +  AC_EGREP_CPP(sig_atomic_t, [ + #ifdef HAVE_SIGNAL_H + #include <signal.h> + #endif + #include <sys/types.h> + #if STDC_HEADERS + #include <stdlib.h> + #include <stddef.h> + #endif], ac_cv_type_sig_atomic_t=yes, ac_cv_type_sig_atomic_t=no)]) + AC_MSG_RESULT($ac_cv_type_sig_atomic_t) + if test x"$ac_cv_type_sig_atomic_t" = xno; then +  AC_DEFINE(sig_atomic_t, int) + else +  : + fi +    AC_MSG_CHECKING(if signal handlers reset automatically)   AC_CACHE_VAL(pike_cv_sys_signal_oneshot,   [   AC_TRY_RUN([ -  + #ifdef HAVE_SIGNAL_H   #include <signal.h> - char sigrun=0; + #endif + #include <sys/types.h> + #if STDC_HEADERS + #include <stdlib.h> + #include <stddef.h> + #endif + volatile sig_atomic_t sigrun=0;   RETSIGTYPE func(int sig) { sigrun=1; }      int main()