Make c-stack use libsigsegv, when available.
authorEric Blake <ebb9@byu.net>
Thu, 17 Jul 2008 12:23:47 +0000 (06:23 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 17 Jul 2008 13:29:56 +0000 (07:29 -0600)
commitf6a65c23356574113f91060f82cef2119af4949a
treeb4a699230b91c1162bfad438d16ecb24992fe40d
parent1eb850a182e6e5aa66d17d314b394e2ded30e2b5
Make c-stack use libsigsegv, when available.

* modules/c-stack (Depends-on): Add libsigsegv.
* modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
needed.
* lib/c-stack.c (SIGSTKSZ): Define fallback.
(segv_handler, overflow_handler, c_stack_action)
[HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
implementation when libsigsegv is available, but only when using
the library is necessary.
* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
comment, explaining why XSI check fails on Linux.
(gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
* tests/test-c-stack2.sh: Tweak skip message.
* NEWS: Document new link-time requirements.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
NEWS
lib/c-stack.c
m4/c-stack.m4
modules/c-stack
modules/c-stack-tests
tests/test-c-stack2.sh