Branch: Tag:

2008-01-11

2008-01-11 21:30:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added code to reduce the stack ulimit if it exceeds 64MB.
It seems the thread tests fail if the stack ulimit is too large on Linux 2.6/IA64.

Rev: src/configure.in:1.1035

1: - AC_REVISION("$Id: configure.in,v 1.1034 2008/01/11 00:22:27 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.1035 2008/01/11 21:30:57 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
904:      PIKE_AC_DEBUG    + AC_MSG_CHECKING([if the stack ulimit is excessive]) + if ulimit -s 1>&AC_FD_CC 2>&AC_FD_CC; then +  orig_ulimit="`ulimit -s 2>&AC_FD_CC`" +  if test "$orig_ulimit" -gt "65536"; then +  AC_MSG_RESULT([yes, $orig_ulimit - reducing to 4096.]) +  if ulimit -s 4096 1>&AC_FD_CC 2>&AC_FD_CC; then :; else +  AC_MSG_WARN([Failed to reduce stack ulimit to 4096.]) +  fi +  PIKE_AC_DEBUG +  else +  AC_MSG_RESULT([no, $orig_ulimit]) +  fi + else +  AC_MSG_RESULT([unknown, ulimit -s failed.]) + fi +    # Restore the -O2 that the default AC_PROG_CC adds.      AC_SYS_COMPILER_FLAG(+O3,plus_O3,OPTIMIZE, [
2327:    # MinGW system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1034 2008/01/11 00:22:27 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.1035 2008/01/11 21:30:57 grubba Exp $.   # MinGW-version. Do NOT edit.   posix_name="`cat`"   posix_prefix="/"
2365:    # Native POSIX system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1034 2008/01/11 00:22:27 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.1035 2008/01/11 21:30:57 grubba Exp $.   # POSIX-version. Do NOT edit.   cat   EOF
2374:    # rntcl-style    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1034 2008/01/11 00:22:27 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.1035 2008/01/11 21:30:57 grubba Exp $.   # RNTCL-version. Do NOT edit.   sed -e "$PIKE_PATH_TRANSLATE"   EOF