summaryrefslogtreecommitdiff
path: root/m4/sigaction.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-09-22 00:47:13 +0200
committerBruno Haible <bruno@clisp.org>2008-09-22 00:47:13 +0200
commitce1fa85015a6dabec92220077302e24fbccce768 (patch)
tree57235664dd95bad54f57773f06da60eb01614518 /m4/sigaction.m4
parent878aed7ca4d4f46998d9524435236157ec9ac089 (diff)
downloadgnulib-ce1fa85015a6dabec92220077302e24fbccce768.tar.gz
Make autoconf tests structure consistent with source files in lib/.
Diffstat (limited to 'm4/sigaction.m4')
-rw-r--r--m4/sigaction.m421
1 files changed, 10 insertions, 11 deletions
diff --git a/m4/sigaction.m4 b/m4/sigaction.m4
index f11d4cf0f1..3a3ed9f24d 100644
--- a/m4/sigaction.m4
+++ b/m4/sigaction.m4
@@ -1,4 +1,4 @@
-# sigaction.m4 serial 4
+# sigaction.m4 serial 5
dnl Copyright (C) 2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -8,10 +8,16 @@ dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_SIGACTION],
[
AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
- AC_REPLACE_FUNCS([sigaction])
- if test $ac_cv_func_sigaction = no ; then
+ AC_CHECK_FUNCS_ONCE([sigaction])
+ if test $ac_cv_func_sigaction = yes; then
+ AC_CHECK_MEMBERS([struct sigaction.sa_sigaction], , ,
+ [[#include <signal.h>]])
+ if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
+ HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
+ fi
+ else
HAVE_SIGACTION=0
- AC_SUBST([HAVE_SIGACTION])
+ AC_LIBOBJ([sigaction])
gl_PREREQ_SIGACTION
fi
])
@@ -29,7 +35,6 @@ AC_DEFUN([gl_PREREQ_SIGACTION],
]])
if test $ac_cv_type_siginfo_t = no; then
HAVE_SIGINFO_T=0
- AC_SUBST([HAVE_SIGINFO_T])
fi
])
@@ -37,10 +42,4 @@ AC_DEFUN([gl_PREREQ_SIGACTION],
AC_DEFUN([gl_PREREQ_SIG_HANDLER_H],
[
AC_REQUIRE([AC_C_INLINE])
- AC_CHECK_MEMBERS([struct sigaction.sa_sigaction], , ,
- [[#include <signal.h>]])
- if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
- HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
- AC_SUBST([HAVE_STRUCT_SIGACTION_SA_SIGACTION])
- fi
])