From 474b74b345b7ebe5492fe9c09d2ca07438bf836f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 5 Sep 2006 01:50:52 +0000 Subject: r18053: the sig_atomic_t test needs to be in libreplace for getpass.c to compile on hpux (This used to be commit a0bd4f5c4a08f4815aa742cc2406ed8e46d7b8f5) --- source4/lib/replace/config.m4 | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source4/lib') diff --git a/source4/lib/replace/config.m4 b/source4/lib/replace/config.m4 index 8bfd836189..32870df386 100644 --- a/source4/lib/replace/config.m4 +++ b/source4/lib/replace/config.m4 @@ -192,3 +192,16 @@ eprintf("bla", "bar"); # Check prerequisites AC_CHECK_FUNCS([memset printf syslog], [], [ AC_MSG_ERROR([Required function not found])]) + +AC_CACHE_CHECK([for sig_atomic_t type],samba_cv_sig_atomic_t, [ + AC_TRY_COMPILE([ +#include +#if STDC_HEADERS +#include +#include +#endif +#include ],[sig_atomic_t i = 0], + samba_cv_sig_atomic_t=yes,samba_cv_sig_atomic_t=no)]) +if test x"$samba_cv_sig_atomic_t" = x"yes"; then + AC_DEFINE(HAVE_SIG_ATOMIC_T_TYPE,1,[Whether we have the atomic_t variable type]) +fi -- cgit