9bcd374ac098f579118811d25c2adf2d718a030f
[pspp] / m4 / strsignal.m4
1 # strsignal.m4 serial 1
2 dnl Copyright (C) 2008 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_FUNC_STRSIGNAL],
8 [
9   dnl Persuade glibc <string.h> to declare strsignal().
10   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
11
12   AC_REQUIRE([AC_DECL_SYS_SIGLIST])
13
14   AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
15   AC_REPLACE_FUNCS([strsignal])
16   AC_CHECK_DECLS_ONCE([strsignal])
17   if test $ac_cv_have_decl_strsignal = no; then
18     HAVE_DECL_STRSIGNAL=0
19     gl_PREREQ_STRSIGNAL
20   fi
21 ])
22
23 # Prerequisites of lib/strsignal.c.
24 AC_DEFUN([gl_PREREQ_STRSIGNAL], [:])