summaryrefslogtreecommitdiff
path: root/modules/c-stack
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2008-07-17 06:23:47 -0600
committerEric Blake <ebb9@byu.net>2008-07-17 07:29:56 -0600
commitf6a65c23356574113f91060f82cef2119af4949a (patch)
treeb4a699230b91c1162bfad438d16ecb24992fe40d /modules/c-stack
parent1eb850a182e6e5aa66d17d314b394e2ded30e2b5 (diff)
downloadgnulib-f6a65c23356574113f91060f82cef2119af4949a.tar.gz
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>
Diffstat (limited to 'modules/c-stack')
-rw-r--r--modules/c-stack4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/c-stack b/modules/c-stack
index d3e7e0996c..a01b8c7850 100644
--- a/modules/c-stack
+++ b/modules/c-stack
@@ -12,6 +12,7 @@ exitfail
unistd
raise
sigaction
+libsigsegv
configure.ac:
gl_C_STACK
@@ -22,6 +23,9 @@ lib_SOURCES += c-stack.h c-stack.c
Include:
"c-stack.h"
+Link:
+$(LTCSTACK) when linking with libtool, $(LIBCSTACK) otherwise
+
License:
GPL