sigaltstack is not used now if the OS does not provide it.

This commit is contained in:
Abdulaziz Ghuloum 2008-01-07 19:04:46 -05:00
parent 899be70aca
commit 01d0669607
6 changed files with 17 additions and 12 deletions

View File

@ -58,6 +58,9 @@
/* Define to 1 if you have the `setenv' function. */
#undef HAVE_SETENV
/* Define to 1 if you have the `sigaltstack' function. */
#undef HAVE_SIGALTSTACK
/* Define to 1 if you have the <signal.h> header file. */
#undef HAVE_SIGNAL_H

11
configure vendored
View File

@ -5537,9 +5537,11 @@ _ACEOF
# remember to enable before release.
# if (test $ac_cv_sizeof_void_p != 4); then
# AC_MSG_ERROR([Ikarus can only run in 32-bit mode.])
# fi
if (test $ac_cv_sizeof_void_p != 4); then
{ { echo "$as_me:$LINENO: error: Ikarus can only run in 32-bit mode." >&5
echo "$as_me: error: Ikarus can only run in 32-bit mode." >&2;}
{ (exit 1); exit 1; }; }
fi
# Checks for libraries.
{ echo "$as_me:$LINENO: checking for library containing dlsym" >&5
@ -8787,7 +8789,8 @@ fi
for ac_func in bzero gettimeofday memmove memset munmap setenv sqrt strerror getaddrinfo
for ac_func in sigaltstack bzero gettimeofday memmove memset munmap setenv sqrt strerror getaddrinfo
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5

View File

@ -30,9 +30,9 @@ case "$target_os" in
AC_CHECK_SIZEOF(void *)
# remember to enable before release.
# if (test $ac_cv_sizeof_void_p != 4); then
# AC_MSG_ERROR([Ikarus can only run in 32-bit mode.])
# fi
if (test $ac_cv_sizeof_void_p != 4); then
AC_MSG_ERROR([Ikarus can only run in 32-bit mode.])
fi
# Checks for libraries.
AC_SEARCH_LIBS(dlsym, dl,, [AC_MSG_ERROR([Cannot find libdl])])
@ -93,7 +93,7 @@ AC_FUNC_MMAP
AC_FUNC_STAT
AC_FUNC_STRFTIME
AC_FUNC_STRTOD
AC_CHECK_FUNCS([bzero gettimeofday memmove memset munmap setenv sqrt strerror getaddrinfo])
AC_CHECK_FUNCS([sigaltstack bzero gettimeofday memmove memset munmap setenv sqrt strerror getaddrinfo])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES(Makefile src/Makefile scheme/Makefile doc/Makefile lib/Makefile benchmarks/Makefile)
AC_OUTPUT #(Makefile src/Makefile scheme/Makefile doc/Makefile)

View File

@ -1 +1 @@
1331
1332

View File

@ -49,7 +49,6 @@
(f 0 536870911000 536870911)
(printf "[exact-integer-sqrt] Happy Happy Joy Joy\n"))
(test-case-folding)
(test-parse-flonums)
(test-reader)
@ -73,5 +72,5 @@
(test-fxdiv0-and-mod0)
(test-fxlength)
(test-bitwise-bit-count)
;(test-io)
(test-io)
(printf "Happy Happy Joy Joy\n")

View File

@ -257,7 +257,7 @@ SYNOPSIS
void
register_alt_stack(){
#ifndef __CYGWIN__
#if HAVE_SIGALTSTACK
char* stk = mmap(0, SIGSTKSZ, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON, -1, 0);
// char* stk = ik_mmap(SIGSTKSZ);