rc

[fork] interactive rc shell
Log | Files | Refs | README | LICENSE

commit 2c34815099762e7a4845dbade6a75a57f70e3b59
parent f08474ea0c5d4ad9266081d5f3dd0017448d2498
Author: tgoodwin <tgoodwin>
Date:   Thu, 19 Feb 1998 13:23:17 +0000

actually test for sigsetjmp (not setjmp), bozo
nasty sed hack to handle \\ paths under CygWin32

Diffstat:
Mconfigure.ac | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -27,12 +27,14 @@ dnl Most systems put the real signal names in /usr/include/sys/signal.h. dnl Linux puts them in /usr/include/asm/signal.h. CygWin32 puts them dnl somewhere else altogether. This hack attempts to parse the output dnl of saying `#include <signal.h>' to the preprocessor in order to find -dnl the full path of files named signal.h. If this doesn't -dnl produce any filenames, fall back to the (Unixoid) defaults. +dnl the full path of files named signal.h. The first sed substitution +dnl handles paths on CygWin32, and is a good example of why rc's quoting +dnl rules are superior to sh's. If this process doesn't produce any +dnl filenames, fall back to the (Unixoid) defaults. AC_CACHE_CHECK(for full paths of <signal.h>, rc_cv_full_signal_h, [ echo '#include <signal.h>' > temp.c - rc_cv_full_signal_h=`$CPP temp.c |sed -n 's/.*"\(.*signal.h\)".*/\1/p' | + rc_cv_full_signal_h=`$CPP temp.c |sed -n 's/\\\\\\\\/\\\\/g;s/.*"\(.*signal.h\)".*/\1/p' | sort -u |tr ' ' ' '` rm -f temp.c @@ -73,8 +75,8 @@ AC_CACHE_CHECK(for sigsetjmp, rc_cv_sigsetjmp, AC_TRY_LINK([ #include <setjmp.h> ], [ -jmp_buf e; -setjmp(e); +sigjmp_buf e; +sigsetjmp(e, 1); ], rc_cv_sigsetjmp=yes, rc_cv_sigsetjmp=no)) case "$rc_cv_sigsetjmp" in yes) AC_DEFINE(HAVE_SIGSETJMP) ;;