xref: /netbsd-src/external/bsd/am-utils/dist/m4/macros/check_restartable_signal_handler.m4 (revision a53f50b9b44dc9467ccc9c464999b1d1c509cb0c)
1*a53f50b9Schristosdnl ######################################################################
2*a53f50b9Schristosdnl check if a system needs to restart its signal handlers
3*a53f50b9SchristosAC_DEFUN([AMU_CHECK_RESTARTABLE_SIGNAL_HANDLER],
4*a53f50b9Schristos[
5*a53f50b9SchristosAC_CACHE_CHECK(if system needs to restart signal handlers,
6*a53f50b9Schristosac_cv_restartable_signal_handler,
7*a53f50b9Schristos[
8*a53f50b9Schristos# select the correct systems to restart signal handlers
9*a53f50b9Schristoscase "${host_os_name}" in
10*a53f50b9Schristos	svr3* | svr4* | sysv4* | solaris2* | sunos5* | aoi* | irix* )
11*a53f50b9Schristos			ac_cv_restartable_signal_handler=yes ;;
12*a53f50b9Schristos	* )
13*a53f50b9Schristos			ac_cv_restartable_signal_handler=no ;;
14*a53f50b9Schristosesac
15*a53f50b9Schristos])
16*a53f50b9Schristos# define REINSTALL_SIGNAL_HANDLER if need to
17*a53f50b9Schristosif test "$ac_cv_restartable_signal_handler" = yes
18*a53f50b9Schristosthen
19*a53f50b9Schristos  AC_DEFINE(REINSTALL_SIGNAL_HANDLER)
20*a53f50b9Schristosfi
21*a53f50b9Schristos])
22*a53f50b9Schristosdnl ======================================================================
23