#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.72.
#
#
# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
# Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else case e in #(
  e) case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac ;;
esac
fi



# Reset variables that may have inherited troublesome values from
# the environment.

# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
as_nl='
'
export as_nl
IFS=" ""	$as_nl"

PS1='$ '
PS2='> '
PS4='+ '

# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done

# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi

# The user is always right.
if ${PATH_SEPARATOR+false} :; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as 'sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi


# Use a proper internal environment variable to ensure we don't fall
  # into an infinite loop, continuously re-executing ourselves.
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    _as_can_reexec=no; export _as_can_reexec;
    # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed 'exec'.
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
  fi
  # We don't want this to propagate to other subprocesses.
          { _as_can_reexec=; unset _as_can_reexec;}
if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
  setopt NO_GLOB_SUBST
else case e in #(
  e) case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" )
then :

else case e in #(
  e) exitcode=1; echo positional parameters were not saved. ;;
esac
fi
test x\$exitcode = x0 || exit 1
blah=\$(echo \$(echo blah))
test x\"\$blah\" = xblah || exit 1
test -x / || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
  if (eval "$as_required") 2>/dev/null
then :
  as_have_required=yes
else case e in #(
  e) as_have_required=no ;;
esac
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
then :

else case e in #(
  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
IFS=$as_save_IFS
if $as_found
then :

else case e in #(
  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi ;;
esac
fi


      if test "x$CONFIG_SHELL" != x
then :
  export CONFIG_SHELL
             # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed 'exec'.
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
fi

    if test x$as_have_required = xno
then :
  printf "%s\n" "$0: This script requires a shell more modern than all"
  printf "%s\n" "$0: the shells that I found on your system."
  if test ${ZSH_VERSION+y} ; then
    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  else
    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
$0: including any error possibly output before this
$0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one."
  fi
  exit 1
fi ;;
esac
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else case e in #(
  e) as_fn_append ()
  {
    eval $1=\$$1\$2
  } ;;
esac
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else case e in #(
  e) as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  } ;;
esac
fi # as_fn_arith


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  printf "%s\n" "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      t clear
      :clear
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  # already done that, so ensure we don't try to do so again and fall
  # in an infinite loop.  This has already happened in practice.
  _as_can_reexec=no; export _as_can_reexec
  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}


# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n.  New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
    # In both cases, we have to default to 'cp -pR'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -pR'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -pR'
  fi
else
  as_ln_s='cp -pR'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

as_test_x='test -x'
as_executable_p=as_fn_executable_p

# Sed expression to map a string onto a valid CPP name.
as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated

# Sed expression to map a string onto a valid variable name.
as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
as_tr_sh="eval sed '$as_sed_sh'" # deprecated


test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PACKAGE_STRING=''
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

ac_unique_file="interpret.c"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stddef.h>
#ifdef HAVE_STDIO_H
# include <stdio.h>
#endif
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_header_c_list=
ac_func_c_list=
enable_option_checking=no
ac_subst_vars='LTLIBOBJS
LIBOBJS
CONFIG_HEADERS_IN
ACCONFIG_H
make_variables_in
dmmsrc
ac_configure_args
INSTALL
YACC
subdirs
ABI
DTRACE_REQUIREMENTS
EXTRA_MODULE_REQUIREMENTS
DEBUGDEF
EXTRA_OBJS
OPTIMIZE
PROFIL
WARN
OSFLAGS
BUILD_DATE
PIKE_ICON_RES
MT_FIX_PIKE_EXE
PMOD_TARGETS
DYNAMIC_MODULE_FLAGS
STATIC_POST_MODULES_LINKOPTS
POST_MODULE_BUILD_TYPE
BUILD_PIKE
MODULE_O
PIKE_LIB
INTERPRET_DEOPTIMIZE
UNCOMPRESS_LIBZ
INSTALL_EXPORT_ARGS
LINKFORSHARED
CCSHARED
LDSHARED_MODULE_REQS
LDSHARED_BASE_REQS
LDSHARED
SO
PAXCTL_ALLOW_MPROTECT
ALLOCA
PTHREAD_CONFIG
YY_FROM_CONST
YY_COUNT_TYPE
WINDRES
RCEXE
MTEXE
LIGHT_OPTS
LIGHT_VERSION
LIGHT
CANDLE_OPTS
CANDLE_ARCH
CANDLE_VERSION
CANDLE
RNTANY
PAXCTL
AR
RANLIB
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
PKG_CONFIG
PIKE_MODULE_RELOC
dtrace_prog
VALGRINDARGS
VALGRIND
with_valgrind
LC_REQ
LD
FALLBACK_CC
REALCXX
REALCC
SMARTLINK
SMARTBUILDCC
uname_prog
RUNTPIKE
RUNPIKE
CROSS
BUILDDIR
BASEDIR
DOCDIR
MANDIR
BINDIR
LIBDIR
SLOW_PIKE
EGREP
GREP
CXXCPP
CPP
ac_ct_CXX
CXXFLAGS
CXX
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
SET_MAKE
CONFIG_HEADERS
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
runstatedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL
PKG_CONFIG_LIBDIR
PKG_CONFIG_PATH'
ac_subst_files='dependencies
common_module_makefile
propagated_variables
make_variables'
ac_user_opts='
enable_option_checking
enable_pikelib
enable_make_conf
with_cflags
with_cppflags
with_ldflags
with_thread_library
enable_binary
with_abi
enable_smartlink_binary
with_root
with_relocatable_dumped_modules
with_dynamic_modules
with_static_linking
with_crt
with_debug_crt
with_include_path
with_lib_path
with_long_double_precision
with_double_precision
with_long_long_int
with_long_int
with_int_int
enable_dlmalloc
with_experimental
with_cleanup_on_exit
with_dmalloc
with_dmalloc_malloc
with_dmalloc_malloc_leaks
with_dmalloc_trace
with_dmalloc_c_stack_trace
with_dmalloc_track_free
with_debug
with_rtldebug
with_cdebug
with_copt
with_threads
with_malloc_overhead
with_malloc_page_size
with_thread_c_stack
with_devpoll
with_gdbm
with_mpi
with_gmp
with_zlib
with_mysql
with_valgrind
with_dtrace
with_checker
with_gcov
with_profiling
with_internal_profiling
with_mc_stack_frames
with_pg
with_poll
with_max_fd
with_oob
with_compiler_trace
with_keypair_loop
enable_pedantic
enable_werror
with_small_eval_instruction
with_machine_code
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CXX
CXXFLAGS
CCC
CPP
CXXCPP'
ac_subdirs_all='modules post_modules'

# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
runstatedir='${localstatedir}/run'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *=)   ac_optarg= ;;
  *)    ac_optarg=yes ;;
  esac

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: '$ac_useropt'"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: '$ac_useropt'"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -runstatedir | --runstatedir | --runstatedi | --runstated \
  | --runstate | --runstat | --runsta | --runst | --runs \
  | --run | --ru | --r)
    ac_prev=runstatedir ;;
  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  | --run=* | --ru=* | --r=*)
    runstatedir=$ac_optarg ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: '$ac_useropt'"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: '$ac_useropt'"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) as_fn_error $? "unrecognized option: '$ac_option'
Try '$0 --help' for more information"
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  as_fn_error $? "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir runstatedir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
done

# There might be people who depend on the old broken behavior: '$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error $? "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error $? "pwd does not report name of working directory"


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
'configure' configures this package to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print 'checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for '--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or '..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, 'make install' will install all the files in
'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than '$ac_default_prefix' using '--prefix',
for instance '--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF
_ACEOF
fi

if test -n "$ac_init_help"; then

  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-pikelib                  build pike as a library
  --disable-make.conf               do not use settings from /etc/make.conf
  --disable-binary                  do not configure for binary build, only do tests for precompilation stuff
  --disable-smartlink-binary        do not build and use the smartlink binary
  --enable-dlmalloc                 use Doug Leas malloc implementation instead of system malloc
  --enable-pedantic                 enable -pedantic compilation
  --enable-werror                   enable -Werror compilation

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-site-prefixes=path
                          :-separated list of prefixes to search for include,
                          lib and bin dirs.
  --with-exclude-site-prefixes=path
                          :-separated list of prefixes to exclude for include,
                          lib and bin dirs.
  --with-cflags=cflags              specify extra c compiler flags
  --with-cppflags=cppflags          specify extra c preprocessor flags
  --with-ldflags=ldflags            specify extra linker flags
  --with-thread-library=lib         Use a specific thread library
  --with-abi=32/64                  specify ABI to use in case there are multiple
  --with-root=path                  specify a cross-compilation root-directory
  --with-relocatable-dumped-modules make dumped modules relocatable
  --without-dynamic-modules         link modules statically
  --with-static-linking             link statically, if possible
  --with-crt=dynamic|static         force linking with dynamic or static CRT in Visual Studio
  --with-debug-crt                  compile and link with debug CRT in Visual Studio
  --with-include-path               a list of paths to search for include files.
  --with-lib-path                   a list of paths to search for libraries.
  --with-long-double-precision      use long double precision floats
  --with-double-precision           use double precision floats
  --with-long-long-int              use long long native type int
  --with-long-int                   use long native type int
  --with-int-int                    use int native type int
  --with-experimental               Enable experimental code.
  --with-cleanup-on-exit            Do full cleanup at exit to detect leaks better.
  --with-dmalloc                    Enable memory leak checks.
  --with-dmalloc-malloc             Enable overloading of malloc(3)
  --with-dmalloc-malloc-leaks       Report memory allocated by malloc(3) as leaks.
  --with-dmalloc-trace              enable tracepoints
  --with-dmalloc-c-stack-trace      record C stack traces for block allocations
  --with-dmalloc-track-free         track freed memory too
  --with-debug                      same as --with-cdebug --with-rtldebug
  --without-debug                   same as --without-cdebug --without-rtldebug
  --with-rtldebug                   enable run time self tests
  --without-cdebug                  disable -g
  --without-copt                    disable -O2
  --without-threads                 disable threads support
  --with-malloc-overhead=n          tune the malloc block overhead (default is 2 * sizeof(void *))
  --with-malloc-page-size=n         tune to the memory page size (default is 4 kb)
  --with-thread-c-stack=n           tune the thread c-stack (default is 1024 * 1024)
  --without-devpoll                 disable support for /dev/poll
  --without-gdbm                    no GNU database manager support
  --with-mpi                        enable MPI suppport
  --without-gmp                     no support for Gmp bignums
  --without-zlib                    disable gz compression support
  --without-mysql                   disable support for the Mysql database
  --with-valgrind=path              Support for running with valgrind. Implies --with-cleanup-on-exit.
                                    Specify --without-cleanup-on-exit if you do not want this.
  --with-dtrace                     embed DTrace probes
  --with-checker                    add extra memory checking overhead (Purify,Valgrind)
  --with-gcov                       compile with support for gcov (gcc-only)
  --with-profiling                  add code used to profile pike code
  --with-internal-profiling         add profiling code for various internal things
  --with-mc-stack-frames            add machine code to generate proper stack frames (X86-64 only)
  --with-pg                         use the gcc -pg option
  --with-poll                       use poll instead of select
  --with-max-fd=X                   set how many filedescriptors can be used at once
  --without-oob                     disable out-of-band data handling (INVALID)
  --with-compiler-trace             enable tracing of the compiler
  --with-keypair-loop               enable use of keypair mapping loop method.
  --with-small-eval-instruction     attempt to reduce the size of eval_instruction (EXPERIMENTAL).
  --without-machine-code            do not try to use machine code on supported architectures.

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CPP         C preprocessor
  CXXCPP      C++ preprocessor

Use these variables to override the choices made by 'configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for configure.gnu first; this name is used for a wrapper for
    # Metaconfig's "Configure" on case-insensitive file systems.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
configure
generated by GNU Autoconf 2.72

Copyright (C) 2023 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest.beam
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext
then :
  ac_retval=0
else case e in #(
  e) printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1 ;;
esac
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest.beam
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext
then :
  ac_retval=0
else case e in #(
  e) printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1 ;;
esac
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }
then :
  ac_retval=0
else case e in #(
  e) printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1 ;;
esac
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }
then :
  ac_retval=0
else case e in #(
  e) printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1 ;;
esac
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_cpp

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "$3=yes"
else case e in #(
  e) eval "$3=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 test -x conftest$ac_exeext
       }
then :
  ac_retval=0
else case e in #(
  e) printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1 ;;
esac
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_link

# ac_fn_c_try_run LINENO
# ----------------------
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
# executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }
then :
  ac_retval=0
else case e in #(
  e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
       printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status ;;
esac
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_hi=$ac_mid; break
else case e in #(
  e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  done
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
static int test_array [1 - 2 * !(($2) < 0)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_hi=-1 ac_mid=-1
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_lo=$ac_mid; break
else case e in #(
  e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  done
else case e in #(
  e) ac_lo= ac_hi= ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_hi=$ac_mid
else case e in #(
  e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
done
case $ac_lo in #((
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
'') ac_retval=1 ;;
esac
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
static long int longval (void) { return $2; }
static unsigned long int ulongval (void) { return $2; }
#include <stdio.h>
#include <stdlib.h>
int
main (void)
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (($2) < 0)
    {
      long int i = longval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
else case e in #(
  e) ac_retval=1 ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val

  fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_compute_int

# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
# ------------------------------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
ac_fn_check_decl ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  as_decl_name=`echo $2|sed 's/ *(.*//'`
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
printf %s "checking whether $as_decl_name is declared... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  eval ac_save_FLAGS=\$$6
  as_fn_append $6 " $5"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
#ifndef $as_decl_name
#ifdef __cplusplus
  (void) $as_decl_use;
#else
  (void) $as_decl_name;
#endif
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "$3=yes"
else case e in #(
  e) eval "$3=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  eval $6=\$ac_save_FLAGS
 ;;
esac
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_check_decl

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else case e in #(
  e) eval "$3=yes" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type

# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
# ----------------------------------------------------
# Tries to find if the field MEMBER exists in type AGGR, after including
# INCLUDES, setting cache variable VAR accordingly.
ac_fn_c_check_member ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
printf %s "checking for $2.$3... " >&6; }
if eval test \${$4+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main (void)
{
static $2 ac_aggr;
if (ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "$4=yes"
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main (void)
{
static $2 ac_aggr;
if (sizeof ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "$4=yes"
else case e in #(
  e) eval "$4=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
eval ac_res=\$$4
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_member

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
   which can conflict with char $2 (void); below.  */

#include <limits.h>
#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 (void);
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

int
main (void)
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "$3=yes"
else case e in #(
  e) eval "$3=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext ;;
esac
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_func
ac_configure_args_raw=
for ac_arg
do
  case $ac_arg in
  *\'*)
    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  as_fn_append ac_configure_args_raw " '$ac_arg'"
done

case $ac_configure_args_raw in
  *$as_nl*)
    ac_safe_unquote= ;;
  *)
    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
    ac_unsafe_a="$ac_unsafe_z#~"
    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
esac

cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by $as_me, which was
generated by GNU Autoconf 2.72.  Invocation command line was

  $ $0$ac_configure_args_raw

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    printf "%s\n" "PATH: $as_dir"
  done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append ac_configure_args1 " '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Sanitize IFS.
  IFS=" ""	$as_nl"
  # Save into config.log some information that might help in debugging.
  {
    echo

    printf "%s\n" "## ---------------- ##
## Cache variables. ##
## ---------------- ##"
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    printf "%s\n" "## ----------------- ##
## Output variables. ##
## ----------------- ##"
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      printf "%s\n" "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      printf "%s\n" "## ------------------- ##
## File substitutions. ##
## ------------------- ##"
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	printf "%s\n" "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      printf "%s\n" "## ----------- ##
## confdefs.h. ##
## ----------- ##"
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      printf "%s\n" "$as_me: caught signal $ac_signal"
    printf "%s\n" "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

printf "%s\n" "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
if test -n "$CONFIG_SITE"; then
  ac_site_files="$CONFIG_SITE"
elif test "x$prefix" != xNONE; then
  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
else
  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
fi

for ac_site_file in $ac_site_files
do
  case $ac_site_file in #(
  */*) :
     ;; #(
  *) :
    ac_site_file=./$ac_site_file ;;
esac
  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file" \
      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See 'config.log' for more details" "$LINENO" 5; }
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special files
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"

# Auxiliary files required by this configure script.
ac_aux_files="install-sh"

# Locations in which to look for auxiliary files.
ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."

# Search for a directory containing all of the required auxiliary files,
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
# If we don't find one directory that contains all the files we need,
# we report the set of missing files from the *first* directory in
# $ac_aux_dir_candidates and give up.
ac_missing_aux_files=""
ac_first_candidate=:
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in $ac_aux_dir_candidates
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
  as_found=:

  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
  ac_aux_dir_found=yes
  ac_install_sh=
  for ac_aux in $ac_aux_files
  do
    # As a special case, if "install-sh" is required, that requirement
    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
    # and $ac_install_sh is set appropriately for whichever one is found.
    if test x"$ac_aux" = x"install-sh"
    then
      if test -f "${as_dir}install-sh"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
        ac_install_sh="${as_dir}install-sh -c"
      elif test -f "${as_dir}install.sh"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
        ac_install_sh="${as_dir}install.sh -c"
      elif test -f "${as_dir}shtool"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
        ac_install_sh="${as_dir}shtool install -c"
      else
        ac_aux_dir_found=no
        if $ac_first_candidate; then
          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
        else
          break
        fi
      fi
    else
      if test -f "${as_dir}${ac_aux}"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
      else
        ac_aux_dir_found=no
        if $ac_first_candidate; then
          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
        else
          break
        fi
      fi
    fi
  done
  if test "$ac_aux_dir_found" = yes; then
    ac_aux_dir="$as_dir"
    break
  fi
  ac_first_candidate=false

  as_found=false
done
IFS=$as_save_IFS
if $as_found
then :

else case e in #(
  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
esac
fi


# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
if test -f "${ac_aux_dir}config.guess"; then
  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
fi
if test -f "${ac_aux_dir}config.sub"; then
  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
fi
if test -f "$ac_aux_dir/configure"; then
  ac_configure="$SHELL ${ac_aux_dir}configure"
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
	    and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




p_site_prefixes_to_add=""
p_site_prefixes_to_remove=""
eval "set ignored $ac_configure_args"
shift
for p_option; do
  echo "Option: $p_option"
  case $p_option in
    --with-site-prefixes*)
      p_useropt=`expr "x$p_option" : 'x--with-site-prefixes=\(.*\)'`
      if test "x$p_useropt" != 'x'  ; then
        p_site_prefixes_to_add="${p_site_prefixes_to_add}:${p_useropt}"
      fi
    ;;

    --with-exclude-site-prefixes*)
      p_useropt=`expr "x$p_option" : 'x--with-exclude-site-prefixes=\(.*\)'`
      if test "x$p_useropt" != 'x' ; then
        p_site_prefixes_to_remove="${p_site_prefixes_to_remove}:${p_useropt}"
      fi
    ;;
  esac
done







  CONFIG_HEADERS="machine.h"

  ac_config_headers="$ac_config_headers machine.h"





rm -f config.warnings 2>/dev/null
rm -f config.notes 2>/dev/null

force_config_cache=no

      # Check whether it would be prudent to enable
      # the configure cache.
      got_timeout()
      {
          force_config_cache=yes
      }
      trap got_timeout ALRM
      # echo;echo;echo Start timeout at: `date`; echo; echo
      # Some benchmarks:                    w/o cache   w/ cache
      #   Semi-recent Linux/x86_64: <1s     ~3min       ~1min30s
      #   Rntcl/x86_64:             48s     ~1h23min    ~47min
      #   Solaris/sparcv9@450MHz:   18s     ~1h30min    ~1h20min
      #
      # We enable use of config.cache if the initial configure
      # stuff takes more than 10s.
      sleep 10 && kill -ALRM $$ &
      timeout_pid="$!"


# We want an absolute path to the source-dir.
case "$srcdir" in
    /*)
    ;;
    *)
	oldsrcdir="$srcdir"
	srcdir="`cd \"$srcdir\";pwd`"
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Converted $oldsrcdir to $srcdir,
If this does not work, please use an absolute path to the configure script." >&5
printf "%s\n" "$as_me: WARNING: Converted $oldsrcdir to $srcdir,
If this does not work, please use an absolute path to the configure script." >&2;}
    ;;
esac

# Check that we can write to the source directory.
if touch "$srcdir/configure~"; then
  # Check that the system time is reasonably correct.
  if test `cd "$srcdir" && ls -1t configure configure~ | head -n 1` = "configure"; then
    echo "Current system time is `date`."
    as_fn_error $? "
$srcdir/configure has modification time in the future.
Check and set your system time.
" "$LINENO" 5
  fi
else
  ls -ld "$srcdir"
  as_fn_error $? "
Failed to write in source directory.
Fix your permissions.
" "$LINENO" 5
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval test \${ac_cv_prog_make_${ac_make}_set+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@echo '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make ;;
esac
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  SET_MAKE=
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi


rm -f "conftest_VPATH.in" 2>/dev/null
touch "$srcdir/conftest_VPATH.in"
if test -f conftest_VPATH.in; then :; else
  # Not building in source tree.
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports VPATH" >&5
printf %s "checking whether ${MAKE-make} supports VPATH... " >&6; }
  if test ${pike_cv_make_supports_VPATH+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat > conftestmake <<EOF
VPATH=$srcdir
.SUFFIXES: .in .out
.in.out:
	cat "\$<" >"\$@"
EOF
    pike_cv_make_supports_VPATH=no
    if ${MAKE-make} -f conftestmake conftest_VPATH.out >/dev/null 2>&5; then
      if test -f conftest_VPATH.out; then
        pike_cv_make_supports_VPATH=yes
      else :; fi
    else :; fi
    rm -f conftestmake conftest_VPATH.out
   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_make_supports_VPATH" >&5
printf "%s\n" "$pike_cv_make_supports_VPATH" >&6; }
  if test "x$pike_cv_make_supports_VPATH" = "xno"; then
    as_fn_error $? "
Building in a separate directory is not supported without VPATH.

Build in the source directory, or try another make (eg gnumake).
" "$LINENO" 5
    exit 1
  else :; fi
fi
rm -f "$srcdir/conftest_VPATH.in" 2>/dev/null

# Check whether --enable-pikelib was given.
if test ${enable_pikelib+y}
then :
  enableval=$enable_pikelib; enable_pikelib=yes
else case e in #(
  e) enable_pikelib=no ;;
esac
fi


if test "x$enable_pikelib" != "xno"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
NOTE: BUILDING PIKE AS A LIBRARY -- EXPERIMENTAL!
" >&5
printf "%s\n" "
NOTE: BUILDING PIKE AS A LIBRARY -- EXPERIMENTAL!
" >&6; }
  cat >>config.notes <<EOF
NOTE: BUILDING PIKE AS A LIBRARY -- EXPERIMENTAL!

EOF

   printf "%s\n" "#define LIBPIKE 1" >>confdefs.h

fi

# Check whether --enable-make_conf was given.
if test ${enable_make_conf+y}
then :
  enableval=$enable_make_conf;
else case e in #(
  e) enable_make_conf=yes ;;
esac
fi


initial_cflags="${CFLAGS}"
initial_cppflags="${CPPFLAGS}"
initial_ldflags="${LDFLAGS}"

if test "x${CFLAGS-}" = x ; then
  cflags_is_set=no
else
  cflags_is_set=yes
fi

if test "x${CPPFLAGS-}" = x ; then
  cppflags_is_set=no
else
  cppflags_is_set=yes
fi

if test "x${LDFLAGS-}" = x ; then
  ldflags_is_set=no
else
  ldflags_is_set=yes
fi

# if test "x$enable_make_conf" = x"yes" -a -f /etc/make.conf; then
#   set >conftest.tmp
#   echo Using settings from /etc/make.conf...
#   . /etc/make.conf
#   set | diff -u conftest.tmp -  | grep '^+C'
#   PIKE_MSG_WARN([Using settings from /etc/make.conf.])
# fi


# Check whether --with-cflags was given.
if test ${with_cflags+y}
then :
  withval=$with_cflags;  CFLAGS="$with_cflags $CFLAGS"
fi


# Check whether --with-cppflags was given.
if test ${with_cppflags+y}
then :
  withval=$with_cppflags;  CPPFLAGS="$with_cppflags $CPPFLAGS"
fi


# Check whether --with-ldflags was given.
if test ${with_ldflags+y}
then :
  withval=$with_ldflags;  LDFLAGS="$with_ldflags $LDFLAGS"
fi


# Force use of thread libs LIBS

# Check whether --with-thread-library was given.
if test ${with_thread_library+y}
then :
  withval=$with_thread_library;
	      case "x$withval" in
	        x-*)
		  with_thread_library="$withval"
		;;
		*)
		  with_thread_library="-l$withval"
		;;
	      esac

else case e in #(
  e)  with_thread_library=no  ;;
esac
fi


for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

You are using a site file to initialize configure, please
note that this can lead to problems if anything in
$ac_site_file is not correct. If Pike does not compile, or
does not run, please try this to compile Pike again:
rm -f ./config.cache ; CONFIG_SITE=x ./configure ; make
" >&5
printf "%s\n" "$as_me: WARNING:

You are using a site file to initialize configure, please
note that this can lead to problems if anything in
$ac_site_file is not correct. If Pike does not compile, or
does not run, please try this to compile Pike again:
rm -f ./config.cache ; CONFIG_SITE=x ./configure ; make
" >&2;}
  cat >>config.warnings <<EOF
WARNING: You are using a site file to initialize configure, please
note that this can lead to problems if anything in
$ac_site_file is not correct. If Pike does not compile, or
does not run, please try this to compile Pike again:
rm -f ./config.cache ; CONFIG_SITE=x ./configure ; make

EOF

  fi
done

# Check whether --enable-binary was given.
if test ${enable_binary+y}
then :
  enableval=$enable_binary;
else case e in #(
  e) enable_binary=yes ;;
esac
fi


if test "x$enable_binary" = "xno"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Short-circuiting configure tests for binary building. Only some
targets in the Makefile can be used, typically those that only
operates on the source directory, e.g. depend.
" >&5
printf "%s\n" "$as_me: WARNING:

Short-circuiting configure tests for binary building. Only some
targets in the Makefile can be used, typically those that only
operates on the source directory, e.g. depend.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Short-circuiting configure tests for binary building. Only some
targets in the Makefile can be used, typically those that only
operates on the source directory, e.g. depend.

EOF

  printf "%s\n" "#define DISABLE_BINARY 1" >>confdefs.h

else

  if test ! -z "$pike_cv_prog_CC_save" -a ! -z "$CC" -a "$CC" != "$pike_cv_prog_CC_save"
  then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

CC is different than last time Pike was compiled,
It is probably best to delete ./config.cache before proceeding.
Current CC:  $CC
Previous CC: $pike_cv_prog_CC_save
" >&5
printf "%s\n" "$as_me: WARNING:

CC is different than last time Pike was compiled,
It is probably best to delete ./config.cache before proceeding.
Current CC:  $CC
Previous CC: $pike_cv_prog_CC_save
" >&2;}
  cat >>config.warnings <<EOF
WARNING: CC is different than last time Pike was compiled,
It is probably best to delete ./config.cache before proceeding.
Current CC:  $CC
Previous CC: $pike_cv_prog_CC_save

EOF

  fi

  pike_cv_prog_CC_save="$CC"

fi

# Do the below even when --disable-binary is used, since we need a
# real $CPP, and AC_PROG_CPP wants AC_PROG_CC to be called earlier.
# $CC will be overridden with a dummy later on.

# MY_AC_PROG_CC
# The above has problems if the smartlink binary is removed. /grubba

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Workaround for COMPILER_EXEEXT bailing out with icc and too new gcc.
# "Command-line error: invalid GNU version number: 403".
# The following seem to be the max gcc-versions:
#
#   icc   gcc-version
#   8.1     340
#   9.0     400?
#   9.1     410?
if test "x$CC" = "x"; then :; else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need an icc workaround" >&5
printf %s "checking whether we need an icc workaround... " >&6; }
  if test ${pike_cv_need_icc_gcc_version+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat >conftest.c <<EOF
  int main(void) { return 0; }
EOF
    ORIG_CFLAGS="$CFLAGS"
    for pike_cv_need_icc_gcc_version in no 420 410 400 340 330 320 310 no; do
      if test "x$pike_cv_need_icc_gcc_version" = "xno"; then :; else
        CFLAGS="$ORIG_CFLAGS -gcc-version=$pike_cv_need_icc_gcc_version"
      fi
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        break;
      fi
    done
    CFLAGS="$ORIG_CFLAGS"
   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_need_icc_gcc_version" >&5
printf "%s\n" "$pike_cv_need_icc_gcc_version" >&6; }
  if test "x$pike_cv_need_icc_gcc_version" = "xno"; then :; else
    CFLAGS="$CFLAGS -gcc-version=$pike_cv_need_icc_gcc_version"
  fi
fi

# AC_PROG_CC won't modify CFLAGS if it's already set from the icc
# workaround test above, so we make sure it's always set and then
# modify CFLAGS ourselves afterwards.
: ${CFLAGS:=}




  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  fi
fi
fi ;;
esac
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
set dummy ${ac_tool_prefix}clang; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}clang"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "clang", so it can be a program name with args.
set dummy clang; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="clang"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

fi


test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See 'config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion -version; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
printf %s "checking whether the C compiler works... " >&6; }
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { { ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an '-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else case e in #(
  e) ac_file='' ;;
esac
fi
if test -z "$ac_file"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "C compiler cannot create executables
See 'config.log' for more details" "$LINENO" 5; }
else case e in #(
  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; } ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
printf %s "checking for C compiler default output file name... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
printf "%s\n" "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
printf %s "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
# work properly (i.e., refer to 'conftest.exe'), while it won't with
# 'rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi
rm -f conftest conftest$ac_cv_exeext
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
printf "%s\n" "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main (void)
{
FILE *f = fopen ("conftest.out", "w");
 if (!f)
  return 1;
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
printf %s "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See 'config.log' for more details" "$LINENO" 5; }
    fi
  fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
printf "%s\n" "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext \
  conftest.o conftest.obj conftest.out
ac_clean_files=$ac_clean_files_save
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
printf %s "checking for suffix of object files... " >&6; }
if test ${ac_cv_objext+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
then :
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else case e in #(
  e) printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of object files: cannot compile
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
printf "%s\n" "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
printf %s "checking whether the compiler supports GNU C... " >&6; }
if test ${ac_cv_c_compiler_gnu+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_compiler_gnu=yes
else case e in #(
  e) ac_compiler_gnu=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+y}
ac_save_CFLAGS=$CFLAGS
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
printf %s "checking whether $CC accepts -g... " >&6; }
if test ${ac_cv_prog_cc_g+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_g=yes
else case e in #(
  e) CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else case e in #(
  e) ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
if test $ac_test_CFLAGS; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


  if test "$ac_cv_prog_cc_g" = no; then
    # The -g test is broken for some compilers (eg ecc), since
    # they always have output (they echo the name of the source file).
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -g might not be ok after all" >&5
printf %s "checking if -g might not be ok after all... " >&6; }
    if test ${pike_cv_prog_cc_g+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      echo 'void f(){}' > conftest.c
      if test "`${CC-cc} -g -c conftest.c 2>&1`" = \
	      "`${CC-cc} -c conftest.c 2>&1`"; then
	pike_cv_prog_cc_g=yes
      else
	pike_cv_prog_cc_g=no
      fi
      rm -f conftest*
     ;;
esac
fi

    if test "$pike_cv_prog_cc_g" = "yes"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
      ac_cv_prog_cc_g=yes
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi
  fi

  if test "$ac_test_CFLAGS"; then :; else
    if test "$GCC" = yes; then
      # Remove -O2, and use a real test to restore it.
      if test "$ac_cv_prog_cc_g" = yes; then
	CFLAGS="-g"
      else
	CFLAGS=
      fi
    else :; fi
  fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we are using ICC (Intel C Compiler)" >&5
printf %s "checking if we are using ICC (Intel C Compiler)... " >&6; }
  if test ${pike_cv_prog_icc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if $CC -V 2>&1 | grep -i Intel >/dev/null; then
      pike_cv_prog_icc="yes"
    else
      pike_cv_prog_icc="no"
    fi
   ;;
esac
fi

  if test "x$pike_cv_prog_icc" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
    ICC="yes"
    # Make sure libimf et al are linked statically.
    # NB: icc 6, 7 and 8 only have static versions.
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if it is ICC 9.0 or later" >&5
printf %s "checking if it is ICC 9.0 or later... " >&6; }
    icc_version="`$CC -V 2>&1 | sed -e '/^Version /s/Version \(0-9*\)\..*/\1/p' -ed`"
    if test "0$icc_version" -ge 9; then
      if echo "$CC $LDFLAGS $LIBS" | grep " -i-" >/dev/null; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - $icc_version" >&5
printf "%s\n" "yes - $icc_version" >&6; }
      else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - $icc_version - Adding -i-static" >&5
printf "%s\n" "yes - $icc_version - Adding -i-static" >&6; }
        LDFLAGS="-i-static $LDFLAGS"
      fi
    else
      if test "x$icc_version" = x; then
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - no version information" >&5
printf "%s\n" "no - no version information" >&6; }
      else
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - $icc_version" >&5
printf "%s\n" "no - $icc_version" >&6; }
      fi
    fi
  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    ICC=no
  fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CXX+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
printf "%s\n" "$CXX" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CXX+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
printf "%s\n" "$ac_ct_CXX" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
printf %s "checking whether the compiler supports GNU C++... " >&6; }
if test ${ac_cv_cxx_compiler_gnu+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"
then :
  ac_compiler_gnu=yes
else case e in #(
  e) ac_compiler_gnu=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+y}
ac_save_CXXFLAGS=$CXXFLAGS
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
printf %s "checking whether $CXX accepts -g... " >&6; }
if test ${ac_cv_prog_cxx_g+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"
then :
  ac_cv_prog_cxx_g=yes
else case e in #(
  e) CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"
then :

else case e in #(
  e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"
then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
if test $ac_test_CXXFLAGS; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Only need to think of -g since -O2 or other optimization flags gets
# added through other configure tests.
test "$ac_cv_prog_cc_g" = yes && CFLAGS="-g $CFLAGS"

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
printf %s "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test ${ac_cv_prog_CPP+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)     # Double quotes because $CC needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else case e in #(
  e) # Broken: fails on valid input.
continue ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :
  # Broken: success on invalid input.
continue
else case e in #(
  e) # Passes both tests.
ac_preproc_ok=:
break ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok
then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP
   ;;
esac
fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
printf "%s\n" "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else case e in #(
  e) # Broken: fails on valid input.
continue ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :
  # Broken: success on invalid input.
continue
else case e in #(
  e) # Passes both tests.
ac_preproc_ok=:
break ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
printf %s "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if test ${ac_cv_prog_CXXCPP+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)     # Double quotes because $CXX needs to be expanded
    for CXXCPP in "$CXX -E" cpp /lib/cpp
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"
then :

else case e in #(
  e) # Broken: fails on valid input.
continue ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"
then :
  # Broken: success on invalid input.
continue
else case e in #(
  e) # Passes both tests.
ac_preproc_ok=:
break ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok
then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP
   ;;
esac
fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
printf "%s\n" "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"
then :

else case e in #(
  e) # Broken: fails on valid input.
continue ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"
then :
  # Broken: success on invalid input.
continue
else case e in #(
  e) # Passes both tests.
ac_preproc_ok=:
break ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; }
if test ${ac_cv_path_GREP+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in grep ggrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_GREP" || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in #(
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
#(
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in egrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in #(
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
#(
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"

         EGREP_TRADITIONAL=$EGREP
 ac_cv_path_EGREP_TRADITIONAL=$EGREP


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C" >&5
printf %s "checking whether we are using Intel C... " >&6; }


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
printf %s "checking for egrep -e... " >&6; }
if test ${ac_cv_path_EGREP_TRADITIONAL+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -z "$EGREP_TRADITIONAL"; then
  ac_path_EGREP_TRADITIONAL_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in grep ggrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
  # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*)
  ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
    "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
      ac_path_EGREP_TRADITIONAL_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_TRADITIONAL_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
    :
  fi
else
  ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi

    if test "$ac_cv_path_EGREP_TRADITIONAL"
then :
  ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
else case e in #(
  e) if test -z "$EGREP_TRADITIONAL"; then
  ac_path_EGREP_TRADITIONAL_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in egrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
  # Check for GNU $ac_path_EGREP_TRADITIONAL
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
*GNU*)
  ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
#(
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
    "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
      ac_path_EGREP_TRADITIONAL_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_TRADITIONAL_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
fi
 ;;
esac
fi ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL

if test ${pike_cv_prog_icc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(__ECC) || defined(__ICC) || defined(__INTEL_COMPILER)
  oui;
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "oui" >/dev/null 2>&1
then :
  pike_cv_prog_icc=yes
else case e in #(
  e) pike_cv_prog_icc=no ;;
esac
fi
rm -rf conftest*

 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_prog_icc" >&5
printf "%s\n" "$pike_cv_prog_icc" >&6; }
if test "$pike_cv_prog_icc" = "yes"; then
  ICC=yes
fi

#############################################################################

# Define various *_SOURCE macros to enable later POSIX versions, etc.
# NB: As these affect the visibility/availability of symbols these
#     must be defined before other probes.
ac_header= ac_cache=
for ac_item in $ac_header_c_list
do
  if test $ac_cache; then
    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
      printf "%s\n" "#define $ac_item 1" >> confdefs.h
    fi
    ac_header= ac_cache=
  elif test $ac_header; then
    ac_cache=$ac_item
  else
    ac_header=$ac_item
  fi
done








if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
then :

printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h

fi






  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if test ${ac_cv_safe_to_define___extensions__+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#         define __EXTENSIONS__ 1
          $ac_includes_default
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_safe_to_define___extensions__=yes
else case e in #(
  e) ac_cv_safe_to_define___extensions__=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
if test ${ac_cv_should_define__xopen_source+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_cv_should_define__xopen_source=no
    if test $ac_cv_header_wchar_h = yes
then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

          #include <wchar.h>
          mbstate_t x;
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

            #define _XOPEN_SOURCE 500
            #include <wchar.h>
            mbstate_t x;
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_should_define__xopen_source=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }

  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h

  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h

  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h

  if test $ac_cv_header_minix_config_h = yes
then :
  MINIX=yes
    printf "%s\n" "#define _MINIX 1" >>confdefs.h

    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h

    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h

else case e in #(
  e) MINIX= ;;
esac
fi
  if test $ac_cv_safe_to_define___extensions__ = yes
then :
  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h

fi
  if test $ac_cv_should_define__xopen_source = yes
then :
  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h

fi





  printf "%s\n" "#define POSIX_SOURCE 1" >>confdefs.h


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for level of POSIX to support" >&5
printf %s "checking for level of POSIX to support... " >&6; }
  if test ${pike_cv_posix_c_source+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    ORIG_CPPFLAGS="$CPPFLAGS"
    # NB: Older Solaris fails on attempts to enable newer POSIX
    #     than supported.
    for pike_cv_posix_c_source in 202405L 200809L 200112L 199506L 199309L 2 1; do
      CPPFLAGS="$ORIG_CPPFLAGS -D_POSIX_C_SOURCE=$pike_cv_posix_c_source"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>

_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :
  break;
fi
rm -f conftest.err conftest.i conftest.$ac_ext
    done
    CPPFLAGS="$ORIG_CPPFLAGS"
   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_posix_c_source" >&5
printf "%s\n" "$pike_cv_posix_c_source" >&6; }
  printf "%s\n" "#define _POSIX_C_SOURCE $pike_cv_posix_c_source" >>confdefs.h


  # NB: _XOPEN_SOURCE overrides _POSIX_C_SOURCE on FreeBSD 10.3.
  if test "$pike_cv_posix_c_source" = "202405L"; then
    printf "%s\n" "#define _XOPEN_SOURCE 800" >>confdefs.h

  elif test "$pike_cv_posix_c_source" = "200809L"; then
    printf "%s\n" "#define _XOPEN_SOURCE 700" >>confdefs.h

  elif test "$pike_cv_posix_c_source" = "200112L"; then
    printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h

  elif test "$pike_cv_posix_c_source" = "199506L"; then
    printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h

  else
    # Attempt XPG 4v2.
    printf "%s\n" "#define _XOPEN_SOURCE 1" >>confdefs.h

    printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h

  fi

  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _DEFAULT_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h

  # Kludge: Enable non-POSIX types in <sys/types.h> on FreeBSD 10.3.
  #         The <sys/cdefs.h> header file is broken in FreeBSD 10.3 and does not
  #         set __BSD_VISIBLE at all when _POSIX_C_SOURCE or _XOPEN_SOURCE.
  printf "%s\n" "#define __BSD_VISIBLE 1" >>confdefs.h

  # FIXME: Consider defining __STDC_WANT_LIB_EXT1__ (C11 extensions).
  #        This symbol is likely defined by C11 (and later) compilers.


if test "x$enable_binary" != "xno"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
printf %s "checking for library containing strerror... " >&6; }
if test ${ac_cv_search_strerror+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char strerror (void);
int
main (void)
{
return strerror ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' cposix
do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_strerror=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_strerror+y}
then :
  break
fi
done
if test ${ac_cv_search_strerror+y}
then :

else case e in #(
  e) ac_cv_search_strerror=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
printf "%s\n" "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no
then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi



fi

SLOW_PIKE=""

  # echo;echo;echo End timeout at: `date`; echo; echo
  kill "$timeout_pid" 2>/dev/null
  if test "x$force_config_cache" = "xyes"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
NOTE: Slow configure detected.
" >&5
printf "%s\n" "
NOTE: Slow configure detected.
" >&6; }
  cat >>config.notes <<EOF
NOTE: Slow configure detected.

EOF

      SLOW_PIKE="yes"
  fi
  if test "x$cache_file$force_config_cache" = "x/dev/nullyes"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
NOTE: Enabling the configure cache for performance reasons.
" >&5
printf "%s\n" "
NOTE: Enabling the configure cache for performance reasons.
" >&6; }
  cat >>config.notes <<EOF
NOTE: Enabling the configure cache for performance reasons.

EOF

      if test "x$CONFIG_CACHE_FILE" = "x"; then
          cache_file=./config.cache
      else
          # Cache file suggested by Xenofarm.
          cache_file="$CONFIG_CACHE_FILE"
      fi
      if test -r "$cache_file"; then
          echo "loading cache $cache_file"
          . $cache_file
      else
          echo "creating cache $cache_file"
          > $cache_file
      fi
  fi



#############################################################################

# ABI selection.


  if test "x$ac_cv_objext" = "x"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking object file extension" >&5
printf %s "checking object file extension... " >&6; }
    if test ${ac_cv_objext+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      # In autoconf 2.13 it was named ac_objext.
      ac_cv_objext="$ac_objext"
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
printf "%s\n" "$ac_cv_objext" >&6; }
  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default compiler ABI" >&5
printf %s "checking default compiler ABI... " >&6; }
  if test ${pike_cv_default_compiler_abi+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat >"conftest.$ac_ext" <<\EOF
int main(int argc, char **argv)
{
  return 0;
}
EOF
    pike_cv_default_compiler_abi="unknown"
    if (eval $ac_compile) 2>&5; then

  PIKE_filetype=`file "conftest.$ac_cv_objext" 2>/dev/null | sed -e 's/[^:]*://'`
  PIKE_filetype_L=`file -L "conftest.$ac_cv_objext" 2>/dev/null | sed -e 's/[^:]*://'`
  case "$PIKE_filetype:$PIKE_filetype_L" in
    *64-bit*)
      pike_cv_default_compiler_abi=64
      ;;
    *32-bit*)
      pike_cv_default_compiler_abi=32
      ;;
    *64*)
      pike_cv_default_compiler_abi=64
      ;;
    *32*)
      pike_cv_default_compiler_abi=32
      ;;
    *386*)
      # Probably NT or SCO file for i386:
      #   iAPX 386 executable (COFF)
      #   80386 COFF executable
      pike_cv_default_compiler_abi=32
      ;;
    *ppc*)
      # Probably 32-bit MacOS X object file:
      #   Mach-O object ppc
      pike_cv_default_compiler_abi=32
      ;;
    *"shell script"*)
      # Shell scripts do not have an ABI
      pike_cv_default_compiler_abi=noarch
      ;;
    *"script text"*)
      # Eg: "a /usr/bin/perl script text executable"
      # These do not have an ABI
      pike_cv_default_compiler_abi=noarch
      ;;
    *"ASCII text"*)
      # Eg: "C source, ASCII text"
      # These do not have an ABI
      pike_cv_default_compiler_abi=noarch
      ;;
    *)
      # Unknown. Probably cross-compiling.
      pike_cv_default_compiler_abi=noarch
      if dd if="conftest.$ac_cv_objext" count=2 bs=1 2>/dev/null | \
	grep 'L' >/dev/null; then
	# A common case is rntcl...
	# If the file begins with 0x4c 0x01 it's a 80386 COFF executable.
	pike_cv_default_compiler_abi=32
      else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Unrecognized object file format: $PIKE_filetype:$PIKE_filetype_L
" >&5
printf "%s\n" "$as_me: WARNING:

Unrecognized object file format: $PIKE_filetype:$PIKE_filetype_L
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Unrecognized object file format: $PIKE_filetype:$PIKE_filetype_L

EOF

      fi
      ;;
  esac

    fi
    rm -f conftest.$ac_cv_objext conftest.$ac_ext
   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_default_compiler_abi" >&5
printf "%s\n" "$pike_cv_default_compiler_abi" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what the native ABI is" >&5
printf %s "checking what the native ABI is... " >&6; }

  # Default to the compiler default.
  pike_cv_native_abi="$pike_cv_default_compiler_abi"

  case "x`uname -m`" in
    x*64)
      pike_cv_native_abi="64"
      ;;
    xalpha)
      pike_cv_native_abi="64"
      ;;
  esac

  if type isainfo 2>/dev/null >/dev/null; then
    # Solaris and rntcl.
    pike_cv_native_abi="`isainfo -b`"
  elif type sysctl 2>/dev/null >/dev/null; then
    # MacOS X or Linux.
    #
    # On MacOS X hw.optional.64bitop is set to 1 if
    # 64bit is supported and useful.
    if test "`sysctl -n hw.optional.64bitops 2>/dev/null`" = "1"; then
      pike_cv_native_abi="64"
    fi
    # On MacOS X hw.cpu64bit_capable is set to 1 if
    # 64bit is supported and useful.
    if test "`sysctl -n hw.cpu64bit_capable 2>/dev/null`" = "1"; then
      pike_cv_wanted_abi="64"
    fi
  fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_native_abi" >&5
printf "%s\n" "$pike_cv_native_abi" >&6; }




# Check whether --with-abi was given.
if test ${with_abi+y}
then :
  withval=$with_abi;
fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which ABI to use" >&5
printf %s "checking which ABI to use... " >&6; }
  if test ${pike_cv_wanted_abi+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    case "x$with_abi" in
      *32)
        pike_cv_wanted_abi="32"
      ;;
      *64)
        pike_cv_wanted_abi="64"
      ;;
      *)
        # Defaults
        pike_cv_wanted_abi="$pike_cv_native_abi"
        if test "x$pike_cv_wanted_abi" = "xunknown"; then
          pike_cv_wanted_abi="32"
        fi
      ;;
    esac
   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: attempt $pike_cv_wanted_abi" >&5
printf "%s\n" "attempt $pike_cv_wanted_abi" >&6; }



  if test "x$pike_cv_wanted_abi" = "x$pike_cv_default_compiler_abi"; then
    # The compiler defaults to the wanted ABI.
    pike_cv_abi="$pike_cv_wanted_abi"
  else
    if test "x$pike_cv_wanted_abi" = "x64"; then

  #
  # We want 64bit mode if possible.
  #


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -q64" >&5
printf %s "checking -q64... " >&6; }
  if test "x$pike_disabled_option_q64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_q64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -q64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_q64=yes
else case e in #(
  e) pike_cv_option_q64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_q64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_q64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_q64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_q64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_q64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_q64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_q64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_q64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_q64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_q64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_q64" = "xyes" ; then
      CC="$CC -q64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -q64"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m64" >&5
printf %s "checking -m64... " >&6; }
  if test "x$pike_disabled_option_m64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_m64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_m64=yes
else case e in #(
  e) pike_cv_option_m64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_m64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_m64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_m64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_m64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_m64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_m64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_m64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_m64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_m64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_m64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_m64" = "xyes" ; then
      CC="$CC -m64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -m64"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

  # Sun Studio 10


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -xtarget=generic64" >&5
printf %s "checking -xtarget=generic64... " >&6; }
  if test "x$pike_disabled_option_xtarget_generic64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_xtarget_generic64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xtarget=generic64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_xtarget_generic64=yes
else case e in #(
  e) pike_cv_option_xtarget_generic64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xtarget_generic64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_xtarget_generic64" = "xyes" ; then
      CC="$CC -xtarget=generic64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xtarget=generic64"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -xarch=generic64" >&5
printf %s "checking -xarch=generic64... " >&6; }
  if test "x$pike_disabled_option_xarch_generic64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_xarch_generic64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xarch=generic64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_xarch_generic64=yes
else case e in #(
  e) pike_cv_option_xarch_generic64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xarch_generic64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xarch_generic64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xarch_generic64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xarch_generic64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xarch_generic64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xarch_generic64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xarch_generic64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xarch_generic64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xarch_generic64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xarch_generic64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_xarch_generic64" = "xyes" ; then
      CC="$CC -xarch=generic64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xarch=generic64"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

  if test "$pike_cv_option_q64:$pike_cv_option_m64:$pike_cv_option_xtarget_generic64:$pike_cv_option_xarch_generic64" = "no:no:no:no"; then
    if test "x$pike_cv_default_compiler_abi" = "xunknown"; then
      :


  #
  # We want 32bit mode if possible.
  #


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -q32" >&5
printf %s "checking -q32... " >&6; }
  if test "x$pike_disabled_option_q32" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_q32+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -q32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_q32=yes
else case e in #(
  e) pike_cv_option_q32=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_q32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_q32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_q32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_q32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_q32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_q32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_q32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_q32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_q32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_q32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_q32" = "xyes" ; then
      CC="$CC -q32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -q32"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m32" >&5
printf %s "checking -m32... " >&6; }
  if test "x$pike_disabled_option_m32" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_m32+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_m32=yes
else case e in #(
  e) pike_cv_option_m32=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_m32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_m32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_m32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_m32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_m32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_m32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_m32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_m32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_m32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_m32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_m32" = "xyes" ; then
      CC="$CC -m32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -m32"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

  # Sun Studio 10


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -xtarget=generic32" >&5
printf %s "checking -xtarget=generic32... " >&6; }
  if test "x$pike_disabled_option_xtarget_generic32" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_xtarget_generic32+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xtarget=generic32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_xtarget_generic32=yes
else case e in #(
  e) pike_cv_option_xtarget_generic32=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xtarget_generic32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_xtarget_generic32" = "xyes" ; then
      CC="$CC -xtarget=generic32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xtarget=generic32"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -xarch=generic32" >&5
printf %s "checking -xarch=generic32... " >&6; }
  if test "x$pike_disabled_option_xarch_generic32" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_xarch_generic32+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xarch=generic32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_xarch_generic32=yes
else case e in #(
  e) pike_cv_option_xarch_generic32=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xarch_generic32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xarch_generic32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xarch_generic32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xarch_generic32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xarch_generic32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xarch_generic32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xarch_generic32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xarch_generic32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xarch_generic32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xarch_generic32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_xarch_generic32" = "xyes" ; then
      CC="$CC -xarch=generic32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xarch=generic32"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

  if test "$pike_cv_option_q32:$pike_cv_option_m32:$pike_cv_option_xtarget_generic32:$pike_cv_option_xarch_generic32" = "no:no:no:no"; then
    if test "x$pike_cv_default_compiler_abi" = "xunknown"; then
      :


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Found no option to force 64 bit ABI.
" >&5
printf "%s\n" "$as_me: WARNING:

Found no option to force 64 bit ABI.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Found no option to force 64 bit ABI.

EOF

          # We hope this is correct...
	  pike_cv_abi="64"

    else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&5
printf "%s\n" "$as_me: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Using compiler default ABI: $pike_cv_default_compiler_abi

EOF

      pike_cv_abi="$pike_cv_default_compiler_abi"
    fi
  else
    pike_cv_abi="32"
  fi


    else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&5
printf "%s\n" "$as_me: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Using compiler default ABI: $pike_cv_default_compiler_abi

EOF

      pike_cv_abi="$pike_cv_default_compiler_abi"
    fi
  else
    pike_cv_abi="64"
  fi

    else

  #
  # We want 32bit mode if possible.
  #


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -q32" >&5
printf %s "checking -q32... " >&6; }
  if test "x$pike_disabled_option_q32" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_q32+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -q32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_q32=yes
else case e in #(
  e) pike_cv_option_q32=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_q32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_q32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_q32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_q32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_q32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_q32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_q32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_q32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_q32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_q32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_q32" = "xyes" ; then
      CC="$CC -q32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -q32"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m32" >&5
printf %s "checking -m32... " >&6; }
  if test "x$pike_disabled_option_m32" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_m32+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_m32=yes
else case e in #(
  e) pike_cv_option_m32=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_m32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_m32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_m32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_m32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_m32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_m32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_m32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_m32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_m32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_m32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_m32" = "xyes" ; then
      CC="$CC -m32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -m32"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

  # Sun Studio 10


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -xtarget=generic32" >&5
printf %s "checking -xtarget=generic32... " >&6; }
  if test "x$pike_disabled_option_xtarget_generic32" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_xtarget_generic32+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xtarget=generic32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_xtarget_generic32=yes
else case e in #(
  e) pike_cv_option_xtarget_generic32=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xtarget_generic32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_xtarget_generic32" = "xyes" ; then
      CC="$CC -xtarget=generic32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xtarget=generic32"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -xarch=generic32" >&5
printf %s "checking -xarch=generic32... " >&6; }
  if test "x$pike_disabled_option_xarch_generic32" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_xarch_generic32+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xarch=generic32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_xarch_generic32=yes
else case e in #(
  e) pike_cv_option_xarch_generic32=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xarch_generic32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xarch_generic32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xarch_generic32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xarch_generic32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xarch_generic32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xarch_generic32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xarch_generic32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xarch_generic32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xarch_generic32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xarch_generic32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_xarch_generic32" = "xyes" ; then
      CC="$CC -xarch=generic32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xarch=generic32"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

  if test "$pike_cv_option_q32:$pike_cv_option_m32:$pike_cv_option_xtarget_generic32:$pike_cv_option_xarch_generic32" = "no:no:no:no"; then
    if test "x$pike_cv_default_compiler_abi" = "xunknown"; then
      :


  #
  # We want 64bit mode if possible.
  #


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -q64" >&5
printf %s "checking -q64... " >&6; }
  if test "x$pike_disabled_option_q64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_q64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -q64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_q64=yes
else case e in #(
  e) pike_cv_option_q64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_q64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_q64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_q64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_q64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_q64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_q64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_q64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_q64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_q64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_q64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_q64" = "xyes" ; then
      CC="$CC -q64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -q64"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m64" >&5
printf %s "checking -m64... " >&6; }
  if test "x$pike_disabled_option_m64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_m64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_m64=yes
else case e in #(
  e) pike_cv_option_m64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_m64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_m64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_m64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_m64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_m64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_m64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_m64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_m64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_m64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_m64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_m64" = "xyes" ; then
      CC="$CC -m64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -m64"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

  # Sun Studio 10


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -xtarget=generic64" >&5
printf %s "checking -xtarget=generic64... " >&6; }
  if test "x$pike_disabled_option_xtarget_generic64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_xtarget_generic64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xtarget=generic64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_xtarget_generic64=yes
else case e in #(
  e) pike_cv_option_xtarget_generic64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xtarget_generic64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_xtarget_generic64" = "xyes" ; then
      CC="$CC -xtarget=generic64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xtarget=generic64"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -xarch=generic64" >&5
printf %s "checking -xarch=generic64... " >&6; }
  if test "x$pike_disabled_option_xarch_generic64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_xarch_generic64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xarch=generic64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_xarch_generic64=yes
else case e in #(
  e) pike_cv_option_xarch_generic64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xarch_generic64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xarch_generic64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xarch_generic64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xarch_generic64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xarch_generic64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xarch_generic64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xarch_generic64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xarch_generic64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xarch_generic64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xarch_generic64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_xarch_generic64" = "xyes" ; then
      CC="$CC -xarch=generic64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xarch=generic64"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

  if test "$pike_cv_option_q64:$pike_cv_option_m64:$pike_cv_option_xtarget_generic64:$pike_cv_option_xarch_generic64" = "no:no:no:no"; then
    if test "x$pike_cv_default_compiler_abi" = "xunknown"; then
      :


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Found no option to force 32 bit ABI.
" >&5
printf "%s\n" "$as_me: WARNING:

Found no option to force 32 bit ABI.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Found no option to force 32 bit ABI.

EOF

          # We hope this is correct...
	  pike_cv_abi="32"

    else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&5
printf "%s\n" "$as_me: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Using compiler default ABI: $pike_cv_default_compiler_abi

EOF

      pike_cv_abi="$pike_cv_default_compiler_abi"
    fi
  else
    pike_cv_abi="64"
  fi


    else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&5
printf "%s\n" "$as_me: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Using compiler default ABI: $pike_cv_default_compiler_abi

EOF

      pike_cv_abi="$pike_cv_default_compiler_abi"
    fi
  else
    pike_cv_abi="32"
  fi

    fi
  fi
  if test "x$pike_cv_abi" = "x32"; then
    #
    # Make sure no later tests will add -q64 or -m64.
    #
    pike_disabled_option_q64=yes
    pike_disabled_option_m64=yes
  fi

  echo
  echo "Using ABI $pike_cv_abi."
  echo

  # ABI-dirs
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ABI lib-suffixes" >&5
printf %s "checking for ABI lib-suffixes... " >&6; }
  if test ${pike_cv_abi_suffixes+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    extra_abi_dirs=""
    if type isainfo 2>/dev/null >/dev/null; then
      # Solaris
      # Some installations lack the symlink 64 -> amd64 or sparcv9,
      # or the corresponding 32 link.
      extra_abi_dirs=`isainfo -v 2>/dev/null|awk "/$pike_cv_abi"'-bit/ { print "/" $2 }'`
    fi
    if test "x`uname -p`" = "xpowerpc"; then
      # MacOS X
      # The 64-bit libraries are typically in the subdirectory ppc64.
      extra_abi_dirs="$extra_abi_dirs /ppc$pike_cv_abi"
    fi
    pike_cv_abi_suffixes="$pike_cv_abi /$pike_cv_abi $extra_abi_dirs /."
   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_abi_suffixes" >&5
printf "%s\n" "$pike_cv_abi_suffixes" >&6; }

  # Prefix for pkg-config and other tools that don't support multiple ABIs
  # natively.
  if test "x$ac_tool_prefix" = x; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For $pike_cv_abi-bit ABI tool prefix" >&5
printf %s "checking For $pike_cv_abi-bit ABI tool prefix... " >&6; }
    if test ${pike_cv_tool_prefix+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      SAVE_IFS="$IFS"
      IFS=":"
      file_abi=""
      pike_cv_tool_prefix=no
      for d in $PATH; do
	IFS="$SAVE_IFS"
	for f in "$d/pkg-config$exeext" "$d/"*-pkg-config"$exeext"; do
	  if test -f "$f"; then

  PIKE_filetype=`file ""$f"" 2>/dev/null | sed -e 's/[^:]*://'`
  PIKE_filetype_L=`file -L ""$f"" 2>/dev/null | sed -e 's/[^:]*://'`
  case "$PIKE_filetype:$PIKE_filetype_L" in
    *64-bit*)
      file_abi=64
      ;;
    *32-bit*)
      file_abi=32
      ;;
    *64*)
      file_abi=64
      ;;
    *32*)
      file_abi=32
      ;;
    *386*)
      # Probably NT or SCO file for i386:
      #   iAPX 386 executable (COFF)
      #   80386 COFF executable
      file_abi=32
      ;;
    *ppc*)
      # Probably 32-bit MacOS X object file:
      #   Mach-O object ppc
      file_abi=32
      ;;
    *"shell script"*)
      # Shell scripts do not have an ABI
      file_abi=noarch
      ;;
    *"script text"*)
      # Eg: "a /usr/bin/perl script text executable"
      # These do not have an ABI
      file_abi=noarch
      ;;
    *"ASCII text"*)
      # Eg: "C source, ASCII text"
      # These do not have an ABI
      file_abi=noarch
      ;;
    *)
      # Unknown. Probably cross-compiling.
      file_abi=noarch
      if dd if=""$f"" count=2 bs=1 2>/dev/null | \
	grep 'L' >/dev/null; then
	# A common case is rntcl...
	# If the file begins with 0x4c 0x01 it's a 80386 COFF executable.
	file_abi=32
      else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Unrecognized object file format: $PIKE_filetype:$PIKE_filetype_L
" >&5
printf "%s\n" "$as_me: WARNING:

Unrecognized object file format: $PIKE_filetype:$PIKE_filetype_L
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Unrecognized object file format: $PIKE_filetype:$PIKE_filetype_L

EOF

      fi
      ;;
  esac

	    if test "x$file_abi" = "x$pike_cv_abi"; then
	      pike_cv_tool_prefix=`echo "$f" | sed -e 's|.*/||g' -e 's|pkg-config.*||'`
	      break;
	    fi
	  fi
	done
        if test -h "$d/pkg-config" && readlink >/dev/null 2>&1 "$d/pkg-config"; then
          link_target=`readlink "$d/pkg-config"`
          case "$link_target" in
            /*) ;;
            *) link_target="$d/$link_target";;
          esac
          case "$link_target" in
            *-pkg-config"$exeext")

  PIKE_filetype=`file ""$link_target"" 2>/dev/null | sed -e 's/[^:]*://'`
  PIKE_filetype_L=`file -L ""$link_target"" 2>/dev/null | sed -e 's/[^:]*://'`
  case "$PIKE_filetype:$PIKE_filetype_L" in
    *64-bit*)
      file_abi=64
      ;;
    *32-bit*)
      file_abi=32
      ;;
    *64*)
      file_abi=64
      ;;
    *32*)
      file_abi=32
      ;;
    *386*)
      # Probably NT or SCO file for i386:
      #   iAPX 386 executable (COFF)
      #   80386 COFF executable
      file_abi=32
      ;;
    *ppc*)
      # Probably 32-bit MacOS X object file:
      #   Mach-O object ppc
      file_abi=32
      ;;
    *"shell script"*)
      # Shell scripts do not have an ABI
      file_abi=noarch
      ;;
    *"script text"*)
      # Eg: "a /usr/bin/perl script text executable"
      # These do not have an ABI
      file_abi=noarch
      ;;
    *"ASCII text"*)
      # Eg: "C source, ASCII text"
      # These do not have an ABI
      file_abi=noarch
      ;;
    *)
      # Unknown. Probably cross-compiling.
      file_abi=noarch
      if dd if=""$link_target"" count=2 bs=1 2>/dev/null | \
	grep 'L' >/dev/null; then
	# A common case is rntcl...
	# If the file begins with 0x4c 0x01 it's a 80386 COFF executable.
	file_abi=32
      else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Unrecognized object file format: $PIKE_filetype:$PIKE_filetype_L
" >&5
printf "%s\n" "$as_me: WARNING:

Unrecognized object file format: $PIKE_filetype:$PIKE_filetype_L
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Unrecognized object file format: $PIKE_filetype:$PIKE_filetype_L

EOF

      fi
      ;;
  esac

               if test "x$file_abi" = "x$pike_cv_abi"; then
                 pike_cv_tool_prefix=`echo "$link_target" | sed -e 's|.*/||g' -e 's|pkg-config.*||'`
               fi;;
            *-pkgconf"$exeext")

  PIKE_filetype=`file ""$link_target"" 2>/dev/null | sed -e 's/[^:]*://'`
  PIKE_filetype_L=`file -L ""$link_target"" 2>/dev/null | sed -e 's/[^:]*://'`
  case "$PIKE_filetype:$PIKE_filetype_L" in
    *64-bit*)
      file_abi=64
      ;;
    *32-bit*)
      file_abi=32
      ;;
    *64*)
      file_abi=64
      ;;
    *32*)
      file_abi=32
      ;;
    *386*)
      # Probably NT or SCO file for i386:
      #   iAPX 386 executable (COFF)
      #   80386 COFF executable
      file_abi=32
      ;;
    *ppc*)
      # Probably 32-bit MacOS X object file:
      #   Mach-O object ppc
      file_abi=32
      ;;
    *"shell script"*)
      # Shell scripts do not have an ABI
      file_abi=noarch
      ;;
    *"script text"*)
      # Eg: "a /usr/bin/perl script text executable"
      # These do not have an ABI
      file_abi=noarch
      ;;
    *"ASCII text"*)
      # Eg: "C source, ASCII text"
      # These do not have an ABI
      file_abi=noarch
      ;;
    *)
      # Unknown. Probably cross-compiling.
      file_abi=noarch
      if dd if=""$link_target"" count=2 bs=1 2>/dev/null | \
	grep 'L' >/dev/null; then
	# A common case is rntcl...
	# If the file begins with 0x4c 0x01 it's a 80386 COFF executable.
	file_abi=32
      else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Unrecognized object file format: $PIKE_filetype:$PIKE_filetype_L
" >&5
printf "%s\n" "$as_me: WARNING:

Unrecognized object file format: $PIKE_filetype:$PIKE_filetype_L
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Unrecognized object file format: $PIKE_filetype:$PIKE_filetype_L

EOF

      fi
      ;;
  esac

               if test "x$file_abi" = "x$pike_cv_abi"; then
                 pike_cv_tool_prefix=`echo "$link_target" | sed -e 's|.*/||g' -e 's|pkgconf.*||'`
               fi;;
          esac
        fi
        if test "x$pike_cv_tool_prefix" = xno; then :; else
	  break;
	fi
      done
      IFS="$SAVE_IFS"
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_tool_prefix" >&5
printf "%s\n" "$pike_cv_tool_prefix" >&6; }
    if test "x$pike_cv_tool_prefix" = "xno"; then
      pike_cv_tool_prefix=""
    fi
  else
    pike_cv_tool_prefix="$ac_tool_prefix"
  fi

  # Compat
  with_abi="$pike_cv_abi"

ABI=${pike_cv_abi}

#############################################################################

if test "x$GCC" = "x"; then
  GCC=no
else
  :;
fi

if test "x$GCC" = "xno"; then

  if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes"; then
    # The AIX 5L/cc beta can not generate working binaries without a
    # data-segment...
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we are really using a cross-compiler" >&5
printf %s "checking if we are really using a cross-compiler... " >&6; }

    if test ${pike_cv_datasegment_required+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)

if [ -n "${ac_cv_prog_cc_cross}" -o -z "${cross_compiling}" ]; then
ac_cv_prog_cc_cross=no; else cross_compiling=no; fi

      if test "$cross_compiling" = yes
then :

        pike_cv_datasegment_required=no

if [ -n "${ac_cv_prog_cc_cross}" -o -z "${cross_compiling}" ]; then
ac_cv_prog_cc_cross=yes; else cross_compiling=yes; fi


else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo;main(void){return(0);}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :

        pike_cv_datasegment_required=yes

else case e in #(
  e)
        pike_cv_datasegment_required=no

if [ -n "${ac_cv_prog_cc_cross}" -o -z "${cross_compiling}" ]; then
ac_cv_prog_cc_cross=yes; else cross_compiling=yes; fi

       ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

     ;;
esac
fi

    if test "x$pike_cv_datasegment_required" = "xyes"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- Applying data-segment kludge" >&5
printf "%s\n" "no -- Applying data-segment kludge" >&6; }

if [ -n "${ac_cv_prog_cc_cross}" -o -z "${cross_compiling}" ]; then
ac_cv_prog_cc_cross=no; else cross_compiling=no; fi

      cat >conftest.c <<EOF
static int foo;
EOF
      pike_cv_datasegemnt_file=no
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  rm -f "data-segment.$ac_objext"
	  if mv "conftest.$ac_objext" "data-segment.$ac_objext"; then
	    if test -f "`pwd`/data-segment.$ac_objext"; then
	      pike_cv_datasegemnt_file="`pwd`/data-segment.$ac_objext"
	    else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Lost track of data-segment kludge-file.
" >&5
printf "%s\n" "$as_me: WARNING:

Lost track of data-segment kludge-file.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Lost track of data-segment kludge-file.

EOF

	    fi
	  else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Failed to rename data-segment kludge-file.
" >&5
printf "%s\n" "$as_me: WARNING:

Failed to rename data-segment kludge-file.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Failed to rename data-segment kludge-file.

EOF

	  fi
	else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Can not find data-segment kludgefile.
" >&5
printf "%s\n" "$as_me: WARNING:

Can not find data-segment kludgefile.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Can not find data-segment kludgefile.

EOF

	fi
      else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Failed to compile data-segment kludge.
" >&5
printf "%s\n" "$as_me: WARNING:

Failed to compile data-segment kludge.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Failed to compile data-segment kludge.

EOF

      fi
      if test "x$pike_cv_datasegment_file" = "xno"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Some tests may yield false results.
" >&5
printf "%s\n" "$as_me: WARNING:

Some tests may yield false results.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Some tests may yield false results.

EOF

      else
        LIBS="$pike_cv_datasegment_file $LIBS"
	export LIBS

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Data-segment kludge applied.
" >&5
printf "%s\n" "$as_me: WARNING:

Data-segment kludge applied.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Data-segment kludge applied.

EOF

      fi
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
    fi
  fi
else :; fi

#############################################################################

if test "x$enable_binary" != "xno"; then

#
# The purpose of this test is to check that there is no filesystem
# caching preventing pike from compiling correctly.
#
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem synchronization" >&5
printf %s "checking filesystem synchronization... " >&6; }

if test ${pike_cv_filesystem_syncronization+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  pike_cv_filesystem_syncronization=working

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 true
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "true" >/dev/null 2>&1
then :

else case e in #(
  e) pike_cv_filesystem_syncronization=broken ;;
esac
fi
rm -rf conftest*

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 false
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "false" >/dev/null 2>&1
then :

else case e in #(
  e) pike_cv_filesystem_syncronization=broken ;;
esac
fi
rm -rf conftest*

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 oui
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "oui" >/dev/null 2>&1
then :

else case e in #(
  e) pike_cv_filesystem_syncronization=broken ;;
esac
fi
rm -rf conftest*

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 no
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "no" >/dev/null 2>&1
then :

else case e in #(
  e) pike_cv_filesystem_syncronization=broken ;;
esac
fi
rm -rf conftest*

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 far
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "near" >/dev/null 2>&1
then :
  pike_cv_filesystem_syncronization=broken
fi
rm -rf conftest*

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 up
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "up" >/dev/null 2>&1
then :

else case e in #(
  e) pike_cv_filesystem_syncronization=broken ;;
esac
fi
rm -rf conftest*

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 down
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "down" >/dev/null 2>&1
then :

else case e in #(
  e) pike_cv_filesystem_syncronization=broken ;;
esac
fi
rm -rf conftest*

 ;;
esac
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_filesystem_syncronization" >&5
printf "%s\n" "$pike_cv_filesystem_syncronization" >&6; }
if test "x$pike_cv_filesystem_syncronization" = xbroken ; then
  as_fn_error $? "Filesystem caching is too aggressive. If you are using
Samba, make sure to have the following line in your smb.conf:
oplocks = False
" "$LINENO" 5
  exit 1
fi

fi

#############################################################################

LIBDIR=`(cd $srcdir/../lib ; pwd)`
BINDIR=`(cd $srcdir/../bin ; pwd)`
MANDIR=`(cd $srcdir/../man ; pwd)`
DOCDIR=`(cd $srcdir/../refdoc ; pwd)`
BASEDIR=`(cd $srcdir/.. ; pwd)`
BUILDDIR=`pwd`







#############################################################################

#
# Some cross-compilation support and --disable-binary stuff
#

if test "x$enable_binary" = "xno"; then
  CROSS=yes
else
  CROSS="${ac_cv_prog_cc_cross:-${cross_compiling}}"
fi


if test "x$enable_binary" = "xno"; then
  CC="$BINDIR/nobinary_dummy cc"
  RUNPIKE="USE_PIKE"
  RUNTPIKE="USE_PIKE"
elif test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes"; then
  RUNPIKE="DEFAULT_RUNPIKE"
  RUNTPIKE="USE_PIKE"
else
  RUNPIKE="DEFAULT_RUNPIKE"
  RUNTPIKE="USE_TPIKE"
fi



#############################################################################
if test "x$enable_binary" != "xno"; then
# The following tests are only relevant if we intend to build binaries.
#############################################################################


  if test "x$enable_binary" != "xno"; then

  test "x" != x && pike_cv_funcs_need_decls=""
  if test "x$pike_cv_funcs_need_decls" = xyes; then
    cat > hdrlist.h <<EOF
/* Some C89 header files. */
#include <math.h>
#include <signal.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

EOF
  fi



  ac_fn_c_check_header_compile "$LINENO" "fnord/fnord/fnord.h" "ac_cv_header_fnord_fnord_fnord_h" "$ac_includes_default"
if test "x$ac_cv_header_fnord_fnord_fnord_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "fnord/fnord/fnord.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <fnord/fnord/fnord.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_FNORD_FNORD_FNORD_H 1" >>confdefs.h


fi


  else
    for ac_hdr in fnord/fnord/fnord.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CHECK_HEADERS works" >&5
printf %s "checking if CHECK_HEADERS works... " >&6; }
if test "x$ac_cv_header_fnord_fnord_fnord_h" = xyes ; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
  exit 1
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can allocate large auto variables" >&5
printf %s "checking if we can allocate large auto variables... " >&6; }
if test ${pike_cv_C_supports_large_auto+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
    int eat_stack(int foo)
    {
      char large_array[131072] = "";
      int i, sum = 0;

      for (i = 0; i < foo; i++) {
        /* Make sure the compiler does not optimize away the array. */
	large_array[i] = sum;
	sum += foo;
      }
      for (i = 0; i < foo; i++) {
        sum += large_array[i] - large_array[foo-1-i];
      }
      return sum;
    }

int
main (void)
{

    return !eat_stack(4711);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

    pike_cv_C_supports_large_auto=yes

else case e in #(
  e)
    pike_cv_C_supports_large_auto=no
   ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
 ;;
esac
fi

if test "$pike_cv_C_supports_large_auto" = "yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - good" >&5
printf "%s\n" "yes - good" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make a workaround by defining _chkstk to call __chkstk" >&5
printf %s "checking if we can make a workaround by defining _chkstk to call __chkstk... " >&6; }
  if test ${pike_cv_kludge__chkstk+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
      int eat_stack(int foo)
      {
  	char large_array[131072] = "";
  	int i, sum = 0;

  	for (i = 0; i < foo; i++) {
  	  /* Make sure the compiler does not optimize away the array. */
  	  large_array[i] = sum;
  	  sum += foo;
  	}
  	for (i = 0; i < foo; i++) {
  	  sum += large_array[i] - large_array[foo-1-i];
  	}
  	return sum;
      }

      extern size_t __chkstk(void);
      size_t _chkstk(void) { return __chkstk(); }


int
main (void)
{

      return !eat_stack(4711);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

      pike_cv_kludge__chkstk=yes

else case e in #(
  e)
      pike_cv_kludge__chkstk=no
     ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
   ;;
esac
fi

  if test "$pike_cv_kludge__chkstk" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - applying workaround" >&5
printf "%s\n" "yes - applying workaround" >&6; }
    printf "%s\n" "#define HAVE_BROKEN_CHKSTK 1" >>confdefs.h

  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    as_fn_error $? "Your C compiler does not link code that uses large auto variables.

Please check config.log, and fix the problem." "$LINENO" 5
    exit 1
  fi
fi

#############################################################################

## Build smartlink
# Check whether --enable-smartlink_binary was given.
if test ${enable_smartlink_binary+y}
then :
  enableval=$enable_smartlink_binary; if test "x$enableval" = "xno"; then
                 force_smartlink_script_only=yes
               fi
fi


if test -x /usr/bin/uname 2>/dev/null; then
  UNAME=`/usr/bin/uname -sr`
elif test -x /bin/uname 2>/dev/null; then
  UNAME=`/bin/uname -sr`
else
  UNAME=unknown
fi

# We need some special hacks when running slowaris and winblows.

  # Extract the first word of "uname", so it can be a program name with args.
set dummy uname; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_uname_prog+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $uname_prog in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_uname_prog="$uname_prog" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_uname_prog="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_uname_prog" && ac_cv_path_uname_prog="no"
  ;;
esac ;;
esac
fi
uname_prog=$ac_cv_path_uname_prog
if test -n "$uname_prog"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $uname_prog" >&5
printf "%s\n" "$uname_prog" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
printf %s "checking operating system... " >&6; }
  if test ${pike_cv_sys_os+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "${ac_cv_prog_cc_cross:-${cross_compiling}}" = "yes"; then
      case "$host_alias" in
	*amigaos*)	pike_cv_sys_os="AmigaOS";;
	*linux*)	pike_cv_sys_os="Linux";;
	*solaris*)	pike_cv_sys_os="Solaris";;
	*sunos*)	pike_cv_sys_os="SunOS";;
	*windows*)	pike_cv_sys_os="Windows_NT";;
	*mingw*|*MINGW*)
			pike_cv_sys_os="Windows_NT"
			pike_cv_is_mingw="yes";;
	*)		pike_cv_sys_os="Unknown";;
      esac
    elif test "$uname_prog" != "no"; then
      # uname on UNICOS doesn't work like other people's uname...
      if getconf CRAY_RELEASE >/dev/null 2>&1; then
	pike_cv_sys_os="UNICOS"
      else
	pike_cv_sys_os="`uname`"
      fi

      case "$pike_cv_sys_os" in
	SunOS)
	  case "`uname -r`" in
	    5.*) pike_cv_sys_os="Solaris" ;;
	  esac
	  ;;
	Monterey64)
	  # According to the release notes, the string "Monterey64"
	  # will be changed to "AIX" in the final release.
	  # (Monterey 64 is also known as AIX 5L).
	  pike_cv_sys_os="AIX"
	;;
	*Windows*|*windows*)
	  pike_cv_sys_os="Windows_NT"
	;;
	*MINGW*|*mingw*)
	  pike_cv_is_mingw="yes"
	  pike_cv_sys_os="Windows_NT"
	;;
      esac
    else
      pike_cv_sys_os="Not Solaris"
    fi
   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_sys_os" >&5
printf "%s\n" "$pike_cv_sys_os" >&6; }


if test "x$pike_cv_sys_os" = xWindows_NT; then

  test "xyes" != x && pike_cv_funcs_need_decls="yes"
  if test "x$pike_cv_funcs_need_decls" = xyes; then
    cat > hdrlist.h <<EOF
/* Some C89 header files. */
#include <math.h>
#include <signal.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

EOF
  fi

fi


  if test "x$enable_binary" != "xno"; then


  ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "unistd.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <unistd.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_stat_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/stat.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/stat.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_types_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/types.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/types.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h


fi


  else
    for ac_hdr in unistd.h sys/stat.h sys/types.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi


if test "$GCC" = "yes"; then :; else
#
# Special hack for HP-UX stupid cc
#
  if test "$pike_cv_sys_os" = "HP-UX"; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo(int bar);
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else case e in #(
  e)
      OLD_CC="${CC-cc}"
      OLD_CFLAGS="$CFLAGS"
      case "/$CC" in
        */smartlink\ cc)
           if test -x /usr/bin/cc; then
	     CC="`echo $CC|sed -e 's/ cc/ \/usr\/bin\/cc/'`"
           else
             : ;
           fi
        ;;
      esac
      CFLAGS="-Ae +Olibcalls $CFLAGS"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo(int bar);
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else case e in #(
  e)
        CC="$OLD_CC"
	CFLAGS="$OLD_CFLAGS"
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      pike_cv_prog_CC="${CC}"
     ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  fi
fi

if test "$pike_cv_sys_os" = "Solaris" ; then
  printf "%s\n" "#define SOLARIS 1" >>confdefs.h

else
  :
fi

# Workaround for compiling Pike on some OS that have some clues
case "$pike_cv_sys_os" in
   CYGWIN*)
      # Cygwin has both Windows includes and Unix ones.
      # Hiding them makes it a somewhat Unix compliant OS.
      echo 'Cygwin host detected. Enabling workarounds...'
      # winsock.h, winbase.h, winsock2.h, windows.h, wingdi.h, windef.h
      # are part of VC api but given as headers in cygwin. We
      # should not detect them when using cygwin
      ac_cv_header_wingdi_h="no"
      ac_cv_header_windef_h="no"
      ac_cv_header_winsock_h="no"
      ac_cv_header_winsock2_h="no"
      ac_cv_header_winbase_h="no"
      ac_cv_header_windows_h="no"
      with_machine_code="no"
   ;;
  Windows_NT)
   if test "$pike_cv_is_mingw" = "yes"; then
     #with_machine_code="no"
     ac_cv_func_fpclass="no"
   fi
   ;;
  FreeBSD*)
      # FreeBSD has different naming convention for gtk-config and sdl-config
      if test "x${GTK_CONFIG}" = "x"; then
         GTK_CONFIG=`which ${ac_tool_prefix}gtk12-config`
         export GTK_CONFIG
      fi
      if test "x${SDL_CONFIG}" = "x"; then
         SDL_CONFIG=`which ${ac_tool_prefix}sdl11-config`
	 export SDL_CONFIG
      fi
   ;;
  Darwin*)
   # macOS lacks prototypes for these with _POSIX_C_SOURCE
   ac_cv_func_getpagesize="no"
   ac_cv_func_chroot="no"
   ;;
esac

# Skip if user does not wish to use smartlink binary.
if test "x$force_smartlink_script_only" = "x"; then
# Strip smartlink and arguments from $CC
REALCC="`echo $CC|sed -e 's/.*smartlink *//'`";
RAWCC="`echo $REALCC|sed -e 's/ .*//g'`"


# FIXME: Add proper tests
#
# Supported methods:
#
#   Environment variable based:
#     ld_library_path:	LD_LIBRARY_PATH=<rpath>
#
#   Compiler option based:
#     qoption:		-Qoption,ld,-rpath,<rpath>
#     r:		-R<rpath>
#     rpath:		-rpath <rpath>
#     wl:		-Wl,-rpath,<rpath>
#     wl_r:		-Wl,-R<rpath>
#     darwin_rpath:	-Wl,-rpath,<rpath>
#     plus_b:		+b <rpath>
#     yp_:		-YP, <rpath>
#     xlinker_yp_:	-Xlinker -YP, -Xlinker <rpath>

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld.so run path method" >&5
printf %s "checking for ld.so run path method... " >&6; }
if test ${pike_cv_ld_so_run_path_method+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  case "$UNAME" in
    OSF1\ V4.*|OSF1\ V5.*|OSF1\ V6.*)
      pike_cv_run_path_method=rpath
    ;;
    HPUX\ 11.*)
      pike_cv_run_path_method=plus_b
    ;;
    SunOS\ 5.*)
      pike_cv_run_path_method=r
    ;;
    Linux\ 1.*)
      pike_cv_run_path_method=ld_library_path
    ;;
    Linux* | GNU/kFreeBSD* )
      if test "$ICC" = "yes"; then
        # icc or ecc.
        pike_cv_run_path_method=qoption
      else
        pike_cv_run_path_method=wl
      fi
    ;;
    UnixWare\ 7.*|OpenUNIX\ 8.*)
      if test "$ac_cv_c_compiler_gnu" = "yes"; then
        pike_cv_run_path_method=xlinker_yp_
      else
        pike_cv_run_path_method=yp_
      fi
    ;;
    Darwin\ *|NetBSD\ *|FreeBSD\ *|OpenBSD\ *)
      pike_cv_run_path_method=darwin_rpath
    ;;
    Haiku\ *|BeOS\ *)
      pike_cv_run_path_method=wl
    ;;
    *)
      pike_cv_run_path_method=ld_library_path
    ;;
  esac
 ;;
esac
fi

case "$pike_cv_run_path_method" in
  rpath)
    printf "%s\n" "#define USE_RPATH 1" >>confdefs.h

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use -rpath" >&5
printf "%s\n" "use -rpath" >&6; }
  ;;
  plus_b)
    printf "%s\n" "#define USE_PLUS_b 1" >>confdefs.h

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use +b" >&5
printf "%s\n" "use +b" >&6; }
  ;;
  yp_)
    printf "%s\n" "#define USE_YP_ 1" >>confdefs.h

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use -Yp," >&5
printf "%s\n" "use -Yp," >&6; }
  ;;
  xlinker_yp_)
    printf "%s\n" "#define USE_XLINKER_YP_ 1" >>confdefs.h

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use -Xlinker -Yp, -Xlinker" >&5
printf "%s\n" "use -Xlinker -Yp, -Xlinker" >&6; }
  ;;
  wl_r)
    printf "%s\n" "#define USE_Wl_R 1" >>confdefs.h

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use -Wl,-R" >&5
printf "%s\n" "use -Wl,-R" >&6; }
  ;;
  r)
    printf "%s\n" "#define USE_R 1" >>confdefs.h

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use -R" >&5
printf "%s\n" "use -R" >&6; }
  ;;
  wl)
    printf "%s\n" "#define USE_Wl 1" >>confdefs.h

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use -Wl,-rpath" >&5
printf "%s\n" "use -Wl,-rpath" >&6; }
  ;;
   darwin_rpath)
    printf "%s\n" "#define USE_Wl_rpath_darwin 1" >>confdefs.h

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use -Wl,-rpath (Darwin-style)" >&5
printf "%s\n" "use -Wl,-rpath (Darwin-style)" >&6; }
  ;;
  qoption)
    printf "%s\n" "#define USE_Qoption 1" >>confdefs.h

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use -Qoption,ld,-rpath" >&5
printf "%s\n" "use -Qoption,ld,-rpath" >&6; }
  ;;
  ld_library_path|*)
    printf "%s\n" "#define USE_LD_LIBRARY_PATH 1" >>confdefs.h

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use LD_LIBRARY_PATH/LD_RUN_PATH" >&5
printf "%s\n" "use LD_LIBRARY_PATH/LD_RUN_PATH" >&6; }
  ;;
esac

# Smartlink needs to know if OS X uses flat or two-level namespace
if test "$pike_cv_sys_os" = "Darwin" ; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Darwin linker namespace" >&5
printf %s "checking for Darwin linker namespace... " >&6; }

  if test ${pike_cv_osx_deployment_target+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "x$MACOSX_DEPLOYMENT_TARGET" = "x"; then
      case "`uname -r`" in
        [1-6].*)
          pike_cv_osx_deployment_target=no
        ;;
        [7-9].*|1[0-2].*)
          # Darwin 7 - 12 (aka Mac OS X 10.3 - 10.8).
          # Needs to be 10.3 or better for ld to accept
          # "-undefined dynamic_lookup"
          pike_cv_osx_deployment_target=10.3
        ;;
        1[3-9].*)
          # Darwin 13 - 19 (aka Mac OS X 10.9 - 10.15).
          # C++ Name mangling changed here, need to be able to interoperate
          # with modern libs
          pike_cv_osx_deployment_target=10.9
        ;;
        *)
          # Darwin 20 or later (aka Mac OS X 11.0 or later).
          # Third party libraries are typically compiled for the major.0.
          # This is also what the compiler typically defaults to.
          pike_cv_osx_deployment_target="`sw_vers -productVersion | cut -d. -f1`.0"
        ;;
      esac
    else
        pike_cv_osx_deployment_target="$MACOSX_DEPLOYMENT_TARGET"
    fi
   ;;
esac
fi

  if test "x$pike_cv_osx_deployment_target" = "xno"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: flat (10.2 or older)" >&5
printf "%s\n" "flat (10.2 or older)" >&6; }
  else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: two-level (${pike_cv_osx_deployment_target} or newer)" >&5
printf "%s\n" "two-level (${pike_cv_osx_deployment_target} or newer)" >&6; }
      printf "%s\n" "#define USE_OSX_TWOLEVEL_NAMESPACE ${pike_cv_osx_deployment_target}" >>confdefs.h

  fi
fi

# Fix a smartlink
SMARTLINK="$BUILDDIR/smartlink"

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $SMARTLINK exists is up to date and works" >&5
printf %s "checking if $SMARTLINK exists is up to date and works... " >&6; }
if ls -1tr "$SMARTLINK${ac_exeext}" "$srcdir/smartlink.$ac_ext" 2>/dev/null | head -n 1 | grep "smartlink.$ac_ext" >/dev/null 2>&5 && "$SMARTLINK" -v >/dev/null 2>&5; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
  SMARTBUILDCC="${REALCC-cc}"

  if echo foo "$CC" | $EGREP 'rntc.|rnt.cl' >/dev/null; then
    echo "NOTE: rntcc/rntcl/rnticl/rntecl detected."
    for ac_prog in gcc cc egcs
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_SMARTBUILDCC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $SMARTBUILDCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SMARTBUILDCC="$SMARTBUILDCC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_SMARTBUILDCC="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
SMARTBUILDCC=$ac_cv_path_SMARTBUILDCC
if test -n "$SMARTBUILDCC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SMARTBUILDCC" >&5
printf "%s\n" "$SMARTBUILDCC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$SMARTBUILDCC" && break
done
test -n "$SMARTBUILDCC" || SMARTBUILDCC="gcc"

    echo Using $SMARTBUILDCC to compile smartlink.
  elif test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Crosscompiler detected.
" >&5
printf "%s\n" "$as_me: WARNING:

Crosscompiler detected.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Crosscompiler detected.

EOF

    for ac_prog in gcc cc egcs
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_SMARTBUILDCC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $SMARTBUILDCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SMARTBUILDCC="$SMARTBUILDCC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="/usr/bin:/bin/:/usr/ccs/bin:/usr/local/bin:/usr/pkg/bin:/opt/pkg/bin:/usr/sfw/bin:/opt/sfw/bin:/opt/csw/bin:$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_SMARTBUILDCC="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
SMARTBUILDCC=$ac_cv_path_SMARTBUILDCC
if test -n "$SMARTBUILDCC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SMARTBUILDCC" >&5
printf "%s\n" "$SMARTBUILDCC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$SMARTBUILDCC" && break
done
test -n "$SMARTBUILDCC" || SMARTBUILDCC="gcc"

    echo Using $SMARTBUILDCC to compile smartlink.
  fi

  rm -f "$SMARTLINK"

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether smartlink compiles" >&5
printf %s "checking whether smartlink compiles... " >&6; }

  link_cmd='${SMARTBUILDCC-cc} -o smartlink${ac_exeext} $CFLAGS -I. $CPPFLAGS $LDFLAGS $srcdir/smartlink.$ac_ext $LIBS 2>&5'
  if { (eval echo Compiling smartlink: \"$link_cmd\") 1>&5; (eval $link_cmd) 2>&5; } && "$BUILDDIR/smartlink" -v >/dev/null 2>&5; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - use the sh script" >&5
printf "%s\n" "no - use the sh script" >&6; }
    SMARTLINK="$BINDIR/smartlink"
  fi
fi
else # force_smartlink_script_only
     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for smartlink build script" >&5
printf %s "checking for smartlink build script... " >&6; }
     SMARTLINK="$BINDIR/smartlink"
     REALCC="$CC"
     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SMARTLINK" >&5
printf "%s\n" "$SMARTLINK" >&6; }
fi # force_smartlink_script_only

CC="$SMARTLINK $REALCC"
pike_cv_prog_CC="$CC"

# Strip smartlink and arguments from $CXX
REALCXX="`echo $CXX|sed -e 's/.*smartlink *//'`"
RAWCXX="`echo $REALCXX|sed -e 's/ .*//g'`"
CXX="$SMARTLINK $REALCXX"
pike_cv_prog_CXX="$CXX"




export CC CXX REALCC REALCXX SMARTLINK

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback compiler" >&5
printf %s "checking for a fallback compiler... " >&6; }
# Strip smartlink and arguments from $FALLBACK_CC
FALLBACK_CC="`echo $FALLBACK_CC|sed -e 's/.*smartlink *//'`"
if test "x$FALLBACK_CC" = "x"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else
  FALLBACK_CC="$SMARTLINK $FALLBACK_CC"
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_CC" >&5
printf "%s\n" "$FALLBACK_CC" >&6; }
fi

export FALLBACK_CC

#############################################################################
fi #if test "x$enable_binary" != "xno"
#############################################################################

# Something seems to mess with the stack ulimit on some architectures...
#
# Cause found. GNU make 3.81 apparently raises the stack ulimit to max
# without restoring it for the subprocesses. (Bug 18396 and 22010 at
# http://savannah.gnu.org/projects/make)




  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5


if :; then :; else
# Disabled for now.
# It looks this makes it even worse...
# It seems to cause bash to loop on a SIGSEGV in the signal handler
# on Gentoo Linux/IA64.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the stack ulimit is excessive" >&5
printf %s "checking if the stack ulimit is excessive... " >&6; }
if ulimit -s 1>&5 2>&5; then
  orig_ulimit="`ulimit -s 2>&5`"
  if test "$orig_ulimit" -gt "65536"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, $orig_ulimit - reducing to 8192." >&5
printf "%s\n" "yes, $orig_ulimit - reducing to 8192." >&6; }
    if ulimit -s 8192 1>&5 2>&5; then :; else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Failed to reduce stack ulimit to 8192." >&5
printf "%s\n" "$as_me: WARNING: Failed to reduce stack ulimit to 8192." >&2;}
    fi

  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5

  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, $orig_ulimit" >&5
printf "%s\n" "no, $orig_ulimit" >&6; }
  fi
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown, ulimit -s failed." >&5
printf "%s\n" "unknown, ulimit -s failed." >&6; }
fi
fi

ORIG_CFLAGS="$CFLAGS"
CFLAGS="-Werror $CFLAGS"


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -fvisibility=hidden" >&5
printf %s "checking -fvisibility=hidden... " >&6; }
  if test "x$pike_disabled_option_fvisibility_hidden" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }


printf "%s\n" "#define DISABLE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h


  else
    if test ${pike_cv_option_fvisibility_hidden+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fvisibility=hidden"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_fvisibility_hidden=yes
else case e in #(
  e) pike_cv_option_fvisibility_hidden=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fvisibility_hidden=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_fvisibility_hidden" = "xyes" ; then
      CFLAGS="$CFLAGS -fvisibility=hidden"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }


printf "%s\n" "#define DISABLE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h


    fi
  fi

CFLAGS="$ORIG_CFLAGS"



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking +O3" >&5
printf %s "checking +O3... " >&6; }
  if test "x$pike_disabled_option_plus_O3" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O3" >&5
printf %s "checking -O3... " >&6; }
  if test "x$pike_disabled_option_O3" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O2" >&5
printf %s "checking -O2... " >&6; }
  if test "x$pike_disabled_option_O2" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O" >&5
printf %s "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_O+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O=yes
else case e in #(
  e) pike_cv_option_O=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_O2+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O2"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O2=yes
else case e in #(
  e) pike_cv_option_O2=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O2=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O2=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O2=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O2=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O2=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O2=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O2=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O2=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O2=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O2=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O2" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O2"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O2"
      CXXFLAGS="$CXXFLAGS -O2"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O" >&5
printf %s "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_O+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O=yes
else case e in #(
  e) pike_cv_option_O=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_O3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O3"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O3=yes
else case e in #(
  e) pike_cv_option_O3=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O3=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O3=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O3=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O3=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O3=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O3=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O3=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O3=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O3=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O3=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O3" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O3"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O3"
      CXXFLAGS="$CXXFLAGS -O3"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O2" >&5
printf %s "checking -O2... " >&6; }
  if test "x$pike_disabled_option_O2" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O" >&5
printf %s "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_O+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O=yes
else case e in #(
  e) pike_cv_option_O=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_O2+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O2"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O2=yes
else case e in #(
  e) pike_cv_option_O2=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O2=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O2=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O2=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O2=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O2=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O2=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O2=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O2=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O2=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O2=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O2" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O2"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O2"
      CXXFLAGS="$CXXFLAGS -O2"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O" >&5
printf %s "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_O+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O=yes
else case e in #(
  e) pike_cv_option_O=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_plus_O3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS +O3"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_plus_O3=yes
else case e in #(
  e) pike_cv_option_plus_O3=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_plus_O3=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_plus_O3=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_plus_O3=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_plus_O3=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_plus_O3=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_plus_O3=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_plus_O3=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_plus_O3=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_plus_O3=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_plus_O3=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_plus_O3" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE +O3"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS +O3"
      CXXFLAGS="$CXXFLAGS +O3"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O3" >&5
printf %s "checking -O3... " >&6; }
  if test "x$pike_disabled_option_O3" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O2" >&5
printf %s "checking -O2... " >&6; }
  if test "x$pike_disabled_option_O2" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O" >&5
printf %s "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_O+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O=yes
else case e in #(
  e) pike_cv_option_O=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_O2+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O2"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O2=yes
else case e in #(
  e) pike_cv_option_O2=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O2=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O2=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O2=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O2=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O2=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O2=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O2=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O2=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O2=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O2=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O2" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O2"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O2"
      CXXFLAGS="$CXXFLAGS -O2"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O" >&5
printf %s "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_O+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O=yes
else case e in #(
  e) pike_cv_option_O=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_O3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O3"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O3=yes
else case e in #(
  e) pike_cv_option_O3=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O3=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O3=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O3=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O3=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O3=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O3=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O3=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O3=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O3=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O3=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O3" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O3"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O3"
      CXXFLAGS="$CXXFLAGS -O3"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O2" >&5
printf %s "checking -O2... " >&6; }
  if test "x$pike_disabled_option_O2" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O" >&5
printf %s "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_O+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O=yes
else case e in #(
  e) pike_cv_option_O=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_O2+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O2"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O2=yes
else case e in #(
  e) pike_cv_option_O2=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O2=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O2=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O2=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O2=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O2=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O2=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O2=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O2=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O2=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O2=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O2" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O2"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O2"
      CXXFLAGS="$CXXFLAGS -O2"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -O" >&5
printf %s "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_O+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_O=yes
else case e in #(
  e) pike_cv_option_O=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


if test "$GCC" = "yes"; then

  if test "$cflags_is_set" = "no"; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -pipe" >&5
printf %s "checking -pipe... " >&6; }
  if test "x$pike_disabled_option_pipe" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pipe+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -pipe"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pipe=yes
else case e in #(
  e) pike_cv_option_pipe=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pipe=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pipe=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pipe=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pipe=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pipe=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pipe=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pipe=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pipe=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pipe=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pipe=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pipe" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -pipe"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -pipe"
      CXXFLAGS="$CXXFLAGS -pipe"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    # The following segment is obsolete, since executable memory is
    # now allocated with mmap instead of with malloc().
    #	/grubba 2005-06-09
    #
    #     #### For exec-shield in newer linux kernels.
    #     #### Linux's mprotect(2) is broken, so we unfortunately
    #     #### need to enable executabe stack.
    #     #### This test crashes under mingw32 so let's disable for win32 for now.
    #     if test "$pike_cv_sys_os" != "Windows_NT"; then
    #       AC_SYS_COMPILER_FLAG([[-Wa,--execstack]],executableheap,CFLAGS)
    #     fi
  fi
fi

LD='$(CC) $(CFLAGS)'
LC_REQ="-lc"

case "$pike_cv_sys_os" in
  Darwin*|Haiku*|BeOS*)
    # According to Clang source the protected behavior is ELF-specific
    # and not applicable to OS X.
    #
    # BeOS and Haiku similarly do not like protected symbols.

printf "%s\n" "#define DISABLE_ATTRIBUTE_VISIBILITY_PROTECTED 1" >>confdefs.h


      ;;
  SCO*)
     case "$CFLAGS" in
        *-belf*)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -belf" >&5
printf %s "checking -belf... " >&6; }
  if test "x$pike_disabled_option_sco_belf_option" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_sco_belf_option+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -belf"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_sco_belf_option=yes
else case e in #(
  e) pike_cv_option_sco_belf_option=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_sco_belf_option=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_sco_belf_option=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_sco_belf_option=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_sco_belf_option=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_sco_belf_option=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_sco_belf_option=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_sco_belf_option=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_sco_belf_option=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_sco_belf_option=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_sco_belf_option=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_sco_belf_option" = "xyes" ; then
      CFLAGS="$CFLAGS -belf"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

            case "$LDFLAGS" in
              *-belf*) ;;
              *)
                echo "Adding -belf option to ldflags."
                LDFLAGS="$LDFLAGS -belf"
              ;;
            esac

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

       ;;
       *)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -belf" >&5
printf %s "checking -belf... " >&6; }
  if test "x$pike_disabled_option_belf" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_belf+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -belf"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_belf=yes
else case e in #(
  e) pike_cv_option_belf=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_belf=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_belf=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_belf=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_belf=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_belf=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_belf=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_belf=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_belf=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_belf=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_belf=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_belf" = "xyes" ; then
      CFLAGS="$CFLAGS -belf"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

       ;;
     esac
     case "$LDFLAGS" in
       *-belf*) ;;
       *)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -belf" >&5
printf %s "checking -belf... " >&6; }
  if test "x$pike_disabled_option_belf" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_belf+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -belf"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_belf=yes
else case e in #(
  e) pike_cv_option_belf=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_belf=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_belf=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_belf=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_belf=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_belf=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_belf=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_belf=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_belf=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_belf=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_belf=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_belf" = "xyes" ; then
      LDFLAGS="$LDFLAGS -belf"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

       ;;
     esac
  ;;
  SunOS*)
    # gcc on SunOS 4 forgets to define this:
    echo "SunOS. Adding -D__USE_FIXED_PROTOTYPES__"
    CFLAGS="$CFLAGS -D__USE_FIXED_PROTOTYPES__"
  ;;
  BSD/OS*)
    case "`uname -r`" in
      [4-9].*) ;;
      *) LD="$BINDIR/smartlink shlicc";;
    esac
  ;;
  UnixWare*|OpenUNIX*)
    case "$CFLAGS" in
      *-Kalloca*) ;;
      *)
	if test "$GCC" != "yes"; then
	  # We are using built-in inline function
	  CFLAGS="$CFLAGS -Kalloca"
	  CXX="$CXX -DNO_CPLUSPLUS_ALLOCA"
	  LC_REQ=""
	fi
      ;;
    esac
  ;;
  Linux*)
    if $REALCC -V 2>&1 | head -1 | grep "Intel(R) C" >/dev/null; then
      # icc or ecc.
      LC_REQ=""
    fi
  ;;
esac




#############################################################################



# Check whether --with-root was given.
if test ${with_root+y}
then :
  withval=$with_root;
  case "$with_root" in
    /)
      with_root=""
    ;;
    /*)
    ;;
    no)
      with_root=""
    ;;
    *)

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Root path $with_root is not absolute. Ignored.
" >&5
printf "%s\n" "$as_me: WARNING:

Root path $with_root is not absolute. Ignored.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Root path $with_root is not absolute. Ignored.

EOF

      with_root=""
    ;;
  esac

else case e in #(
  e) with_root="" ;;
esac
fi



# Check whether --with-relocatable_dumped_modules was given.
if test ${with_relocatable_dumped_modules+y}
then :
  withval=$with_relocatable_dumped_modules;
    if test "x$withval" = "xno"; then
      :
    else
      with_relocatable_dumped_modules=yes
    fi

fi



# Check whether --with-dynamic_modules was given.
if test ${with_dynamic_modules+y}
then :
  withval=$with_dynamic_modules;
fi



# Check whether --with-static_linking was given.
if test ${with_static_linking+y}
then :
  withval=$with_static_linking;
    if test "x$withval" = "xno"; then
      :
    else
      with_static_linking=yes
    fi

fi



# Check whether --with-crt was given.
if test ${with_crt+y}
then :
  withval=$with_crt;
fi


# --with-debug-crt is a nop on most systems since a debug C runtime
# lib normally is used simply by setting LD_LIBRARY_PATH, but in MSVC
# the choice affects both the compiler and the linker.
#
# Note that all libs need to be linked to the same CRT in VC8 if they
# are linked to the DLL variant (i.e. using -MD), otherwise the MS
# loader won't load them. This restriction is reinforced by the
# manifest stuff that's used in VC8, and it doesn't apply when running
# directly in the build dir. See
# http://msdn2.microsoft.com/en-us/library/ms235299.aspx
#
# Also note that the debug CRT DLL in VC8 isn't redistributable.

# Check whether --with-debug-crt was given.
if test ${with_debug_crt+y}
then :
  withval=$with_debug_crt;
else case e in #(
  e) with_debug_crt=no ;;
esac
fi


# Check whether --with-include-path was given.
if test ${with_include_path+y}
then :
  withval=$with_include_path;
fi


# Check whether --with-lib-path was given.
if test ${with_lib_path+y}
then :
  withval=$with_lib_path;
fi



# Check whether --with-long-double-precision was given.
if test ${with_long_double_precision+y}
then :
  withval=$with_long_double_precision;
fi


# Check whether --with-double-precision was given.
if test ${with_double_precision+y}
then :
  withval=$with_double_precision;
fi



# Check whether --with-long-long-int was given.
if test ${with_long_long_int+y}
then :
  withval=$with_long_long_int;
fi


# Check whether --with-long-int was given.
if test ${with_long_int+y}
then :
  withval=$with_long_int;
fi


# Check whether --with-int-int was given.
if test ${with_int_int+y}
then :
  withval=$with_int_int;
fi


# Check whether --enable-dlmalloc was given.
if test ${enable_dlmalloc+y}
then :
  enableval=$enable_dlmalloc;
else case e in #(
  e) test "$pike_cv_sys_os" = Windows_NT && enable_dlmalloc=yes ;;
esac
fi

# dlmalloc is enabled by default on windows since the OS heap manager
# Sucketh. (Well, it's possible to enable a "low-fragmentation heap"
# but it only works for blocks up to 16kb.)
if test "x$enable_dlmalloc" = xyes; then
  EXTRA_OBJS="$EXTRA_OBJS malloc.o"
  printf "%s\n" "#define USE_DL_MALLOC 1" >>confdefs.h

else
  enable_dlmalloc=no
fi



# Check whether --with-experimental was given.
if test ${with_experimental+y}
then :
  withval=$with_experimental;
    if test "x$withval" = "xno"; then
      :
    else
      printf "%s\n" "#define PIKE_EXPERIMENTAL 1" >>confdefs.h

    fi

fi




# Check whether --with-cleanup-on-exit was given.
if test ${with_cleanup_on_exit+y}
then :
  withval=$with_cleanup_on_exit;
    if test "x$withval" = "xno"; then
      :
    else
      printf "%s\n" "#define DO_PIKE_CLEANUP 1" >>confdefs.h

    fi

fi




# Check whether --with-dmalloc was given.
if test ${with_dmalloc+y}
then :
  withval=$with_dmalloc;
    if test "x$withval" = "xno"; then
      :
    else
      printf "%s\n" "#define DEBUG_MALLOC 10" >>confdefs.h

    fi

fi




# Check whether --with-dmalloc-malloc was given.
if test ${with_dmalloc_malloc+y}
then :
  withval=$with_dmalloc_malloc;
    if test "x$withval" = "xno"; then
      :
    else
       printf "%s\n" "#define ENCAPSULATE_MALLOC 1" >>confdefs.h

    fi

fi




# Check whether --with-dmalloc-malloc-leaks was given.
if test ${with_dmalloc_malloc_leaks+y}
then :
  withval=$with_dmalloc_malloc_leaks;
    if test "x$withval" = "xno"; then
      :
    else
       printf "%s\n" "#define REPORT_ENCAPSULATED_MALLOC 1" >>confdefs.h

    fi

fi




# Check whether --with-dmalloc-trace was given.
if test ${with_dmalloc_trace+y}
then :
  withval=$with_dmalloc_trace;
    if test "x$withval" = "xno"; then
      :
    else
      with_dmalloc_trace="yes" printf "%s\n" "#define DMALLOC_TRACE 10" >>confdefs.h

    fi

fi




# Check whether --with-dmalloc-c-stack-trace was given.
if test ${with_dmalloc_c_stack_trace+y}
then :
  withval=$with_dmalloc_c_stack_trace;
    if test "x$withval" = "xno"; then
      :
    else
      printf "%s\n" "#define DMALLOC_C_STACK_TRACE 1" >>confdefs.h

    fi

fi




# Check whether --with-dmalloc-track-free was given.
if test ${with_dmalloc_track_free+y}
then :
  withval=$with_dmalloc_track_free;
    if test "x$withval" = "xno"; then
      :
    else
       with_dmalloc_track_free="yes"
		 printf "%s\n" "#define DMALLOC_TRACK_FREE 10" >>confdefs.h

    fi

fi



# Check whether --with-debug was given.
if test ${with_debug+y}
then :
  withval=$with_debug;
else case e in #(
  e) with_debug= ;;
esac
fi


# Check whether --with-debug was given.
if test ${with_debug+y}
then :
  withval=$with_debug;
else case e in #(
  e) with_debug= ;;
esac
fi


# Check whether --with-rtldebug was given.
if test ${with_rtldebug+y}
then :
  withval=$with_rtldebug;
else case e in #(
  e) with_rtldebug= ;;
esac
fi


# Check whether --with-cdebug was given.
if test ${with_cdebug+y}
then :
  withval=$with_cdebug;
else case e in #(
  e)
  case "$pike_cv_sys_os:$GCC" in
    Solaris:no)
      # Solaris/cc has problems with combining optimizations and debuginfo.

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Defaulting to --without-cdebug since the OS is Solaris,
and gcc is not being used.
" >&5
printf "%s\n" "$as_me: WARNING:

Defaulting to --without-cdebug since the OS is Solaris,
and gcc is not being used.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Defaulting to --without-cdebug since the OS is Solaris,
and gcc is not being used.

EOF

      with_cdebug=no
    ;;
    HP-UX:no|HPUX:no)
      # HP-UX/cc has problems with combining optimizations and debuginfo.
      #
      # cc: internal panic 7815: Malloc: underflow detected in free(). (7815)

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Defaulting to --without-cdebug since the OS is HP-UX,
and gcc is not being used.
" >&5
printf "%s\n" "$as_me: WARNING:

Defaulting to --without-cdebug since the OS is HP-UX,
and gcc is not being used.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Defaulting to --without-cdebug since the OS is HP-UX,
and gcc is not being used.

EOF

      with_cdebug=no
    ;;
    *)
      with_cdebug=
    ;;
  esac
 ;;
esac
fi


# Check whether --with-copt was given.
if test ${with_copt+y}
then :
  withval=$with_copt;
else case e in #(
  e) with_copt= ;;
esac
fi


# Check whether --with-threads was given.
if test ${with_threads+y}
then :
  withval=$with_threads;
else case e in #(
  e)
   case "x$pike_cv_sys_os" in
     xFreeBSD*)
        if test "`uname -r|sed -e 's/\([0-9]*\).*/\1/'`" -lt 4; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

FreeBSD <= 3.x detected, disabling threads.
Use --with-threads to force threads support.
" >&5
printf "%s\n" "$as_me: WARNING:

FreeBSD <= 3.x detected, disabling threads.
Use --with-threads to force threads support.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: FreeBSD <= 3.x detected, disabling threads.
Use --with-threads to force threads support.

EOF

           with_threads=no
        fi
     ;;
     xOpenBSD*)
        if test "`uname -r|sed -e 's/\([0-9]*\).*/\1/'`" -lt 4 \
             -a "x`uname -m`" = "xalpha"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

OpenBSD/alpha <= 3.x detected, disabling threads.
Use --with-threads to force threads support.
" >&5
printf "%s\n" "$as_me: WARNING:

OpenBSD/alpha <= 3.x detected, disabling threads.
Use --with-threads to force threads support.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: OpenBSD/alpha <= 3.x detected, disabling threads.
Use --with-threads to force threads support.

EOF

           with_threads=no
        fi
     ;;
   esac

   if test "x${with_threads-}" = x; then
     with_threads=yes
   fi
 ;;
esac
fi



  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5



# Check whether --with-malloc_overhead was given.
if test ${with_malloc_overhead+y}
then :
  withval=$with_malloc_overhead; printf "%s\n" "#define PIKE_MALLOC_OVERHEAD (\$withval)" >>confdefs.h

else case e in #(
  e) printf "%s\n" "#define PIKE_MALLOC_OVERHEAD (2 * sizeof(void *))" >>confdefs.h
 ;;
esac
fi


# Check whether --with-malloc_page_size was given.
if test ${with_malloc_page_size+y}
then :
  withval=$with_malloc_page_size; printf "%s\n" "#define PIKE_MALLOC_PAGE_SIZE (\$withval)" >>confdefs.h

else case e in #(
  e) printf "%s\n" "#define PIKE_MALLOC_PAGE_SIZE (4 * 1024)" >>confdefs.h
 ;;
esac
fi



  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5



# Check whether --with-thread_c_stack was given.
if test ${with_thread_c_stack+y}
then :
  withval=$with_thread_c_stack; printf "%s\n" "#define PIKE_THREAD_C_STACK_SIZE ($withval)" >>confdefs.h

else case e in #(
  e) printf "%s\n" "#define PIKE_THREAD_C_STACK_SIZE (1024 * 1024)" >>confdefs.h
 ;;
esac
fi



# Check whether --with-devpoll was given.
if test ${with_devpoll+y}
then :
  withval=$with_devpoll;
else case e in #(
  e) with_devpoll=yes ;;
esac
fi


# Check whether --with-gdbm was given.
if test ${with_gdbm+y}
then :
  withval=$with_gdbm;
fi


# Check whether --with-mpi was given.
if test ${with_mpi+y}
then :
  withval=$with_mpi;
else case e in #(
  e) with_mpi=no ;;
esac
fi


# Check whether --with-gmp was given.
if test ${with_gmp+y}
then :
  withval=$with_gmp;
fi


# Check whether --with-zlib was given.
if test ${with_zlib+y}
then :
  withval=$with_zlib;
else case e in #(
  e) with_zlib=yes ;;
esac
fi


# Check whether --with-mysql was given.
if test ${with_mysql+y}
then :
  withval=$with_mysql;
else case e in #(
  e) with_mysql=yes ;;
esac
fi


# Check whether --with-valgrind was given.
if test ${with_valgrind+y}
then :
  withval=$with_valgrind;
  if test "x$with_valgrind" = "xyes"; then
    # Extract the first word of "valgrind", so it can be a program name with args.
set dummy valgrind; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_with_valgrind+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $with_valgrind in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_with_valgrind="$with_valgrind" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_with_valgrind="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_with_valgrind" && ac_cv_path_with_valgrind="no"
  ;;
esac ;;
esac
fi
with_valgrind=$ac_cv_path_with_valgrind
if test -n "$with_valgrind"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
printf "%s\n" "$with_valgrind" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


    if test "x$with_valgrind" = "xno"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

valgrind not found
" >&5
printf "%s\n" "$as_me: WARNING:

valgrind not found
" >&2;}
  cat >>config.warnings <<EOF
WARNING: valgrind not found

EOF

    else :; fi
  else :; fi

else case e in #(
  e) with_valgrind=no ;;
esac
fi


# Check whether --with-dtrace was given.
if test ${with_dtrace+y}
then :
  withval=$with_dtrace;
fi


# Check whether --with-checker was given.
if test ${with_checker+y}
then :
  withval=$with_checker;
else case e in #(
  e) with_checker="$with_valgrind" ;;
esac
fi


# Check whether --with-gcov was given.
if test ${with_gcov+y}
then :
  withval=$with_gcov;
fi



# Check whether --with-profiling was given.
if test ${with_profiling+y}
then :
  withval=$with_profiling;
    if test "x$withval" = "xno"; then
      :
    else
      printf "%s\n" "#define PROFILING 1" >>confdefs.h

    fi

fi




# Check whether --with-internal-profiling was given.
if test ${with_internal_profiling+y}
then :
  withval=$with_internal_profiling;
    if test "x$withval" = "xno"; then
      :
    else
      printf "%s\n" "#define INTERNAL_PROFILING 1" >>confdefs.h

    fi

fi




# Check whether --with-mc-stack-frames was given.
if test ${with_mc_stack_frames+y}
then :
  withval=$with_mc_stack_frames;
    if test "x$withval" = "xno"; then
      :
    else
      printf "%s\n" "#define MACHINE_CODE_STACK_FRAMES 1" >>confdefs.h

    fi

fi




# Check whether --with-pg was given.
if test ${with_pg+y}
then :
  withval=$with_pg;
    if test "x$withval" = "xno"; then
      :
    else
      PROFIL=-pg
    fi

fi



# Check whether --with-poll was given.
if test ${with_poll+y}
then :
  withval=$with_poll;
else case e in #(
  e)
  # Neither --with-poll nor --without-poll was specified.
  # Default to --with-poll (ie use it if it exists), except for various BSDs.
  with_poll=yes
  case "$pike_cv_sys_os" in
      *BSD*|Darwin|*GNU*|next|SunOS)
          # NOTE: Several of these (eg Darwin) have poll, but it is
          #       layered on kqueue or select, so there's no real
          #       benefit to supporting it separately there.
          with_poll=no
          ;;
  esac
 ;;
esac
fi


# Check whether --with-max-fd was given.
if test ${with_max_fd+y}
then :
  withval=$with_max_fd; pike_cv_max_open_fd=$withval
fi



# Check whether --with-oob was given.
if test ${with_oob+y}
then :
  withval=$with_oob;
    if test "x$withval" = "xno"; then

  as_fn_error $? "Support for out of band data is mandatory in Pike 7.5 and later." "$LINENO" 5

    else
      :
    fi

fi




# Check whether --with-compiler-trace was given.
if test ${with_compiler_trace+y}
then :
  withval=$with_compiler_trace;
    if test "x$withval" = "xno"; then
      :
    else
      printf "%s\n" "#define YYDEBUG 1" >>confdefs.h

    fi

fi





# Check whether --with-keypair-loop was given.
if test ${with_keypair_loop+y}
then :
  withval=$with_keypair_loop;
    if test "x$withval" = "xno"; then
      :
    else
      printf "%s\n" "#define PIKE_MAPPING_KEYPAIR_LOOP 1" >>confdefs.h

    fi

fi



if test "x$with_pike_type" = "xno"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Disabling of USE_PIKE_TYPE is no longer supported.
" >&5
printf "%s\n" "$as_me: WARNING:

Disabling of USE_PIKE_TYPE is no longer supported.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Disabling of USE_PIKE_TYPE is no longer supported.

EOF

fi

if test "x$with_gmp" = xno; then
  as_fn_error $? "The GMP library is required to compile Pike." "$LINENO" 5
fi

if test "x$with_valgrind" = "xno"; then
  VALGRIND=""
  VALGRINDARGS=""
else
  VALGRIND="$with_valgrind"
  # Make valgrind a bit silent by default.
  VALGRINDARGS="-q --tool=memcheck"
  printf "%s\n" "#define USE_VALGRIND 1" >>confdefs.h


  if test "x$with_cleanup_on_exit" = "x"; then
    printf "%s\n" "#define DO_PIKE_CLEANUP 1" >>confdefs.h

  fi

  if test "x$with_copt" != "xno"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

--without-copt is advisable when using valgrind!
" >&5
printf "%s\n" "$as_me: WARNING:

--without-copt is advisable when using valgrind!
" >&2;}
  cat >>config.warnings <<EOF
WARNING: --without-copt is advisable when using valgrind!

EOF

  fi
fi
export VALGRIND VALGRINDARGS



# DTrace probes
if test "x$with_dtrace" = "xyes"; then
   # Extract the first word of "dtrace", so it can be a program name with args.
set dummy dtrace; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_dtrace_prog+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $dtrace_prog in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_dtrace_prog="$dtrace_prog" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_dtrace_prog="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_dtrace_prog" && ac_cv_path_dtrace_prog="no"
  ;;
esac ;;
esac
fi
dtrace_prog=$ac_cv_path_dtrace_prog
if test -n "$dtrace_prog"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dtrace_prog" >&5
printf "%s\n" "$dtrace_prog" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


   if test "x$ac_cv_path_dtrace_prog" != "xno"; then
      printf "%s\n" "#define USE_DTRACE 1" >>confdefs.h

      DTRACE_REQUIREMENTS="dtrace_probes.h"
   fi
fi

if test "x$with_checker" = "xno"; then :; else
  printf "%s\n" "#define __CHECKER__ 1" >>confdefs.h

fi

if test "x$with_relocatable_dumped_modules" = xyes; then
  PIKE_MODULE_RELOC=1
else
  PIKE_MODULE_RELOC=""
fi



#
# Allow --with(out)-debug to toggle both cdebug and rtldebug, but
# let --with(out)-{c,rtl}debug take precedence.
#
if test "x$with_cdebug" = x ; then
  with_cdebug="$with_debug"
fi

if test "x$with_rtldebug" = x ; then
  with_rtldebug="$with_debug"
fi


#
# --with-dmalloc requires --with-rtldebug
#
if test "x$with_dmalloc" = "x"; then
  :;
elif test "x$with_rtldebug" = "xyes"; then :; else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
NOTE: Debug malloc requires rtldebug. Enabling rtldebug.
" >&5
printf "%s\n" "
NOTE: Debug malloc requires rtldebug. Enabling rtldebug.
" >&6; }
  cat >>config.notes <<EOF
NOTE: Debug malloc requires rtldebug. Enabling rtldebug.

EOF

  with_rtldebug=yes
fi


#
# Defaults for cdebug and rtldebug here:
#

if test "x$with_cdebug" = x ; then
  with_cdebug=yes
fi

if test "x$with_rtldebug" = x ; then
  with_rtldebug=no
#  with_rtldebug=yes
fi

if test "x$with_rtldebug" = xyes ; then
  printf "%s\n" "#define PIKE_DEBUG 1" >>confdefs.h

fi

#############################################################################

OSFLAGS=""
WARN=""
OPTIMIZE="${OPTFLAGS-}"

# Check whether --enable-pedantic was given.
if test ${enable_pedantic+y}
then :
  enableval=$enable_pedantic;
fi


# Check whether --enable-werror was given.
if test ${enable_werror+y}
then :
  enableval=$enable_werror;
fi



  if test "x$pike_cc_is_rnt" = "x"; then
    if echo foo "$CC" | $EGREP 'rntc.|rnt.cl' >/dev/null; then
      pike_cc_is_rnt=yes
    else
      pike_cc_is_rnt=no
    fi
  fi


  # The following are needed to detect broken handling of __STDC__ == 1
  # on Solaris with old header files.


  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_types_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/types.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/types.h>
#endif
EOF
    fi


fi



          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off64_t ... crosscompiling or rnt" >&5
printf %s "checking size of off64_t ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_off64_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 13782 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(off64_t), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_off64_t=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_off64_t" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_off64_t=0
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_off64_t=0
        fi
      else
        ac_cv_sizeof_off64_t=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
printf "%s\n" "$ac_cv_sizeof_off64_t" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_off64_t=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
printf %s "checking size of off64_t... " >&6; }
if test ${ac_cv_sizeof_off64_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_off64_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (off64_t)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_off64_t=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
printf "%s\n" "$ac_cv_sizeof_off64_t" >&6; }



printf "%s\n" "#define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t" >>confdefs.h





if test "$cflags_is_set" = "no"; then
  if test "x$with_cdebug" = "xno" ; then
    CFLAGS=`echo " $CFLAGS " | sed -e 's@ -g @ @g'`
  else
    :
  fi

  if test "x$enable_pedantic" = "xyes"; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -pedantic" >&5
printf %s "checking -pedantic... " >&6; }
  if test "x$pike_disabled_option_pedantic" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pedantic+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -pedantic"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pedantic=yes
else case e in #(
  e) pike_cv_option_pedantic=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pedantic=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pedantic=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pedantic=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pedantic=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pedantic=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pedantic=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pedantic=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pedantic=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pedantic=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pedantic=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pedantic" = "xyes" ; then
      WARN="$WARN -pedantic"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

  fi

  if test "x$enable_werror" = "xyes"; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Werror" >&5
printf %s "checking -Werror... " >&6; }
  if test "x$pike_disabled_option_error" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_error+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Werror"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_error=yes
else case e in #(
  e) pike_cv_option_error=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_error=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_error=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_error=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_error=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_error=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_error=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_error=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_error=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_error=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_error=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_error" = "xyes" ; then
      WARN="$WARN -Werror"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

  fi
  if test "x${GCC-}" = xyes ; then
  # Do not use -Wall, since that produces a lot of warnings that are not
  # really interresting (such as the warning for if( ... ) ... if(
  # ... ) .... else


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -W" >&5
printf %s "checking -W... " >&6; }
  if test "x$pike_disabled_option_W" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_W+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -W"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_W=yes
else case e in #(
  e) pike_cv_option_W=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_W=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_W=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_W=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_W=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_W=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_W=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_W=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_W=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_W=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_W=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_W" = "xyes" ; then
      WARN="$WARN -W"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wall" >&5
printf %s "checking -Wall... " >&6; }
  if test "x$pike_disabled_option_Wall" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wall+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wall"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wall=yes
else case e in #(
  e) pike_cv_option_Wall=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wall=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wall=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wall=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wall=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wall=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wall=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wall=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wall=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wall=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wall=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wall" = "xyes" ; then
      WARN="$WARN -Wall"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wno-unused" >&5
printf %s "checking -Wno-unused... " >&6; }
  if test "x$pike_disabled_option_Wno_unused" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wno_unused+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wno-unused"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wno_unused=yes
else case e in #(
  e) pike_cv_option_Wno_unused=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wno_unused=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wno_unused=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wno_unused=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wno_unused=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wno_unused=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wno_unused=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wno_unused=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wno_unused=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wno_unused=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wno_unused=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wno_unused" = "xyes" ; then
      WARN="$WARN -Wno-unused"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wcomment" >&5
printf %s "checking -Wcomment... " >&6; }
  if test "x$pike_disabled_option_Wcomment" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wcomment+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wcomment"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wcomment=yes
else case e in #(
  e) pike_cv_option_Wcomment=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wcomment=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wcomment=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wcomment=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wcomment=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wcomment=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wcomment=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wcomment=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wcomment=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wcomment=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wcomment=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wcomment" = "xyes" ; then
      WARN="$WARN -Wcomment"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wformat" >&5
printf %s "checking -Wformat... " >&6; }
  if test "x$pike_disabled_option_Wformat" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wformat+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wformat"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wformat=yes
else case e in #(
  e) pike_cv_option_Wformat=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wformat=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wformat=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wformat=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wformat=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wformat=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wformat=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wformat=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wformat=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wformat=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wformat=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wformat" = "xyes" ; then
      WARN="$WARN -Wformat"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wformat-security" >&5
printf %s "checking -Wformat-security... " >&6; }
  if test "x$pike_disabled_option_Wformat_security" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wformat_security+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wformat-security"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wformat_security=yes
else case e in #(
  e) pike_cv_option_Wformat_security=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wformat_security=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wformat_security=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wformat_security=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wformat_security=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wformat_security=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wformat_security=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wformat_security=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wformat_security=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wformat_security=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wformat_security=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wformat_security" = "xyes" ; then
      WARN="$WARN -Wformat-security"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wimplicit-function-declaration" >&5
printf %s "checking -Wimplicit-function-declaration... " >&6; }
  if test "x$pike_disabled_option_Wimplicit_function_declaration" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wimplicit_function_declaration+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wimplicit-function-declaration"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wimplicit_function_declaration=yes
else case e in #(
  e) pike_cv_option_Wimplicit_function_declaration=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wimplicit_function_declaration=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wimplicit_function_declaration" = "xyes" ; then
      CFLAGS="$CFLAGS -Wimplicit-function-declaration"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wmultichar" >&5
printf %s "checking -Wmultichar... " >&6; }
  if test "x$pike_disabled_option_Wmultichar" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wmultichar+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wmultichar"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wmultichar=yes
else case e in #(
  e) pike_cv_option_Wmultichar=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wmultichar=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wmultichar=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wmultichar=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wmultichar=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wmultichar=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wmultichar=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wmultichar=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wmultichar=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wmultichar=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wmultichar=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wmultichar" = "xyes" ; then
      WARN="$WARN -Wmultichar"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wunused-function" >&5
printf %s "checking -Wunused-function... " >&6; }
  if test "x$pike_disabled_option_Wunused_function" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wunused_function+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wunused-function"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wunused_function=yes
else case e in #(
  e) pike_cv_option_Wunused_function=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wunused_function=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wunused_function=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wunused_function=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wunused_function=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wunused_function=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wunused_function=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wunused_function=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wunused_function=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wunused_function=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wunused_function=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wunused_function" = "xyes" ; then
      WARN="$WARN -Wunused-function"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wswitch" >&5
printf %s "checking -Wswitch... " >&6; }
  if test "x$pike_disabled_option_Wswitch" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wswitch+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wswitch"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wswitch=yes
else case e in #(
  e) pike_cv_option_Wswitch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wswitch=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wswitch=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wswitch=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wswitch=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wswitch=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wswitch=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wswitch=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wswitch=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wswitch=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wswitch=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wswitch" = "xyes" ; then
      WARN="$WARN -Wswitch"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    if test "x$with_copt" != xno; then
      # gcc complains that it doesn't support this when compiling
      # without optimizations.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wuninitialized" >&5
printf %s "checking -Wuninitialized... " >&6; }
  if test "x$pike_disabled_option_Wuninitialized" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wuninitialized+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wuninitialized"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wuninitialized=yes
else case e in #(
  e) pike_cv_option_Wuninitialized=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wuninitialized=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wuninitialized=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wuninitialized=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wuninitialized=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wuninitialized=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wuninitialized=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wuninitialized=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wuninitialized=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wuninitialized=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wuninitialized=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wuninitialized" = "xyes" ; then
      WARN="$WARN -Wuninitialized"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

    fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wpointer-arith" >&5
printf %s "checking -Wpointer-arith... " >&6; }
  if test "x$pike_disabled_option_Wpointer_arith" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wpointer_arith+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wpointer-arith"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wpointer_arith=yes
else case e in #(
  e) pike_cv_option_Wpointer_arith=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wpointer_arith=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wpointer_arith" = "xyes" ; then
      WARN="$WARN -Wpointer-arith"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wchar-subscripts" >&5
printf %s "checking -Wchar-subscripts... " >&6; }
  if test "x$pike_disabled_option_Wchar_subscripts" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wchar_subscripts+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wchar-subscripts"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wchar_subscripts=yes
else case e in #(
  e) pike_cv_option_Wchar_subscripts=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wchar_subscripts=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wchar_subscripts" = "xyes" ; then
      WARN="$WARN -Wchar-subscripts"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wno-long-long" >&5
printf %s "checking -Wno-long-long... " >&6; }
  if test "x$pike_disabled_option_Wno_long_long" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wno_long_long+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wno-long-long"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wno_long_long=yes
else case e in #(
  e) pike_cv_option_Wno_long_long=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wno_long_long=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wno_long_long=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wno_long_long=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wno_long_long=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wno_long_long=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wno_long_long=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wno_long_long=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wno_long_long=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wno_long_long=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wno_long_long=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wno_long_long" = "xyes" ; then
      WARN="$WARN -Wno-long-long"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wno-unknown-attributes" >&5
printf %s "checking -Wno-unknown-attributes... " >&6; }
  if test "x$pike_disabled_option_Wno_unknown_attributes" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wno_unknown_attributes+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wno-unknown-attributes"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wno_unknown_attributes=yes
else case e in #(
  e) pike_cv_option_Wno_unknown_attributes=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wno_unknown_attributes=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wno_unknown_attributes=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wno_unknown_attributes=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wno_unknown_attributes=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wno_unknown_attributes=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wno_unknown_attributes=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wno_unknown_attributes=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wno_unknown_attributes=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wno_unknown_attributes=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wno_unknown_attributes=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wno_unknown_attributes" = "xyes" ; then
      WARN="$WARN -Wno-unknown-attributes"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

    # Solaris 10 has system header files (like eg <X/Xlib.h>) that contain
    # #pragma ident "..." statements that gcc 3.4.3 complains about.
    # Gcc 3.4.3 does not support #pragma GCC diagnostic, so we must
    # unfortunately disable the warning globally.

  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wno-unknown-pragmas" >&5
printf %s "checking -Wno-unknown-pragmas... " >&6; }
  if test "x$pike_disabled_option_Wno_unknown_pragmas" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wno_unknown_pragmas+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wno-unknown-pragmas"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wno_unknown_pragmas=yes
else case e in #(
  e) pike_cv_option_Wno_unknown_pragmas=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wno_unknown_pragmas=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wno_unknown_pragmas=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wno_unknown_pragmas=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wno_unknown_pragmas=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wno_unknown_pragmas=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wno_unknown_pragmas=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wno_unknown_pragmas=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wno_unknown_pragmas=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wno_unknown_pragmas=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wno_unknown_pragmas=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wno_unknown_pragmas" = "xyes" ; then
      WARN="$WARN -Wno-unknown-pragmas"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    if test "x${with_static_linking-}" = "xyes" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -static" >&5
printf %s "checking -static... " >&6; }
  if test "x$pike_disabled_option_link_static" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_link_static+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -static"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_link_static=yes
else case e in #(
  e) pike_cv_option_link_static=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_link_static=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_link_static=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_link_static=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_link_static=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_link_static=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_link_static=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_link_static=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_link_static=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_link_static=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_link_static=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_link_static" = "xyes" ; then
      CFLAGS="$CFLAGS -static"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

    else
      :
    fi

    # Attempt to set the C standard to support.
    #
    # NB: Both $CPP and $CC need to be configured to support
    #     the same version of the C standard. Otherwise there
    #     will be build failures on eg Solaris.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c23" >&5
printf %s "checking -std=c23... " >&6; }
  if test "x$pike_disabled_option_std_c23" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c17" >&5
printf %s "checking -std=c17... " >&6; }
  if test "x$pike_disabled_option_std_c17" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c11" >&5
printf %s "checking -std=c11... " >&6; }
  if test "x$pike_disabled_option_std_c11" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }


  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CPP="$CPP -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CC="$CC -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c99"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }


    fi
  fi


  else
    if test ${pike_cv_option_std_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c11"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c11=yes
else case e in #(
  e) pike_cv_option_std_c11=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c11=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c11=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c11=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c11=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c11=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c11=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c11=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c11=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c11=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c11=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c11" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c11"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c11" >&5
printf %s "checking -std=c11... " >&6; }
  if test "x$pike_disabled_option_std_c11" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c11"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c11=yes
else case e in #(
  e) pike_cv_option_std_c11=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c11=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c11=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c11=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c11=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c11=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c11=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c11=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c11=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c11=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c11=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c11" = "xyes" ; then
      CPP="$CPP -std=c11"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c11" >&5
printf %s "checking -std=c11... " >&6; }
  if test "x$pike_disabled_option_std_c11" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c11"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c11=yes
else case e in #(
  e) pike_cv_option_std_c11=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c11=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c11=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c11=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c11=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c11=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c11=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c11=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c11=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c11=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c11=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c11" = "xyes" ; then
      CC="$CC -std=c11"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c11"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }


  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CPP="$CPP -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CC="$CC -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c99"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_std_c17+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c17"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c17=yes
else case e in #(
  e) pike_cv_option_std_c17=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c17=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c17=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c17=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c17=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c17=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c17=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c17=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c17=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c17=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c17=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c17" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c17"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c17" >&5
printf %s "checking -std=c17... " >&6; }
  if test "x$pike_disabled_option_std_c17" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c17+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c17"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c17=yes
else case e in #(
  e) pike_cv_option_std_c17=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c17=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c17=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c17=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c17=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c17=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c17=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c17=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c17=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c17=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c17=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c17" = "xyes" ; then
      CPP="$CPP -std=c17"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c17" >&5
printf %s "checking -std=c17... " >&6; }
  if test "x$pike_disabled_option_std_c17" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c17+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c17"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c17=yes
else case e in #(
  e) pike_cv_option_std_c17=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c17=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c17=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c17=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c17=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c17=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c17=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c17=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c17=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c17=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c17=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c17" = "xyes" ; then
      CC="$CC -std=c17"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c17"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c11" >&5
printf %s "checking -std=c11... " >&6; }
  if test "x$pike_disabled_option_std_c11" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }


  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CPP="$CPP -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CC="$CC -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c99"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }


    fi
  fi


  else
    if test ${pike_cv_option_std_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c11"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c11=yes
else case e in #(
  e) pike_cv_option_std_c11=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c11=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c11=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c11=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c11=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c11=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c11=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c11=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c11=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c11=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c11=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c11" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c11"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c11" >&5
printf %s "checking -std=c11... " >&6; }
  if test "x$pike_disabled_option_std_c11" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c11"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c11=yes
else case e in #(
  e) pike_cv_option_std_c11=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c11=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c11=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c11=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c11=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c11=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c11=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c11=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c11=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c11=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c11=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c11" = "xyes" ; then
      CPP="$CPP -std=c11"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c11" >&5
printf %s "checking -std=c11... " >&6; }
  if test "x$pike_disabled_option_std_c11" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c11"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c11=yes
else case e in #(
  e) pike_cv_option_std_c11=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c11=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c11=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c11=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c11=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c11=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c11=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c11=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c11=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c11=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c11=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c11" = "xyes" ; then
      CC="$CC -std=c11"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c11"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }


  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CPP="$CPP -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CC="$CC -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c99"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_std_c23+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c23"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c23=yes
else case e in #(
  e) pike_cv_option_std_c23=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c23=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c23=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c23=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c23=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c23=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c23=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c23=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c23=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c23=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c23=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c23" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c23"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c23" >&5
printf %s "checking -std=c23... " >&6; }
  if test "x$pike_disabled_option_std_c23" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c23+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c23"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c23=yes
else case e in #(
  e) pike_cv_option_std_c23=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c23=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c23=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c23=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c23=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c23=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c23=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c23=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c23=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c23=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c23=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c23" = "xyes" ; then
      CPP="$CPP -std=c23"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c23" >&5
printf %s "checking -std=c23... " >&6; }
  if test "x$pike_disabled_option_std_c23" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c23+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c23"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c23=yes
else case e in #(
  e) pike_cv_option_std_c23=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c23=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c23=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c23=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c23=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c23=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c23=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c23=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c23=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c23=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c23=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c23" = "xyes" ; then
      CC="$CC -std=c23"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c23"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c17" >&5
printf %s "checking -std=c17... " >&6; }
  if test "x$pike_disabled_option_std_c17" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c11" >&5
printf %s "checking -std=c11... " >&6; }
  if test "x$pike_disabled_option_std_c11" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }


  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CPP="$CPP -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CC="$CC -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c99"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }


    fi
  fi


  else
    if test ${pike_cv_option_std_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c11"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c11=yes
else case e in #(
  e) pike_cv_option_std_c11=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c11=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c11=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c11=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c11=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c11=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c11=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c11=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c11=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c11=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c11=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c11" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c11"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c11" >&5
printf %s "checking -std=c11... " >&6; }
  if test "x$pike_disabled_option_std_c11" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c11"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c11=yes
else case e in #(
  e) pike_cv_option_std_c11=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c11=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c11=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c11=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c11=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c11=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c11=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c11=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c11=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c11=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c11=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c11" = "xyes" ; then
      CPP="$CPP -std=c11"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c11" >&5
printf %s "checking -std=c11... " >&6; }
  if test "x$pike_disabled_option_std_c11" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c11"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c11=yes
else case e in #(
  e) pike_cv_option_std_c11=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c11=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c11=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c11=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c11=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c11=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c11=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c11=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c11=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c11=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c11=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c11" = "xyes" ; then
      CC="$CC -std=c11"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c11"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }


  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CPP="$CPP -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CC="$CC -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c99"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_std_c17+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c17"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c17=yes
else case e in #(
  e) pike_cv_option_std_c17=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c17=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c17=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c17=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c17=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c17=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c17=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c17=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c17=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c17=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c17=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c17" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c17"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c17" >&5
printf %s "checking -std=c17... " >&6; }
  if test "x$pike_disabled_option_std_c17" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c17+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c17"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c17=yes
else case e in #(
  e) pike_cv_option_std_c17=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c17=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c17=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c17=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c17=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c17=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c17=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c17=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c17=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c17=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c17=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c17" = "xyes" ; then
      CPP="$CPP -std=c17"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c17" >&5
printf %s "checking -std=c17... " >&6; }
  if test "x$pike_disabled_option_std_c17" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c17+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c17"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c17=yes
else case e in #(
  e) pike_cv_option_std_c17=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c17=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c17=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c17=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c17=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c17=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c17=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c17=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c17=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c17=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c17=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c17" = "xyes" ; then
      CC="$CC -std=c17"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c17"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c11" >&5
printf %s "checking -std=c11... " >&6; }
  if test "x$pike_disabled_option_std_c11" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }


  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CPP="$CPP -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CC="$CC -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c99"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }


    fi
  fi


  else
    if test ${pike_cv_option_std_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c11"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c11=yes
else case e in #(
  e) pike_cv_option_std_c11=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c11=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c11=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c11=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c11=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c11=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c11=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c11=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c11=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c11=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c11=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c11" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c11"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c11" >&5
printf %s "checking -std=c11... " >&6; }
  if test "x$pike_disabled_option_std_c11" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c11"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c11=yes
else case e in #(
  e) pike_cv_option_std_c11=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c11=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c11=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c11=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c11=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c11=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c11=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c11=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c11=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c11=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c11=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c11" = "xyes" ; then
      CPP="$CPP -std=c11"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c11" >&5
printf %s "checking -std=c11... " >&6; }
  if test "x$pike_disabled_option_std_c11" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c11"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c11=yes
else case e in #(
  e) pike_cv_option_std_c11=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c11=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c11=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c11=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c11=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c11=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c11=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c11=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c11=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c11=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c11=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c11" = "xyes" ; then
      CC="$CC -std=c11"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c11"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }


  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CFLAGS="$CFLAGS -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CPP="$CPP -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std=c99" >&5
printf %s "checking -std=c99... " >&6; }
  if test "x$pike_disabled_option_std_c99" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std=c99"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std_c99=yes
else case e in #(
  e) pike_cv_option_std_c99=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std_c99=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std_c99=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std_c99=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std_c99=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std_c99=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std_c99=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std_c99=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std_c99=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std_c99=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std_c99=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std_c99" = "xyes" ; then
      CC="$CC -std=c99"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -std=c99"


      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi

    if test "x$with_gcov" = "xyes"; then
      # Support for gcov


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -fprofile-arcs" >&5
printf %s "checking -fprofile-arcs... " >&6; }
  if test "x$pike_disabled_option_fprofile_arcs" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_fprofile_arcs+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fprofile-arcs"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_fprofile_arcs=yes
else case e in #(
  e) pike_cv_option_fprofile_arcs=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fprofile_arcs=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_fprofile_arcs" = "xyes" ; then
      CFLAGS="$CFLAGS -fprofile-arcs"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -ftest-coverage" >&5
printf %s "checking -ftest-coverage... " >&6; }
  if test "x$pike_disabled_option_ftest_coverage" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_ftest_coverage+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -ftest-coverage"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_ftest_coverage=yes
else case e in #(
  e) pike_cv_option_ftest_coverage=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_ftest_coverage=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_ftest_coverage=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_ftest_coverage=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_ftest_coverage=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_ftest_coverage=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_ftest_coverage=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_ftest_coverage=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_ftest_coverage=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_ftest_coverage=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_ftest_coverage=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_ftest_coverage" = "xyes" ; then
      CFLAGS="$CFLAGS -ftest-coverage"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

    else :; fi

    if test "x$with_cdebug" = "xyes" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -ggdb" >&5
printf %s "checking -ggdb... " >&6; }
  if test "x$pike_disabled_option_ggdb" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_ggdb+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -ggdb"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_ggdb=yes
else case e in #(
  e) pike_cv_option_ggdb=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_ggdb=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_ggdb=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_ggdb=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_ggdb=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_ggdb=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_ggdb=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_ggdb=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_ggdb=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_ggdb=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_ggdb=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_ggdb" = "xyes" ; then
      CFLAGS="$CFLAGS -ggdb"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -fvar-tracking-assignments" >&5
printf %s "checking -fvar-tracking-assignments... " >&6; }
  if test "x$pike_disabled_option_vartracking" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_vartracking+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fvar-tracking-assignments"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_vartracking=yes
else case e in #(
  e) pike_cv_option_vartracking=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_vartracking=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_vartracking=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_vartracking=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_vartracking=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_vartracking=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_vartracking=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_vartracking=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_vartracking=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_vartracking=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_vartracking=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_vartracking" = "xyes" ; then
      CFLAGS="$CFLAGS -fvar-tracking-assignments"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

    fi

    ##
    ## -fomit-frame-pointer does not work with egcs 1.1.1
    ## /Hubbe 1998-12-20
    ##
    #if test "x$with_cdebug" = "xno" ; then
    #  AC_SYS_COMPILER_FLAG(-fomit-frame-pointer,fomit_frame_pointer,OPTIMIZE)
    #else
    #  :
    #fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -funswitch-loops" >&5
printf %s "checking -funswitch-loops... " >&6; }
  if test "x$pike_disabled_option_unswitch_loops" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_unswitch_loops+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -funswitch-loops"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_unswitch_loops=yes
else case e in #(
  e) pike_cv_option_unswitch_loops=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_unswitch_loops=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_unswitch_loops=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_unswitch_loops=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_unswitch_loops=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_unswitch_loops=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_unswitch_loops=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_unswitch_loops=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_unswitch_loops=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_unswitch_loops=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_unswitch_loops=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_unswitch_loops" = "xyes" ; then
      CFLAGS="$CFLAGS -funswitch-loops"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

### Optimize for different SUN machines. If there is no working 'uname'
### no extra optimization will be done, but nothing should break either.
  case "`uname -m 2>/dev/null`" in
   sun4c)
    # The -msparclite option seems to generate assembler that /bin/as doesn't
    # understand.	/grubba 1998-07-17
    # AC_SYS_COMPILER_FLAG(-msparclite,sparclite,CFLAGS)
   ;;
   sun4m)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mv8" >&5
printf %s "checking -mv8... " >&6; }
  if test "x$pike_disabled_option_microsparc" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_microsparc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mv8"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_microsparc=yes
else case e in #(
  e) pike_cv_option_microsparc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_microsparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_microsparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_microsparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_microsparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_microsparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_microsparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_microsparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_microsparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_microsparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_microsparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_microsparc" = "xyes" ; then
      CFLAGS="$CFLAGS -mv8"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

   ;;
   sun4d)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -msupersparc" >&5
printf %s "checking -msupersparc... " >&6; }
  if test "x$pike_disabled_option_supersparc" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_supersparc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -msupersparc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_supersparc=yes
else case e in #(
  e) pike_cv_option_supersparc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_supersparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_supersparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_supersparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_supersparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_supersparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_supersparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_supersparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_supersparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_supersparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_supersparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_supersparc" = "xyes" ; then
      CFLAGS="$CFLAGS -msupersparc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

   ;;
   sun4u)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=ultrasparc" >&5
printf %s "checking -mcpu=ultrasparc... " >&6; }
  if test "x$pike_disabled_option_mcpu_ultrasparc" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -msupersparc" >&5
printf %s "checking -msupersparc... " >&6; }
  if test "x$pike_disabled_option_supersparc" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_supersparc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -msupersparc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_supersparc=yes
else case e in #(
  e) pike_cv_option_supersparc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_supersparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_supersparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_supersparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_supersparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_supersparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_supersparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_supersparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_supersparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_supersparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_supersparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_supersparc" = "xyes" ; then
      CFLAGS="$CFLAGS -msupersparc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_ultrasparc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=ultrasparc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_ultrasparc=yes
else case e in #(
  e) pike_cv_option_mcpu_ultrasparc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_ultrasparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi

      if test "$pike_cv_option_mcpu_ultrasparc" = yes; then
        :

      # Some versions of gcc define __sparcv9 but aren't LP64.
      # Definition of __sparcv9 causes <sys/isa_defs.h> to define _LP64,
      # which is not a good thing for ILP32 systems...
      # Some versions of gcc define __sparc_v9__, which causes the
      # fix-included <limits.h> to think the same...
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
#include <sys/types.h>
#if defined(_LP64) || (LONG_MAX != 2147483647L)
#error "We might have a problem."
#endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else case e in #(
  e)
        # We might have a problem...
        # Check that we indeed have a LP64 system.
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, but LP64" >&5
printf "%s\n" "yes, but LP64" >&6; }

          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long ... crosscompiling or rnt" >&5
printf %s "checking size of long ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_long+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 24506 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(long), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_long=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_long" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_long=4
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_long=4
        fi
      else
        ac_cv_sizeof_long=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
printf "%s\n" "$ac_cv_sizeof_long" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_long=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
printf %s "checking size of long... " >&6; }
if test ${ac_cv_sizeof_long+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_long" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
printf "%s\n" "$ac_cv_sizeof_long" >&6; }



printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h



	# Note: the result for the following message is provided
	# by SYS_COMPILER_FLAG
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking are we really an LP64 system" >&5
printf %s "checking are we really an LP64 system... " >&6; }
	if test "x$ac_cv_sizeof_long" = "x8"; then
	  :; #OK, we have an LP64 system!
	else
	  pike_cv_option_mcpu_ultrasparc=no
	fi
       ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_ultrasparc" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=ultrasparc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -msupersparc" >&5
printf %s "checking -msupersparc... " >&6; }
  if test "x$pike_disabled_option_supersparc" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_supersparc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -msupersparc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_supersparc=yes
else case e in #(
  e) pike_cv_option_supersparc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_supersparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_supersparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_supersparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_supersparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_supersparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_supersparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_supersparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_supersparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_supersparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_supersparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_supersparc" = "xyes" ; then
      CFLAGS="$CFLAGS -msupersparc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi

   ;;
   sun4v)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=niagara" >&5
printf %s "checking -mcpu=niagara... " >&6; }
  if test "x$pike_disabled_option_mcpu_niagara" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -msupersparc" >&5
printf %s "checking -msupersparc... " >&6; }
  if test "x$pike_disabled_option_supersparc" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_supersparc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -msupersparc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_supersparc=yes
else case e in #(
  e) pike_cv_option_supersparc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_supersparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_supersparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_supersparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_supersparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_supersparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_supersparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_supersparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_supersparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_supersparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_supersparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_supersparc" = "xyes" ; then
      CFLAGS="$CFLAGS -msupersparc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_niagara+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=niagara"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_niagara=yes
else case e in #(
  e) pike_cv_option_mcpu_niagara=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_niagara=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi

      if test "$pike_cv_option_mcpu_niagara" = yes; then
        :

      # Some versions of gcc define __sparcv9 but aren't LP64.
      # Definition of __sparcv9 causes <sys/isa_defs.h> to define _LP64,
      # which is not a good thing for ILP32 systems...
      # Some versions of gcc define __sparc_v9__, which causes the
      # fix-included <limits.h> to think the same...
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
#include <sys/types.h>
#if defined(_LP64) || (LONG_MAX != 2147483647L)
#error "We might have a problem."
#endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else case e in #(
  e)
        # We might have a problem...
        # Check that we indeed have a LP64 system.
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, but LP64" >&5
printf "%s\n" "yes, but LP64" >&6; }

          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long ... crosscompiling or rnt" >&5
printf %s "checking size of long ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_long+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 25065 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(long), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_long=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_long" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_long=4
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_long=4
        fi
      else
        ac_cv_sizeof_long=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
printf "%s\n" "$ac_cv_sizeof_long" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_long=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
printf %s "checking size of long... " >&6; }
if test ${ac_cv_sizeof_long+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_long" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
printf "%s\n" "$ac_cv_sizeof_long" >&6; }



printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h



	# Note: the result for the following message is provided
	# by SYS_COMPILER_FLAG
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking are we really an LP64 system" >&5
printf %s "checking are we really an LP64 system... " >&6; }
	if test "x$ac_cv_sizeof_long" = "x8"; then
	  :; #OK, we have an LP64 system!
	else
	  pike_cv_option_mcpu_niagara=no
	fi
       ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_niagara" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=niagara"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -msupersparc" >&5
printf %s "checking -msupersparc... " >&6; }
  if test "x$pike_disabled_option_supersparc" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_supersparc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -msupersparc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_supersparc=yes
else case e in #(
  e) pike_cv_option_supersparc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_supersparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_supersparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_supersparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_supersparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_supersparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_supersparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_supersparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_supersparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_supersparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_supersparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_supersparc" = "xyes" ; then
      CFLAGS="$CFLAGS -msupersparc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi

   ;;
   i586)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mtune=pentium" >&5
printf %s "checking -mtune=pentium... " >&6; }
  if test "x$pike_disabled_option_mtune_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mtune_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mtune_pentium=yes
else case e in #(
  e) pike_cv_option_mtune_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mtune_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi

   ;;
   i686)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mtune=i686" >&5
printf %s "checking -mtune=i686... " >&6; }
  if test "x$pike_disabled_option_mtune_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
printf %s "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_i686=yes
else case e in #(
  e) pike_cv_option_mcpu_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mtune_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mtune_i686=yes
else case e in #(
  e) pike_cv_option_mtune_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mtune_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
printf %s "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_i686=yes
else case e in #(
  e) pike_cv_option_mcpu_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi

#    AC_SYS_COMPILER_FLAG(-march=i686,march_i686,CFLAGS)
   ;;
   x86_64)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m64" >&5
printf %s "checking -m64... " >&6; }
  if test "x$pike_disabled_option_m64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mtune=i686" >&5
printf %s "checking -mtune=i686... " >&6; }
  if test "x$pike_disabled_option_mtune_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
printf %s "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_i686=yes
else case e in #(
  e) pike_cv_option_mcpu_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mtune_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mtune_i686=yes
else case e in #(
  e) pike_cv_option_mtune_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mtune_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
printf %s "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_i686=yes
else case e in #(
  e) pike_cv_option_mcpu_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_m64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_m64=yes
else case e in #(
  e) pike_cv_option_m64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_m64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_m64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_m64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_m64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_m64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_m64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_m64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_m64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_m64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_m64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_m64" = "xyes" ; then
      CFLAGS="$CFLAGS -m64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mtune=i686" >&5
printf %s "checking -mtune=i686... " >&6; }
  if test "x$pike_disabled_option_mtune_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
printf %s "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_i686=yes
else case e in #(
  e) pike_cv_option_mcpu_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mtune_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mtune_i686=yes
else case e in #(
  e) pike_cv_option_mtune_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mtune_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
printf %s "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_i686=yes
else case e in #(
  e) pike_cv_option_mcpu_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi

   ;;
   i86pc)
     # Solaris x86
     case "`optisa \`isalist 2>/dev/null\` 2>/dev/null || isalist 2>/dev/null`" in
	*amd64*)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m64" >&5
printf %s "checking -m64... " >&6; }
  if test "x$pike_disabled_option_m64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mtune=i686" >&5
printf %s "checking -mtune=i686... " >&6; }
  if test "x$pike_disabled_option_mtune_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
printf %s "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_i686=yes
else case e in #(
  e) pike_cv_option_mcpu_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mtune_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mtune_i686=yes
else case e in #(
  e) pike_cv_option_mtune_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mtune_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
printf %s "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_i686=yes
else case e in #(
  e) pike_cv_option_mcpu_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_m64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_m64=yes
else case e in #(
  e) pike_cv_option_m64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_m64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_m64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_m64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_m64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_m64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_m64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_m64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_m64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_m64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_m64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_m64" = "xyes" ; then
      CFLAGS="$CFLAGS -m64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mtune=i686" >&5
printf %s "checking -mtune=i686... " >&6; }
  if test "x$pike_disabled_option_mtune_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
printf %s "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_i686=yes
else case e in #(
  e) pike_cv_option_mcpu_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mtune_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mtune_i686=yes
else case e in #(
  e) pike_cv_option_mtune_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mtune_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
printf %s "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_i686=yes
else case e in #(
  e) pike_cv_option_mcpu_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi

#         AC_SYS_COMPILER_FLAG(-march=i686,march_i686,CFLAGS)
	;;
        *pentium_pro*)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mtune=i686" >&5
printf %s "checking -mtune=i686... " >&6; }
  if test "x$pike_disabled_option_mtune_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
printf %s "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_i686=yes
else case e in #(
  e) pike_cv_option_mcpu_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mtune_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mtune_i686=yes
else case e in #(
  e) pike_cv_option_mtune_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mtune_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
printf %s "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_i686+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_i686=yes
else case e in #(
  e) pike_cv_option_mcpu_i686=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
printf %s "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_pentiumpro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentiumpro=yes
else case e in #(
  e) pike_cv_option_pentiumpro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi

#         AC_SYS_COMPILER_FLAG(-march=i686,march_i686,CFLAGS)
	;;
        *pentium*)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mtune=pentium" >&5
printf %s "checking -mtune=pentium... " >&6; }
  if test "x$pike_disabled_option_mtune_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
printf %s "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_486+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_486=yes
else case e in #(
  e) pike_cv_option_486=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
printf %s "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_486+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_486=yes
else case e in #(
  e) pike_cv_option_486=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
printf %s "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_486+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_486=yes
else case e in #(
  e) pike_cv_option_486=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
printf %s "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_486+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_486=yes
else case e in #(
  e) pike_cv_option_486=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mtune_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mtune_pentium=yes
else case e in #(
  e) pike_cv_option_mtune_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mtune_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
printf %s "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
printf %s "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_486+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_486=yes
else case e in #(
  e) pike_cv_option_486=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
printf %s "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_486+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_486=yes
else case e in #(
  e) pike_cv_option_486=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if test ${pike_cv_option_mcpu_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_pentium=yes
else case e in #(
  e) pike_cv_option_mcpu_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
printf %s "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
printf %s "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_486+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_486=yes
else case e in #(
  e) pike_cv_option_486=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_pentium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pentium=yes
else case e in #(
  e) pike_cv_option_pentium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
printf %s "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_486+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_486=yes
else case e in #(
  e) pike_cv_option_486=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi

	;;
     esac
   ;;
   ppc64)
    case "`uname -p 2>/dev/null`" in
      Cell\ Broadband\ Engine*)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=cell" >&5
printf %s "checking -mcpu=cell... " >&6; }
  if test "x$pike_disabled_option_mcpu_cell" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_mcpu_cell+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=cell"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mcpu_cell=yes
else case e in #(
  e) pike_cv_option_mcpu_cell=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_cell=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_cell=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_cell=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_cell=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_cell=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_cell=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_cell=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_cell=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_cell=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_cell=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mcpu_cell" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=cell"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

      ;;
    esac
   ;;
  esac

  # AIX

  if test "x$pike_cv_sys_os" = "xAIX" ; then

    # Tell the linker to generate a large toc if needed


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -bbigtoc" >&5
printf %s "checking -bbigtoc... " >&6; }
  if test "x$pike_disabled_option_bbigtoc" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_bbigtoc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -bbigtoc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_bbigtoc=yes
else case e in #(
  e) pike_cv_option_bbigtoc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_bbigtoc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_bbigtoc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_bbigtoc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_bbigtoc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_bbigtoc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_bbigtoc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_bbigtoc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_bbigtoc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_bbigtoc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_bbigtoc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_bbigtoc" = "xyes" ; then
      LDFLAGS="$LDFLAGS -bbigtoc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wl,-bbigtoc" >&5
printf %s "checking -Wl,-bbigtoc... " >&6; }
  if test "x$pike_disabled_option_Wlbbigtoc" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wlbbigtoc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wl,-bbigtoc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wlbbigtoc=yes
else case e in #(
  e) pike_cv_option_Wlbbigtoc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wlbbigtoc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wlbbigtoc" = "xyes" ; then
      LDFLAGS="$LDFLAGS -Wl,-bbigtoc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi



  if test "x$pike_cv_sys_os" = "xDarwin" ; then

    # aka MacOS X.
    # Foundation framework needed by JavaVM.framework. The OS X 10.1 linker
    # no longer includes indirect dependencies so we need to add them here.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -framework Foundation" >&5
printf %s "checking -framework Foundation... " >&6; }
  if test "x$pike_disabled_option_framework_Foundation" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_framework_Foundation+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -framework Foundation"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_framework_Foundation=yes
else case e in #(
  e) pike_cv_option_framework_Foundation=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_framework_Foundation=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_framework_Foundation=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_framework_Foundation=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_framework_Foundation=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_framework_Foundation=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_framework_Foundation=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_framework_Foundation=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_framework_Foundation=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_framework_Foundation=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_framework_Foundation=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_framework_Foundation" = "xyes" ; then
      LDFLAGS="$LDFLAGS -framework Foundation"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -framework System" >&5
printf %s "checking -framework System... " >&6; }
  if test "x$pike_disabled_option_framework_System" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_framework_System+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -framework System"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_framework_System=yes
else case e in #(
  e) pike_cv_option_framework_System=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_framework_System=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_framework_System=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_framework_System=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_framework_System=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_framework_System=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_framework_System=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_framework_System=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_framework_System=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_framework_System=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_framework_System=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_framework_System" = "xyes" ; then
      LDFLAGS="$LDFLAGS -framework System"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    # Needed for MakeDataExecutable which comes from CarbonLib


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -framework CoreServices" >&5
printf %s "checking -framework CoreServices... " >&6; }
  if test "x$pike_disabled_option_framework_CoreServices" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_framework_CoreServices+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -framework CoreServices"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_framework_CoreServices=yes
else case e in #(
  e) pike_cv_option_framework_CoreServices=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_framework_CoreServices=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_framework_CoreServices" = "xyes" ; then
      LDFLAGS="$LDFLAGS -framework CoreServices"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    # -flat_namespace only needed for linking with libMallocDebug
    # AC_SYS_COMPILER_FLAG(-flat_namespace, flat_namespace, LDFLAGS)

    # Take care of warning when linking with GMP libraries (not on 64-bit)
    if test "x$with_abi" != "x64"; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -read_only_relocs warning" >&5
printf %s "checking -read_only_relocs warning... " >&6; }
  if test "x$pike_disabled_option_ro_relocs_warn" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_ro_relocs_warn+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -read_only_relocs warning"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_ro_relocs_warn=yes
else case e in #(
  e) pike_cv_option_ro_relocs_warn=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_ro_relocs_warn=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_ro_relocs_warn" = "xyes" ; then
      LDFLAGS="$LDFLAGS -read_only_relocs warning"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

    fi

    # Silence warnings about duplicate libraries


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wl,-no_warn_duplicate_libraries" >&5
printf %s "checking -Wl,-no_warn_duplicate_libraries... " >&6; }
  if test "x$pike_disabled_option_Wlno_warn_duplicate_libraries" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Wlno_warn_duplicate_libraries+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wl,-no_warn_duplicate_libraries"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Wlno_warn_duplicate_libraries=yes
else case e in #(
  e) pike_cv_option_Wlno_warn_duplicate_libraries=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wlno_warn_duplicate_libraries=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wlno_warn_duplicate_libraries=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wlno_warn_duplicate_libraries=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wlno_warn_duplicate_libraries=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wlno_warn_duplicate_libraries=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wlno_warn_duplicate_libraries=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wlno_warn_duplicate_libraries=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wlno_warn_duplicate_libraries=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wlno_warn_duplicate_libraries=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wlno_warn_duplicate_libraries=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Wlno_warn_duplicate_libraries" = "xyes" ; then
      LDFLAGS="$LDFLAGS -Wl,-no_warn_duplicate_libraries"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    # Tune based on processor family
    case "`machine`" in
      i486)
        # Darwin x86 runs on Intel Core Solo/Duo (based on Pentium M) and newer
        if test "x$with_abi" != "x64"; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -march=pentium-m" >&5
printf %s "checking -march=pentium-m... " >&6; }
  if test "x$pike_disabled_option_arch_pentium_m" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_arch_pentium_m+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -march=pentium-m"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_arch_pentium_m=yes
else case e in #(
  e) pike_cv_option_arch_pentium_m=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_arch_pentium_m=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_arch_pentium_m" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -march=pentium-m"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -march=pentium-m"
      CXXFLAGS="$CXXFLAGS -march=pentium-m"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -msse3" >&5
printf %s "checking -msse3... " >&6; }
  if test "x$pike_disabled_option_opt_sse3" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_opt_sse3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -msse3"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_opt_sse3=yes
else case e in #(
  e) pike_cv_option_opt_sse3=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_opt_sse3=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_opt_sse3=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_opt_sse3=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_opt_sse3=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_opt_sse3=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_opt_sse3=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_opt_sse3=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_opt_sse3=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_opt_sse3=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_opt_sse3=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_opt_sse3" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -msse3"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -msse3"
      CXXFLAGS="$CXXFLAGS -msse3"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mfpmath=sse" >&5
printf %s "checking -mfpmath=sse... " >&6; }
  if test "x$pike_disabled_option_opt_mfpmath_sse" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_opt_mfpmath_sse+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mfpmath=sse"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_opt_mfpmath_sse=yes
else case e in #(
  e) pike_cv_option_opt_mfpmath_sse=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_opt_mfpmath_sse=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_opt_mfpmath_sse" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -mfpmath=sse"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -mfpmath=sse"
      CXXFLAGS="$CXXFLAGS -mfpmath=sse"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

	fi

	# no-pic required for machine code to work


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mdynamic-no-pic" >&5
printf %s "checking -mdynamic-no-pic... " >&6; }
  if test "x$pike_disabled_option_dynamicnopic" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_dynamicnopic+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mdynamic-no-pic"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_dynamicnopic=yes
else case e in #(
  e) pike_cv_option_dynamicnopic=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_dynamicnopic=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_dynamicnopic=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_dynamicnopic=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_dynamicnopic=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_dynamicnopic=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_dynamicnopic=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_dynamicnopic=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_dynamicnopic=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_dynamicnopic=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_dynamicnopic=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_dynamicnopic" = "xyes" ; then
      OSFLAGS="$OSFLAGS -mdynamic-no-pic"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


	# Silence warnings about not working on systems older than the base
	# version of the current machine. We'll convert e.g. 10.5.8 to 1050.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -DMAC_OS_X_VERSION_MIN_REQUIRED=\`sw_vers -productVersion | tr -d . | cut -c -3\`0" >&5
printf %s "checking -DMAC_OS_X_VERSION_MIN_REQUIRED=\`sw_vers -productVersion | tr -d . | cut -c -3\`0... " >&6; }
  if test "x$pike_disabled_option_osxminversion" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_osxminversion+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=`sw_vers -productVersion | tr -d . | cut -c -3`0"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_osxminversion=yes
else case e in #(
  e) pike_cv_option_osxminversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_osxminversion=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_osxminversion=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_osxminversion=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_osxminversion=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_osxminversion=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_osxminversion=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_osxminversion=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_osxminversion=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_osxminversion=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_osxminversion=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_osxminversion" = "xyes" ; then
      CFLAGS="$CFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=`sw_vers -productVersion | tr -d . | cut -c -3`0"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

      ;;
      ppc970|ppc7450|ppc7400)
	# Improve performance on G4 and G5. Note that if the build machine
	# is a G4 or newer the resulting pike won't run on a G3.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=7400" >&5
printf %s "checking -mcpu=7400... " >&6; }
  if test "x$pike_disabled_option_cpu7400" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_cpu7400+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=7400"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_cpu7400=yes
else case e in #(
  e) pike_cv_option_cpu7400=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_cpu7400=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_cpu7400=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_cpu7400=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_cpu7400=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_cpu7400=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_cpu7400=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_cpu7400=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_cpu7400=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_cpu7400=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_cpu7400=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_cpu7400" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -mcpu=7400"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -mcpu=7400"
      CXXFLAGS="$CXXFLAGS -mcpu=7400"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mtune=7400" >&5
printf %s "checking -mtune=7400... " >&6; }
  if test "x$pike_disabled_option_tune7400" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_tune7400+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=7400"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_tune7400=yes
else case e in #(
  e) pike_cv_option_tune7400=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_tune7400=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_tune7400=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_tune7400=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_tune7400=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_tune7400=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_tune7400=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_tune7400=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_tune7400=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_tune7400=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_tune7400=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_tune7400" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -mtune=7400"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -mtune=7400"
      CXXFLAGS="$CXXFLAGS -mtune=7400"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

      ;;
      *)
        # G3 is the baseline on PPC since Mac OS X doesn't support anything
        # older.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mcpu=750" >&5
printf %s "checking -mcpu=750... " >&6; }
  if test "x$pike_disabled_option_cpu750" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_cpu750+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=750"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_cpu750=yes
else case e in #(
  e) pike_cv_option_cpu750=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_cpu750=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_cpu750=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_cpu750=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_cpu750=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_cpu750=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_cpu750=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_cpu750=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_cpu750=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_cpu750=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_cpu750=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_cpu750" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -mcpu=750"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -mcpu=750"
      CXXFLAGS="$CXXFLAGS -mcpu=750"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mtune=750" >&5
printf %s "checking -mtune=750... " >&6; }
  if test "x$pike_disabled_option_tune750" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_tune750+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=750"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_tune750=yes
else case e in #(
  e) pike_cv_option_tune750=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_tune750=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_tune750=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_tune750=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_tune750=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_tune750=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_tune750=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_tune750=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_tune750=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_tune750=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_tune750=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_tune750" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -mtune=750"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -mtune=750"
      CXXFLAGS="$CXXFLAGS -mtune=750"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

      ;;
    esac

  fi



  if test "x$pike_cv_sys_os" = "xLinux" ; then

  :
  # The following segment is obsolete, since executable memory is
  # now allocated with mmap instead of with malloc().
  #	/grubba 2005-06-09
  #
  #     if test "x$with_machine_code" = "xno"; then :; else
  #       # WORKAROUND: mprotect(PROT_EXEC) doesn't work on Linux/x86.
  #       # Try to set the stackexec flag on the binary.
  #       # First try -z execstack (ld).
  #       AC_SYS_COMPILER_FLAG([-z execstack], z_execstack, LDFLAGS, [
  #         # No, try passing it directly to the linker.
  #         AC_SYS_COMPILER_FLAG([-Wl,-z,execstack], Wl_z_execstack, LDFLAGS, [
  # 	  # No, try --execstack (gas).
  # 	  AC_SYS_COMPILER_FLAG([--execstack], execstack, CFLAGS, [
  # 	    # No, try passing it directly to the assembler.
  # 	    AC_SYS_COMPILER_FLAG([-Wa,--execstack], Wa_execstack, CFLAGS, [
  # 	      # No.
  # 	      # FIXME: Add support for use of chstk(1).
  # 	      PIKE_MSG_WARN([Could not find any way to enable executable stack.])
  # 	    ])
  # 	  ])
  # 	])
  #       ])
  #     fi

  fi


  else

    # Assume system compiler "cc".

    if test "x${with_static_linking-}" = "xyes" ; then

  if test "x$pike_cv_sys_os" = "xAIX" ; then



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wl,-bstatic" >&5
printf %s "checking -Wl,-bstatic... " >&6; }
  if test "x$pike_disabled_option_wl_link_static" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_wl_link_static+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wl,-bstatic"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_wl_link_static=yes
else case e in #(
  e) pike_cv_option_wl_link_static=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wl_link_static=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wl_link_static=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wl_link_static=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wl_link_static=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wl_link_static=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wl_link_static=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wl_link_static=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wl_link_static=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wl_link_static=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wl_link_static=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_wl_link_static" = "xyes" ; then
      CFLAGS="$CFLAGS -Wl,-bstatic"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

        LD_FALLBACK_FLAGS="${LD_FALLBACK_FLAGS} -bstatic"

  fi



  if test "x$pike_cv_sys_os" = "xOSF1" ; then



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -non_shared" >&5
printf %s "checking -non_shared... " >&6; }
  if test "x$pike_disabled_option_non_shared" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_non_shared+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -non_shared"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_non_shared=yes
else case e in #(
  e) pike_cv_option_non_shared=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_non_shared=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_non_shared=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_non_shared=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_non_shared=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_non_shared=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_non_shared=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_non_shared=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_non_shared=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_non_shared=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_non_shared=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_non_shared" = "xyes" ; then
      CFLAGS="$CFLAGS -non_shared"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

        LD_FALLBACK_FLAGS="${LD_FALLBACK_FLAGS} -non_shared"

  fi


      # how do you link statically on HP-UX ?
    else
      :
    fi

### Non-gcc thingies. This should probably be enhanced...


    if test "x$with_cdebug" = "xyes" ; then
      # FIXME:
      # Maybe should remove the -g flag if this succeeds.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -g3" >&5
printf %s "checking -g3... " >&6; }
  if test "x$pike_disabled_option_g3" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_g3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -g3"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_g3=yes
else case e in #(
  e) pike_cv_option_g3=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_g3=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_g3=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_g3=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_g3=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_g3=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_g3=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_g3=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_g3=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_g3=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_g3=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_g3" = "xyes" ; then
      CFLAGS="$CFLAGS -g3"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -trapuv" >&5
printf %s "checking -trapuv... " >&6; }
  if test "x$pike_disabled_option_trapuv" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_trapuv+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -trapuv"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_trapuv=yes
else case e in #(
  e) pike_cv_option_trapuv=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_trapuv=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_trapuv=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_trapuv=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_trapuv=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_trapuv=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_trapuv=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_trapuv=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_trapuv=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_trapuv=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_trapuv=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_trapuv" = "xyes" ; then
      WARN="$WARN -trapuv"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


      # Consider forcing a dwarf level supported by gdb (if found).
      #
      # For GDB the first version that supported that version of DWARF.
      # For the compilers, the first version with it as default.
      # In either case the version where the support was removed may
      # also be listed (typically DWARF-1).
      #
      #   Year	DWARF	GDB	GCC	CLANG	Note
      #   2017	5	8.0	11	14	Experimental?
      #   2010	4	7.0	4.8	3?
      #   2005	3	5.2?	-
      #   1993	2	5.1.1	3.1		Draft
      #   ????	1	3.3-6.7	?-4.1		Experimental?
      #
      # Forcing the dwarf level is mostly an issue on platforms that
      # insist on having old and broken compiler enviroments, like
      # eg OpenBSD 7.7 which has a fairly recent clang and lldb (16)
      # but lldb is broken, and an old gdb (6.3).
    fi

    # Solaris

  if test "x$pike_cv_sys_os" = "xSolaris" ; then



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -fast" >&5
printf %s "checking -fast... " >&6; }
  if test "x$pike_disabled_option_fast" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_fast+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fast"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_fast=yes
else case e in #(
  e) pike_cv_option_fast=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fast=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fast=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fast=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fast=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fast=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fast=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fast=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fast=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fast=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fast=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_fast" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -fast"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -fast"
      CXXFLAGS="$CXXFLAGS -fast"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

        if test "x$with_abi" = "x64"; then
          # -fast implies -xarch=native, which implies 32-bit ABI.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -xtarget=generic64" >&5
printf %s "checking -xtarget=generic64... " >&6; }
  if test "x$pike_disabled_option_xtarget_generic64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_xtarget_generic64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xtarget=generic64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_xtarget_generic64=yes
else case e in #(
  e) pike_cv_option_xtarget_generic64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xtarget_generic64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_xtarget_generic64" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -xtarget=generic64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -xtarget=generic64"
      CXXFLAGS="$CXXFLAGS -xtarget=generic64"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -xarch=generic64" >&5
printf %s "checking -xarch=generic64... " >&6; }
  if test "x$pike_disabled_option_xarch_generic64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_xarch_generic64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xarch=generic64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_xarch_generic64=yes
else case e in #(
  e) pike_cv_option_xarch_generic64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xarch_generic64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xarch_generic64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xarch_generic64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xarch_generic64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xarch_generic64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xarch_generic64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xarch_generic64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xarch_generic64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xarch_generic64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xarch_generic64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_xarch_generic64" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -xarch=generic64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -xarch=generic64"
      CXXFLAGS="$CXXFLAGS -xarch=generic64"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

        fi
        # -fast implies -fns, which turns off gradual underflow.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -fns=no" >&5
printf %s "checking -fns=no... " >&6; }
  if test "x$pike_disabled_option_fns_no" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_fns_no+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fns=no"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_fns_no=yes
else case e in #(
  e) pike_cv_option_fns_no=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fns_no=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fns_no=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fns_no=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fns_no=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fns_no=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fns_no=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fns_no=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fns_no=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fns_no=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fns_no=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_fns_no" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -fns=no"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -fns=no"
      CXXFLAGS="$CXXFLAGS -fns=no"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -xdepend" >&5
printf %s "checking -xdepend... " >&6; }
  if test "x$pike_disabled_option_xdepend" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_xdepend+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xdepend"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_xdepend=yes
else case e in #(
  e) pike_cv_option_xdepend=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xdepend=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xdepend=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xdepend=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xdepend=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xdepend=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xdepend=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xdepend=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xdepend=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xdepend=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xdepend=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_xdepend" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -xdepend"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -xdepend"
      CXXFLAGS="$CXXFLAGS -xdepend"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -xs" >&5
printf %s "checking -xs... " >&6; }
  if test "x$pike_disabled_option_xs" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_xs+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xs"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_xs=yes
else case e in #(
  e) pike_cv_option_xs=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xs=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xs=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xs=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xs=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xs=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xs=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xs=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xs=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xs=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xs=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_xs" = "xyes" ; then
      CFLAGS="$CFLAGS -xs"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

      # Causes __STDC__ to be 1 which causes several headerfiles to behave
      # differently.
      # AC_SYS_OS_COMPILER_FLAG(-Xc,Xc,WARN)

  fi


    # AIX

  if test "x$pike_cv_sys_os" = "xAIX" ; then

      # This one is needed to get the compiler to fail on errors,
      # which is needed for several configure-tests.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qhalt=e" >&5
printf %s "checking -qhalt=e... " >&6; }
  if test "x$pike_disabled_option_qhalt_e" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qhalt_e+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qhalt=e"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qhalt_e=yes
else case e in #(
  e) pike_cv_option_qhalt_e=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qhalt_e=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qhalt_e=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qhalt_e=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qhalt_e=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qhalt_e=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qhalt_e=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qhalt_e=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qhalt_e=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qhalt_e=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qhalt_e=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qhalt_e" = "xyes" ; then
      CFLAGS="$CFLAGS -qhalt=e"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qro" >&5
printf %s "checking -qro... " >&6; }
  if test "x$pike_disabled_option_qro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qro=yes
else case e in #(
  e) pike_cv_option_qro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qro" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -qro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -qro"
      CXXFLAGS="$CXXFLAGS -qro"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qfold" >&5
printf %s "checking -qfold... " >&6; }
  if test "x$pike_disabled_option_qfold" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qfold+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qfold"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qfold=yes
else case e in #(
  e) pike_cv_option_qfold=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qfold=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qfold=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qfold=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qfold=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qfold=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qfold=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qfold=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qfold=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qfold=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qfold=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qfold" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -qfold"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -qfold"
      CXXFLAGS="$CXXFLAGS -qfold"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qwarn64" >&5
printf %s "checking -qwarn64... " >&6; }
  if test "x$pike_disabled_option_qwarn64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qwarn64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qwarn64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qwarn64=yes
else case e in #(
  e) pike_cv_option_qwarn64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qwarn64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qwarn64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qwarn64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qwarn64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qwarn64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qwarn64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qwarn64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qwarn64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qwarn64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qwarn64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qwarn64" = "xyes" ; then
      WARN="$WARN -qwarn64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qflag=w:w" >&5
printf %s "checking -qflag=w:w... " >&6; }
  if test "x$pike_disabled_option_qflag_w_w" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qflag_w_w+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qflag=w:w"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qflag_w_w=yes
else case e in #(
  e) pike_cv_option_qflag_w_w=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qflag_w_w=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qflag_w_w=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qflag_w_w=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qflag_w_w=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qflag_w_w=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qflag_w_w=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qflag_w_w=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qflag_w_w=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qflag_w_w=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qflag_w_w=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qflag_w_w" = "xyes" ; then
      WARN="$WARN -qflag=w:w"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=cmp" >&5
printf %s "checking -qinfo=cmp... " >&6; }
  if test "x$pike_disabled_option_qinfo_cmp" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_cmp+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=cmp"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_cmp=yes
else case e in #(
  e) pike_cv_option_qinfo_cmp=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_cmp=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_cmp" = "xyes" ; then
      WARN="$WARN -qinfo=cmp"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=cnd" >&5
printf %s "checking -qinfo=cnd... " >&6; }
  if test "x$pike_disabled_option_qinfo_cnd" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_cnd+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=cnd"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_cnd=yes
else case e in #(
  e) pike_cv_option_qinfo_cnd=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_cnd=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_cnd" = "xyes" ; then
      WARN="$WARN -qinfo=cnd"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=cns" >&5
printf %s "checking -qinfo=cns... " >&6; }
  if test "x$pike_disabled_option_qinfo_cns" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_cns+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=cns"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_cns=yes
else case e in #(
  e) pike_cv_option_qinfo_cns=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_cns=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_cns=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_cns=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_cns=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_cns=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_cns=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_cns=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_cns=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_cns=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_cns=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_cns" = "xyes" ; then
      WARN="$WARN -qinfo=cns"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=cnv" >&5
printf %s "checking -qinfo=cnv... " >&6; }
  if test "x$pike_disabled_option_qinfo_cnv" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_cnv+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=cnv"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_cnv=yes
else case e in #(
  e) pike_cv_option_qinfo_cnv=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_cnv=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_cnv" = "xyes" ; then
      WARN="$WARN -qinfo=cnv"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=dcl" >&5
printf %s "checking -qinfo=dcl... " >&6; }
  if test "x$pike_disabled_option_qinfo_dcl" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_dcl+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=dcl"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_dcl=yes
else case e in #(
  e) pike_cv_option_qinfo_dcl=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_dcl=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_dcl" = "xyes" ; then
      WARN="$WARN -qinfo=dcl"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=eff" >&5
printf %s "checking -qinfo=eff... " >&6; }
  if test "x$pike_disabled_option_qinfo_eff" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_eff+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=eff"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_eff=yes
else case e in #(
  e) pike_cv_option_qinfo_eff=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_eff=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_eff=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_eff=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_eff=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_eff=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_eff=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_eff=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_eff=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_eff=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_eff=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_eff" = "xyes" ; then
      WARN="$WARN -qinfo=eff"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=enu" >&5
printf %s "checking -qinfo=enu... " >&6; }
  if test "x$pike_disabled_option_qinfo_enu" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_enu+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=enu"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_enu=yes
else case e in #(
  e) pike_cv_option_qinfo_enu=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_enu=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_enu=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_enu=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_enu=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_enu=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_enu=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_enu=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_enu=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_enu=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_enu=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_enu" = "xyes" ; then
      WARN="$WARN -qinfo=enu"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=ext" >&5
printf %s "checking -qinfo=ext... " >&6; }
  if test "x$pike_disabled_option_qinfo_ext" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_ext+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=ext"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_ext=yes
else case e in #(
  e) pike_cv_option_qinfo_ext=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_ext=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_ext=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_ext=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_ext=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_ext=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_ext=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_ext=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_ext=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_ext=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_ext=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_ext" = "xyes" ; then
      WARN="$WARN -qinfo=ext"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=gen" >&5
printf %s "checking -qinfo=gen... " >&6; }
  if test "x$pike_disabled_option_qinfo_gen" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_gen+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=gen"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_gen=yes
else case e in #(
  e) pike_cv_option_qinfo_gen=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_gen=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_gen=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_gen=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_gen=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_gen=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_gen=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_gen=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_gen=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_gen=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_gen=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_gen" = "xyes" ; then
      WARN="$WARN -qinfo=gen"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=gnr" >&5
printf %s "checking -qinfo=gnr... " >&6; }
  if test "x$pike_disabled_option_qinfo_gnr" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_gnr+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=gnr"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_gnr=yes
else case e in #(
  e) pike_cv_option_qinfo_gnr=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_gnr=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_gnr" = "xyes" ; then
      WARN="$WARN -qinfo=gnr"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=got" >&5
printf %s "checking -qinfo=got... " >&6; }
  if test "x$pike_disabled_option_qinfo_got" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_got+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=got"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_got=yes
else case e in #(
  e) pike_cv_option_qinfo_got=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_got=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_got=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_got=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_got=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_got=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_got=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_got=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_got=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_got=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_got=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_got" = "xyes" ; then
      WARN="$WARN -qinfo=got"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=ini" >&5
printf %s "checking -qinfo=ini... " >&6; }
  if test "x$pike_disabled_option_qinfo_ini" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_ini+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=ini"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_ini=yes
else case e in #(
  e) pike_cv_option_qinfo_ini=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_ini=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_ini=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_ini=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_ini=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_ini=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_ini=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_ini=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_ini=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_ini=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_ini=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_ini" = "xyes" ; then
      WARN="$WARN -qinfo=ini"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=inl" >&5
printf %s "checking -qinfo=inl... " >&6; }
  if test "x$pike_disabled_option_qinfo_inl" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_inl+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=inl"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_inl=yes
else case e in #(
  e) pike_cv_option_qinfo_inl=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_inl=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_inl=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_inl=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_inl=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_inl=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_inl=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_inl=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_inl=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_inl=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_inl=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_inl" = "xyes" ; then
      WARN="$WARN -qinfo=inl"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=lan" >&5
printf %s "checking -qinfo=lan... " >&6; }
  if test "x$pike_disabled_option_qinfo_lan" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_lan+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=lan"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_lan=yes
else case e in #(
  e) pike_cv_option_qinfo_lan=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_lan=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_lan=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_lan=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_lan=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_lan=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_lan=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_lan=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_lan=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_lan=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_lan=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_lan" = "xyes" ; then
      WARN="$WARN -qinfo=lan"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=obs" >&5
printf %s "checking -qinfo=obs... " >&6; }
  if test "x$pike_disabled_option_qinfo_obs" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_obs+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=obs"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_obs=yes
else case e in #(
  e) pike_cv_option_qinfo_obs=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_obs=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_obs=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_obs=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_obs=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_obs=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_obs=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_obs=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_obs=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_obs=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_obs=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_obs" = "xyes" ; then
      WARN="$WARN -qinfo=obs"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=ord" >&5
printf %s "checking -qinfo=ord... " >&6; }
  if test "x$pike_disabled_option_qinfo_ord" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_ord+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=ord"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_ord=yes
else case e in #(
  e) pike_cv_option_qinfo_ord=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_ord=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_ord=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_ord=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_ord=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_ord=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_ord=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_ord=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_ord=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_ord=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_ord=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_ord" = "xyes" ; then
      WARN="$WARN -qinfo=ord"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=par" >&5
printf %s "checking -qinfo=par... " >&6; }
  if test "x$pike_disabled_option_qinfo_par" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_par+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=par"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_par=yes
else case e in #(
  e) pike_cv_option_qinfo_par=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_par=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_par=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_par=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_par=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_par=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_par=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_par=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_par=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_par=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_par=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_par" = "xyes" ; then
      WARN="$WARN -qinfo=par"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=por" >&5
printf %s "checking -qinfo=por... " >&6; }
  if test "x$pike_disabled_option_qinfo_por" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_por+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=por"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_por=yes
else case e in #(
  e) pike_cv_option_qinfo_por=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_por=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_por=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_por=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_por=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_por=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_por=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_por=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_por=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_por=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_por=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_por" = "xyes" ; then
      WARN="$WARN -qinfo=por"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


      # ppc disabled since it complains about the system header files.
      # AC_SYS_COMPILER_FLAG_QINFO(ppc)
      # ppt disabled since tracing the preprocessor isn't interresting.
      # AC_SYS_COMPILER_FLAG_QINFO(ppt)



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=pro" >&5
printf %s "checking -qinfo=pro... " >&6; }
  if test "x$pike_disabled_option_qinfo_pro" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_pro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=pro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_pro=yes
else case e in #(
  e) pike_cv_option_qinfo_pro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_pro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_pro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_pro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_pro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_pro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_pro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_pro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_pro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_pro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_pro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_pro" = "xyes" ; then
      WARN="$WARN -qinfo=pro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=rea" >&5
printf %s "checking -qinfo=rea... " >&6; }
  if test "x$pike_disabled_option_qinfo_rea" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_rea+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=rea"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_rea=yes
else case e in #(
  e) pike_cv_option_qinfo_rea=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_rea=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_rea=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_rea=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_rea=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_rea=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_rea=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_rea=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_rea=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_rea=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_rea=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_rea" = "xyes" ; then
      WARN="$WARN -qinfo=rea"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=ret" >&5
printf %s "checking -qinfo=ret... " >&6; }
  if test "x$pike_disabled_option_qinfo_ret" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_ret+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=ret"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_ret=yes
else case e in #(
  e) pike_cv_option_qinfo_ret=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_ret=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_ret=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_ret=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_ret=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_ret=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_ret=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_ret=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_ret=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_ret=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_ret=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_ret" = "xyes" ; then
      WARN="$WARN -qinfo=ret"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


      # trd disabled, since it adds extra errors (in particular 1506-419).
      # AC_SYS_COMPILER_FLAG_QINFO(trd)



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=tru" >&5
printf %s "checking -qinfo=tru... " >&6; }
  if test "x$pike_disabled_option_qinfo_tru" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_tru+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=tru"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_tru=yes
else case e in #(
  e) pike_cv_option_qinfo_tru=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_tru=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_tru=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_tru=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_tru=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_tru=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_tru=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_tru=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_tru=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_tru=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_tru=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_tru" = "xyes" ; then
      WARN="$WARN -qinfo=tru"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=uni" >&5
printf %s "checking -qinfo=uni... " >&6; }
  if test "x$pike_disabled_option_qinfo_uni" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_uni+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=uni"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_uni=yes
else case e in #(
  e) pike_cv_option_qinfo_uni=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_uni=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_uni=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_uni=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_uni=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_uni=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_uni=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_uni=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_uni=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_uni=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_uni=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_uni" = "xyes" ; then
      WARN="$WARN -qinfo=uni"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qinfo=use" >&5
printf %s "checking -qinfo=use... " >&6; }
  if test "x$pike_disabled_option_qinfo_use" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qinfo_use+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=use"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qinfo_use=yes
else case e in #(
  e) pike_cv_option_qinfo_use=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_use=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_use=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_use=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_use=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_use=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_use=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_use=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_use=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_use=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_use=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qinfo_use" = "xyes" ; then
      WARN="$WARN -qinfo=use"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


      # AC_SYS_COMPILER_FLAG(-qalias=addr,qalias_addr,OPTIMIZE)
      # AC_SYS_COMPILER_FLAG(-qlibansi,qlibansi,OPTIMIZE)

      # Suppress warnings and informational messages we aren't interested in.

      # 1506-010 (W) Macro XX invoked with a null argument for parameter Z.



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qsuppress=1506-010" >&5
printf %s "checking -qsuppress=1506-010... " >&6; }
  if test "x$pike_disabled_option_qsuppress_1506_010" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qsuppress_1506_010+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qsuppress=1506-010"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qsuppress_1506_010=yes
else case e in #(
  e) pike_cv_option_qsuppress_1506_010=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qsuppress_1506_010=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qsuppress_1506_010" = "xyes" ; then
      WARN="$WARN -qsuppress=1506-010"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


      # 1506-219 (W) #line value 40140 too large.



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qsuppress=1506-219" >&5
printf %s "checking -qsuppress=1506-219... " >&6; }
  if test "x$pike_disabled_option_qsuppress_1506_219" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qsuppress_1506_219+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qsuppress=1506-219"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qsuppress_1506_219=yes
else case e in #(
  e) pike_cv_option_qsuppress_1506_219=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qsuppress_1506_219=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qsuppress_1506_219" = "xyes" ; then
      CPPFLAGS="$CPPFLAGS -qsuppress=1506-219"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



      # Tell the linker to generate a large toc if needed


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -bbigtoc" >&5
printf %s "checking -bbigtoc... " >&6; }
  if test "x$pike_disabled_option_bbigtoc" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_bbigtoc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -bbigtoc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_bbigtoc=yes
else case e in #(
  e) pike_cv_option_bbigtoc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_bbigtoc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_bbigtoc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_bbigtoc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_bbigtoc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_bbigtoc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_bbigtoc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_bbigtoc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_bbigtoc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_bbigtoc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_bbigtoc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_bbigtoc" = "xyes" ; then
      LDFLAGS="$LDFLAGS -bbigtoc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    # HP-UX

  if test "x$pike_cv_sys_os" = "xHP-UX" ; then



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -D__STDC_EXT__" >&5
printf %s "checking -D__STDC_EXT__... " >&6; }
  if test "x$pike_disabled_option_stdc_ext" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_stdc_ext+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -D__STDC_EXT__"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_stdc_ext=yes
else case e in #(
  e) pike_cv_option_stdc_ext=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_stdc_ext=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_stdc_ext=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_stdc_ext=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_stdc_ext=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_stdc_ext=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_stdc_ext=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_stdc_ext=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_stdc_ext=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_stdc_ext=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_stdc_ext=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_stdc_ext" = "xyes" ; then
      CFLAGS="$CFLAGS -D__STDC_EXT__"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wp,-H50000" >&5
printf %s "checking -Wp,-H50000... " >&6; }
  if test "x$pike_disabled_option_cpp_buffer_size" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_cpp_buffer_size+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wp,-H50000"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_cpp_buffer_size=yes
else case e in #(
  e) pike_cv_option_cpp_buffer_size=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_cpp_buffer_size=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_cpp_buffer_size" = "xyes" ; then
      CFLAGS="$CFLAGS -Wp,-H50000"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking +ESlit" >&5
printf %s "checking +ESlit... " >&6; }
  if test "x$pike_disabled_option_plus_ESlit" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_plus_ESlit+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS +ESlit"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_plus_ESlit=yes
else case e in #(
  e) pike_cv_option_plus_ESlit=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_plus_ESlit=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_plus_ESlit=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_plus_ESlit=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_plus_ESlit=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_plus_ESlit=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_plus_ESlit=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_plus_ESlit=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_plus_ESlit=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_plus_ESlit=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_plus_ESlit=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_plus_ESlit" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE +ESlit"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS +ESlit"
      CXXFLAGS="$CXXFLAGS +ESlit"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking +Odataprefetch" >&5
printf %s "checking +Odataprefetch... " >&6; }
  if test "x$pike_disabled_option_plus_Odataprefetch" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_plus_Odataprefetch+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS +Odataprefetch"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_plus_Odataprefetch=yes
else case e in #(
  e) pike_cv_option_plus_Odataprefetch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_plus_Odataprefetch=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_plus_Odataprefetch" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE +Odataprefetch"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS +Odataprefetch"
      CXXFLAGS="$CXXFLAGS +Odataprefetch"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking +Ofailsafe" >&5
printf %s "checking +Ofailsafe... " >&6; }
  if test "x$pike_disabled_option_plus_Ofailsafe" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_plus_Ofailsafe+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS +Ofailsafe"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_plus_Ofailsafe=yes
else case e in #(
  e) pike_cv_option_plus_Ofailsafe=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_plus_Ofailsafe=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_plus_Ofailsafe" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE +Ofailsafe"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS +Ofailsafe"
      CXXFLAGS="$CXXFLAGS +Ofailsafe"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

      # Ignore the following warnings if you enable +w1
      #   414 Optimization reduced to +O2 for compatibility with Debug.
      #   530 Casting from loose to strict alignment
      #   558 Empty declaration.
      # AC_SYS_COMPILER_FLAG(+w1,plus_w1,WARN)

  fi


    # OSF/1

  if test "x$pike_cv_sys_os" = "xOSF1" ; then



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -fast" >&5
printf %s "checking -fast... " >&6; }
  if test "x$pike_disabled_option_fast" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_fast+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fast"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_fast=yes
else case e in #(
  e) pike_cv_option_fast=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fast=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fast=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fast=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fast=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fast=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fast=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fast=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fast=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fast=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fast=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_fast" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -fast"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -fast"
      CXXFLAGS="$CXXFLAGS -fast"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

      # The need for -ieee is not detected properly by the FPE tests below.
      # AC_SYS_COMPILER_FLAG(-ieee,ieee,CFLAGS)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -readonly_strings" >&5
printf %s "checking -readonly_strings... " >&6; }
  if test "x$pike_disabled_option_readonly_strings" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_readonly_strings+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -readonly_strings"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_readonly_strings=yes
else case e in #(
  e) pike_cv_option_readonly_strings=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_readonly_strings=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_readonly_strings=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_readonly_strings=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_readonly_strings=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_readonly_strings=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_readonly_strings=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_readonly_strings=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_readonly_strings=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_readonly_strings=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_readonly_strings=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_readonly_strings" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -readonly_strings"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -readonly_strings"
      CXXFLAGS="$CXXFLAGS -readonly_strings"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -assume trusted_short_alignment" >&5
printf %s "checking -assume trusted_short_alignment... " >&6; }
  if test "x$pike_disabled_option_assume_trusted_short_alignment" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_assume_trusted_short_alignment+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -assume trusted_short_alignment"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_assume_trusted_short_alignment=yes
else case e in #(
  e) pike_cv_option_assume_trusted_short_alignment=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_assume_trusted_short_alignment=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_assume_trusted_short_alignment" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -assume trusted_short_alignment"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -assume trusted_short_alignment"
      CXXFLAGS="$CXXFLAGS -assume trusted_short_alignment"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -assume aligned_objects" >&5
printf %s "checking -assume aligned_objects... " >&6; }
  if test "x$pike_disabled_option_assume_aligned_objects" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_assume_aligned_objects+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -assume aligned_objects"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_assume_aligned_objects=yes
else case e in #(
  e) pike_cv_option_assume_aligned_objects=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_assume_aligned_objects=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_assume_aligned_objects" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -assume aligned_objects"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -assume aligned_objects"
      CXXFLAGS="$CXXFLAGS -assume aligned_objects"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -no_misalign" >&5
printf %s "checking -no_misalign... " >&6; }
  if test "x$pike_disabled_option_no_misalign" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_no_misalign+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -no_misalign"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_no_misalign=yes
else case e in #(
  e) pike_cv_option_no_misalign=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_no_misalign=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_no_misalign=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_no_misalign=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_no_misalign=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_no_misalign=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_no_misalign=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_no_misalign=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_no_misalign=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_no_misalign=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_no_misalign=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_no_misalign" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -no_misalign"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -no_misalign"
      CXXFLAGS="$CXXFLAGS -no_misalign"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -host" >&5
printf %s "checking -host... " >&6; }
  if test "x$pike_disabled_option_host" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_host+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -host"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_host=yes
else case e in #(
  e) pike_cv_option_host=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_host=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_host=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_host=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_host=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_host=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_host=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_host=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_host=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_host=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_host=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_host" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -host"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -host"
      CXXFLAGS="$CXXFLAGS -host"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


      # Flags that cause errors or change compiler behaviour
      # must go in CFLAGS, they can not go in WARN
      # /Hubbe


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -std1" >&5
printf %s "checking -std1... " >&6; }
  if test "x$pike_disabled_option_std1" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_std1+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std1"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_std1=yes
else case e in #(
  e) pike_cv_option_std1=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std1=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std1=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std1=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std1=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std1=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std1=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std1=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std1=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std1=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std1=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_std1" = "xyes" ; then
      CFLAGS="$CFLAGS -std1"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -warnprotos" >&5
printf %s "checking -warnprotos... " >&6; }
  if test "x$pike_disabled_option_warnprotos" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_warnprotos+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -warnprotos"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_warnprotos=yes
else case e in #(
  e) pike_cv_option_warnprotos=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_warnprotos=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_warnprotos=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_warnprotos=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_warnprotos=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_warnprotos=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_warnprotos=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_warnprotos=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_warnprotos=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_warnprotos=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_warnprotos=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_warnprotos" = "xyes" ; then
      WARN="$WARN -warnprotos"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi


    # Windows NT

  if test "x$pike_cv_sys_os" = "xWindows_NT" ; then

      case "x$CC" in
      *rntcl*)
        if test x$with_debug_crt = xyes; then
  	dynamic_crt_flag=-MDd
  	static_crt_flag=-MTd
        else
  	dynamic_crt_flag=-MD
  	static_crt_flag=-MT
        fi

	# We want the full 32-bit address space (not the default 31-bit).


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -LARGEADDRESSAWARE" >&5
printf %s "checking -LARGEADDRESSAWARE... " >&6; }
  if test "x$pike_disabled_option_LARGEADDRESSAWARE" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_LARGEADDRESSAWARE+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -LARGEADDRESSAWARE"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_LARGEADDRESSAWARE=yes
else case e in #(
  e) pike_cv_option_LARGEADDRESSAWARE=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_LARGEADDRESSAWARE=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_LARGEADDRESSAWARE" = "xyes" ; then
      LDFLAGS="$LDFLAGS -LARGEADDRESSAWARE"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


        # Inhibit warning:
        #   LNK4099: PDB 'zlib.pdb' was not found with '...\lib\zlib.lib'
        #            or at '...\zlib.pdb'; linking object as if no debug info


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -wd4099" >&5
printf %s "checking -wd4099... " >&6; }
  if test "x$pike_disabled_option_wd4099" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_wd4099+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -wd4099"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_wd4099=yes
else case e in #(
  e) pike_cv_option_wd4099=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wd4099=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wd4099=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wd4099=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wd4099=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wd4099=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wd4099=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wd4099=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wd4099=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wd4099=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wd4099=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_wd4099" = "xyes" ; then
      WARN="$WARN -wd4099"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


        # Inhibit warning:
        #   LNK4221: no public symbols found; archive
        #            member will be inaccessible
        # which is generated when linking a *.lib with some empty
        # object files (like eg modules/system/syslog.o).


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -wd4221" >&5
printf %s "checking -wd4221... " >&6; }
  if test "x$pike_disabled_option_wd4221" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_wd4221+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -wd4221"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_wd4221=yes
else case e in #(
  e) pike_cv_option_wd4221=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wd4221=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wd4221=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wd4221=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wd4221=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wd4221=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wd4221=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wd4221=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wd4221=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wd4221=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wd4221=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_wd4221" = "xyes" ; then
      WARN="$WARN -wd4221"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


        # Inhibit warning:
        #   C4244: '/=' : conversion from 'double' to 'float',
        #                 possible loss of data
        # Note: Unfortunately this also disables the warning about
        #       eg conversion from 'long' to 'unsigned char'.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -wd4244" >&5
printf %s "checking -wd4244... " >&6; }
  if test "x$pike_disabled_option_wd4244" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_wd4244+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -wd4244"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_wd4244=yes
else case e in #(
  e) pike_cv_option_wd4244=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wd4244=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wd4244=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wd4244=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wd4244=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wd4244=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wd4244=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wd4244=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wd4244=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wd4244=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wd4244=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_wd4244" = "xyes" ; then
      WARN="$WARN -wd4244"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


        # Inhibit warning:
        #   C4334: '<<' : result of 32-bit shift implicitly converted
        #                 to 64 bits (was 64-bit shift intended?)
        # which is generated in two places in dtoa.c.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -wd4334" >&5
printf %s "checking -wd4334... " >&6; }
  if test "x$pike_disabled_option_wd4334" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_wd4334+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -wd4334"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_wd4334=yes
else case e in #(
  e) pike_cv_option_wd4334=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wd4334=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wd4334=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wd4334=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wd4334=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wd4334=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wd4334=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wd4334=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wd4334=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wd4334=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wd4334=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_wd4334" = "xyes" ; then
      WARN="$WARN -wd4334"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


        # Inhibit warning:
        #   C4146: unary minus operator applied to unsigned type,
        #          result still unsigned
        # which is generated in two places in dtoa.c.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -wd4146" >&5
printf %s "checking -wd4146... " >&6; }
  if test "x$pike_disabled_option_wd4146" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_wd4146+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -wd4146"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_wd4146=yes
else case e in #(
  e) pike_cv_option_wd4146=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wd4146=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wd4146=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wd4146=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wd4146=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wd4146=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wd4146=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wd4146=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wd4146=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wd4146=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wd4146=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_wd4146" = "xyes" ; then
      WARN="$WARN -wd4146"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

        ;;
      esac

      if test x$with_dynamic_modules != xno; then
        pike_cv_sys_dynamic_loading=yes
      fi

  fi



        case "$CC" in
      *apcc)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -XO=5" >&5
printf %s "checking -XO=5... " >&6; }
  if test "x$pike_disabled_option_apcc_opt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_apcc_opt+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -XO=5"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_apcc_opt=yes
else case e in #(
  e) pike_cv_option_apcc_opt=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_apcc_opt=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_apcc_opt=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_apcc_opt=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_apcc_opt=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_apcc_opt=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_apcc_opt=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_apcc_opt=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_apcc_opt=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_apcc_opt=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_apcc_opt=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_apcc_opt" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -XO=5"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -XO=5"
      CXXFLAGS="$CXXFLAGS -XO=5"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Xcallmod=2" >&5
printf %s "checking -Xcallmod=2... " >&6; }
  if test "x$pike_disabled_option_apcc_opt_2" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_apcc_opt_2+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Xcallmod=2"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_apcc_opt_2=yes
else case e in #(
  e) pike_cv_option_apcc_opt_2=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_apcc_opt_2=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_apcc_opt_2" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -Xcallmod=2"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -Xcallmod=2"
      CXXFLAGS="$CXXFLAGS -Xcallmod=2"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

      ;;
    esac

    # Old cc for solaris.
    #  AC_SYS_CPU_COMPILER_FLAG(sun4m,-Xpipe=micro,microsparc,OPTIMIZE)
    #  AC_SYS_CPU_COMPILER_FLAG(sun4d,-Xpipe=super,supersparc,OPTIMIZE)
    #  AC_SYS_CPU_COMPILER_FLAG(sun4u,-Xpipe=super,ultrasparc,OPTIMIZE)

    case "${CFLAGS-} $OPTIMIZE" in
      *-O*) ;;
      *+O*) ;;
      *-fast*) ;;
      *)
        case "$pike_cv_sys_os:$GCC" in
          UnixWare*:no|OpenUNIX*:no)
  	;;
  	*)
  	;;
        esac
      ;;
    esac
  fi

  if test "$ICC" = "yes"; then
    # icc or ecc.

    # Modern versions of icc and ecc claim to be gcc, so we need to have
    # this outside the main if-else segment.


  if test "x$pike_cv_sys_os" = "xLinux" ; then

      # Linux with Intel C++

      # Disable excessive warnings from Linux's header files:
      #   warning #1292: attribute "__nothrow__" ignored


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -wd1292" >&5
printf %s "checking -wd1292... " >&6; }
  if test "x$pike_disabled_option_wd1292" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_wd1292+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -wd1292"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_wd1292=yes
else case e in #(
  e) pike_cv_option_wd1292=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wd1292=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wd1292=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wd1292=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wd1292=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wd1292=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wd1292=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wd1292=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wd1292=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wd1292=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wd1292=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_wd1292" = "xyes" ; then
      WARN="$WARN -wd1292"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

      # And from Pike:
      #   remark #177: function "MKPCHARP" was declared but never referenced


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -wd177" >&5
printf %s "checking -wd177... " >&6; }
  if test "x$pike_disabled_option_wd177" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_wd177+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -wd177"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_wd177=yes
else case e in #(
  e) pike_cv_option_wd177=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wd177=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wd177=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wd177=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wd177=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wd177=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wd177=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wd177=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wd177=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wd177=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wd177=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_wd177" = "xyes" ; then
      WARN="$WARN -wd177"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

      #   remark #279: controlling expression is constant


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -wd279" >&5
printf %s "checking -wd279... " >&6; }
  if test "x$pike_disabled_option_wd279" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_wd279+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -wd279"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_wd279=yes
else case e in #(
  e) pike_cv_option_wd279=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wd279=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wd279=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wd279=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wd279=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wd279=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wd279=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wd279=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wd279=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wd279=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wd279=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_wd279" = "xyes" ; then
      WARN="$WARN -wd279"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

      #   remark #869: parameter was never referenced


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -wd869" >&5
printf %s "checking -wd869... " >&6; }
  if test "x$pike_disabled_option_wd869" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_wd869+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -wd869"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_wd869=yes
else case e in #(
  e) pike_cv_option_wd869=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wd869=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wd869=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wd869=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wd869=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wd869=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wd869=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wd869=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wd869=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wd869=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wd869=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_wd869" = "xyes" ; then
      WARN="$WARN -wd869"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Ob2" >&5
printf %s "checking -Ob2... " >&6; }
  if test "x$pike_disabled_option_Ob2" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_Ob2+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Ob2"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_Ob2=yes
else case e in #(
  e) pike_cv_option_Ob2=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Ob2=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Ob2=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Ob2=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Ob2=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Ob2=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Ob2=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Ob2=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Ob2=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Ob2=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Ob2=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_Ob2" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -Ob2"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -Ob2"
      CXXFLAGS="$CXXFLAGS -Ob2"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -ip" >&5
printf %s "checking -ip... " >&6; }
  if test "x$pike_disabled_option_ip" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_ip+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -ip"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_ip=yes
else case e in #(
  e) pike_cv_option_ip=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_ip=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_ip=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_ip=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_ip=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_ip=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_ip=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_ip=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_ip=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_ip=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_ip=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_ip" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -ip"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -ip"
      CXXFLAGS="$CXXFLAGS -ip"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

      # Iterprocedural optimization accross object files.
      # This slows down the compiler quite a bit with Pike's
      # large number of object files.
      # AC_SYS_COMPILER_FLAG(-ipo,ipo,OPTIMIZE)
      # AC_SYS_COMPILER_FLAG(-ipo,ipo,EXTRALDFLAGS)
      # AC_SYS_COMPILER_FLAG(-ipo_obj,ipo_obj,OPTIMIZE)
      # -parallel seems to generate broken code with icc 8.0/ia64.
      # AC_SYS_COMPILER_FLAG(-parallel, parallel,OPTIMIZE)
      # AC_SYS_COMPILER_FLAG(-parallel, parallel,LDFLAGS)
      # arch dependent optimizations while maintaining
      # i386 compatibility


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -axKW" >&5
printf %s "checking -axKW... " >&6; }
  if test "x$pike_disabled_option_axKW" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_axKW+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -axKW"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_axKW=yes
else case e in #(
  e) pike_cv_option_axKW=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_axKW=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_axKW=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_axKW=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_axKW=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_axKW=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_axKW=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_axKW=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_axKW=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_axKW=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_axKW=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_axKW" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -axKW"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -axKW"
      CXXFLAGS="$CXXFLAGS -axKW"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi

  fi
else
  # CFLAGS has already been set by the user.
  # Avoid adding anything that isn't essential.

  if test "x$pike_cv_sys_os" = "xAIX" ; then

    # This one is needed to get the compiler to fail on errors,
    # which is needed for several configure-tests.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -qhalt=e" >&5
printf %s "checking -qhalt=e... " >&6; }
  if test "x$pike_disabled_option_qhalt_e" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_qhalt_e+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qhalt=e"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_qhalt_e=yes
else case e in #(
  e) pike_cv_option_qhalt_e=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qhalt_e=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qhalt_e=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qhalt_e=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qhalt_e=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qhalt_e=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qhalt_e=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qhalt_e=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qhalt_e=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qhalt_e=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qhalt_e=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_qhalt_e" = "xyes" ; then
      CFLAGS="$CFLAGS -qhalt=e"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  fi

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking crc32 intrinsics" >&5
printf %s "checking crc32 intrinsics... " >&6; }
if test ${pike_cv_sys_have_crc_intrinsics+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if (defined(__i386__) || defined(__amd64__)) && defined(__GNUC__)
    __attribute__((target("sse4"))) int c(int a) {
      return __builtin_ia32_crc32si(0,a);
    }
#elif (defined(__arm__) && defined(__GNUC__)) || (defined(__aarch64__) && defined(__clang__))
    __attribute__((target("arch=armv8-a+crc"))) int c(int a) {
      return __builtin_arm_crc32cw(0,a);
    }
#elif defined(__aarch64__) && defined(__GNUC__)
    __attribute__((target("+crc"))) int c(int a) {
      return __builtin_aarch64_crc32cw(0,a);
    }
#else
#error Do not know how to check for crc32 intrinsics on your system
#endif

int
main (void)
{

      return c(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_sys_have_crc_intrinsics=yes
else case e in #(
  e) pike_cv_sys_have_crc_intrinsics=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_sys_have_crc_intrinsics" >&5
printf "%s\n" "$pike_cv_sys_have_crc_intrinsics" >&6; }

if test "x$pike_cv_sys_have_crc_intrinsics" = "xyes" ; then

printf "%s\n" "#define HAVE_CRC32_INTRINSICS /**/" >>confdefs.h

fi

# test for several buildins





# Check for compiler builtins/intrinsics.
#
# C23:  <stdbit.h>
# ECC:  <emmintrin.h>
# ICC:  <immintrin.h>
# IBMC: <builtins.h>
# MSVC: <intrin.h>

  if test "x$enable_binary" != "xno"; then


  ac_fn_c_check_header_compile "$LINENO" "stdbit.h" "ac_cv_header_stdbit_h" "$ac_includes_default"
if test "x$ac_cv_header_stdbit_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "stdbit.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <stdbit.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_STDBIT_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "intrin.h" "ac_cv_header_intrin_h" "$ac_includes_default"
if test "x$ac_cv_header_intrin_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "intrin.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <intrin.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_INTRIN_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "emmintrin.h" "ac_cv_header_emmintrin_h" "$ac_includes_default"
if test "x$ac_cv_header_emmintrin_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "emmintrin.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <emmintrin.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_EMMINTRIN_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
if test "x$ac_cv_header_immintrin_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "immintrin.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <immintrin.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "builtins.h" "ac_cv_header_builtins_h" "$ac_includes_default"
if test "x$ac_cv_header_builtins_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "builtins.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <builtins.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_BUILTINS_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "machine/bswap.h" "ac_cv_header_machine_bswap_h" "$ac_includes_default"
if test "x$ac_cv_header_machine_bswap_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "machine/bswap.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <machine/bswap.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_MACHINE_BSWAP_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_endian_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/endian.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/endian.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
if test "x$ac_cv_header_util_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "util.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <util.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h


fi


  else
    for ac_hdr in stdbit.h intrin.h emmintrin.h immintrin.h builtins.h \
                 machine/bswap.h sys/endian.h util.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi


# RDRND hardware random support


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mrdrnd" >&5
printf %s "checking -mrdrnd... " >&6; }
  if test "x$pike_disabled_option_opt_rdrnd" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_opt_rdrnd+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mrdrnd"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_opt_rdrnd=yes
else case e in #(
  e) pike_cv_option_opt_rdrnd=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_opt_rdrnd=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_opt_rdrnd" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -mrdrnd"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -mrdrnd"
      CXXFLAGS="$CXXFLAGS -mrdrnd"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ia32_rdrand64_step" >&5
printf %s "checking for __builtin_ia32_rdrand64_step... " >&6; }
    if test ${pike_cv_builtin___builtin_ia32_rdrand64_step+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_ia32_rdrand64_step(&foo);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_ia32_rdrand64_step="yes"
else case e in #(
  e) pike_cv_builtin___builtin_ia32_rdrand64_step="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_ia32_rdrand64_step" >&5
printf "%s\n" "$pike_cv_builtin___builtin_ia32_rdrand64_step" >&6; }
    if test "$pike_cv_builtin___builtin_ia32_rdrand64_step" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_IA32_RDRAND64_STEP 1" >>confdefs.h

    fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
printf %s "checking for __builtin_unreachable... " >&6; }
    if test ${pike_cv_builtin___builtin_unreachable+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
__builtin_unreachable();
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_unreachable="yes"
else case e in #(
  e) pike_cv_builtin___builtin_unreachable="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_unreachable" >&5
printf "%s\n" "$pike_cv_builtin___builtin_unreachable" >&6; }
    if test "$pike_cv_builtin___builtin_unreachable" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_UNREACHABLE 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_assume" >&5
printf %s "checking for __builtin_assume... " >&6; }
    if test ${pike_cv_builtin___builtin_assume+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
__builtin_assume();
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_assume="yes"
else case e in #(
  e) pike_cv_builtin___builtin_assume="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_assume" >&5
printf "%s\n" "$pike_cv_builtin___builtin_assume" >&6; }
    if test "$pike_cv_builtin___builtin_assume" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_ASSUME 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
printf %s "checking for __builtin_memset... " >&6; }
    if test ${pike_cv_builtin___builtin_memset+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_memset(&foo,0,0);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_memset="yes"
else case e in #(
  e) pike_cv_builtin___builtin_memset="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_memset" >&5
printf "%s\n" "$pike_cv_builtin___builtin_memset" >&6; }
    if test "$pike_cv_builtin___builtin_memset" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_MEMSET 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
printf %s "checking for __builtin_constant_p... " >&6; }
    if test ${pike_cv_builtin___builtin_constant_p+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_constant_p(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_constant_p="yes"
else case e in #(
  e) pike_cv_builtin___builtin_constant_p="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_constant_p" >&5
printf "%s\n" "$pike_cv_builtin___builtin_constant_p" >&6; }
    if test "$pike_cv_builtin___builtin_constant_p" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_CONSTANT_P 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
printf %s "checking for __builtin_clz... " >&6; }
    if test ${pike_cv_builtin___builtin_clz+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_clz(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_clz="yes"
else case e in #(
  e) pike_cv_builtin___builtin_clz="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_clz" >&5
printf "%s\n" "$pike_cv_builtin___builtin_clz" >&6; }
    if test "$pike_cv_builtin___builtin_clz" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_CLZ 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5
printf %s "checking for __builtin_clzl... " >&6; }
    if test ${pike_cv_builtin___builtin_clzl+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_clzl(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_clzl="yes"
else case e in #(
  e) pike_cv_builtin___builtin_clzl="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_clzl" >&5
printf "%s\n" "$pike_cv_builtin___builtin_clzl" >&6; }
    if test "$pike_cv_builtin___builtin_clzl" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_CLZL 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5
printf %s "checking for __builtin_clzll... " >&6; }
    if test ${pike_cv_builtin___builtin_clzll+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_clzll(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_clzll="yes"
else case e in #(
  e) pike_cv_builtin___builtin_clzll="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_clzll" >&5
printf "%s\n" "$pike_cv_builtin___builtin_clzll" >&6; }
    if test "$pike_cv_builtin___builtin_clzll" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_CLZLL 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
printf %s "checking for __builtin_ctz... " >&6; }
    if test ${pike_cv_builtin___builtin_ctz+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_ctz(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_ctz="yes"
else case e in #(
  e) pike_cv_builtin___builtin_ctz="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_ctz" >&5
printf "%s\n" "$pike_cv_builtin___builtin_ctz" >&6; }
    if test "$pike_cv_builtin___builtin_ctz" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_CTZ 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzl" >&5
printf %s "checking for __builtin_ctzl... " >&6; }
    if test ${pike_cv_builtin___builtin_ctzl+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_ctzl(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_ctzl="yes"
else case e in #(
  e) pike_cv_builtin___builtin_ctzl="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_ctzl" >&5
printf "%s\n" "$pike_cv_builtin___builtin_ctzl" >&6; }
    if test "$pike_cv_builtin___builtin_ctzl" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_CTZL 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzll" >&5
printf %s "checking for __builtin_ctzll... " >&6; }
    if test ${pike_cv_builtin___builtin_ctzll+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_ctzll(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_ctzll="yes"
else case e in #(
  e) pike_cv_builtin___builtin_ctzll="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_ctzll" >&5
printf "%s\n" "$pike_cv_builtin___builtin_ctzll" >&6; }
    if test "$pike_cv_builtin___builtin_ctzll" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_CTZLL 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
printf %s "checking for __builtin_bswap32... " >&6; }
    if test ${pike_cv_builtin___builtin_bswap32+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_bswap32(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_bswap32="yes"
else case e in #(
  e) pike_cv_builtin___builtin_bswap32="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_bswap32" >&5
printf "%s\n" "$pike_cv_builtin___builtin_bswap32" >&6; }
    if test "$pike_cv_builtin___builtin_bswap32" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_BSWAP32 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
printf %s "checking for __builtin_bswap64... " >&6; }
    if test ${pike_cv_builtin___builtin_bswap64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_bswap64(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_bswap64="yes"
else case e in #(
  e) pike_cv_builtin___builtin_bswap64="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_bswap64" >&5
printf "%s\n" "$pike_cv_builtin___builtin_bswap64" >&6; }
    if test "$pike_cv_builtin___builtin_bswap64" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_BSWAP64 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
printf %s "checking for __builtin_expect... " >&6; }
    if test ${pike_cv_builtin___builtin_expect+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_expect(foo,0);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___builtin_expect="yes"
else case e in #(
  e) pike_cv_builtin___builtin_expect="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___builtin_expect" >&5
printf "%s\n" "$pike_cv_builtin___builtin_expect" >&6; }
    if test "$pike_cv_builtin___builtin_expect" = "yes"; then

printf "%s\n" "#define HAS___BUILTIN_EXPECT 1" >>confdefs.h

    fi

# ICC builtins

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _bswap" >&5
printf %s "checking for _bswap... " >&6; }
    if test ${pike_cv_builtin__bswap+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <immintrin.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_bswap(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin__bswap="yes"
else case e in #(
  e) pike_cv_builtin__bswap="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin__bswap" >&5
printf "%s\n" "$pike_cv_builtin__bswap" >&6; }
    if test "$pike_cv_builtin__bswap" = "yes"; then

printf "%s\n" "#define HAS__BSWAP 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _bswap64" >&5
printf %s "checking for _bswap64... " >&6; }
    if test ${pike_cv_builtin__bswap64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <immintrin.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_bswap64(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin__bswap64="yes"
else case e in #(
  e) pike_cv_builtin__bswap64="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin__bswap64" >&5
printf "%s\n" "$pike_cv_builtin__bswap64" >&6; }
    if test "$pike_cv_builtin__bswap64" = "yes"; then

printf "%s\n" "#define HAS__BSWAP64 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _bit_scan_reverse" >&5
printf %s "checking for _bit_scan_reverse... " >&6; }
    if test ${pike_cv_builtin__bit_scan_reverse+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <immintrin.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_bit_scan_reverse(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin__bit_scan_reverse="yes"
else case e in #(
  e) pike_cv_builtin__bit_scan_reverse="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin__bit_scan_reverse" >&5
printf "%s\n" "$pike_cv_builtin__bit_scan_reverse" >&6; }
    if test "$pike_cv_builtin__bit_scan_reverse" = "yes"; then

printf "%s\n" "#define HAS__BIT_SCAN_REVERSE 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _bit_scan_forward" >&5
printf %s "checking for _bit_scan_forward... " >&6; }
    if test ${pike_cv_builtin__bit_scan_forward+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <immintrin.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_bit_scan_forward(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin__bit_scan_forward="yes"
else case e in #(
  e) pike_cv_builtin__bit_scan_forward="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin__bit_scan_forward" >&5
printf "%s\n" "$pike_cv_builtin__bit_scan_forward" >&6; }
    if test "$pike_cv_builtin__bit_scan_forward" = "yes"; then

printf "%s\n" "#define HAS__BIT_SCAN_FORWARD 1" >>confdefs.h

    fi

# Visual Studio builtins

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __assume" >&5
printf %s "checking for __assume... " >&6; }
    if test ${pike_cv_builtin___assume+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <intrin.h>


int
main (void)
{

unsigned long lint;
__assume(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___assume="yes"
else case e in #(
  e) pike_cv_builtin___assume="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___assume" >&5
printf "%s\n" "$pike_cv_builtin___assume" >&6; }
    if test "$pike_cv_builtin___assume" = "yes"; then

printf "%s\n" "#define HAS___ASSUME 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _BitScanForward" >&5
printf %s "checking for _BitScanForward... " >&6; }
    if test ${pike_cv_builtin__bitscanforward+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <intrin.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_BitScanForward(&lint, 23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin__bitscanforward="yes"
else case e in #(
  e) pike_cv_builtin__bitscanforward="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin__bitscanforward" >&5
printf "%s\n" "$pike_cv_builtin__bitscanforward" >&6; }
    if test "$pike_cv_builtin__bitscanforward" = "yes"; then

printf "%s\n" "#define HAS__BITSCANFORWARD 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _BitScanForward64" >&5
printf %s "checking for _BitScanForward64... " >&6; }
    if test ${pike_cv_builtin__bitscanforward64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <intrin.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_BitScanForward64(&lint, 23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin__bitscanforward64="yes"
else case e in #(
  e) pike_cv_builtin__bitscanforward64="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin__bitscanforward64" >&5
printf "%s\n" "$pike_cv_builtin__bitscanforward64" >&6; }
    if test "$pike_cv_builtin__bitscanforward64" = "yes"; then

printf "%s\n" "#define HAS__BITSCANFORWARD64 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _BitScanReverse" >&5
printf %s "checking for _BitScanReverse... " >&6; }
    if test ${pike_cv_builtin__bitscanreverse+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <intrin.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_BitScanReverse(&lint, 23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin__bitscanreverse="yes"
else case e in #(
  e) pike_cv_builtin__bitscanreverse="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin__bitscanreverse" >&5
printf "%s\n" "$pike_cv_builtin__bitscanreverse" >&6; }
    if test "$pike_cv_builtin__bitscanreverse" = "yes"; then

printf "%s\n" "#define HAS__BITSCANREVERSE 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _BitScanReverse64" >&5
printf %s "checking for _BitScanReverse64... " >&6; }
    if test ${pike_cv_builtin__bitscanreverse64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <intrin.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_BitScanReverse64(&lint, 23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin__bitscanreverse64="yes"
else case e in #(
  e) pike_cv_builtin__bitscanreverse64="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin__bitscanreverse64" >&5
printf "%s\n" "$pike_cv_builtin__bitscanreverse64" >&6; }
    if test "$pike_cv_builtin__bitscanreverse64" = "yes"; then

printf "%s\n" "#define HAS__BITSCANREVERSE64 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _byteswap_ulong" >&5
printf %s "checking for _byteswap_ulong... " >&6; }
    if test ${pike_cv_builtin__byteswap_ulong+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <stdlib.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_byteswap_ulong(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin__byteswap_ulong="yes"
else case e in #(
  e) pike_cv_builtin__byteswap_ulong="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin__byteswap_ulong" >&5
printf "%s\n" "$pike_cv_builtin__byteswap_ulong" >&6; }
    if test "$pike_cv_builtin__byteswap_ulong" = "yes"; then

printf "%s\n" "#define HAS__BYTESWAP_ULONG 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _byteswap_uint64" >&5
printf %s "checking for _byteswap_uint64... " >&6; }
    if test ${pike_cv_builtin__byteswap_uint64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <stdlib.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_byteswap_uint64(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin__byteswap_uint64="yes"
else case e in #(
  e) pike_cv_builtin__byteswap_uint64="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin__byteswap_uint64" >&5
printf "%s\n" "$pike_cv_builtin__byteswap_uint64" >&6; }
    if test "$pike_cv_builtin__byteswap_uint64" = "yes"; then

printf "%s\n" "#define HAS__BYTESWAP_UINT64 1" >>confdefs.h

    fi

# IBM C builtins

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __cntlz4" >&5
printf %s "checking for __cntlz4... " >&6; }
    if test ${pike_cv_builtin___cntlz4+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <builtins.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__cntlz4(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___cntlz4="yes"
else case e in #(
  e) pike_cv_builtin___cntlz4="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___cntlz4" >&5
printf "%s\n" "$pike_cv_builtin___cntlz4" >&6; }
    if test "$pike_cv_builtin___cntlz4" = "yes"; then

printf "%s\n" "#define HAS___CNTLZ4 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __cntlz8" >&5
printf %s "checking for __cntlz8... " >&6; }
    if test ${pike_cv_builtin___cntlz8+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <builtins.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__cntlz8(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___cntlz8="yes"
else case e in #(
  e) pike_cv_builtin___cntlz8="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___cntlz8" >&5
printf "%s\n" "$pike_cv_builtin___cntlz8" >&6; }
    if test "$pike_cv_builtin___cntlz8" = "yes"; then

printf "%s\n" "#define HAS___CNTLZ8 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __cnttz4" >&5
printf %s "checking for __cnttz4... " >&6; }
    if test ${pike_cv_builtin___cnttz4+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <builtins.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__cnttz4(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___cnttz4="yes"
else case e in #(
  e) pike_cv_builtin___cnttz4="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___cnttz4" >&5
printf "%s\n" "$pike_cv_builtin___cnttz4" >&6; }
    if test "$pike_cv_builtin___cnttz4" = "yes"; then

printf "%s\n" "#define HAS___CNTTZ4 1" >>confdefs.h

    fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __cnttz8" >&5
printf %s "checking for __cnttz8... " >&6; }
    if test ${pike_cv_builtin___cnttz8+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <builtins.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__cnttz8(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin___cnttz8="yes"
else case e in #(
  e) pike_cv_builtin___cnttz8="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin___cnttz8" >&5
printf "%s\n" "$pike_cv_builtin___cnttz8" >&6; }
    if test "$pike_cv_builtin___cnttz8" = "yes"; then

printf "%s\n" "#define HAS___CNTTZ8 1" >>confdefs.h

    fi

# C23 intrinsics

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdc_leading_zeros that supports __int128" >&5
printf %s "checking for stdc_leading_zeros that supports __int128... " >&6; }
    if test ${pike_cv_builtin_stdc_leading_zeros_int128+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <stdbit.h>


int
main (void)
{

unsigned long lint;
volatile int foo = 0;
foo = (int)stdc_leading_zeros((unsigned __int128)0);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_builtin_stdc_leading_zeros_int128="yes"
else case e in #(
  e) pike_cv_builtin_stdc_leading_zeros_int128="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_builtin_stdc_leading_zeros_int128" >&5
printf "%s\n" "$pike_cv_builtin_stdc_leading_zeros_int128" >&6; }
    if test "$pike_cv_builtin_stdc_leading_zeros_int128" = "yes"; then

printf "%s\n" "#define HAS_STDC_LEADING_ZEROS_INT128 1" >>confdefs.h

    fi



#############################################################################

# Script to translate from POSIX paths to native paths.
echo "Creating posix_to_native.sh..."
if test "x$PIKE_PATH_TRANSLATE" = "x"; then
  if test "x$pike_cv_is_mingw" = "xyes"; then
    # MinGW system.
    cat <<\EOF
#!/bin/sh
# Automatically generated.
# MinGW-version. Do NOT edit.
posix_name="`cat`"
posix_prefix="/"
native_prefix="/"
case "$posix_name" in
  /*) ;;
  *) posix_name="`pwd`/$posix_name" ;;
esac
case "$posix_name" in
EOF
    # Split and recombine the lines.
    # Sort the lines according to longest path first.
    # Convert backslashes to forward slashes.
    # Escape spaces, tabs and dollars.
    # Note, dollars must be escaped both for sed, sh and sed.
    # Split, and generate the case entries.
    # Remove any duplicate sequences of slashes.
    mount | \
      sed -e 's/\(.*\) on \(.*\) type .*/\2 _split_ \1/p' -ed | \
      sort -r | \
      sed -e 's/\\/\//g' | \
      sed -e 's/\([ 	]\)/\\\1/g' -e 's/\$/\\\\\\\$/g' | \
      sed -e 's/\(.*\)\\ _split_\\ \(.*\)/  \1|\1\/*)\
    posix_prefix=\1\
    native_prefix=\2\/\
  \;\;/p' -ed | \
      sed -e 's/\/\//\//g'
    cat <<\EOF
esac
echo "$posix_name" | \
  sed -e "s,^$posix_prefix,$native_prefix," | \
  sed -e 's/\/\//\//g'
EOF
  elif test "x$pike_cv_sys_os" = "xAmigaOS"; then
    # AmigaOS system.
  cat <<\EOF
#!/bin/sh
# Automatically generated.
# AmigaOS-version. Do NOT edit.
sed -e 's;//*;/;g' -e 's;\(^\|/\)\(\./\)*\.\($\|/\);\1;g' -e 's;^/\([^:/]*\)\($\|/\);\1:;' -e 's;/\.\./;//;g' -e 's;\(^\|:\|/\)\.\.\($\|/\);\1/;g'
EOF
  else
    # Native POSIX system.
  cat <<\EOF
#!/bin/sh
# Automatically generated.
# POSIX-version. Do NOT edit.
cat
EOF
  fi
else
  # rntcl-style
  cat <<\EOF
#!/bin/sh
# Automatically generated.
# RNTCL-version. Do NOT edit.
sed -e "$PIKE_PATH_TRANSLATE"
EOF
fi >posix_to_native.sh

chmod a+x posix_to_native.sh

#############################################################################

if test ! -d modules/. ; then
  mkdir modules
fi

#############################################################################

## Search for some popular places where libraries may be hidden.

#############################################################################

if test "x$pike_cv_sys_os$pike_cv_is_mingw" != xWindows_NT ; then

echo Searching for library and include directories...

#Don't add include dirs if they give us warnings...
OLD_ac_c_preproc_warn_flag="$ac_c_preproc_warn_flag"
ac_c_preproc_warn_flag=yes
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else case e in #(
  e)
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Turning on preprocessor warnings causes cpp test to fail." >&5
printf "%s\n" "$as_me: WARNING: Turning on preprocessor warnings causes cpp test to fail." >&2;}
  ac_c_preproc_warn_flag="$OLD_ac_c_preproc_warn_flag"
 ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext


  real_dirs='/ /usr'
  real_incs='/include /usr/include'


if test "x$with_lib_path" = "x"; then
  : # Actual code for this case appears later...
else
  for dd in `echo $with_lib_path | sed -e 's/:/ /g'`; do
    if test "$dd" = "/lib"; then continue; fi
    if test "$dd" = "/usr/lib"; then continue; fi
    for suff in $pike_cv_abi_suffixes; do
      d="$dd$suff"
      expect_ok='yes'
      if test "x$suff" = "x/."; then
        expect_ok='no'
      fi



  pike_file_follow_symlink_opt=""

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $d contains $pike_cv_abi-bit ABI files" >&5
printf %s "checking whether $d contains $pike_cv_abi-bit ABI files... " >&6; }
  abi_dir_ok="no"
  abi_dir_dynamic="unknown"
  real_dir="$d"
  update_abi_32="no"
  update_abi_64="no"
  update_abi_dynamic="no"
  while :; do
    if test -d "$d/." ; then
      if test "x$expect_ok" = "xyes"; then
        # Directory exists, expected OK.
        abi_dir_ok="yes"
        abi_dir_dynamic="yes"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - exists and assumed good" >&5
printf "%s\n" "yes - exists and assumed good" >&6; }
        break;
      fi
      :;
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - does not exist" >&5
printf "%s\n" "no - does not exist" >&6; }
      break
    fi
    cached="(cached) "
    real_dir=`cd "$d/." && /bin/pwd 2>/dev/null`
    if test "x$real_dir" = "x"; then
      cached="(pwd failed) "
      real_dir="$d"
    fi
    if echo " $pike_cv_32bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_32=yes
    elif echo " $pike_cv_not_32bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_32=no
    else
      abi_32=unknown
      update_abi_32="yes"
    fi
    if echo " $pike_cv_64bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_64=yes
    elif echo " $pike_cv_not_64bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_64=no
    else
      abi_64=unknown
      update_abi_64="yes"
    fi
    if echo " $pike_cv_dynamic_dirs " | grep " $real_dir " >/dev/null; then
      abi_dir_dynamic=yes
    elif echo " $pike_cv_not_dynamic_dirs " | grep " $real_dir " >/dev/null; then
      abi_dir_dynamic=no
    else
      abi_dir_dynamic=unknown
      update_abi_dynamic="yes"
    fi
    empty=no
    # echo
    # echo "cache key:$abi_32:$abi_64:$abi_dir_dynamic for $real_dir"
    # echo
    if echo "$abi_32:$abi_64:$abi_dir_dynamic" | \
	 grep "unknown" >/dev/null; then
      cached=""
      empty=yes
      for f in "$d"/* no; do
        if test -f "$f"; then
	  empty=no
	  # NB: GNU file and BSD file default to not following symlinks.
	  #	Solaris /bin/file does not understand -L. The following
	  #	should support most cases.
          filetype="`POSIXLY_CORRECT=yes file $pike_follow_symlink_opt $f 2>/dev/null`"

	  case "$filetype" in
	    *"symbolic link"*)
	      if file -L $f >/dev/null 2>&1; then
	        pike_file_follow_symbolic_link="-L";
		filetype="`POSIXLY_CORRECT=yes file -L $f 2>/dev/null`"
	      fi
	      ;;
	  esac

	  # NB: /bin/file on Solaris 11 says
	  #     "current ar archive, 32-bit symbol table"
	  #     about most archives. We don't want this
	  #     to be matched in the ABI check below.
	  filetype="`echo $filetype | sed -e 's/...bit symbol table//'`"

	  case "$filetype" in
            *executable*)
              continue;;
            *32-bit*)
  	      abi_32=yes
	      ;;
  	    *64-bit*)
  	      abi_64=yes
	      ;;
	    *32*)
  	      abi_32=yes
	      ;;
	    *64*)
  	      abi_64=yes
	      ;;
	    *386*)
  	      abi_32=yes
	      ;;
	    *ppc*)
              abi_32=yes
	      ;;
	    *archive*)
	      # Try looking deeper into the archive.
	      if type elffile 2>/dev/null >/dev/null; then
		# Solaris 11 or later.
		# Typical output:
		# i386: "current ar archive, 32-bit symbol table, ELF 32-bit LSB relocatable 80386 Version 1"
		# amd64: "current ar archive, 32-bit symbol table, ELF 64-bit LSB relocatable AMD64 Version 1"
	        filetype="`POSIXLY_CORRECT=yes elffile $f 2>/dev/null`"
	      elif type elfdump 2>/dev/null >/dev/null; then
		# Solaris 10 or earlier.
		# Typical output:
		# i386: "ei_class:   ELFCLASS32          ei_data:      ELFDATA2LSB" (repeated)
		# sparcv7: "ei_class:   ELFCLASS32          ei_data:      ELFDATA2MSB"
		# amd64: "ei_class:   ELFCLASS64          ei_data:      ELFDATA2LSB" (repeated)
		# sparc64: "ei_class:   ELFCLASS64          ei_data:      ELFDATA2MSB"
		filetype="`POSIXLY_CORRECT=yes elfdump -e $f 2>/dev/null | grep ELFCLASS`"
	      elif type readelf 2>/dev/null >/dev/null; then
		# GNU binutils.
		# Typical output:
		# x86: "Class:                             ELF32"
		# x86_64: "Class:                             ELF64"
		filetype="`readelf -h $f 2>/dev/null | grep -i class`"
	      fi
	      # NB: Avoid matching "32-bit symbol table".
	      filetype="`echo $filetype | sed -e 's/...bit symbol table//'`"
	      case "$filetype" in
		*ELFCLASS64*)
		  abi_64=yes
		  ;;
		*ELFCLASS32*)
		  abi_32=yes
		  ;;
		*ELF64*)
		  abi_64=yes
		  ;;
		*ELF32*)
		  abi_32=yes
		  ;;
		*64-bit*)
		  abi_64=yes
		  ;;
		*32-bit*)
		  abi_32=yes
		  ;;
		*64*)
		  abi_64=yes
		  ;;
		*32*)
		  abi_32=yes
		  ;;
	      esac
	      ;;
	  esac
	  case "$filetype" in
	    *not\ a\ dynamic*)
	      ;;
	    *not\ a\ shared*)
	      ;;
	    *dynamic*)
	      abi_dir_dynamic=yes
	      ;;
	    *shared*)
	      abi_dir_dynamic=yes
	      ;;
	  esac
	  if test "$abi_dir_dynamic" = "unknown"; then
	     continue;
	  elif test "$abi_64:$pike_cv_abi" = "yes:64" ; then
             break
          elif test "$abi_32:$pike_cv_abi" = "yes:32" ; then
             break
          fi
	elif test "x$empty" = "xyes"; then
	  empty=other
        fi
      done
      if test "$update_abi_32" = "yes"; then
        if test "$abi_32" = "yes"; then
          # echo
          # echo "Adding $real_dir to pike_cv_32bit_dirs"
          # echo
          pike_cv_32bit_dirs="$pike_cv_32bit_dirs $real_dir"
          if test "$abi_64" = "unknown"; then
            abi_64="no"
          fi
        else
          # echo
          # echo "Adding $real_dir to pike_cv_not_32bit_dirs"
          # echo
          pike_cv_not_32bit_dirs="$pike_cv_not_32bit_dirs $real_dir"
        fi
        update_abi_32="no"
      fi
      if test "$update_abi_64" = "yes"; then
        if test "$abi_64" = "yes"; then
          # echo
          # echo "Adding $real_dir to pike_cv_64bit_dirs"
          # echo
          pike_cv_64bit_dirs="$pike_cv_64bit_dirs $real_dir"
          if test "$abi_32" = "unknown"; then
            abi_32="no"
          fi
        elif test "$abi_64" = "no"; then
          # echo
          # echo "Adding $real_dir to pike_cv_not_64bit_dirs"
          # echo
          pike_cv_not_64bit_dirs="$pike_cv_not_64bit_dirs $real_dir"
        fi
      fi
      if test "$update_abi_32" = "yes"; then
        if test "$abi_32" = "no"; then
          # echo
          # echo "Adding $real_dir to pike_cv_not_32bit_dirs"
          # echo
          pike_cv_not_32bit_dirs="$pike_cv_not_32bit_dirs $real_dir"
        fi
      fi
      if test "$update_abi_dynamic" = "yes"; then
        if test "$abi_dir_dynamic" = "yes"; then
          # echo
          # echo "Adding $real_dir to pike_cv_dynamic_dirs"
          # echo
          pike_cv_dynamic_dirs="$pike_cv_dynamic_dirs $real_dir"
        else
          # echo
          # echo "Adding $real_dir to pike_cv_not_dynamic_dirs"
          # echo
          pike_cv_not_dynamic_dirs="$pike_cv_not_dynamic_dirs $real_dir"
        fi
      fi
    fi
    if test "$abi_32:$pike_cv_abi" = "no:32" \
         -o "$abi_64:$pike_cv_abi" = "no:64" \
	 -o "x$empty" = "xyes"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${cached}no, does not contain any $pike_cv_abi-bit ABI files" >&5
printf "%s\n" "${cached}no, does not contain any $pike_cv_abi-bit ABI files" >&6; }
    else
      abi_dir_ok="yes"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${cached}ABI ok" >&5
printf "%s\n" "${cached}ABI ok" >&6; }
    fi
    break
  done
  if test "$abi_dir_ok" = "yes"; then

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what to add to LDFLAGS" >&5
printf %s "checking what to add to LDFLAGS... " >&6; }
    add_ldflags=""
    if echo " $LDFLAGS " | grep " -L$real_dir " >/dev/null; then :; else
      add_ldflags="-L$real_dir"
    fi
    if test "x$abi_dir_dynamic" = "xyes"; then
      if echo " $LDFLAGS " | grep " -R$real_dir " >/dev/null; then :; else
        add_ldflags="$add_ldflags -R$real_dir"
      fi
    fi
    if test "x$add_ldflags" = "x"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nothing - already added" >&5
printf "%s\n" "nothing - already added" >&6; }
      :
    else
      OLD_LDFLAGS="${LDFLAGS}"
      LDFLAGS="${LDFLAGS} $add_ldflags -lm"
      if test "$cross_compiling" = yes
then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int
main (void)
{

    	     double (*foo)(double) = ceil;
    	     exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
   LDFLAGS="$OLD_LDFLAGS $add_ldflags"
    	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $add_ldflags" >&5
printf "%s\n" "$add_ldflags" >&6; }

else case e in #(
  e)  LDFLAGS="$OLD_LDFLAGS"
    	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nothing - $add_ldflags causes failures" >&5
printf "%s\n" "nothing - $add_ldflags causes failures" >&6; }
               add_ldflags=""
         ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(int argc, char **argv)
{
  double (*foo)(double) = ceil;
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
   LDFLAGS="$OLD_LDFLAGS $add_ldflags"
    	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $add_ldflags" >&5
printf "%s\n" "$add_ldflags" >&6; }

else case e in #(
  e)  LDFLAGS="$OLD_LDFLAGS"
    	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nothing - $add_ldflags causes failures" >&5
printf "%s\n" "nothing - $add_ldflags causes failures" >&6; }
            add_ldflags=""
         ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

      if test "x$add_ldflags" = "x"; then
        :
      else
        :
      fi
    fi
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkgconfig directory" >&5
printf %s "checking for pkgconfig directory... " >&6; }
    if test -d "$real_dir/pkgconfig/."; then
      PKG_CONFIG_PATH="$PKG_CONFIG_PATH${PKG_CONFIG_PATH:+:}$real_dir/pkgconfig"
      export PKG_CONFIG_PATH
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - $real_dir/pkgconfig" >&5
printf "%s\n" "yes - $real_dir/pkgconfig" >&6; }
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi

  elif test "$abi_dir_ok" = "no"; then
    :
  fi


    done
  done
fi

if test "x$with_include_path" = "x"; then :; else
  for d in `echo $with_include_path | sed -e 's/:/ /g'`; do
    if test "$d" = "/lib/include"; then continue; fi
    if test "$d" = "/usr/lib/include"; then continue; fi
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $d" >&5
printf %s "checking $d... " >&6; }
    if test -d "$d/." ; then
      real_dir=`cd "$d/." && /bin/pwd 2>/dev/null`
      if test "x$real_dir" = "x"; then
        real_dir="UNKNOWN"
      else
	case " $real_incs " in
	  *\ $real_dir\ *)
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already checked" >&5
printf "%s\n" "already checked" >&6; }
	    continue
	  ;;
	esac
	real_incs="$real_incs $real_dir"
      fi
      case " $CPPFLAGS " in
        *\ -I$d\ * | *\ -I$real_dir\ *)
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already added" >&5
printf "%s\n" "already added" >&6; }
          ;;
        *)
	  OLD_CPPFLAGS="${CPPFLAGS}"
          CPPFLAGS="${CPPFLAGS} -I$d"
	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: added" >&5
printf "%s\n" "added" >&6; }

else case e in #(
  e)
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fails" >&5
printf "%s\n" "fails" >&6; }
	    CPPFLAGS="${OLD_CPPFLAGS}"
	   ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext
          ;;
      esac
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi
  done
fi

primary_path=""
fallback_path=""

case "$pike_cv_sys_os" in
  Solaris*)   p_site_prefixes_to_add="$p_site_prefixes_to_add:$with_root/opt/local";;
esac

if test $ldflags_is_set = yes -a $cppflags_is_set = yes ; then :; else
  for dd in \
    `echo "${p_site_prefixes_to_add}"|sed -e 's/:/ /g'` \
    `echo $exec_prefix | sed "s@^NONE@$prefix@g" | sed "s@^NONE@$with_root$ac_default_prefix@g"` \
    $with_root/usr \
    $with_root/usr/local $with_root/sw/local $with_root/sw $with_root/opt/local \
    $with_root/usr/gnu $with_root/opt/gnu $with_root/sw/gnu \
    $with_root/usr/freeware $with_root/usr/pkg \
    `echo $with_root/opt/gnome* | sort -r` \
    `echo $with_root/usr/X* | sort -r` \
    $with_root/usr/pkg $with_root/opt/pkg \
    $with_root/usr/sfw $with_root/opt/sfw $with_root/opt/csw \
    $with_root/usr/ccs $with_root/opt/homebrew
  do
    O_IFS=${IFS}
    IFS=":"
    sp_exclude="no"
    for spx in ${p_site_prefixes_to_remove} ; do
      if test "x$with_root$spx" = "x$dd" ; then
        sp_exclude="yes"
      fi
    done

    IFS="$O_IFS"

    if test "$sp_exclude" = "yes" ; then continue; fi
    if test "$dd" = "/"; then continue; fi
    #if test "$dd" = "/usr"; then continue; fi
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $dd" >&5
printf %s "checking $dd... " >&6; }
    if test -d "$dd/."; then :; else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
      continue
    fi
    real_dir=`cd "$dd/." && /bin/pwd 2>/dev/null`
    if test "x$real_dir" = "x"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok but pwd failed" >&5
printf "%s\n" "ok but pwd failed" >&6; }
    else case " $real_dirs " in
      *\ $real_dir\ *)
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already checked" >&5
printf "%s\n" "already checked" >&6; }
	continue
	;;
      esac
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
printf "%s\n" "ok" >&6; }
      real_dirs="$real_dirs $real_dir"
    fi
    libs_found=""
    if test $ldflags_is_set = yes ; then :; else
      for suff in $pike_cv_abi_suffixes; do
        d="$dd/lib$suff"
        expect_ok='yes'
        if test "x$suff" = "x/."; then
          expect_ok='no'
        fi



  pike_file_follow_symlink_opt=""

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $d contains $pike_cv_abi-bit ABI files" >&5
printf %s "checking whether $d contains $pike_cv_abi-bit ABI files... " >&6; }
  abi_dir_ok="no"
  abi_dir_dynamic="unknown"
  real_dir="$d"
  update_abi_32="no"
  update_abi_64="no"
  update_abi_dynamic="no"
  while :; do
    if test -d "$d/." ; then
      if test "x$expect_ok" = "xyes"; then
        # Directory exists, expected OK.
        abi_dir_ok="yes"
        abi_dir_dynamic="yes"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - exists and assumed good" >&5
printf "%s\n" "yes - exists and assumed good" >&6; }
        break;
      fi
      :;
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - does not exist" >&5
printf "%s\n" "no - does not exist" >&6; }
      break
    fi
    cached="(cached) "
    real_dir=`cd "$d/." && /bin/pwd 2>/dev/null`
    if test "x$real_dir" = "x"; then
      cached="(pwd failed) "
      real_dir="$d"
    fi
    if echo " $pike_cv_32bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_32=yes
    elif echo " $pike_cv_not_32bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_32=no
    else
      abi_32=unknown
      update_abi_32="yes"
    fi
    if echo " $pike_cv_64bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_64=yes
    elif echo " $pike_cv_not_64bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_64=no
    else
      abi_64=unknown
      update_abi_64="yes"
    fi
    if echo " $pike_cv_dynamic_dirs " | grep " $real_dir " >/dev/null; then
      abi_dir_dynamic=yes
    elif echo " $pike_cv_not_dynamic_dirs " | grep " $real_dir " >/dev/null; then
      abi_dir_dynamic=no
    else
      abi_dir_dynamic=unknown
      update_abi_dynamic="yes"
    fi
    empty=no
    # echo
    # echo "cache key:$abi_32:$abi_64:$abi_dir_dynamic for $real_dir"
    # echo
    if echo "$abi_32:$abi_64:$abi_dir_dynamic" | \
	 grep "unknown" >/dev/null; then
      cached=""
      empty=yes
      for f in "$d"/* no; do
        if test -f "$f"; then
	  empty=no
	  # NB: GNU file and BSD file default to not following symlinks.
	  #	Solaris /bin/file does not understand -L. The following
	  #	should support most cases.
          filetype="`POSIXLY_CORRECT=yes file $pike_follow_symlink_opt $f 2>/dev/null`"

	  case "$filetype" in
	    *"symbolic link"*)
	      if file -L $f >/dev/null 2>&1; then
	        pike_file_follow_symbolic_link="-L";
		filetype="`POSIXLY_CORRECT=yes file -L $f 2>/dev/null`"
	      fi
	      ;;
	  esac

	  # NB: /bin/file on Solaris 11 says
	  #     "current ar archive, 32-bit symbol table"
	  #     about most archives. We don't want this
	  #     to be matched in the ABI check below.
	  filetype="`echo $filetype | sed -e 's/...bit symbol table//'`"

	  case "$filetype" in
            *executable*)
              continue;;
            *32-bit*)
  	      abi_32=yes
	      ;;
  	    *64-bit*)
  	      abi_64=yes
	      ;;
	    *32*)
  	      abi_32=yes
	      ;;
	    *64*)
  	      abi_64=yes
	      ;;
	    *386*)
  	      abi_32=yes
	      ;;
	    *ppc*)
              abi_32=yes
	      ;;
	    *archive*)
	      # Try looking deeper into the archive.
	      if type elffile 2>/dev/null >/dev/null; then
		# Solaris 11 or later.
		# Typical output:
		# i386: "current ar archive, 32-bit symbol table, ELF 32-bit LSB relocatable 80386 Version 1"
		# amd64: "current ar archive, 32-bit symbol table, ELF 64-bit LSB relocatable AMD64 Version 1"
	        filetype="`POSIXLY_CORRECT=yes elffile $f 2>/dev/null`"
	      elif type elfdump 2>/dev/null >/dev/null; then
		# Solaris 10 or earlier.
		# Typical output:
		# i386: "ei_class:   ELFCLASS32          ei_data:      ELFDATA2LSB" (repeated)
		# sparcv7: "ei_class:   ELFCLASS32          ei_data:      ELFDATA2MSB"
		# amd64: "ei_class:   ELFCLASS64          ei_data:      ELFDATA2LSB" (repeated)
		# sparc64: "ei_class:   ELFCLASS64          ei_data:      ELFDATA2MSB"
		filetype="`POSIXLY_CORRECT=yes elfdump -e $f 2>/dev/null | grep ELFCLASS`"
	      elif type readelf 2>/dev/null >/dev/null; then
		# GNU binutils.
		# Typical output:
		# x86: "Class:                             ELF32"
		# x86_64: "Class:                             ELF64"
		filetype="`readelf -h $f 2>/dev/null | grep -i class`"
	      fi
	      # NB: Avoid matching "32-bit symbol table".
	      filetype="`echo $filetype | sed -e 's/...bit symbol table//'`"
	      case "$filetype" in
		*ELFCLASS64*)
		  abi_64=yes
		  ;;
		*ELFCLASS32*)
		  abi_32=yes
		  ;;
		*ELF64*)
		  abi_64=yes
		  ;;
		*ELF32*)
		  abi_32=yes
		  ;;
		*64-bit*)
		  abi_64=yes
		  ;;
		*32-bit*)
		  abi_32=yes
		  ;;
		*64*)
		  abi_64=yes
		  ;;
		*32*)
		  abi_32=yes
		  ;;
	      esac
	      ;;
	  esac
	  case "$filetype" in
	    *not\ a\ dynamic*)
	      ;;
	    *not\ a\ shared*)
	      ;;
	    *dynamic*)
	      abi_dir_dynamic=yes
	      ;;
	    *shared*)
	      abi_dir_dynamic=yes
	      ;;
	  esac
	  if test "$abi_dir_dynamic" = "unknown"; then
	     continue;
	  elif test "$abi_64:$pike_cv_abi" = "yes:64" ; then
             break
          elif test "$abi_32:$pike_cv_abi" = "yes:32" ; then
             break
          fi
	elif test "x$empty" = "xyes"; then
	  empty=other
        fi
      done
      if test "$update_abi_32" = "yes"; then
        if test "$abi_32" = "yes"; then
          # echo
          # echo "Adding $real_dir to pike_cv_32bit_dirs"
          # echo
          pike_cv_32bit_dirs="$pike_cv_32bit_dirs $real_dir"
          if test "$abi_64" = "unknown"; then
            abi_64="no"
          fi
        else
          # echo
          # echo "Adding $real_dir to pike_cv_not_32bit_dirs"
          # echo
          pike_cv_not_32bit_dirs="$pike_cv_not_32bit_dirs $real_dir"
        fi
        update_abi_32="no"
      fi
      if test "$update_abi_64" = "yes"; then
        if test "$abi_64" = "yes"; then
          # echo
          # echo "Adding $real_dir to pike_cv_64bit_dirs"
          # echo
          pike_cv_64bit_dirs="$pike_cv_64bit_dirs $real_dir"
          if test "$abi_32" = "unknown"; then
            abi_32="no"
          fi
        elif test "$abi_64" = "no"; then
          # echo
          # echo "Adding $real_dir to pike_cv_not_64bit_dirs"
          # echo
          pike_cv_not_64bit_dirs="$pike_cv_not_64bit_dirs $real_dir"
        fi
      fi
      if test "$update_abi_32" = "yes"; then
        if test "$abi_32" = "no"; then
          # echo
          # echo "Adding $real_dir to pike_cv_not_32bit_dirs"
          # echo
          pike_cv_not_32bit_dirs="$pike_cv_not_32bit_dirs $real_dir"
        fi
      fi
      if test "$update_abi_dynamic" = "yes"; then
        if test "$abi_dir_dynamic" = "yes"; then
          # echo
          # echo "Adding $real_dir to pike_cv_dynamic_dirs"
          # echo
          pike_cv_dynamic_dirs="$pike_cv_dynamic_dirs $real_dir"
        else
          # echo
          # echo "Adding $real_dir to pike_cv_not_dynamic_dirs"
          # echo
          pike_cv_not_dynamic_dirs="$pike_cv_not_dynamic_dirs $real_dir"
        fi
      fi
    fi
    if test "$abi_32:$pike_cv_abi" = "no:32" \
         -o "$abi_64:$pike_cv_abi" = "no:64" \
	 -o "x$empty" = "xyes"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${cached}no, does not contain any $pike_cv_abi-bit ABI files" >&5
printf "%s\n" "${cached}no, does not contain any $pike_cv_abi-bit ABI files" >&6; }
    else
      abi_dir_ok="yes"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${cached}ABI ok" >&5
printf "%s\n" "${cached}ABI ok" >&6; }
    fi
    break
  done
  if test "$abi_dir_ok" = "yes"; then

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what to add to LDFLAGS" >&5
printf %s "checking what to add to LDFLAGS... " >&6; }
    add_ldflags=""
    if echo " $LDFLAGS " | grep " -L$real_dir " >/dev/null; then :; else
      add_ldflags="-L$real_dir"
    fi
    if test "x$abi_dir_dynamic" = "xyes"; then
      if echo " $LDFLAGS " | grep " -R$real_dir " >/dev/null; then :; else
        add_ldflags="$add_ldflags -R$real_dir"
      fi
    fi
    if test "x$add_ldflags" = "x"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nothing - already added" >&5
printf "%s\n" "nothing - already added" >&6; }
      libs_found="yes"
    else
      OLD_LDFLAGS="${LDFLAGS}"
      LDFLAGS="${LDFLAGS} $add_ldflags -lm"
      if test "$cross_compiling" = yes
then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int
main (void)
{

    	     double (*foo)(double) = ceil;
    	     exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
   LDFLAGS="$OLD_LDFLAGS $add_ldflags"
    	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $add_ldflags" >&5
printf "%s\n" "$add_ldflags" >&6; }

else case e in #(
  e)  LDFLAGS="$OLD_LDFLAGS"
    	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nothing - $add_ldflags causes failures" >&5
printf "%s\n" "nothing - $add_ldflags causes failures" >&6; }
               add_ldflags=""
         ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(int argc, char **argv)
{
  double (*foo)(double) = ceil;
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
   LDFLAGS="$OLD_LDFLAGS $add_ldflags"
    	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $add_ldflags" >&5
printf "%s\n" "$add_ldflags" >&6; }

else case e in #(
  e)  LDFLAGS="$OLD_LDFLAGS"
    	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nothing - $add_ldflags causes failures" >&5
printf "%s\n" "nothing - $add_ldflags causes failures" >&6; }
            add_ldflags=""
         ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

      if test "x$add_ldflags" = "x"; then

  	  if test "x$libs_found" = "x"; then
  	    libs_found="no"
  	  fi

      else
        libs_found="yes"
      fi
    fi
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkgconfig directory" >&5
printf %s "checking for pkgconfig directory... " >&6; }
    if test -d "$real_dir/pkgconfig/."; then
      PKG_CONFIG_PATH="$PKG_CONFIG_PATH${PKG_CONFIG_PATH:+:}$real_dir/pkgconfig"
      export PKG_CONFIG_PATH
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - $real_dir/pkgconfig" >&5
printf "%s\n" "yes - $real_dir/pkgconfig" >&6; }
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi

  elif test "$abi_dir_ok" = "no"; then
    if test "x$libs_found" = "x"; then
  	    libs_found="no"
  	  fi

  fi


      done
    fi
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $dd/bin" >&5
printf %s "checking $dd/bin... " >&6; }
    if test -d "$dd/bin/."; then
      if test "x$libs_found" = "xno"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - use as fallback" >&5
printf "%s\n" "yes - use as fallback" >&6; }
	if test "x$fallback_path" = "x"; then
	  fallback_path="$dd/bin"
	else
	  fallback_path="$fallback_path:$dd/bin"
	fi
      else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
	if test "x$primary_path" = "x"; then
	  primary_path="$dd/bin"
	else
	  primary_path="$primary_path:$dd/bin"
	fi
      fi
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi
    if test $cppflags_is_set = no -a "x$C_INCLUDE_PATH" = "x"; then
      d="$dd/include"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $d" >&5
printf %s "checking $d... " >&6; }
      if test "x$libs_found" = "xno"; then
        # Don't add includes that correspond to libraries for the wrong ABI.
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skipped - bad libraries" >&5
printf "%s\n" "skipped - bad libraries" >&6; }
        continue
      fi
      if test -d "$d/." ; then
        real_dir=`cd "$d/." && /bin/pwd 2>/dev/null`
        if test "x$real_dir" = "x"; then
          real_dir="UNKNOWN"
        else
	  case " $real_incs " in
	    *\ $real_dir\ *)
	      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already checked" >&5
printf "%s\n" "already checked" >&6; }
	      continue
	    ;;
	  esac
	  real_incs="$real_incs $real_dir"
        fi
        case " $CPPFLAGS " in
          *\ -I$d\ * | *\ -I$real_dir\ *)
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already added" >&5
printf "%s\n" "already added" >&6; }
            ;;
          *)
	    OLD_CPPFLAGS="${CPPFLAGS}"
            CPPFLAGS="${CPPFLAGS} -I$d"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: added" >&5
printf "%s\n" "added" >&6; }

else case e in #(
  e)
	      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fails" >&5
printf "%s\n" "fails" >&6; }
	      CPPFLAGS="${OLD_CPPFLAGS}"
	     ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext
            ;;
        esac
      else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
      fi
    fi
  done
fi

if test "x$primary_path" = "x"; then
  EXTRA_PATH="$fallback_path"
elif test "x$fallback_path" = "x"; then
  EXTRA_PATH="$primary_path"
else
  EXTRA_PATH="$primary_path:$fallback_path"
fi
export EXTRA_PATH

EXTRA_SBIN_PATH=`echo "$PATH:$EXTRA_PATH" | sed -e 's|/bin:|/sbin:|g' -e 's|/bin/|/sbin/|g' -e 's|/bin$|/sbin|'`
export EXTRA_SBIN_PATH

#Restore preprocessor warning sensitivity
ac_c_preproc_warn_flag="$OLD_ac_c_preproc_warn_flag"

if test "x$with_lib_path" = "x"; then
  if test "x$with_dynamic_modules" = "xno"; then
    :;
  elif test "x$GCC" = "xno"; then :; else
    # Extract the default library paths from gcc,
    # so that we can pass them along to ld later on.
    for dd in `$CC -print-search-dirs 2>/dev/null | sed -e '/^libraries:/s/^[^=]*=//p' -ed | sed -e 's/\/:/ /g' -e 's/:/ /g' -e 's/\/$//'` /lib; do
      if test -d "$dd"; then :; else continue; fi
      # Normalize the paths.
      dd=`cd "$dd" && pwd`
      if test "$dd" = "/lib"; then continue; fi
      if test "$dd" = "/usr/lib"; then continue; fi
      for suff in $pike_cv_abi_suffixes; do
	d="$dd$suff"


  pike_file_follow_symlink_opt=""

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $d contains $pike_cv_abi-bit ABI files" >&5
printf %s "checking whether $d contains $pike_cv_abi-bit ABI files... " >&6; }
  abi_dir_ok="no"
  abi_dir_dynamic="unknown"
  real_dir="$d"
  update_abi_32="no"
  update_abi_64="no"
  update_abi_dynamic="no"
  while :; do
    if test -d "$d/." ; then
      if test "x" = "xyes"; then
        # Directory exists, expected OK.
        abi_dir_ok="yes"
        abi_dir_dynamic="yes"
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - exists and assumed good" >&5
printf "%s\n" "yes - exists and assumed good" >&6; }
        break;
      fi
      :;
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - does not exist" >&5
printf "%s\n" "no - does not exist" >&6; }
      break
    fi
    cached="(cached) "
    real_dir=`cd "$d/." && /bin/pwd 2>/dev/null`
    if test "x$real_dir" = "x"; then
      cached="(pwd failed) "
      real_dir="$d"
    fi
    if echo " $pike_cv_32bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_32=yes
    elif echo " $pike_cv_not_32bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_32=no
    else
      abi_32=unknown
      update_abi_32="yes"
    fi
    if echo " $pike_cv_64bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_64=yes
    elif echo " $pike_cv_not_64bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_64=no
    else
      abi_64=unknown
      update_abi_64="yes"
    fi
    if echo " $pike_cv_dynamic_dirs " | grep " $real_dir " >/dev/null; then
      abi_dir_dynamic=yes
    elif echo " $pike_cv_not_dynamic_dirs " | grep " $real_dir " >/dev/null; then
      abi_dir_dynamic=no
    else
      abi_dir_dynamic=unknown
      update_abi_dynamic="yes"
    fi
    empty=no
    # echo
    # echo "cache key:$abi_32:$abi_64:$abi_dir_dynamic for $real_dir"
    # echo
    if echo "$abi_32:$abi_64:$abi_dir_dynamic" | \
	 grep "unknown" >/dev/null; then
      cached=""
      empty=yes
      for f in "$d"/* no; do
        if test -f "$f"; then
	  empty=no
	  # NB: GNU file and BSD file default to not following symlinks.
	  #	Solaris /bin/file does not understand -L. The following
	  #	should support most cases.
          filetype="`POSIXLY_CORRECT=yes file $pike_follow_symlink_opt $f 2>/dev/null`"

	  case "$filetype" in
	    *"symbolic link"*)
	      if file -L $f >/dev/null 2>&1; then
	        pike_file_follow_symbolic_link="-L";
		filetype="`POSIXLY_CORRECT=yes file -L $f 2>/dev/null`"
	      fi
	      ;;
	  esac

	  # NB: /bin/file on Solaris 11 says
	  #     "current ar archive, 32-bit symbol table"
	  #     about most archives. We don't want this
	  #     to be matched in the ABI check below.
	  filetype="`echo $filetype | sed -e 's/...bit symbol table//'`"

	  case "$filetype" in
            *executable*)
              continue;;
            *32-bit*)
  	      abi_32=yes
	      ;;
  	    *64-bit*)
  	      abi_64=yes
	      ;;
	    *32*)
  	      abi_32=yes
	      ;;
	    *64*)
  	      abi_64=yes
	      ;;
	    *386*)
  	      abi_32=yes
	      ;;
	    *ppc*)
              abi_32=yes
	      ;;
	    *archive*)
	      # Try looking deeper into the archive.
	      if type elffile 2>/dev/null >/dev/null; then
		# Solaris 11 or later.
		# Typical output:
		# i386: "current ar archive, 32-bit symbol table, ELF 32-bit LSB relocatable 80386 Version 1"
		# amd64: "current ar archive, 32-bit symbol table, ELF 64-bit LSB relocatable AMD64 Version 1"
	        filetype="`POSIXLY_CORRECT=yes elffile $f 2>/dev/null`"
	      elif type elfdump 2>/dev/null >/dev/null; then
		# Solaris 10 or earlier.
		# Typical output:
		# i386: "ei_class:   ELFCLASS32          ei_data:      ELFDATA2LSB" (repeated)
		# sparcv7: "ei_class:   ELFCLASS32          ei_data:      ELFDATA2MSB"
		# amd64: "ei_class:   ELFCLASS64          ei_data:      ELFDATA2LSB" (repeated)
		# sparc64: "ei_class:   ELFCLASS64          ei_data:      ELFDATA2MSB"
		filetype="`POSIXLY_CORRECT=yes elfdump -e $f 2>/dev/null | grep ELFCLASS`"
	      elif type readelf 2>/dev/null >/dev/null; then
		# GNU binutils.
		# Typical output:
		# x86: "Class:                             ELF32"
		# x86_64: "Class:                             ELF64"
		filetype="`readelf -h $f 2>/dev/null | grep -i class`"
	      fi
	      # NB: Avoid matching "32-bit symbol table".
	      filetype="`echo $filetype | sed -e 's/...bit symbol table//'`"
	      case "$filetype" in
		*ELFCLASS64*)
		  abi_64=yes
		  ;;
		*ELFCLASS32*)
		  abi_32=yes
		  ;;
		*ELF64*)
		  abi_64=yes
		  ;;
		*ELF32*)
		  abi_32=yes
		  ;;
		*64-bit*)
		  abi_64=yes
		  ;;
		*32-bit*)
		  abi_32=yes
		  ;;
		*64*)
		  abi_64=yes
		  ;;
		*32*)
		  abi_32=yes
		  ;;
	      esac
	      ;;
	  esac
	  case "$filetype" in
	    *not\ a\ dynamic*)
	      ;;
	    *not\ a\ shared*)
	      ;;
	    *dynamic*)
	      abi_dir_dynamic=yes
	      ;;
	    *shared*)
	      abi_dir_dynamic=yes
	      ;;
	  esac
	  if test "$abi_dir_dynamic" = "unknown"; then
	     continue;
	  elif test "$abi_64:$pike_cv_abi" = "yes:64" ; then
             break
          elif test "$abi_32:$pike_cv_abi" = "yes:32" ; then
             break
          fi
	elif test "x$empty" = "xyes"; then
	  empty=other
        fi
      done
      if test "$update_abi_32" = "yes"; then
        if test "$abi_32" = "yes"; then
          # echo
          # echo "Adding $real_dir to pike_cv_32bit_dirs"
          # echo
          pike_cv_32bit_dirs="$pike_cv_32bit_dirs $real_dir"
          if test "$abi_64" = "unknown"; then
            abi_64="no"
          fi
        else
          # echo
          # echo "Adding $real_dir to pike_cv_not_32bit_dirs"
          # echo
          pike_cv_not_32bit_dirs="$pike_cv_not_32bit_dirs $real_dir"
        fi
        update_abi_32="no"
      fi
      if test "$update_abi_64" = "yes"; then
        if test "$abi_64" = "yes"; then
          # echo
          # echo "Adding $real_dir to pike_cv_64bit_dirs"
          # echo
          pike_cv_64bit_dirs="$pike_cv_64bit_dirs $real_dir"
          if test "$abi_32" = "unknown"; then
            abi_32="no"
          fi
        elif test "$abi_64" = "no"; then
          # echo
          # echo "Adding $real_dir to pike_cv_not_64bit_dirs"
          # echo
          pike_cv_not_64bit_dirs="$pike_cv_not_64bit_dirs $real_dir"
        fi
      fi
      if test "$update_abi_32" = "yes"; then
        if test "$abi_32" = "no"; then
          # echo
          # echo "Adding $real_dir to pike_cv_not_32bit_dirs"
          # echo
          pike_cv_not_32bit_dirs="$pike_cv_not_32bit_dirs $real_dir"
        fi
      fi
      if test "$update_abi_dynamic" = "yes"; then
        if test "$abi_dir_dynamic" = "yes"; then
          # echo
          # echo "Adding $real_dir to pike_cv_dynamic_dirs"
          # echo
          pike_cv_dynamic_dirs="$pike_cv_dynamic_dirs $real_dir"
        else
          # echo
          # echo "Adding $real_dir to pike_cv_not_dynamic_dirs"
          # echo
          pike_cv_not_dynamic_dirs="$pike_cv_not_dynamic_dirs $real_dir"
        fi
      fi
    fi
    if test "$abi_32:$pike_cv_abi" = "no:32" \
         -o "$abi_64:$pike_cv_abi" = "no:64" \
	 -o "x$empty" = "xyes"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${cached}no, does not contain any $pike_cv_abi-bit ABI files" >&5
printf "%s\n" "${cached}no, does not contain any $pike_cv_abi-bit ABI files" >&6; }
    else
      abi_dir_ok="yes"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${cached}ABI ok" >&5
printf "%s\n" "${cached}ABI ok" >&6; }
    fi
    break
  done
  if test "$abi_dir_ok" = "yes"; then

	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to add -L$real_dir to LDFLAGS" >&5
printf %s "checking if we need to add -L$real_dir to LDFLAGS... " >&6; }
	  case " $LDFLAGS " in
	    *\ -L$d\ *)
	      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - already added" >&5
printf "%s\n" "no - already added" >&6; }
	      ;;
	    *\ -L$real_dir\ *)
	      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - already added" >&5
printf "%s\n" "no - already added" >&6; }
	      ;;
	    *)
	      LDFLAGS="$LDFLAGS -L$real_dir"
	      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - added" >&5
printf "%s\n" "yes - added" >&6; }
	      ;;
	  esac
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to add -R$real_dir to LDFLAGS" >&5
printf %s "checking if we need to add -R$real_dir to LDFLAGS... " >&6; }
	  case " $LDFLAGS " in
	    *\ -R$d\ *)
	      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - already added" >&5
printf "%s\n" "no - already added" >&6; }
	      ;;
	    *\ -R$real_dir\ *)
	      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - already added" >&5
printf "%s\n" "no - already added" >&6; }
	      ;;
	    *)
	      if test "x$abi_dir_dynamic" = "xyes"; then
	        LDFLAGS="$LDFLAGS -R$real_dir"
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - added" >&5
printf "%s\n" "yes - added" >&6; }
	      else
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - does not contain dynamic objects" >&5
printf "%s\n" "no - does not contain dynamic objects" >&6; }
	      fi
	      ;;
	  esac

  elif test "$abi_dir_ok" = "no"; then
    :
  fi

      done
    done
  fi
fi

else
  # We are running NT without MinGW
  :
fi

# During the configure tests we need some extra includes that
# shouldn't be there in the final version.
CONF_CPPFLAGS_EXTRA="-I$srcdir -I`pwd`"
CPPFLAGS="${CPPFLAGS} ${CONF_CPPFLAGS_EXTRA}"

# We want to know if we ought to append any abi indicator to the libdir.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if an abi indicator would be appropriate for libdir" >&5
printf %s "checking if an abi indicator would be appropriate for libdir... " >&6; }
if test ${pike_cv_lib_abi+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  pike_cv_lib_abi=""
  for dd in "$with_root/lib" "$with_root/usr/lib" "$prefix/lib"; do
    for d in $pike_cv_abi_suffixes; do
      if test "x$d" = "x/."; then :;
      elif test -d "$dd$d/."; then
        pike_cv_lib_abi="$d"
	break
      fi
    done
  done
 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_lib_abi" >&5
printf "%s\n" "$pike_cv_lib_abi" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what libdir should be set to" >&5
printf %s "checking what libdir should be set to... " >&6; }
if test "x$pike_cv_lib_abi" = "x"; then :;
elif test -d `eval echo "$libdir$pike_cv_lib_abi/."` -o \
        "x$libdir" = 'x${exec_prefix}/lib'; then
  libdir="$libdir$pike_cv_lib_abi"
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libdir" >&5
printf "%s\n" "$libdir" >&6; }

# NB: We need to have gmp.h in the search path for the entirety of Pike,
#     since gmp.h is included by bignum.h, which in turn is included
#     by much of Pike.


  # NB: pkg-config does not have native support for multiple ABIs.

  if test "x$enable_binary" = "xno"; then
    for ac_prog in nobinary_dummy
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PKG_CONFIG+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $BINDIR
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
printf "%s\n" "$PKG_CONFIG" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$PKG_CONFIG" && break
done
test -n "$PKG_CONFIG" || PKG_CONFIG="no"

  else
    for ac_prog in ${pike_cv_tool_prefix}pkg-config ${ac_tool_prefix}pkg-config
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PKG_CONFIG+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
printf "%s\n" "$PKG_CONFIG" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$PKG_CONFIG" && break
done
test -n "$PKG_CONFIG" || PKG_CONFIG="no"

  fi

  if test "$pike_cv_sys_os:$pike_cv_abi:$PKG_CONFIG:$PKG_CONFIG_LIBDIR" = \
          "Solaris:64:/usr/bin/pkg-config:"; then
    # Workaround for 32-bit only pkg-config on Solaris 11.
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Value for PKG_CONFIG_LIBDIR" >&5
printf %s "checking Value for PKG_CONFIG_LIBDIR... " >&6; }
    for d in $pike_cv_abi_suffixes; do
      if test "x$d" = "x/."; then continue; fi
      if test -d "/usr/lib$d/pkgconfig/."; then
	PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR/usr/lib$d/pkgconfig:"
      fi
      # Note: Some pkg-config files (eg nspr) for 64-bit OSes are erroneously
      #       installed in /usr/lib/pkgconfig/amd64/.
      if test -d "/usr/lib/pkgconfig$d/."; then
	PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR/usr/lib/pkgconfig$d:"
      fi
    done
    PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR/usr/share/pkgconfig"
    export PKG_CONFIG_LIBDIR
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG_LIBDIR" >&5
printf "%s\n" "$PKG_CONFIG_LIBDIR" >&6; }
  fi


    pike_cv_pkg_config_libgmp=no
  if test "${PKG_CONFIG}" = no; then :; else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if a pkg-config based libgmp is installed" >&5
printf %s "checking if a pkg-config based libgmp is installed... " >&6; }
    if "${PKG_CONFIG}" "libgmp"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
      PKG_SAVE_CPPFLAGS="$CPPFLAGS"
      PKG_SAVE_CFLAGS="$CFLAGS"
      PKG_SAVE_LDFLAGS="$LDFLAGS"
      PKG_SAVE_LIBS="$LIBS"

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stuff to add to CPPFLAGS" >&5
printf %s "checking for stuff to add to CPPFLAGS... " >&6; }
  pkg_stuff="`${PKG_CONFIG} --cflags-only-I libgmp`"
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_stuff}" >&5
printf "%s\n" "${pkg_stuff}" >&6; }
  CPPFLAGS="$CPPFLAGS ${pkg_stuff}"


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stuff to add to CFLAGS" >&5
printf %s "checking for stuff to add to CFLAGS... " >&6; }
  pkg_stuff="`${PKG_CONFIG} --cflags-only-other libgmp`"
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_stuff}" >&5
printf "%s\n" "${pkg_stuff}" >&6; }
  CFLAGS="$CFLAGS ${pkg_stuff}"


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stuff to add to LDFLAGS" >&5
printf %s "checking for stuff to add to LDFLAGS... " >&6; }
  pkg_stuff="`${PKG_CONFIG} --libs-only-L libgmp`"
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_stuff}" >&5
printf "%s\n" "${pkg_stuff}" >&6; }
  LDFLAGS="$LDFLAGS ${pkg_stuff}"


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stuff to add to LIBS" >&5
printf %s "checking for stuff to add to LIBS... " >&6; }
  pkg_stuff="`${PKG_CONFIG} --libs-only-l --libs-only-other libgmp`"
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_stuff}" >&5
printf "%s\n" "${pkg_stuff}" >&6; }
  LIBS="$LIBS ${pkg_stuff}"

      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libgmp breaks compilation..." >&5
printf %s "checking if libgmp breaks compilation...... " >&6; }
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>

int
main (void)
{

        printf("Hello, world\n");
	exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, everything seems ok" >&5
printf "%s\n" "no, everything seems ok" >&6; }
	pike_cv_pkg_config_libgmp=yes

else case e in #(
  e)
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, do not use" >&5
printf "%s\n" "yes, do not use" >&6; }
	CPPFLAGS="$PKG_SAVE_CPPFLAGS"
	CFLAGS="$PKG_SAVE_CFLAGS"
	LDFLAGS="$PKG_SAVE_LDFLAGS"
	LIBS="$PKG_SAVE_LIBS"
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    fi
  fi



  if test "x$enable_binary" != "xno"; then


  ac_fn_c_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
if test "x$ac_cv_header_gmp_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "gmp.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <gmp.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_GMP_H 1" >>confdefs.h


fi


  else
    for ac_hdr in gmp.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi


#############################################################################

## At this point we have at last initialized the compiler!

#############################################################################

if test ! -f confdefs.h ; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Warning, lost confdefs.h, testing will be flawed!!
You might need to use bash instead of /bin/sh to get correct results.
To do this, please type the following at an sh prompt:
	\$ rm ./config.cache
	\$ CONFIG_SHELL=/path/to/bash
	\$ export CONFIG_SHELL
	\$ $CONFIG_SHELL ./configure
" >&5
printf "%s\n" "$as_me: WARNING:

Warning, lost confdefs.h, testing will be flawed!!
You might need to use bash instead of /bin/sh to get correct results.
To do this, please type the following at an sh prompt:
	\$ rm ./config.cache
	\$ CONFIG_SHELL=/path/to/bash
	\$ export CONFIG_SHELL
	\$ $CONFIG_SHELL ./configure
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Warning, lost confdefs.h, testing will be flawed!!
You might need to use bash instead of /bin/sh to get correct results.
To do this, please type the following at an sh prompt:
	\$ rm ./config.cache
	\$ CONFIG_SHELL=/path/to/bash
	\$ export CONFIG_SHELL
	\$ $CONFIG_SHELL ./configure

EOF

fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ansi prototype capability" >&5
printf %s "checking ansi prototype capability... " >&6; }
if test ${pike_cv_sys_ansi_prototypes+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo(int bar);
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_sys_ansi_prototypes=yes
else case e in #(
  e) pike_cv_sys_ansi_prototypes=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


if test "$pike_cv_sys_ansi_prototypes" = "yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, giving up..." >&5
printf "%s\n" "no, giving up..." >&6; }
  exit 1
fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to concatenate two symbols" >&5
printf %s "checking how to concatenate two symbols... " >&6; }
if test ${pike_cv_cpp_symbol_concat+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int AABB=0;
#define CONCAT(X,Y)	X##Y

int
main (void)
{

    return CONCAT(AA,BB);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_cpp_symbol_concat=ANSI
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int AABB=0;
#define CONCAT(X,Y)	X/**/Y

int
main (void)
{

      return CONCAT(AA,BB);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_cpp_symbol_concat=KR
else case e in #(
  e)
      pike_cv_cpp_symbol_concat=Unknown
     ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_cpp_symbol_concat" >&5
printf "%s\n" "$pike_cv_cpp_symbol_concat" >&6; }
case "$pike_cv_cpp_symbol_concat" in
  "ANSI")
    printf "%s\n" "#define HAVE_ANSI_CONCAT 1" >>confdefs.h

  ;;
  "KR")
    printf "%s\n" "#define HAVE_KR_CONCAT 1" >>confdefs.h

  ;;
esac

#############################################################################

# The AC_PROG_INSTALL test is broken if $INSTALL is specified by hand.
# The FreeBSD ports system does this...
# Workaround:

if test "x$INSTALL" = "x"; then :; else
  # $INSTALL overrides ac_cv_path_install anyway...
  ac_cv_path_install="$INSTALL"
fi



  # Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
printf %s "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if test ${ac_cv_path_install+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    # Account for fact that we put trailing slashes in our PATH walk.
case $as_dir in #((
  ./ | /[cC]/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

  done
IFS=$as_save_IFS

rm -rf conftest.one conftest.two conftest.dir
 ;;
esac
fi
  if test ${ac_cv_path_install+y}; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
printf "%s\n" "$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
printf %s "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test ${ac_cv_prog_CPP+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)     # Double quotes because $CC needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else case e in #(
  e) # Broken: fails on valid input.
continue ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :
  # Broken: success on invalid input.
continue
else case e in #(
  e) # Passes both tests.
ac_preproc_ok=:
break ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok
then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP
   ;;
esac
fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
printf "%s\n" "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else case e in #(
  e) # Broken: fails on valid input.
continue ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :
  # Broken: success on invalid input.
continue
else case e in #(
  e) # Passes both tests.
ac_preproc_ok=:
break ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_RANLIB+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
printf "%s\n" "$RANLIB" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_RANLIB+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
printf "%s\n" "$ac_ct_RANLIB" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi


if test "x${AR-}" = x ; then
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_AR+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $AR in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_AR="$AR" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
  ;;
esac ;;
esac
fi
AR=$ac_cv_path_AR
if test -n "$AR"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
printf "%s\n" "$AR" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  export AR
fi


# PaX flags control (NetBSD or Linux).
if test "x${PAXCTL-}" = x ; then
    # Linux:  /sbin/paxctl
    # NetBSD: /usr/sbin/paxctl
    # Extract the first word of "paxctl", so it can be a program name with args.
set dummy paxctl; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PAXCTL+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $PAXCTL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH:$EXTRA_SBIN_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PAXCTL="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
PAXCTL=$ac_cv_path_PAXCTL
if test -n "$PAXCTL"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
printf "%s\n" "$PAXCTL" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


    export PAXCTL
fi


if test "x${RNTANY-}" = x ; then
  # Extract the first word of "rntany", so it can be a program name with args.
set dummy rntany; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_RNTANY+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $RNTANY in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_RNTANY="$RNTANY" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_RNTANY="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
RNTANY=$ac_cv_path_RNTANY
if test -n "$RNTANY"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RNTANY" >&5
printf "%s\n" "$RNTANY" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  export RNTANY
fi


# Wix compiler
if test "x${CANDLE-}" = x ; then

  # Extract the first word of "candle", so it can be a program name with args.
set dummy candle; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_CANDLE+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $CANDLE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CANDLE="$CANDLE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_CANDLE="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
CANDLE=$ac_cv_path_CANDLE
if test -n "$CANDLE"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CANDLE" >&5
printf "%s\n" "$CANDLE" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  if test "x$CANDLE" = x; then
    if test "x$RNTANY" != x; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RNTANY candle /? can be executed" >&5
printf %s "checking if $RNTANY candle /? can be executed... " >&6; }
      if test ${pike_cv_exec_rntany_CANDLE+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
	if $RNTANY candle '/?' >/dev/null 2>&1; then
	  pike_cv_exec_rntany_CANDLE=yes
	else
	  pike_cv_exec_rntany_CANDLE=no
	fi
       ;;
esac
fi

      if test "x$pike_cv_exec_rntany_CANDLE" = xyes; then
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
	CANDLE="$RNTANY candle"
      else
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
	CANDLE=""
      fi
    else
      CANDLE=""
    fi
  fi

  export CANDLE
fi
if test "x${CANDLE-}" = x ; then :; else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Candle version" >&5
printf %s "checking Candle version... " >&6; }
    CANDLE_VERSION="`$CANDLE -\? | head -1 | sed -e 's/.*[vV]ersion //'`"
    export CANDLE_VERSION
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CANDLE_VERSION" >&5
printf "%s\n" "$CANDLE_VERSION" >&6; }
    if test "x${CANDLE_ARCH-}" = x ; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Candle target architecture" >&5
printf %s "checking Candle target architecture... " >&6; }
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
if test ${ac_cv_c_undeclared_builtin_options+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_save_CFLAGS=$CFLAGS
   ac_cv_c_undeclared_builtin_options='cannot detect'
   for ac_arg in '' -fno-builtin; do
     CFLAGS="$ac_save_CFLAGS $ac_arg"
     # This test program should *not* compile successfully.
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
(void) strchr;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else case e in #(
  e) # This test program should compile successfully.
        # No library function is consistently available on
        # freestanding implementations, so test against a dummy
        # declaration.  Include always-available headers on the
        # off chance that they somehow elicit warnings.
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <float.h>
#include <limits.h>
#include <stdarg.h>
#include <stddef.h>
extern void ac_decl (int, char *);

int
main (void)
{
(void) ac_decl (0, (char *) 0);
  (void) ac_decl;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  if test x"$ac_arg" = x
then :
  ac_cv_c_undeclared_builtin_options='none needed'
else case e in #(
  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
esac
fi
          break
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    done
    CFLAGS=$ac_save_CFLAGS
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  case $ac_cv_c_undeclared_builtin_options in #(
  'cannot detect') :
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "cannot make $CC report undeclared builtins
See 'config.log' for more details" "$LINENO" 5; } ;; #(
  'none needed') :
    ac_c_undeclared_builtin_options='' ;; #(
  *) :
    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
esac

ac_fn_check_decl "$LINENO" "_M_AMD64" "ac_cv_have_decl__M_AMD64" "#include <windows.h>
" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl__M_AMD64" = xyes
then :
  CANDLE_ARCH="x64"
fi
        ac_fn_check_decl "$LINENO" "_M_ARM" "ac_cv_have_decl__M_ARM" "#include <windows.h>
" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl__M_ARM" = xyes
then :
  CANDLE_ARCH="arm"
fi
        ac_fn_check_decl "$LINENO" "_M_ARM64" "ac_cv_have_decl__M_ARM64" "#include <windows.h>
" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl__M_ARM64" = xyes
then :
  CANDLE_ARCH="arm64"
fi
        ac_fn_check_decl "$LINENO" "_M_IA64" "ac_cv_have_decl__M_IA64" "#include <windows.h>
" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl__M_IA64" = xyes
then :
  CANDLE_ARCH="ia64"
fi
        ac_fn_check_decl "$LINENO" "_M_IX86" "ac_cv_have_decl__M_IX86" "#include <windows.h>
" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl__M_IX86" = xyes
then :
  CANDLE_ARCH="x86"
fi
        export CANDLE_ARCH
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CANDLE_ARCH" >&5
printf "%s\n" "$CANDLE_ARCH" >&6; }
    fi

    case "$CANDLE_VERSION" in
        2.*)
            ;;
        *)
            # Wix 3 or later.
            CANDLE_OPTS="-arch $CANDLE_ARCH"
            ;;
    esac
    export CANDLE_OPTS
fi





# Wix linker
if test "x${LIGHT-}" = x ; then

  # Extract the first word of "light", so it can be a program name with args.
set dummy light; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_LIGHT+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $LIGHT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIGHT="$LIGHT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_LIGHT="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
LIGHT=$ac_cv_path_LIGHT
if test -n "$LIGHT"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIGHT" >&5
printf "%s\n" "$LIGHT" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  if test "x$LIGHT" = x; then
    if test "x$RNTANY" != x; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RNTANY light /? can be executed" >&5
printf %s "checking if $RNTANY light /? can be executed... " >&6; }
      if test ${pike_cv_exec_rntany_LIGHT+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
	if $RNTANY light '/?' >/dev/null 2>&1; then
	  pike_cv_exec_rntany_LIGHT=yes
	else
	  pike_cv_exec_rntany_LIGHT=no
	fi
       ;;
esac
fi

      if test "x$pike_cv_exec_rntany_LIGHT" = xyes; then
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
	LIGHT="$RNTANY light"
      else
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
	LIGHT=""
      fi
    else
      LIGHT=""
    fi
  fi

  export LIGHT
fi
if test "x${LIGHT-}" = x ; then :; else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Light version" >&5
printf %s "checking Light version... " >&6; }
    LIGHT_VERSION="`$LIGHT -\? | head -1 | sed -e 's/.*[vV]ersion //'`"
    export LIGHT_VERSION
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIGHT_VERSION" >&5
printf "%s\n" "$LIGHT_VERSION" >&6; }

    case "$LIGHT_VERSION" in
        2.*)
            ;;
        *)
            # Wix 3 or later.
            LIGHT_OPTS="-sice:ICE39"
            ;;
    esac
    export LIGHT_OPTS
fi




# Wix tool
# This one doesn't exist any more in WiX 3.x.
#if test "x${TALLOW-}" = x ; then
#  PIKE_NT_PROG(TALLOW, tallow, , $PATH:$EXTRA_PATH)
#  export TALLOW
#fi
#AC_SUBST(TALLOW)

# VC8 manifest tool
if test "x${MTEXE-}" = x ; then

  # Extract the first word of "mt.exe", so it can be a program name with args.
set dummy mt.exe; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_MTEXE+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $MTEXE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MTEXE="$MTEXE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_MTEXE="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
MTEXE=$ac_cv_path_MTEXE
if test -n "$MTEXE"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MTEXE" >&5
printf "%s\n" "$MTEXE" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  if test "x$MTEXE" = x; then
    if test "x$RNTANY" != x; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RNTANY mt.exe /? can be executed" >&5
printf %s "checking if $RNTANY mt.exe /? can be executed... " >&6; }
      if test ${pike_cv_exec_rntany_MTEXE+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
	if $RNTANY mt.exe '/?' >/dev/null 2>&1; then
	  pike_cv_exec_rntany_MTEXE=yes
	else
	  pike_cv_exec_rntany_MTEXE=no
	fi
       ;;
esac
fi

      if test "x$pike_cv_exec_rntany_MTEXE" = xyes; then
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
	MTEXE="$RNTANY mt.exe"
      else
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
	MTEXE=""
      fi
    else
      MTEXE=""
    fi
  fi

  export MTEXE
fi

# Resource compiler
if test "x${RCEXE-}" = x ; then

  # Extract the first word of "rc.exe", so it can be a program name with args.
set dummy rc.exe; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_RCEXE+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $RCEXE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_RCEXE="$RCEXE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_RCEXE="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
RCEXE=$ac_cv_path_RCEXE
if test -n "$RCEXE"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RCEXE" >&5
printf "%s\n" "$RCEXE" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  if test "x$RCEXE" = x; then
    if test "x$RNTANY" != x; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RNTANY rc.exe /? can be executed" >&5
printf %s "checking if $RNTANY rc.exe /? can be executed... " >&6; }
      if test ${pike_cv_exec_rntany_RCEXE+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
	if $RNTANY rc.exe '/?' >/dev/null 2>&1; then
	  pike_cv_exec_rntany_RCEXE=yes
	else
	  pike_cv_exec_rntany_RCEXE=no
	fi
       ;;
esac
fi

      if test "x$pike_cv_exec_rntany_RCEXE" = xyes; then
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
	RCEXE="$RNTANY rc.exe"
      else
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
	RCEXE=""
      fi
    else
      RCEXE=""
    fi
  fi

  export RCEXE
fi

if test "x${WINDRES-}" = x ; then
  # Extract the first word of "windres", so it can be a program name with args.
set dummy windres; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_WINDRES+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $WINDRES in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_WINDRES="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
WINDRES=$ac_cv_path_WINDRES
if test -n "$WINDRES"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
printf "%s\n" "$WINDRES" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  export WINDRES
fi


#############################################################################


# Check whether --with-small-eval-instruction was given.
if test ${with_small_eval_instruction+y}
then :
  withval=$with_small_eval_instruction;

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
NOTE: Small eval_instruction requested. Note that this disables
runtime machine-code generation.
" >&5
printf "%s\n" "
NOTE: Small eval_instruction requested. Note that this disables
runtime machine-code generation.
" >&6; }
  cat >>config.notes <<EOF
NOTE: Small eval_instruction requested. Note that this disables
runtime machine-code generation.

EOF

  printf "%s\n" "#define PIKE_SMALL_EVAL_INSTRUCTION 1" >>confdefs.h

  with_machine_code="no"

fi



  if test "x$enable_binary" != "xno"; then


  ac_fn_c_check_header_compile "$LINENO" "gnu/stubs.h" "ac_cv_header_gnu_stubs_h" "$ac_includes_default"
if test "x$ac_cv_header_gnu_stubs_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "gnu/stubs.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <gnu/stubs.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_GNU_STUBS_H 1" >>confdefs.h


fi


  else
    for ac_hdr in gnu/stubs.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi



# Check whether --with-machine-code was given.
if test ${with_machine_code+y}
then :
  withval=$with_machine_code;
else case e in #(
  e)
  if test "x${with_machine_code:-yes}:${PAXCTL:-no}" = x"yes:no"; then
      # Check if there are other methods to enable RWX mapping of memory.
      # FreeBSD: procctl(2)

  if test "x$enable_binary" != "xno"; then


  ac_fn_c_check_header_compile "$LINENO" "sys/procctl.h" "ac_cv_header_sys_procctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_procctl_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/procctl.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/procctl.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_PROCCTL_H 1" >>confdefs.h


fi


  else
    for ac_hdr in sys/procctl.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for procctl" >&5
printf %s "checking for procctl... " >&6; }
if test ${ac_cv_func_procctl+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef procctl
void *f = (void *) procctl;
#endif

int
main (void)
{

#ifdef procctl
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != procctl;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_procctl=yes"
else case e in #(
  e) eval "ac_cv_func_procctl=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define procctl to an innocuous variant, in case <limits.h> declares procctl.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define procctl innocuous_procctl

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char procctl (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef procctl
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char procctl ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_procctl) || defined (__stub___procctl)
choke me
#else
char (*f) () = procctl;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != procctl;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_procctl=yes"
else case e in #(
  e) eval "ac_cv_func_procctl=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'procctl`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_PROCCTL 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

      if test "x${with_machine_code:-}:$ac_cv_func_procctl" = x":yes"; then
          with_machine_code="yes"
      fi
  fi
  if test "x${with_machine_code:-}" = x; then
    case "x$pike_cv_sys_os:${PAXCTL:-no}" in
      xOpenBSD*)

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
NOTE: OpenBSD detected, disabling machine code.
Use --with-machine-code to force use of machine code support.
" >&5
printf "%s\n" "
NOTE: OpenBSD detected, disabling machine code.
Use --with-machine-code to force use of machine code support.
" >&6; }
  cat >>config.notes <<EOF
NOTE: OpenBSD detected, disabling machine code.
Use --with-machine-code to force use of machine code support.

EOF

        with_machine_code="no"
        ;;
      xFreeBSD*)
        # uname -K was added in FreeBSD 10.0.
        # The semantics of the output of uname -K is not
        # documented properly, but appears to be <major><minor:2><build:3>.
        # Eg:
        #   FreeBSD 11.0 --> 1100512
        #   FreeBSD 11.1 --> 1101505
        #   FreeBSD 15.0 --> 1500039
        if uname -K >/dev/null &&  "`uname -K`" -ge 1301000 ; then
            # PROC_WXMAP_CTL was added in september of 2021
            # to FreeBSD 13.1 and later. Enforcement was added later.

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
NOTE: FreeBSD detected, disabling machine code.
Use --with-machine-code to force use of machine code support.
" >&5
printf "%s\n" "
NOTE: FreeBSD detected, disabling machine code.
Use --with-machine-code to force use of machine code support.
" >&6; }
  cat >>config.notes <<EOF
NOTE: FreeBSD detected, disabling machine code.
Use --with-machine-code to force use of machine code support.

EOF

            with_machine_code="no"
        else
            with_machine_code="yes"
        fi
        ;;
      xNetBSD*:no)

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
NOTE: NetBSD detected and no paxctl(8), disabling machine code.
Use --with-machine-code to force use of machine code support.
" >&5
printf "%s\n" "
NOTE: NetBSD detected and no paxctl(8), disabling machine code.
Use --with-machine-code to force use of machine code support.
" >&6; }
  cat >>config.notes <<EOF
NOTE: NetBSD detected and no paxctl(8), disabling machine code.
Use --with-machine-code to force use of machine code support.

EOF

        with_machine_code="no"
        ;;
      *)
        with_machine_code="yes"
        ;;
    esac
  fi

         ;;
esac
fi


#############################################################################

# installbsd seems to be broken on some versions of AIX
#
# /grubba 1997-08-16

case "$ac_cv_path_install" in
  *installbsd*)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $ac_cv_path_install works" >&5
printf %s "checking if $ac_cv_path_install works... " >&6; }
    if test ${pike_cv_install_works+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if $ac_cv_path_install "$srcdir/configure.in" ./conftest >/dev/null 2>&1
    then
      if cmp "$srcdir/configure.in" ./conftest >/dev/null 2>&1; then
        pike_cv_install_works=yes;
      else
        pike_cv_install_works=no;
      fi
    else
      pike_cv_install_works=no;
    fi
    if test -f ./conftest; then
      rm -f ./conftest
    fi
 ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_install_works" >&5
printf "%s\n" "$pike_cv_install_works" >&6; }
    if test "$pike_cv_install_works" = "no"; then
      echo "Warning: Falling back to $ac_install_sh"
      INSTALL="$ac_install_sh"
    fi
  ;;
esac

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yacc clone that handles %pure_parser" >&5
printf %s "checking for yacc clone that handles %pure_parser... " >&6; }
if test ${pike_cv_prog_working_yacc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
for YACC in pyacc "byacc -s" "bison -y -Wno-deprecated -Wno-yacc" "bison -y -Wno-deprecated" "bison -y -Wno-yacc" "bison -y" yacc "None"; do
  set dummy $YACC; ac_word=$2
  has_it=no
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      has_it="yes"
      break
    fi
  done
  IFS="$ac_save_ifs"

  if test "$has_it" = "yes"; then
cat >conftest.y<<\EOF
%pure_parser
%{
#include <stdlib.h>
#define YYSTYPE unsigned char
int yylex(YYSTYPE *yylval);
void parse(void);
void yyerror(char *);
%}
%%
all: foo bar
foo: 'f' 'o' 'o' { parse(); } ;
bar: 'b' 'a' 'r' ;
%%
int context;

int yylex(YYSTYPE *yylval)
{
  switch(context++)
  {
    case 0: return 'f';
    case 1: return 'o';
    case 2: return 'o';
    case 3: return 'b';
    case 4: return 'a';
    case 5: return 'r';
    default: return 0;
  }
}

int depth=0;
void parse(void)
{
  int tmp;
  if(depth++>5) return;
  tmp=context;
  context=0;
  yyparse();
  context=tmp;
}
int errors=0;
void yyerror(char *fel) { errors++; }
int main(void)
{
  parse();
  exit(errors);
}
EOF
    if $YACC -d conftest.y 1>&5 2>&5; then
      if test "x$enable_binary" = "xno"; then
        rm -f y.tab.*
	break
      else
	if test "$cross_compiling" = yes
then :
  pure_parser_works=no
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "y.tab.c"

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pure_parser_works=yes
else case e in #(
  e) pure_parser_works=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

	rm -f y.tab.*
	if test "$pure_parser_works" = "yes"; then
	  break
	fi
      fi
    else
      rm -f y.tab.*
    fi
  fi
done
pike_cv_prog_working_yacc="$YACC"
 ;;
esac
fi


YACC="$pike_cv_prog_working_yacc"

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
printf "%s\n" "$YACC" >&6; }
if test "x$YACC" = "xNone" ; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Get bison if you want to do \"make export\"" >&5
printf "%s\n" "$as_me: WARNING: Get bison if you want to do \"make export\"" >&2;}
  YACC="bison -y"
fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how bison uses short" >&5
printf %s "checking how bison uses short... " >&6; }
if test ${pike_cv_short_use+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  pike_cv_short_use=unknown
  for short_use in CT_SHORT CT_SHORT_INT; do
    cat >conftest.y <<EOF
%pure_parser
%{
#define $short_use
#ifdef CT_SHORT
#define short int
#else
#define short
#endif
#define YYSTYPE unsigned char
int yylex(YYSTYPE *yylval);
void parse(void);
void yyerror(char *);
%}
%%
foo: 'f' x y ;
x: 'o' ;
y: 'o' ;
%%
int context = 0;

int yylex(YYSTYPE *yylval)
{
  switch(context++)
  {
    case 0: return 'f';
    case 1: return 'o';
    case 2: return 'o';
    default: return 0;
  }
}

int errors=0;
void yyerror(char *fel) { errors++; }
EOF
    if $YACC -d conftest.y 1>&5 2>&5; then
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include "y.tab.c"

int
main (void)
{

yyparse();
exit(errors);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ok=yes
else case e in #(
  e) ok=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
      if test "$ok" = "yes"; then
	pike_cv_short_use=$short_use
	break
      fi
    fi
  done
 ;;
esac
fi


case "$pike_cv_short_use" in
  CT_SHORT)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: short" >&5
printf "%s\n" "short" >&6; }
    printf "%s\n" "#define BISON_SHORT_EXPANSION int" >>confdefs.h

    ;;
  CT_SHORT_INT)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: short int" >&5
printf "%s\n" "short int" >&6; }
    printf "%s\n" "#define BISON_SHORT_EXPANSION /**/" >>confdefs.h

    ;;
  *)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
printf "%s\n" "unknown" >&6; }
    ;;
esac

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the type of __yy_memcpy" >&5
printf %s "checking for the type of __yy_memcpy... " >&6; }
if test ${pike_cv___yy_memcpy_count_type+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  pike_cv___yy_memcpy_from_const=
  pike_cv___yy_memcpy_count_type=unknown
  for count_type in "unsigned int" "size_t" "unsigned long" "int"; do
    for from_const in "const" ""; do
      cat >conftest.y <<EOF
%pure_parser
%{
#include <stdio.h>

#ifndef __GNUC__
#ifndef __cplusplus
static void __yy_memcpy(char *to, $from_const char *from, $count_type count);
#endif /* !__cplusplus */
#endif /* !__GNUC__ */

void yyerror(char *);
int yylex(void *);
%}
%%
all: foo bar
foo: 'f' 'o' 'o' { fprintf(stderr, "foo\\n"); } ;
bar: 'b' 'a' 'r' ;
%%
int yylex(void *yylval) { return 'f'; }
void yyerror(char *err) { fprintf(stderr, "ERR: %s\\n", err); }
EOF
      echo conftest.y: 1>&5
      cat conftest.y 1>&5
      if $YACC -d conftest.y 1>&5 2>&5; then
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include "y.tab.c"

int
main (void)
{

  yyparse();
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

          pike_cv___yy_memcpy_count_type=$count_type
	  pike_cv___yy_memcpy_from_const="$from_const"
          break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      fi
    done
    if test "x$pike_cv___yy_memcpy_count_type" = "xunknown"; then :; else
      break
    fi
  done
 ;;
esac
fi

if test "x$pike_cv___yy_memcpy_count_type" = "xunknown"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv___yy_memcpy_count_type" >&5
printf "%s\n" "$pike_cv___yy_memcpy_count_type" >&6; }
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Defaulting to unsigned int." >&5
printf "%s\n" "$as_me: WARNING: Defaulting to unsigned int." >&2;}
  YY_COUNT_TYPE="unsigned int"
  YY_FROM_CONST=""
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: void __yy_memcpy(char *, $pike_cv___yy_memcpy_from_const char *, $pike_cv___yy_memcpy_count_type)" >&5
printf "%s\n" "void __yy_memcpy(char *, $pike_cv___yy_memcpy_from_const char *, $pike_cv___yy_memcpy_count_type)" >&6; }
  YY_COUNT_TYPE="$pike_cv___yy_memcpy_count_type"
  YY_FROM_CONST="$pike_cv___yy_memcpy_from_const"
fi



#############################################################################

## At this point we have found all binaries we are going to use.

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
printf %s "checking for an ANSI C-conforming const... " >&6; }
if test ${ac_cv_c_const+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

#ifndef __cplusplus
  /* Ultrix mips cc rejects this sort of thing.  */
  typedef int charset[2];
  const charset cs = { 0, 0 };
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* IBM XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_c_const=yes
else case e in #(
  e) ac_cv_c_const=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
printf "%s\n" "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

printf "%s\n" "#define const /**/" >>confdefs.h

fi


# The above doesn't find IBM C's buggy const.

if test "$ac_cv_c_const" = "yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if const really does work" >&5
printf %s "checking if const really does work... " >&6; }
  if test ${pike_cv_c_really_const+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

const int foo(int bar) { return bar; }

int
main (void)
{

      return foo(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

       pike_cv_c_really_const=yes

else case e in #(
  e)
       pike_cv_c_really_const=no
     ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;;
esac
fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_c_really_const" >&5
printf "%s\n" "$pike_cv_c_really_const" >&6; }
  if test "x$pike_cv_c_really_const" = xno ; then
    printf "%s\n" "#define const /**/" >>confdefs.h

  else
    :
  fi
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if restrict keyword is available (C99)" >&5
printf %s "checking if restrict keyword is available (C99)... " >&6; }
if test ${pike_cv_keyword_restrict+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

extern int foo(void *bar[restrict], void *restrict baz);

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_keyword_restrict="yes"
else case e in #(
  e)  pike_cv_keyword_restrict="no"  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_keyword_restrict" >&5
printf "%s\n" "$pike_cv_keyword_restrict" >&6; }
if test "x$pike_cv_keyword_restrict" = "xno"; then
  printf "%s\n" "#define restrict  /* Not supported */ " >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
printf %s "checking whether char is unsigned... " >&6; }
if test ${ac_cv_c_char_unsigned+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main (void)
{
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_c_char_unsigned=no
else case e in #(
  e) ac_cv_c_char_unsigned=yes ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes; then
  printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h

fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can cast void * to a function pointer" >&5
printf %s "checking if we can cast void * to a function pointer... " >&6; }
if test ${pike_cv_function_cast+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    void *foo = 0;

int
main (void)
{

    void (*bar)(void) = (void (*)(void)) foo;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_function_cast="yes"
else case e in #(
  e)  pike_cv_function_cast="no"  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi

if test "$pike_cv_function_cast" = "yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
  printf "%s\n" "#define NO_CAST_TO_FUN 1" >>confdefs.h

fi

#############################################################################


  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5


# Note: For function detection to work correctly with
# PIKE_FUNCS_NEED_DECLS (i.e. windows), it's necessary that
# AC_CHECK_HEADERS tests all potential header files for a function
# before AC_CHECK_FUNCS is used.



  if test "x$enable_binary" != "xno"; then


  ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_time_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/time.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/time.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h


fi


  else
    for ac_hdr in sys/time.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi


# Obsolete code to be removed.
if test $ac_cv_header_sys_time_h = yes; then

printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi
# End of obsolete code.

# Autoupdate added the next two lines to ensure that your configure
# script's behavior did not change.  They are probably safe to remove.

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_prog in egrep
   do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in #(
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
#(
*)
  ac_count=0
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"

         EGREP_TRADITIONAL=$EGREP
 ac_cv_path_EGREP_TRADITIONAL=$EGREP


# Note: winsock2.h has to be included before winsock.h to avoid
# conflict. Thus check for winsock2.h before anything else in case
# winsock.h is included indirectly.

  if test "x$enable_binary" != "xno"; then


  ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_winsock2_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "winsock2.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <winsock2.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/rusage.h" "ac_cv_header_sys_rusage_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_rusage_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/rusage.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/rusage.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_RUSAGE_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_time_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/time.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/time.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_memory_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "memory.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <memory.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_strings_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "strings.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <strings.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_stdalign_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "stdalign.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <stdalign.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_STDALIGN_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_float_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "float.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <float.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_fcntl_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "fcntl.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <fcntl.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_filio_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/filio.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/filio.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_sockio_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/sockio.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/sockio.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_crypt_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "crypt.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <crypt.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_select_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/select.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/select.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "net/socket.h" "ac_cv_header_net_socket_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_net_socket_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "net/socket.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <net/socket.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_NET_SOCKET_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_param_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/param.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/param.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_io_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "io.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <io.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_mman_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/mman.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/mman.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_user_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/user.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/user.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_USER_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_pthread_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "pthread.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <pthread.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "threads.h" "ac_cv_header_threads_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_threads_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "threads.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <threads.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_THREADS_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/id.h" "ac_cv_header_sys_id_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_id_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/id.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/id.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_ID_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_mach_o_dyld_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "mach-o/dyld.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <mach-o/dyld.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/ptrace.h" "ac_cv_header_sys_ptrace_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_ptrace_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/ptrace.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/ptrace.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_PTRACE_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "thread.h" "ac_cv_header_thread_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_thread_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "thread.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <thread.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_THREAD_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_dlfcn_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "dlfcn.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <dlfcn.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "dld.h" "ac_cv_header_dld_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_dld_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "dld.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <dld.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_DLD_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_dl_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "dl.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <dl.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_times_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/times.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/times.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sched_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sched.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sched.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_procfs_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/procfs.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/procfs.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_PROCFS_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_socket_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/socket.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/socket.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_uio_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/uio.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/uio.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_fcntl_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "fcntl.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <fcntl.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_malloc_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "malloc.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <malloc.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_netinet_in_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "netinet/in.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <netinet/in.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_arpa_inet_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "arpa/inet.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <arpa/inet.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_wait_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/wait.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/wait.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_windows_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "windows.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <windows.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_grp_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "grp.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <grp.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_pwd_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "pwd.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <pwd.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "passwd.h" "ac_cv_header_passwd_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_passwd_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "passwd.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <passwd.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_PASSWD_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "group.h" "ac_cv_header_group_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_group_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "group.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <group.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_GROUP_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_winsock_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "winsock.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <winsock.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_WINSOCK_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_file_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/file.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/file.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_poll_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "poll.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <poll.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_poll_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/poll.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/poll.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_socket_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "socket.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <socket.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_ieeefp_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "ieeefp.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <ieeefp.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_IEEEFP_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "fp_class.h" "ac_cv_header_fp_class_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_fp_class_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "fp_class.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <fp_class.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_FP_CLASS_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "floatingpoint.h" "ac_cv_header_floatingpoint_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_floatingpoint_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "floatingpoint.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <floatingpoint.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_FLOATINGPOINT_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/priocntl.h" "ac_cv_header_sys_priocntl_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_priocntl_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/priocntl.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/priocntl.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_PRIOCNTL_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_sched_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/sched.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/sched.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_SCHED_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "winbase.h" "ac_cv_header_winbase_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_winbase_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "winbase.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <winbase.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_WINBASE_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_termio_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/termio.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/termio.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_termios_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "termios.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <termios.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/termios.h" "ac_cv_header_sys_termios_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_termios_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/termios.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/termios.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_TERMIOS_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_sendfile_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/sendfile.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/sendfile.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_utime_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "utime.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <utime.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_utime_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/utime.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/utime.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "rctl.h" "ac_cv_header_rctl_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_rctl_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "rctl.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <rctl.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_RCTL_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "xmath.h" "ac_cv_header_xmath_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_xmath_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "xmath.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <xmath.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_XMATH_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "ymath.h" "ac_cv_header_ymath_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_ymath_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "ymath.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <ymath.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_YMATH_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_ws2tcpip_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "ws2tcpip.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <ws2tcpip.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_valgrind_memcheck_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "valgrind/memcheck.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <valgrind/memcheck.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "memcheck.h" "ac_cv_header_memcheck_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_memcheck_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "memcheck.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <memcheck.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_MEMCHECK_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_valgrind_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "valgrind.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <valgrind.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_VALGRIND_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_prctl_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/prctl.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/prctl.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_ioctl_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/ioctl.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/ioctl.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "mach/task_info.h" "ac_cv_header_mach_task_info_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_mach_task_info_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "mach/task_info.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <mach/task_info.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_MACH_TASK_INFO_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "mach/task.h" "ac_cv_header_mach_task_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_mach_task_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "mach/task.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <mach/task.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_MACH_TASK_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "mach/mach_init.h" "ac_cv_header_mach_mach_init_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_mach_mach_init_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "mach/mach_init.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <mach/mach_init.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_MACH_MACH_INIT_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_syscall_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "syscall.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <syscall.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYSCALL_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_syscall_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/syscall.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/syscall.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "devices/timer.h" "ac_cv_header_devices_timer_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_devices_timer_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "devices/timer.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <devices/timer.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_DEVICES_TIMER_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_direct_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "direct.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <direct.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "CoreServices/CoreServices.h" "ac_cv_header_CoreServices_CoreServices_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_CoreServices_CoreServices_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "CoreServices/CoreServices.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <CoreServices/CoreServices.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_CORESERVICES_CORESERVICES_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_execinfo_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "execinfo.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <execinfo.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_mach_mach_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "mach/mach.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <mach/mach.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_MACH_MACH_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "mach/thread_act.h" "ac_cv_header_mach_thread_act_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_mach_thread_act_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "mach/thread_act.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <mach/thread_act.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_MACH_THREAD_ACT_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "mach/clock.h" "ac_cv_header_mach_clock_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_mach_clock_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "mach/clock.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <mach/clock.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_MACH_CLOCK_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "mach/port.h" "ac_cv_header_mach_port_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_mach_port_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "mach/port.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <mach/port.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_MACH_PORT_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "mach/message.h" "ac_cv_header_mach_message_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_mach_message_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "mach/message.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <mach/message.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_MACH_MESSAGE_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_sys_auxv_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/auxv.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/auxv.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "asm/hwcap.h" "ac_cv_header_asm_hwcap_h" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
# include <sys/types.h>
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
/* Necessary to find struct winsize. */
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#elif defined(HAVE_SYS_TERMIOS_H)
/* NB: Deprecated by <termios.h> above. */
#include <sys/termios.h>
#endif

"
if test "x$ac_cv_header_asm_hwcap_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "asm/hwcap.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <asm/hwcap.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_ASM_HWCAP_H 1" >>confdefs.h


fi


  else
    for ac_hdr in winsock2.h sys/rusage.h sys/time.h \
                 memory.h strings.h stdalign.h float.h \
		 fcntl.h sys/filio.h sys/sockio.h crypt.h \
		 sys/select.h net/socket.h sys/param.h io.h \
                 sys/mman.h sys/user.h pthread.h threads.h \
		 sys/id.h mach-o/dyld.h sys/ptrace.h \
		 thread.h dlfcn.h dld.h dl.h sys/times.h sched.h \
		 sys/procfs.h sys/socket.h sys/uio.h fcntl.h \
		 malloc.h netinet/in.h arpa/inet.h sys/wait.h windows.h \
		 grp.h pwd.h passwd.h group.h winsock.h sys/file.h poll.h \
		 sys/poll.h socket.h ieeefp.h fp_class.h floatingpoint.h \
		 sys/priocntl.h sys/sched.h winbase.h \
		 sys/termio.h termios.h sys/termios.h \
                 sys/sendfile.h utime.h sys/utime.h \
                 rctl.h xmath.h ymath.h \
		 ws2tcpip.h valgrind/memcheck.h memcheck.h valgrind.h \
		 sys/prctl.h sys/ioctl.h mach/task_info.h mach/task.h \
		 mach/mach_init.h syscall.h sys/syscall.h devices/timer.h \
		 direct.h CoreServices/CoreServices.h execinfo.h \
		 mach/mach.h mach/thread_act.h mach/clock.h \
                 mach/port.h mach/message.h sys/auxv.h asm/hwcap.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi


ac_fn_c_check_type "$LINENO" "HPCON" "ac_cv_type_HPCON" "
#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifdef __amigaos__
#define __USE_NETINET_IN_H
#endif
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif

"
if test "x$ac_cv_type_HPCON" = xyes
then :

printf "%s\n" "#define HAVE_HPCON 1" >>confdefs.h


fi
ac_fn_c_check_type "$LINENO" "LPPROC_THREAD_ATTRIBUTE_LIST" "ac_cv_type_LPPROC_THREAD_ATTRIBUTE_LIST" "
#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifdef __amigaos__
#define __USE_NETINET_IN_H
#endif
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif

"
if test "x$ac_cv_type_LPPROC_THREAD_ATTRIBUTE_LIST" = xyes
then :

printf "%s\n" "#define HAVE_LPPROC_THREAD_ATTRIBUTE_LIST 1" >>confdefs.h


fi
ac_fn_c_check_type "$LINENO" "LPSTARTUPINFOEXW" "ac_cv_type_LPSTARTUPINFOEXW" "
#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifdef __amigaos__
#define __USE_NETINET_IN_H
#endif
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif

"
if test "x$ac_cv_type_LPSTARTUPINFOEXW" = xyes
then :

printf "%s\n" "#define HAVE_LPSTARTUPINFOEXW 1" >>confdefs.h


fi
ac_fn_c_check_type "$LINENO" "struct winsize" "ac_cv_type_struct_winsize" "
#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif /* !_DEFAULT_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifdef __amigaos__
#define __USE_NETINET_IN_H
#endif
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif

"
if test "x$ac_cv_type_struct_winsize" = xyes
then :

printf "%s\n" "#define HAVE_STRUCT_WINSIZE 1" >>confdefs.h


fi


if test "x$ac_cv_header_xmath_h:$ac_cv_header_ymath_h" = "xno:no" ; then :; else
    # Internal header files on NT.
    #
    # Some notes:
    #   <xmath.h> includes <ymath.h>.
    #   The typedef _Dconst is a union.
    #   The double field is named _Double in MSVC 9 (2007),
    #   but just _D in a prerelease dated 2000-06-15.
    ac_fn_c_check_member "$LINENO" "_Dconst" "_Double" "ac_cv_member__Dconst__Double" "
#ifdef HAVE_XMATH_H
#include <xmath.h>
#else
#include <ymath.h>
#endif

"
if test "x$ac_cv_member__Dconst__Double" = xyes
then :


printf "%s\n" "#define INFINITY (_Inf._Double)" >>confdefs.h


else case e in #(
  e)
      ac_fn_c_check_member "$LINENO" "_Dconst" "_D" "ac_cv_member__Dconst__D" "
#ifdef HAVE_XMATH_H
#include <xmath.h>
#else
#include <ymath.h>
#endif

"
if test "x$ac_cv_member__Dconst__D" = xyes
then :

        printf "%s\n" "#define INFINITY (_Inf._D)" >>confdefs.h


fi

     ;;
esac
fi

fi

if test "x$ac_cv_header_sys_sendfile_h" = "xyes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if <sys/sendfile.h> supports _FILE_OFFSET_BITS=64" >&5
printf %s "checking if <sys/sendfile.h> supports _FILE_OFFSET_BITS=64... " >&6; }
  if test ${pike_cv_header_sys_sendfile_h+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _FILE_OFFSET_BITS 64
#include <sys/sendfile.h>

_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

      pike_cv_header_sys_sendfile_h=yes

else case e in #(
  e)
      pike_cv_header_sys_sendfile_h=no
     ;;
esac
fi
rm -f conftest.err conftest.i conftest.$ac_ext
   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_header_sys_sendfile_h" >&5
printf "%s\n" "$pike_cv_header_sys_sendfile_h" >&6; }
  if test "x$pike_cv_header_sys_sendfile_h" = "xno"; then
    printf "%s\n" "#define HAVE_BROKEN_SYS_SENDFILE_H 1" >>confdefs.h

  fi
fi

# Setjmp.
#
# POSIX defines sigsetjmp().
# BSD defines both _setjmp() and setjmp(), where setjmp()
# saves the signal mask.
# SVID explicitly defines setjmp() not to save the signal mask.

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
printf %s "checking for sigsetjmp... " >&6; }
if test ${ac_cv_func_sigsetjmp+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef sigsetjmp
void *f = (void *) sigsetjmp;
#endif

int
main (void)
{

#ifdef sigsetjmp
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != sigsetjmp;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sigsetjmp=yes"
else case e in #(
  e) eval "ac_cv_func_sigsetjmp=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define sigsetjmp to an innocuous variant, in case <limits.h> declares sigsetjmp.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sigsetjmp innocuous_sigsetjmp

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sigsetjmp (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sigsetjmp
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sigsetjmp ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sigsetjmp) || defined (__stub___sigsetjmp)
choke me
#else
char (*f) () = sigsetjmp;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != sigsetjmp;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sigsetjmp=yes"
else case e in #(
  e) eval "ac_cv_func_sigsetjmp=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'sigsetjmp`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
printf %s "checking for _setjmp... " >&6; }
if test ${ac_cv_func__setjmp+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef _setjmp
void *f = (void *) _setjmp;
#endif

int
main (void)
{

#ifdef _setjmp
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != _setjmp;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__setjmp=yes"
else case e in #(
  e) eval "ac_cv_func__setjmp=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define _setjmp to an innocuous variant, in case <limits.h> declares _setjmp.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define _setjmp innocuous__setjmp

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _setjmp (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef _setjmp
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char _setjmp ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__setjmp) || defined (__stub____setjmp)
choke me
#else
char (*f) () = _setjmp;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != _setjmp;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__setjmp=yes"
else case e in #(
  e) eval "ac_cv_func__setjmp=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'_setjmp`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE__SETJMP 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for siglongjmp" >&5
printf %s "checking for siglongjmp... " >&6; }
if test ${ac_cv_func_siglongjmp+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef siglongjmp
void *f = (void *) siglongjmp;
#endif

int
main (void)
{

#ifdef siglongjmp
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != siglongjmp;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_siglongjmp=yes"
else case e in #(
  e) eval "ac_cv_func_siglongjmp=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define siglongjmp to an innocuous variant, in case <limits.h> declares siglongjmp.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define siglongjmp innocuous_siglongjmp

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char siglongjmp (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef siglongjmp
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char siglongjmp ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_siglongjmp) || defined (__stub___siglongjmp)
choke me
#else
char (*f) () = siglongjmp;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != siglongjmp;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_siglongjmp=yes"
else case e in #(
  e) eval "ac_cv_func_siglongjmp=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'siglongjmp`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SIGLONGJMP 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _longjmp" >&5
printf %s "checking for _longjmp... " >&6; }
if test ${ac_cv_func__longjmp+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef _longjmp
void *f = (void *) _longjmp;
#endif

int
main (void)
{

#ifdef _longjmp
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != _longjmp;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__longjmp=yes"
else case e in #(
  e) eval "ac_cv_func__longjmp=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define _longjmp to an innocuous variant, in case <limits.h> declares _longjmp.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define _longjmp innocuous__longjmp

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _longjmp (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef _longjmp
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char _longjmp ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__longjmp) || defined (__stub____longjmp)
choke me
#else
char (*f) () = _longjmp;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != _longjmp;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__longjmp=yes"
else case e in #(
  e) eval "ac_cv_func__longjmp=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'_longjmp`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE__LONGJMP 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


default_backend_method=select
# Make it possible to disable use of /dev/poll.
if test "x$with_devpoll" = "xno"; then :; else

  if test "x$enable_binary" != "xno"; then


  ac_fn_c_check_header_compile "$LINENO" "sys/port.h" "ac_cv_header_sys_port_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_port_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/port.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/port.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_PORT_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_devpoll_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/devpoll.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/devpoll.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_event_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/event.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/event.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_epoll_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/epoll.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/epoll.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h


fi


  else
    for ac_hdr in sys/port.h sys/devpoll.h sys/event.h sys/epoll.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for port_create" >&5
printf %s "checking for port_create... " >&6; }
if test ${ac_cv_func_port_create+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef port_create
void *f = (void *) port_create;
#endif

int
main (void)
{

#ifdef port_create
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != port_create;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_port_create=yes"
else case e in #(
  e) eval "ac_cv_func_port_create=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define port_create to an innocuous variant, in case <limits.h> declares port_create.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define port_create innocuous_port_create

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char port_create (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef port_create
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char port_create ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_port_create) || defined (__stub___port_create)
choke me
#else
char (*f) () = port_create;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != port_create;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_port_create=yes"
else case e in #(
  e) eval "ac_cv_func_port_create=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'port_create`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
printf %s "checking for kqueue... " >&6; }
if test ${ac_cv_func_kqueue+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef kqueue
void *f = (void *) kqueue;
#endif

int
main (void)
{

#ifdef kqueue
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != kqueue;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_kqueue=yes"
else case e in #(
  e) eval "ac_cv_func_kqueue=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define kqueue to an innocuous variant, in case <limits.h> declares kqueue.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define kqueue innocuous_kqueue

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char kqueue (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef kqueue
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char kqueue ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_kqueue) || defined (__stub___kqueue)
choke me
#else
char (*f) () = kqueue;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != kqueue;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_kqueue=yes"
else case e in #(
  e) eval "ac_cv_func_kqueue=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'kqueue`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFRunLoopRunInMode in CoreServices framework" >&5
printf %s "checking for CFRunLoopRunInMode in CoreServices framework... " >&6; }
if test ${ac_cv_framework_CoreServices_CFRunLoopRunInMode+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_framework_save_LIBS=$LIBS
LIBS="-framework CoreServices  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char CFRunLoopRunInMode (void);
int
main (void)
{
return CFRunLoopRunInMode ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_framework_CoreServices_CFRunLoopRunInMode=yes
else case e in #(
  e) ac_cv_framework_CoreServices_CFRunLoopRunInMode=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_framework_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreServices_CFRunLoopRunInMode" >&5
printf "%s\n" "$ac_cv_framework_CoreServices_CFRunLoopRunInMode" >&6; }
if test $ac_cv_framework_CoreServices_CFRunLoopRunInMode = yes
then :
  printf "%s\n" "#define HAVE_FRAMEWORK_CORESERVICES 1" >>confdefs.h

  LIBS="-framework CoreServices $LIBS"

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFRunLoopRunInMode" >&5
printf %s "checking for CFRunLoopRunInMode... " >&6; }
if test ${ac_cv_func_CFRunLoopRunInMode+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef CFRunLoopRunInMode
void *f = (void *) CFRunLoopRunInMode;
#endif

int
main (void)
{

#ifdef CFRunLoopRunInMode
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != CFRunLoopRunInMode;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_CFRunLoopRunInMode=yes"
else case e in #(
  e) eval "ac_cv_func_CFRunLoopRunInMode=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define CFRunLoopRunInMode to an innocuous variant, in case <limits.h> declares CFRunLoopRunInMode.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define CFRunLoopRunInMode innocuous_CFRunLoopRunInMode

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char CFRunLoopRunInMode (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef CFRunLoopRunInMode
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char CFRunLoopRunInMode ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_CFRunLoopRunInMode) || defined (__stub___CFRunLoopRunInMode)
choke me
#else
char (*f) () = CFRunLoopRunInMode;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != CFRunLoopRunInMode;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_CFRunLoopRunInMode=yes"
else case e in #(
  e) eval "ac_cv_func_CFRunLoopRunInMode=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'CFRunLoopRunInMode`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_CFRUNLOOPRUNINMODE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poll device" >&5
printf %s "checking for poll device... " >&6; }
  if test ${pike_cv_device_devpoll+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    pike_cv_poll_device="no"
    for device in /dev/poll /dev/epoll; do
      if test -w "$device"; then
        pike_cv_poll_device="$device"
	break
      fi
    done
   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_poll_device" >&5
printf "%s\n" "$pike_cv_poll_device" >&6; }
  if test "x$pike_cv_poll_device" = "xno"; then :; else
    printf "%s\n" "#define PIKE_POLL_DEVICE \"$pike_cv_poll_device\"" >>confdefs.h

  fi

  if test "x$ac_cv_header_sys_devpoll_h" = "xno"; then :; else
      default_backend_method="devpoll ($pike_cv_poll_device)"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct dvpoll has the field dp_setp" >&5
printf %s "checking whether struct dvpoll has the field dp_setp... " >&6; }
      if test ${pike_cv_struct_dvpoll_has_dp_setp+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* NB: The extra field also causes <sys/devpoll.h> to require
 *     <signal.h> to be included before in order to get sigset_t.
 */
#include <signal.h>
#include <sys/devpoll.h>

int
main (void)
{

            struct dvpoll dp;
            void *set = dp.dp_setp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_struct_dvpoll_has_dp_setp=yes
else case e in #(
  e) pike_cv_struct_dvpoll_has_dp_setp=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
       ;;
esac
fi

      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_struct_dvpoll_has_dp_setp" >&5
printf "%s\n" "$pike_cv_struct_dvpoll_has_dp_setp" >&6; }
      if test "x$pike_cv_struct_dvpoll_has_dp_setp" = "xyes"; then
          printf "%s\n" "#define STRUCT_DVPOLL_HAS_DP_SETP 1" >>confdefs.h

      fi
  fi

  if test "x$ac_cv_func_kqueue" = "xyes"; then
    default_backend_method=kqueue
  fi

  if test "x$ac_cv_func_port_create" = "xyes"; then
    default_backend_method=port_create
  fi

  if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if epoll is available" >&5
printf %s "checking if epoll is available... " >&6; }
    if test ${pike_cv_epoll_works+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      if test "x$pike_cv_poll_device" = "xno"; then
        if test "$cross_compiling" = yes
then :

          pike_cv_epoll_works=unknown

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <errno.h>
#include <sys/epoll.h>
#ifdef __stub_epoll_create
/* We have a libc without the wrappers for epoll support.
 */
#ifdef HAVE_SYSCALL_H
#include <syscall.h>
#elif defined(HAVE_SYS_SYSCALL_H)
#include <sys/syscall.h>
#endif /* HAVE_SYSCALL_H || HAVE_SYS_SYSCALL_H */
#ifndef __NR_epoll_create
/* Our libc does not even know the syscall numbers for the epoll syscalls.
 */
#ifdef __i386__
#define __NR_epoll_create 254
#elif defined(__x86_64__)
#define __NR_epoll_create 214
#else /* cpu types */
#error Syscall numbers for epoll_create et al not known on this architecture.
#endif /* cpu types */
#endif /* !defined(__NR_epoll_create) */

#if defined(_syscall1) && defined(_syscall4)
_syscall1(int, epoll_create, int, size);
#undef __stub_epoll_create
#else /* !_syscall1 || !_syscall4 */
#error Missing macros for generation of syscall wrappers.
#endif /* _syscall1 && _syscall4 */
#endif /* __stub_epoll_{create, ctl, wait} */
int main(int argc, char **argv)
{
  int fd;
  do {
    fd = epoll_create(32);
  } while ((fd < 0) && (errno == EINTR));
  return fd < 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :

          pike_cv_epoll_works=yes

else case e in #(
  e)
          pike_cv_epoll_works=no
         ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

      else
        pike_cv_epoll_works=yes
      fi
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_epoll_works" >&5
printf "%s\n" "$pike_cv_epoll_works" >&6; }
    if test "x$pike_cv_epoll_works" = "xyes"; then
      default_backend_method=epoll
      printf "%s\n" "#define WITH_EPOLL 1" >>confdefs.h

    fi
  fi
fi

# some Linux systems have a broken resource.h that compiles anyway /Mirar
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/resource.h" >&5
printf %s "checking for sys/resource.h... " >&6; }
if test ${pike_cv_sys_resource_h+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <time.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif /* HAVE_SYS_TIME_H */

#include <sys/resource.h>


int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_sys_resource_h=yes
else case e in #(
  e) pike_cv_sys_resource_h=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi

if test "x$pike_cv_sys_resource_h" = "xyes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char * ... crosscompiling or rnt" >&5
printf %s "checking size of char * ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_char_p+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 82597 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(char *), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_char_p=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_char_p" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_char_p=4
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_char_p=4
        fi
      else
        ac_cv_sizeof_char_p=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
printf "%s\n" "$ac_cv_sizeof_char_p" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_char_p=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
printf %s "checking size of char *... " >&6; }
if test ${ac_cv_sizeof_char_p+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_char_p" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (char *)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_char_p=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
printf "%s\n" "$ac_cv_sizeof_char_p" >&6; }



printf "%s\n" "#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int ... crosscompiling or rnt" >&5
printf %s "checking size of int ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_int+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 82684 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(int), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_int=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_int" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_int=4
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_int=4
        fi
      else
        ac_cv_sizeof_int=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
printf "%s\n" "$ac_cv_sizeof_int" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_int=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
printf %s "checking size of int... " >&6; }
if test ${ac_cv_sizeof_int+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_int" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
printf "%s\n" "$ac_cv_sizeof_int" >&6; }



printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short ... crosscompiling or rnt" >&5
printf %s "checking size of short ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_short+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 82771 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(short), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_short=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_short" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_short=2
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_short=2
        fi
      else
        ac_cv_sizeof_short=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
printf "%s\n" "$ac_cv_sizeof_short" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_short=2
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
printf %s "checking size of short... " >&6; }
if test ${ac_cv_sizeof_short+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_short" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
printf "%s\n" "$ac_cv_sizeof_short" >&6; }



printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float ... crosscompiling or rnt" >&5
printf %s "checking size of float ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_float+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 82858 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(float), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_float=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_float" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_float=4
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_float=4
        fi
      else
        ac_cv_sizeof_float=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
printf "%s\n" "$ac_cv_sizeof_float" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_float=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
printf %s "checking size of float... " >&6; }
if test ${ac_cv_sizeof_float+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_float" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (float)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_float=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
printf "%s\n" "$ac_cv_sizeof_float" >&6; }



printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double ... crosscompiling or rnt" >&5
printf %s "checking size of double ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_double+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 82945 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(double), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_double=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_double" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_double=8
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_double=8
        fi
      else
        ac_cv_sizeof_double=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
printf "%s\n" "$ac_cv_sizeof_double" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_double=8
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
printf %s "checking size of double... " >&6; }
if test ${ac_cv_sizeof_double+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_double" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (double)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_double=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
printf "%s\n" "$ac_cv_sizeof_double" >&6; }



printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double ... crosscompiling or rnt" >&5
printf %s "checking size of long double ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_long_double+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 83032 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(long double), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_long_double=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_long_double" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_long_double=0
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_long_double=0
        fi
      else
        ac_cv_sizeof_long_double=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
printf "%s\n" "$ac_cv_sizeof_long_double" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_long_double=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
printf %s "checking size of long double... " >&6; }
if test ${ac_cv_sizeof_long_double+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_long_double" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long double)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_double=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
printf "%s\n" "$ac_cv_sizeof_long_double" >&6; }



printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long ... crosscompiling or rnt" >&5
printf %s "checking size of long ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_long+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 83119 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(long), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_long=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_long" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_long=4
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_long=4
        fi
      else
        ac_cv_sizeof_long=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
printf "%s\n" "$ac_cv_sizeof_long" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_long=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
printf %s "checking size of long... " >&6; }
if test ${ac_cv_sizeof_long+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_long" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
printf "%s\n" "$ac_cv_sizeof_long" >&6; }



printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long ... crosscompiling or rnt" >&5
printf %s "checking size of long long ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_long_long+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 83206 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(long long), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_long_long=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_long_long" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_long_long=0
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_long_long=0
        fi
      else
        ac_cv_sizeof_long_long=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_long_long=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
printf %s "checking size of long long... " >&6; }
if test ${ac_cv_sizeof_long_long+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_long_long" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long long)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_long=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }



printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __int64 ... crosscompiling or rnt" >&5
printf %s "checking size of __int64 ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof___int64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 83293 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(__int64), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof___int64=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof___int64" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof___int64=0
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof___int64=0
        fi
      else
        ac_cv_sizeof___int64=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
printf "%s\n" "$ac_cv_sizeof___int64" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof___int64=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
printf %s "checking size of __int64... " >&6; }
if test ${ac_cv_sizeof___int64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type___int64" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (__int64)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof___int64=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
printf "%s\n" "$ac_cv_sizeof___int64" >&6; }



printf "%s\n" "#define SIZEOF___INT64 $ac_cv_sizeof___int64" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t ... crosscompiling or rnt" >&5
printf %s "checking size of time_t ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_time_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 83380 "configure"
#include "confdefs.h"

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _TIME_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
#  include <sys/time.h>
# else
#   include <time.h>
# endif
#endif


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(time_t), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_time_t=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_time_t" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_time_t=4
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_time_t=4
        fi
      else
        ac_cv_sizeof_time_t=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_time_t=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
printf %s "checking size of time_t... " >&6; }
if test ${ac_cv_sizeof_time_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _TIME_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
#  include <sys/time.h>
# else
#   include <time.h>
# endif
#endif

"
then :

else case e in #(
  e) if test "$ac_cv_type_time_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }



printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __int128 ... crosscompiling or rnt" >&5
printf %s "checking size of __int128 ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof___int128+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 83500 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(__int128), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof___int128=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof___int128" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof___int128=0
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof___int128=0
        fi
      else
        ac_cv_sizeof___int128=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128" >&5
printf "%s\n" "$ac_cv_sizeof___int128" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof___int128=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __int128" >&5
printf %s "checking size of __int128... " >&6; }
if test ${ac_cv_sizeof___int128+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int128))" "ac_cv_sizeof___int128"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type___int128" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (__int128)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof___int128=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128" >&5
printf "%s\n" "$ac_cv_sizeof___int128" >&6; }



printf "%s\n" "#define SIZEOF___INT128 $ac_cv_sizeof___int128" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __int128_t ... crosscompiling or rnt" >&5
printf %s "checking size of __int128_t ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof___int128_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 83587 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(__int128_t), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof___int128_t=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof___int128_t" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof___int128_t=0
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof___int128_t=0
        fi
      else
        ac_cv_sizeof___int128_t=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128_t" >&5
printf "%s\n" "$ac_cv_sizeof___int128_t" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof___int128_t=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __int128_t" >&5
printf %s "checking size of __int128_t... " >&6; }
if test ${ac_cv_sizeof___int128_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int128_t))" "ac_cv_sizeof___int128_t"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type___int128_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (__int128_t)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof___int128_t=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128_t" >&5
printf "%s\n" "$ac_cv_sizeof___int128_t" >&6; }



printf "%s\n" "#define SIZEOF___INT128_T $ac_cv_sizeof___int128_t" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128 ... crosscompiling or rnt" >&5
printf %s "checking size of unsigned __int128 ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_unsigned___int128+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 83674 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(unsigned __int128), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_unsigned___int128=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_unsigned___int128" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_unsigned___int128=0
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_unsigned___int128=0
        fi
      else
        ac_cv_sizeof_unsigned___int128=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
printf "%s\n" "$ac_cv_sizeof_unsigned___int128" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_unsigned___int128=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
printf %s "checking size of unsigned __int128... " >&6; }
if test ${ac_cv_sizeof_unsigned___int128+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_unsigned___int128" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (unsigned __int128)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_unsigned___int128=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
printf "%s\n" "$ac_cv_sizeof_unsigned___int128" >&6; }



printf "%s\n" "#define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128_t ... crosscompiling or rnt" >&5
printf %s "checking size of unsigned __int128_t ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_unsigned___int128_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 83761 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(unsigned __int128_t), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_unsigned___int128_t=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_unsigned___int128_t" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_unsigned___int128_t=0
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_unsigned___int128_t=0
        fi
      else
        ac_cv_sizeof_unsigned___int128_t=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128_t" >&5
printf "%s\n" "$ac_cv_sizeof_unsigned___int128_t" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_unsigned___int128_t=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128_t" >&5
printf %s "checking size of unsigned __int128_t... " >&6; }
if test ${ac_cv_sizeof_unsigned___int128_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128_t))" "ac_cv_sizeof_unsigned___int128_t"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_unsigned___int128_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (unsigned __int128_t)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_unsigned___int128_t=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128_t" >&5
printf "%s\n" "$ac_cv_sizeof_unsigned___int128_t" >&6; }



printf "%s\n" "#define SIZEOF_UNSIGNED___INT128_T $ac_cv_sizeof_unsigned___int128_t" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __uint128_t ... crosscompiling or rnt" >&5
printf %s "checking size of __uint128_t ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof___uint128_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 83848 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(__uint128_t), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof___uint128_t=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof___uint128_t" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof___uint128_t=0
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof___uint128_t=0
        fi
      else
        ac_cv_sizeof___uint128_t=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___uint128_t" >&5
printf "%s\n" "$ac_cv_sizeof___uint128_t" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof___uint128_t=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __uint128_t" >&5
printf %s "checking size of __uint128_t... " >&6; }
if test ${ac_cv_sizeof___uint128_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__uint128_t))" "ac_cv_sizeof___uint128_t"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type___uint128_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (__uint128_t)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof___uint128_t=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___uint128_t" >&5
printf "%s\n" "$ac_cv_sizeof___uint128_t" >&6; }



printf "%s\n" "#define SIZEOF___UINT128_T $ac_cv_sizeof___uint128_t" >>confdefs.h





{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
printf %s "checking for size_t... " >&6; }
if test ${ac_cv_type_size_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main (void)
{

size_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_type_size_t=yes
else case e in #(
  e) ac_cv_type_size_t=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


if test $ac_cv_type_size_t = no; then
  printf "%s\n" "#define size_t unsigned long" >>confdefs.h

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t" >&5
printf %s "checking for ptrdiff_t... " >&6; }
if test ${ac_cv_type_ptrdiff_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main (void)
{

ptrdiff_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_type_ptrdiff_t=yes
else case e in #(
  e) ac_cv_type_ptrdiff_t=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


if test $ac_cv_type_ptrdiff_t = no; then
  printf "%s\n" "#define ptrdiff_t long" >>confdefs.h

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off_t" >&5
printf %s "checking for off_t... " >&6; }
if test ${ac_cv_type_off_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main (void)
{

off_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_type_off_t=yes
else case e in #(
  e) ac_cv_type_off_t=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


if test $ac_cv_type_off_t = no; then
  printf "%s\n" "#define off_t long" >>confdefs.h

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
printf %s "checking for pid_t... " >&6; }
if test ${ac_cv_type_pid_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main (void)
{

pid_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_type_pid_t=yes
else case e in #(
  e) ac_cv_type_pid_t=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


if test $ac_cv_type_pid_t = no; then
  printf "%s\n" "#define pid_t int" >>confdefs.h

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t" >&5
printf %s "checking for uid_t... " >&6; }
if test ${ac_cv_type_uid_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main (void)
{

uid_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_type_uid_t=yes
else case e in #(
  e) ac_cv_type_uid_t=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


if test $ac_cv_type_uid_t = no; then
  printf "%s\n" "#define uid_t int" >>confdefs.h

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gid_t" >&5
printf %s "checking for gid_t... " >&6; }
if test ${ac_cv_type_gid_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main (void)
{

gid_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_type_gid_t=yes
else case e in #(
  e) ac_cv_type_gid_t=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


if test $ac_cv_type_gid_t = no; then
  printf "%s\n" "#define gid_t int" >>confdefs.h

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t" >&5
printf %s "checking for time_t... " >&6; }
if test ${ac_cv_type_time_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main (void)
{

time_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_type_time_t=yes
else case e in #(
  e) ac_cv_type_time_t=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


if test $ac_cv_type_time_t = no; then
  printf "%s\n" "#define time_t INT32" >>confdefs.h

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_t" >&5
printf %s "checking for pri_t... " >&6; }
if test ${ac_cv_type_pri_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main (void)
{

pri_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_type_pri_t=yes
else case e in #(
  e) ac_cv_type_pri_t=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


if test $ac_cv_type_pri_t = no; then
  printf "%s\n" "#define pri_t short" >>confdefs.h

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi



          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t ... crosscompiling or rnt" >&5
printf %s "checking size of off_t ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_off_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 84369 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(off_t), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_off_t=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_off_t" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_off_t=4
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_off_t=4
        fi
      else
        ac_cv_sizeof_off_t=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_off_t=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
printf %s "checking size of off_t... " >&6; }
if test ${ac_cv_sizeof_off_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_off_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (off_t)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_off_t=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }



printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h




          if test x"${ac_cv_prog_cc_cross:-${cross_compiling}}" = x"yes" -o "x$pike_cc_is_rnt" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off64_t ... crosscompiling or rnt" >&5
printf %s "checking size of off64_t ... crosscompiling or rnt... " >&6; }
    if test ${ac_cv_sizeof_off64_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat > conftest.$ac_ext <<EOF
#line 84456 "configure"
#include "confdefs.h"


#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(off64_t), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_off64_t=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_off64_t" = "x"; then
	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
printf "%s\n" "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_off64_t=0
	  else :; fi
        else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
printf "%s\n" "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_off64_t=0
        fi
      else
        ac_cv_sizeof_off64_t=0
      fi
      rm -rf conftest*
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
printf "%s\n" "$ac_cv_sizeof_off64_t" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_off64_t=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
printf %s "checking size of off64_t... " >&6; }
if test ${ac_cv_sizeof_off64_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_off64_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (off64_t)
See 'config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_off64_t=0
   fi ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
printf "%s\n" "$ac_cv_sizeof_off64_t" >&6; }



printf "%s\n" "#define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t" >>confdefs.h




if test "x$ac_cv_sizeof_off64_t" = "x0"; then :; else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if off64_t is a scalar integer" >&5
printf %s "checking if off64_t is a scalar integer... " >&6; }
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <sys/types.h>

off64_t var = 17;

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

else case e in #(
  e)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

printf "%s\n" "#define HAVE_NON_SCALAR_OFF64_T 1" >>confdefs.h

   ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sizeof anything" >&5
printf %s "checking for sizeof anything... " >&6; }
if test "$ac_cv_sizeof_long_double" != 0 -a \
	"x$with_long_double_precision" = xyes ; then
  sizeof_float_type="$ac_cv_sizeof_long_double"
elif test "x$with_double_precision" = xyes ; then
  sizeof_float_type="$ac_cv_sizeof_double"
else
  sizeof_float_type="$ac_cv_sizeof_float"
fi

if test "$ac_cv_sizeof_long_long" != 0 -a \
	"x$with_long_long_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof_long_long"
elif test "$ac_cv_sizeof___int64" != 0 -a \
	"x$with_long_long_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof___int64"
elif test "x$with_long_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof_long"
elif test "x$with_short_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof_short"
elif test "x$with_unsigned_long_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof_long"
elif test "$ac_cv_sizeof_long_long" != 0 -a \
	  "x$with_unsigned_long_long_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof_long_long"
elif test "$ac_cv_sizeof___int64" != 0 -a \
	   "x$with_unsigned_long_long_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof___int64"
else
  sizeof_int_type="$ac_cv_sizeof_int"
fi
sizeof_anything="$ac_cv_sizeof_char_p"
if test "$sizeof_float_type" -gt "$sizeof_anything"; then
  sizeof_anything="$sizeof_float_type"
fi
if test "$sizeof_int_type" -gt "$sizeof_anything"; then
  sizeof_anything="$sizeof_int_type"
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sizeof_anything" >&5
printf "%s\n" "$sizeof_anything" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FLOAT_TYPE" >&5
printf %s "checking for FLOAT_TYPE... " >&6; }

if test "x$with_long_double_precision" = x -a \
	"x$with_double_precision" = x ; then
  # Choose the longest available float that fits in a pointer.
  if test "$ac_cv_sizeof_long_double" != 0 -a \
          "$ac_cv_sizeof_long_double" -le "$sizeof_anything" ; then
    with_long_double_precision=yes
  elif test "$ac_cv_sizeof_double" -le "$sizeof_anything" ; then
    with_double_precision=yes
  fi
fi

if test "$ac_cv_sizeof_long_double" != 0 -a \
	"x$with_long_double_precision" = xyes ; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: long double" >&5
printf "%s\n" "long double" >&6; }
  printf "%s\n" "#define WITH_LONG_DOUBLE_PRECISION_SVALUE 1" >>confdefs.h

  printf "%s\n" "#define FLOAT_TYPE long double" >>confdefs.h

  printf "%s\n" "#define SIZEOF_FLOAT_TYPE SIZEOF_LONG_DOUBLE" >>confdefs.h

  float_type="long double"
  sizeof_float_type="$ac_cv_sizeof_long_double"
elif test "x$with_double_precision" = xyes ; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: double" >&5
printf "%s\n" "double" >&6; }
  printf "%s\n" "#define WITH_DOUBLE_PRECISION_SVALUE 1" >>confdefs.h

  printf "%s\n" "#define FLOAT_TYPE double" >>confdefs.h

  printf "%s\n" "#define SIZEOF_FLOAT_TYPE SIZEOF_DOUBLE" >>confdefs.h

  float_type="double"
  sizeof_float_type="$ac_cv_sizeof_double"
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: float" >&5
printf "%s\n" "float" >&6; }
  printf "%s\n" "#define FLOAT_TYPE float" >>confdefs.h

  printf "%s\n" "#define SIZEOF_FLOAT_TYPE SIZEOF_FLOAT" >>confdefs.h

  float_type="float"
  sizeof_float_type="$ac_cv_sizeof_float"
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for INT_TYPE" >&5
printf %s "checking for INT_TYPE... " >&6; }

if test "x$with_long_long_int" = x -a \
	"x$with_long_int" = x -a \
	"x$with_int_int" = x -a \
	"x$with_short_int" = x ; then
  # Choose the longest available integer that fits in a pointer.
  if test "$ac_cv_sizeof_long_long" -gt "$ac_cv_sizeof_long" -a \
	   "$ac_cv_sizeof_long_long" -le "$sizeof_anything" ; then
    with_long_long_int=yes
  elif test "$ac_cv_sizeof_long" -le "$sizeof_anything" ; then
    with_long_int=yes
  else
    with_int_int=yes
  fi
  :
fi

if test "$ac_cv_sizeof_long_long" != 0 -a \
	"x$with_long_long_int" = xyes ; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: long long" >&5
printf "%s\n" "long long" >&6; }
  printf "%s\n" "#define WITH_LONG_LONG_INT 1" >>confdefs.h

  printf "%s\n" "#define INT_TYPE long long" >>confdefs.h

  printf "%s\n" "#define SIZEOF_INT_TYPE SIZEOF_LONG_LONG" >>confdefs.h

  int_type="long long"
  sizeof_int_type="$ac_cv_sizeof_long_long"
elif test "$ac_cv_sizeof___int64" != 0 -a \
	  "x$with_long_long_int" = xyes ; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: __int64" >&5
printf "%s\n" "__int64" >&6; }
  printf "%s\n" "#define WITH_LONG_LONG_INT 1" >>confdefs.h

  printf "%s\n" "#define INT_TYPE __int64" >>confdefs.h

  printf "%s\n" "#define SIZEOF_INT_TYPE SIZEOF___INT64" >>confdefs.h

  int_type="__int64"
  sizeof_int_type="$ac_cv_sizeof___int64"
elif test "x$with_long_int" = xyes ; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: long" >&5
printf "%s\n" "long" >&6; }
  printf "%s\n" "#define WITH_LONG_INT 1" >>confdefs.h

  printf "%s\n" "#define INT_TYPE long" >>confdefs.h

  printf "%s\n" "#define SIZEOF_INT_TYPE SIZEOF_LONG" >>confdefs.h

  int_type="long"
  sizeof_int_type="$ac_cv_sizeof_long"
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5
printf "%s\n" "int" >&6; }
  printf "%s\n" "#define WITH_INT_INT 1" >>confdefs.h

  printf "%s\n" "#define INT_TYPE int" >>confdefs.h

  printf "%s\n" "#define SIZEOF_INT_TYPE SIZEOF_INT" >>confdefs.h

  int_type="int"
  sizeof_int_type="$ac_cv_sizeof_int"
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
printf %s "checking return type of signal handlers... " >&6; }
if test ${ac_cv_type_signal+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <signal.h>

int
main (void)
{
return *(signal (0, 0)) (0) == 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_type_signal=int
else case e in #(
  e) ac_cv_type_signal=void ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
printf "%s\n" "$ac_cv_type_signal" >&6; }

printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h




{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
printf %s "checking for poll in -lpoll... " >&6; }
if test ${ac_cv_lib_poll_poll+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lpoll  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char poll (void);
int
main (void)
{
return poll ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_poll_poll=yes
else case e in #(
  e) ac_cv_lib_poll_poll=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
printf "%s\n" "$ac_cv_lib_poll_poll" >&6; }
if test "x$ac_cv_lib_poll_poll" = xyes
then :
  printf "%s\n" "#define HAVE_LIBPOLL 1" >>confdefs.h

  LIBS="-lpoll $LIBS"

fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
printf %s "checking for floor in -lm... " >&6; }
if test ${ac_cv_lib_m_floor+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char floor (void);
int
main (void)
{
return floor ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_m_floor=yes
else case e in #(
  e) ac_cv_lib_m_floor=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
printf "%s\n" "$ac_cv_lib_m_floor" >&6; }
if test "x$ac_cv_lib_m_floor" = xyes
then :
  printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h

  LIBS="-lm $LIBS"

fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
printf %s "checking for socket in -lsocket... " >&6; }
if test ${ac_cv_lib_socket_socket+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char socket (void);
int
main (void)
{
return socket ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_socket_socket=yes
else case e in #(
  e) ac_cv_lib_socket_socket=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
if test "x$ac_cv_lib_socket_socket" = xyes
then :
  printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h

  LIBS="-lsocket $LIBS"

fi


# Haiku (and BeOS?) hides socket() et al in -lnetwork.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
printf %s "checking for socket in -lnetwork... " >&6; }
if test ${ac_cv_lib_network_socket+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lnetwork  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char socket (void);
int
main (void)
{
return socket ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_network_socket=yes
else case e in #(
  e) ac_cv_lib_network_socket=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
printf "%s\n" "$ac_cv_lib_network_socket" >&6; }
if test "x$ac_cv_lib_network_socket" = xyes
then :
  printf "%s\n" "#define HAVE_LIBNETWORK 1" >>confdefs.h

  LIBS="-lnetwork $LIBS"

fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
printf %s "checking for openpty in -lutil... " >&6; }
if test ${ac_cv_lib_util_openpty+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lutil  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char openpty (void);
int
main (void)
{
return openpty ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_util_openpty=yes
else case e in #(
  e) ac_cv_lib_util_openpty=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
printf "%s\n" "$ac_cv_lib_util_openpty" >&6; }
if test "x$ac_cv_lib_util_openpty" = xyes
then :
  printf "%s\n" "#define HAVE_LIBUTIL 1" >>confdefs.h

  LIBS="-lutil $LIBS"

fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
printf %s "checking for crypt in -lcrypt... " >&6; }
if test ${ac_cv_lib_crypt_crypt+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char crypt (void);
int
main (void)
{
return crypt ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_crypt_crypt=yes
else case e in #(
  e) ac_cv_lib_crypt_crypt=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
if test "x$ac_cv_lib_crypt_crypt" = xyes
then :
  printf "%s\n" "#define HAVE_LIBCRYPT 1" >>confdefs.h

  LIBS="-lcrypt $LIBS"

fi


if test x"$pike_cv_sys_os" = xWindows_NT ; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should use the 64 bit API" >&5
printf %s "checking if we should use the 64 bit API... " >&6; }
  if test ${pike_cv_sys_win64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(_WIN64) || defined(__WIN64__)
  oui
#else
  no
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "oui" >/dev/null 2>&1
then :
   pike_cv_sys_win64=yes
else case e in #(
  e)  pike_cv_sys_win64=no  ;;
esac
fi
rm -rf conftest*

   ;;
esac
fi

  if test "x$pike_cv_sys_win64" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
    # Apparently the libraries are stilled named *32...
    # LIBS="-lkernel64 -lws2_64 -ladvapi64 $LIBS"
    LIBS="-lshell32 -lkernel32 -lws2_32 -ladvapi32 $LIBS"
  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    LIBS="-lshell32 -lkernel32 -lws2_32 -ladvapi32 $LIBS"
  fi
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
printf %s "checking for gethostbyname in -lnsl... " >&6; }
if test ${ac_cv_lib_nsl_gethostbyname+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname (void);
int
main (void)
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_nsl_gethostbyname=yes
else case e in #(
  e) ac_cv_lib_nsl_gethostbyname=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
then :
  printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h

  LIBS="-lnsl $LIBS"

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
printf %s "checking for nanosleep in -lrt... " >&6; }
if test ${ac_cv_lib_rt_nanosleep+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char nanosleep (void);
int
main (void)
{
return nanosleep ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_rt_nanosleep=yes
else case e in #(
  e) ac_cv_lib_rt_nanosleep=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
if test "x$ac_cv_lib_rt_nanosleep" = xyes
then :
  printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h

  LIBS="-lrt $LIBS"

fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
printf %s "checking for dlopen in -ldl... " >&6; }
if test ${ac_cv_lib_dl_dlopen+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen (void);
int
main (void)
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_dl_dlopen=yes
else case e in #(
  e) ac_cv_lib_dl_dlopen=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes
then :
  printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h

  LIBS="-ldl $LIBS"

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
printf %s "checking for shl_load in -ldld... " >&6; }
if test ${ac_cv_lib_dld_shl_load+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load (void);
int
main (void)
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_dld_shl_load=yes
else case e in #(
  e) ac_cv_lib_dld_shl_load=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes
then :
  printf "%s\n" "#define HAVE_LIBDLD 1" >>confdefs.h

  LIBS="-ldld $LIBS"

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
printf %s "checking for dld_link in -ldld... " >&6; }
if test ${ac_cv_lib_dld_dld_link+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link (void);
int
main (void)
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_dld_dld_link=yes
else case e in #(
  e) ac_cv_lib_dld_dld_link=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes
then :
  printf "%s\n" "#define HAVE_LIBDLD 1" >>confdefs.h

  LIBS="-ldld $LIBS"

fi



if test "${pike_cv_sys_os}" = "Linux"; then
  if test "${ac_cv_lib_m_floor}" = "no"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: I will compensate for this by adding -lc -lm." >&5
printf "%s\n" "$as_me: WARNING: I will compensate for this by adding -lc -lm." >&2;}
    LIBS="${LIBS} -lc -lm"
  fi

  if test "$ac_cv_header_sched_h" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sched.h has a typo" >&5
printf %s "checking if sched.h has a typo... " >&6; }
    if test ${pike_cv_broken_sched_h+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sched.h>

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_broken_shed_h=no
else case e in #(
  e)
        OLDCPPFLAGS="$CPPFLAGS"
	CPPFLAGS="$CPPFLAGS -D_P=__P"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sched.h>

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_broken_sched_h=yes
else case e in #(
  e)
          pike_cv_broken_sched_h="very broken"
         ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
	CPPFLAGS="$OLDCPPFLAGS"
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_broken_sched_h" >&5
printf "%s\n" "$pike_cv_broken_sched_h" >&6; }
    if test "$pike_cv_broken_sched_h" = "yes"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

Applying workaround for sched.h typo.
" >&5
printf "%s\n" "$as_me: WARNING:

Applying workaround for sched.h typo.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Applying workaround for sched.h typo.

EOF

      CPPFLAGS="$CPPFLAGS -D_P=__P"
    fi
  fi
fi

########################################################################


  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5


using_threads="no (forced)"

if test x$with_threads = xyes ; then
  using_threads="no (no known threads found)"
  OLDLIBS="$LIBS"
  OLDCFLAGS="$CFLAGS"

if test "x$pike_cv_sys_os" = "xWindows_NT" ; then
  # NT has threads...

  printf "%s\n" "#define _REENTRANT 1" >>confdefs.h

  printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h

  printf "%s\n" "#define NT_THREADS 1" >>confdefs.h

  printf "%s\n" "#define PIKE_THREADS 1" >>confdefs.h

  using_threads="yes (nt)"

  pike_cv_thread_t_type=integer

else

  # Test for POSIX threads.
  #
  # This API was first specified in POSIX.1c (aka IEEE 1003.1c-1995).

  if test "x$with_thread_library" != "xno"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
printf %s "checking for thread library... " >&6; }
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_thread_library (--with-thread-library)" >&5
printf "%s\n" "$with_thread_library (--with-thread-library)" >&6; }
    LIBS="${OLDLIBS} $with_thread_library"
  else
  case "x$pike_cv_sys_os" in
    xOSF1*)
#      LIBS="${OLDLIBS} -lpthread -lmach -lexc -lc"
      LIBS="${OLDLIBS} -lpthread -lmach -lexc"
    ;;

    xBSD/OS*)
      LIBS="${OLDLIBS}"
    ;;

    xUnixWare*|xOpenUNIX*)
      if test "$GCC" = yes ; then
        CFLAGS="${CFLAGS} -pthread"
      else
        CFLAGS="${CFLAGS} -Kthread"
      fi
    ;;

    xOpenBSD*)
      CFLAGS="${CFLAGS} -pthread"
      LDFLAGS="${LDFLAGS} -pthread"
    ;;

    xFreeBSD*)
      # Threads on FreeBSD earlier than 1998-06-07 are broken.
      LIBS="${OLDLIBS}"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if this version of FreeBSD may have working threads" >&5
printf %s "checking if this version of FreeBSD may have working threads... " >&6; }
      if test ${pike_cv_freebsd_threads+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
        if test "$cross_compiling" = yes
then :
  pike_cv_freebsd_threads=yes
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <osreldate.h>

int main(int argc, char **argv)
{
  /* FreeBSD before 228000 and 300000 - 300005 have broken threads.
   */
  if (__FreeBSD_version < 228000)
    return(1);
  if (__FreeBSD_version < 300000)
    return(0);
  if (__FreeBSD_version < 300006)
    return(1);
  return(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_freebsd_threads=yes
else case e in #(
  e) pike_cv_freebsd_threads=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

       ;;
esac
fi

      if test "x$pike_cv_freebsd_threads" = "xno"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
      else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if this version of FreeBSD might require use of pthread-config" >&5
printf %s "checking if this version of FreeBSD might require use of pthread-config... " >&6; }
	if test ${pike_cv_freebsd_pthread_config+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
          if test "$cross_compiling" = yes
then :
  pike_cv_freebsd_pthread_config=yes
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <osreldate.h>

int main(int argc, char **argv)
{
  /* pthread-config is a remnant of the GNU pth library, and should not
   * be used on more recent versions of FreeBSD. */
  if (__FreeBSD_version < 500000)
    return(0);
  return(1);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_freebsd_pthread_config=yes
else case e in #(
  e) pike_cv_freebsd_pthread_config=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

         ;;
esac
fi

	if test "x$pike_cv_freebsd_pthread_config" = "xyes"; then
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
          # Extract the first word of "${ac_tool_prefix}pthread-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pthread-config; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PTHREAD_CONFIG+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $PTHREAD_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PTHREAD_CONFIG="$PTHREAD_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PTHREAD_CONFIG="$as_dir$ac_word$ac_exec_ext"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_PTHREAD_CONFIG" && ac_cv_path_PTHREAD_CONFIG="no"
  ;;
esac ;;
esac
fi
PTHREAD_CONFIG=$ac_cv_path_PTHREAD_CONFIG
if test -n "$PTHREAD_CONFIG"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CONFIG" >&5
printf "%s\n" "$PTHREAD_CONFIG" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


	else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
	  PTHREAD_CONFIG=no
	fi
        if test "x$PTHREAD_CONFIG" = xno ; then
	  # -pthread should work with all versions of FreeBSD,
	  # but some custom compilers (ie tcc) may not support it.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -pthread" >&5
printf %s "checking -pthread... " >&6; }
  if test "x$pike_disabled_option_pthread" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

	    # FIXME: Might want to look at OS version:
	    #   500000 <= version < 500016: -pthread
	    #   500016 <= version < 502102: -lc_r
	    #   502102 <= version         : -lpthread
	    #
	    LIBS="$LIBS -lc_r"
            LDFLAGS="${LDFLAGS-} -lc_r"

  else
    if test ${pike_cv_option_pthread+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -pthread"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_pthread=yes
else case e in #(
  e) pike_cv_option_pthread=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pthread=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pthread=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pthread=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pthread=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pthread=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pthread=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pthread=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pthread=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pthread=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pthread=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_pthread" = "xyes" ; then
      CFLAGS="$CFLAGS -pthread"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

            LDFLAGS="${LDFLAGS-} -pthread"

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

	    # FIXME: Might want to look at OS version:
	    #   500000 <= version < 500016: -pthread
	    #   500016 <= version < 502102: -lc_r
	    #   502102 <= version         : -lpthread
	    #
	    LIBS="$LIBS -lc_r"
            LDFLAGS="${LDFLAGS-} -lc_r"

    fi
  fi

        else
          CFLAGS="$CFLAGS `${PTHREAD_CONFIG} --cflags`"
          LIBS="${OLDLIBS} `${PTHREAD_CONFIG} --libs`"
          LDFLAGS="$CFLAGS `${PTHREAD_CONFIG} --ldflags`"
        fi
      fi
    ;;

    xAIX*)
      LIBS="${OLDLIBS} -lpthread"
    ;;

    xSolaris*)
      # Some versions of Solaris 2.5.1 require linking with -lthread too.
      LIBS="${OLDLIBS} -lpthread -lthread"
    ;;

    xDarwin*)
      LIBS="${OLDLIBS}"

      # pthread_init() is not part of public headers though the symbol will be detected
      # in a link test so we force it off.
      ac_cv_func_pthread_init="no";

      #
      # it would probably be better to create a compilation test should this
      # behavior change in the future, however for now, we accept this as "good enough"
      #
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Darwin dislikes threads and mach includes" >&5
printf %s "checking whether Darwin dislikes threads and mach includes... " >&6; }
      case "`uname -r`" in
        [1-9].*)
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (10.5 or older)" >&5
printf "%s\n" "no (10.5 or older)" >&6; }
      	  ;;
        *)

printf "%s\n" "#define USE_DARWIN_THREADS_WITHOUT_MACH 1" >>confdefs.h

          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (10.6 or newer)" >&5
printf "%s\n" "yes (10.6 or newer)" >&6; }
          pike_cv_osx_threads_dislike_mach=yes
      	  ;;
      esac
    ;;

    *)
      LIBS="${OLDLIBS} -lpthread"
    ;;
  esac
  fi


  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5



{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_init" >&5
printf %s "checking for pthread_init... " >&6; }
if test ${ac_cv_func_pthread_init+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef pthread_init
void *f = (void *) pthread_init;
#endif

int
main (void)
{

#ifdef pthread_init
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != pthread_init;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pthread_init=yes"
else case e in #(
  e) eval "ac_cv_func_pthread_init=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define pthread_init to an innocuous variant, in case <limits.h> declares pthread_init.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define pthread_init innocuous_pthread_init

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pthread_init (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef pthread_init
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pthread_init ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pthread_init) || defined (__stub___pthread_init)
choke me
#else
char (*f) () = pthread_init;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != pthread_init;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pthread_init=yes"
else case e in #(
  e) eval "ac_cv_func_pthread_init=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'pthread_init`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_PTHREAD_INIT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutexattr_init" >&5
printf %s "checking for pthread_mutexattr_init... " >&6; }
if test ${ac_cv_func_pthread_mutexattr_init+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef pthread_mutexattr_init
void *f = (void *) pthread_mutexattr_init;
#endif

int
main (void)
{

#ifdef pthread_mutexattr_init
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != pthread_mutexattr_init;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pthread_mutexattr_init=yes"
else case e in #(
  e) eval "ac_cv_func_pthread_mutexattr_init=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define pthread_mutexattr_init to an innocuous variant, in case <limits.h> declares pthread_mutexattr_init.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define pthread_mutexattr_init innocuous_pthread_mutexattr_init

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pthread_mutexattr_init (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef pthread_mutexattr_init
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pthread_mutexattr_init ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pthread_mutexattr_init) || defined (__stub___pthread_mutexattr_init)
choke me
#else
char (*f) () = pthread_mutexattr_init;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != pthread_mutexattr_init;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pthread_mutexattr_init=yes"
else case e in #(
  e) eval "ac_cv_func_pthread_mutexattr_init=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'pthread_mutexattr_init`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill" >&5
printf %s "checking for pthread_kill... " >&6; }
if test ${ac_cv_func_pthread_kill+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef pthread_kill
void *f = (void *) pthread_kill;
#endif

int
main (void)
{

#ifdef pthread_kill
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != pthread_kill;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pthread_kill=yes"
else case e in #(
  e) eval "ac_cv_func_pthread_kill=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define pthread_kill to an innocuous variant, in case <limits.h> declares pthread_kill.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define pthread_kill innocuous_pthread_kill

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pthread_kill (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef pthread_kill
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pthread_kill ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
choke me
#else
char (*f) () = pthread_kill;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != pthread_kill;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pthread_kill=yes"
else case e in #(
  e) eval "ac_cv_func_pthread_kill=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'pthread_kill`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_reltimedwait_np" >&5
printf %s "checking for pthread_cond_reltimedwait_np... " >&6; }
if test ${ac_cv_func_pthread_cond_reltimedwait_np+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef pthread_cond_reltimedwait_np
void *f = (void *) pthread_cond_reltimedwait_np;
#endif

int
main (void)
{

#ifdef pthread_cond_reltimedwait_np
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != pthread_cond_reltimedwait_np;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pthread_cond_reltimedwait_np=yes"
else case e in #(
  e) eval "ac_cv_func_pthread_cond_reltimedwait_np=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define pthread_cond_reltimedwait_np to an innocuous variant, in case <limits.h> declares pthread_cond_reltimedwait_np.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define pthread_cond_reltimedwait_np innocuous_pthread_cond_reltimedwait_np

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pthread_cond_reltimedwait_np (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef pthread_cond_reltimedwait_np
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pthread_cond_reltimedwait_np ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pthread_cond_reltimedwait_np) || defined (__stub___pthread_cond_reltimedwait_np)
choke me
#else
char (*f) () = pthread_cond_reltimedwait_np;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != pthread_cond_reltimedwait_np;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pthread_cond_reltimedwait_np=yes"
else case e in #(
  e) eval "ac_cv_func_pthread_cond_reltimedwait_np=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'pthread_cond_reltimedwait_np`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_PTHREAD_COND_RELTIMEDWAIT_NP 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mach_thread_np" >&5
printf %s "checking for pthread_mach_thread_np... " >&6; }
if test ${ac_cv_func_pthread_mach_thread_np+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef pthread_mach_thread_np
void *f = (void *) pthread_mach_thread_np;
#endif

int
main (void)
{

#ifdef pthread_mach_thread_np
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != pthread_mach_thread_np;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pthread_mach_thread_np=yes"
else case e in #(
  e) eval "ac_cv_func_pthread_mach_thread_np=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define pthread_mach_thread_np to an innocuous variant, in case <limits.h> declares pthread_mach_thread_np.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define pthread_mach_thread_np innocuous_pthread_mach_thread_np

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pthread_mach_thread_np (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef pthread_mach_thread_np
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pthread_mach_thread_np ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pthread_mach_thread_np) || defined (__stub___pthread_mach_thread_np)
choke me
#else
char (*f) () = pthread_mach_thread_np;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != pthread_mach_thread_np;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pthread_mach_thread_np=yes"
else case e in #(
  e) eval "ac_cv_func_pthread_mach_thread_np=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'pthread_mach_thread_np`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_PTHREAD_MACH_THREAD_NP 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_jit_write_protect_np" >&5
printf %s "checking for pthread_jit_write_protect_np... " >&6; }
if test ${ac_cv_func_pthread_jit_write_protect_np+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef pthread_jit_write_protect_np
void *f = (void *) pthread_jit_write_protect_np;
#endif

int
main (void)
{

#ifdef pthread_jit_write_protect_np
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != pthread_jit_write_protect_np;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pthread_jit_write_protect_np=yes"
else case e in #(
  e) eval "ac_cv_func_pthread_jit_write_protect_np=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define pthread_jit_write_protect_np to an innocuous variant, in case <limits.h> declares pthread_jit_write_protect_np.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define pthread_jit_write_protect_np innocuous_pthread_jit_write_protect_np

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pthread_jit_write_protect_np (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef pthread_jit_write_protect_np
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pthread_jit_write_protect_np ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pthread_jit_write_protect_np) || defined (__stub___pthread_jit_write_protect_np)
choke me
#else
char (*f) () = pthread_jit_write_protect_np;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != pthread_jit_write_protect_np;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pthread_jit_write_protect_np=yes"
else case e in #(
  e) eval "ac_cv_func_pthread_jit_write_protect_np=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'pthread_jit_write_protect_np`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_PTHREAD_JIT_WRITE_PROTECT_NP 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking posix threads" >&5
printf %s "checking posix threads... " >&6; }

  if test ${pike_cv_posix_threads+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _REENTRANT
#define _THREAD_SAFE
#define _MIT_POSIX_THREADS 1

#include <stdlib.h>
#include <pthread.h>

void *foo(void *bar) { pthread_exit(0); return 0; }
pthread_mutexattr_t attr;
pthread_mutex_t tmp;
pthread_t gazonk;


int
main (void)
{

{
  void *sune;
#ifdef HAVE_PTHREAD_INIT
  pthread_init();
#endif /* HAVE_PTHREAD_INIT */
#ifdef HAVE_PTHREAD_MUTEXATTR_INIT
  pthread_mutexattr_init(&attr);
#else
  memset(&attr, 0, sizeof(attr));
#endif /* HAVE_PTHREAD_MUTEXATTR_INIT */
  pthread_mutex_init(&tmp, &attr);
  pthread_mutex_lock(&tmp);
  pthread_create(&gazonk,0,foo,0);
  pthread_join(gazonk,&sune);
  exit(0);
}

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
   pike_cv_posix_threads=yes
else case e in #(
  e)  pike_cv_posix_threads=no  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _REENTRANT
#define _THREAD_SAFE
#define _MIT_POSIX_THREADS 1

#include <stdlib.h>
#include <pthread.h>

void *foo(void *bar) { pthread_exit(0); return 0; }
pthread_mutexattr_t attr;
pthread_mutex_t tmp;
pthread_t gazonk;

int main(void)
{
  void *sune;
#ifdef HAVE_PTHREAD_INIT
  pthread_init();
#endif /* HAVE_PTHREAD_INIT */
#ifdef HAVE_PTHREAD_MUTEXATTR_INIT
  pthread_mutexattr_init(&attr);
#else
  memset(&attr, 0, sizeof(attr));
#endif /* HAVE_PTHREAD_MUTEXATTR_INIT */
  pthread_mutex_init(&tmp, &attr);
  pthread_mutex_lock(&tmp);
  pthread_create(&gazonk,0,foo,0);
  pthread_join(gazonk,&sune);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
   pike_cv_posix_threads=yes
else case e in #(
  e)  pike_cv_posix_threads=no  ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi


  if test $pike_cv_posix_threads = yes ; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
    printf "%s\n" "#define _REENTRANT 1" >>confdefs.h

    printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h

    printf "%s\n" "#define _MIT_POSIX_THREADS 1" >>confdefs.h

    printf "%s\n" "#define PIKE_THREADS 1" >>confdefs.h

    using_threads="yes (posix)"

##########################################################################

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstacksize" >&5
printf %s "checking for pthread_attr_setstacksize... " >&6; }
    if test ${pike_cv_have_pthread_attr_setstacksize+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(pthread_attr_t*x) { pthread_attr_setstacksize(x, 1024*1024); }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

        pike_cv_have_pthread_attr_setstacksize=yes

else case e in #(
  e)
        pike_cv_have_pthread_attr_setstacksize=no
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_attr_setstacksize" >&5
printf "%s\n" "$pike_cv_have_pthread_attr_setstacksize" >&6; }
    if test x$pike_cv_have_pthread_attr_setstacksize = xyes ; then
      printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h

    else
      :
    fi

##########################################################################

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_atfork" >&5
printf %s "checking for pthread_atfork... " >&6; }
    if test ${pike_cv_have_pthread_atfork+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(void) { pthread_atfork(0,0,0); }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

        pike_cv_have_pthread_atfork=yes

else case e in #(
  e)
        pike_cv_have_pthread_atfork=no
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    if test x$pike_cv_have_pthread_atfork = xyes ; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
      printf "%s\n" "#define HAVE_PTHREAD_ATFORK 1" >>confdefs.h

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - FreeBSD?" >&5
printf "%s\n" "no - FreeBSD?" >&6; }
    fi

##########################################################################

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_yield" >&5
printf %s "checking for pthread_yield... " >&6; }
    if test ${pike_cv_have_pthread_yield+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(void) { pthread_yield(); }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

        pike_cv_have_pthread_yield=yes

else case e in #(
  e)
        pike_cv_have_pthread_yield=no
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_yield" >&5
printf "%s\n" "$pike_cv_have_pthread_yield" >&6; }
    if test x$pike_cv_have_pthread_yield = xyes ; then
      printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h

    else
      :
    fi

##########################################################################

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_yield_np" >&5
printf %s "checking for pthread_yield_np... " >&6; }
    if test ${pike_cv_have_pthread_yield_np+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(void) { pthread_yield_np(); }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

        pike_cv_have_pthread_yield_np=yes

else case e in #(
  e)
        pike_cv_have_pthread_yield_np=no
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_yield_np" >&5
printf "%s\n" "$pike_cv_have_pthread_yield_np" >&6; }
    if test x$pike_cv_have_pthread_yield_np = xyes ; then
      printf "%s\n" "#define HAVE_PTHREAD_YIELD_NP 1" >>confdefs.h

    else
      :
    fi

##########################################################################

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_init" >&5
printf %s "checking for pthread_cond_init... " >&6; }
    if test ${pike_cv_have_pthread_cond_init+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(pthread_cond_t*x, pthread_condattr_t*y) { pthread_cond_init(x,y); }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

        pike_cv_have_pthread_cond_init=yes

else case e in #(
  e)
        pike_cv_have_pthread_cond_init=no
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_cond_init" >&5
printf "%s\n" "$pike_cv_have_pthread_cond_init" >&6; }
    if test x$pike_cv_have_pthread_cond_init = xyes ; then
      printf "%s\n" "#define HAVE_PTHREAD_COND_INIT 1" >>confdefs.h

    else
      :
    fi

##########################################################################

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_condattr_default is defined" >&5
printf %s "checking if pthread_condattr_default is defined... " >&6; }
    if test ${pike_cv_have_pthread_condattr_default+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(pthread_cond_t *bar) { pthread_cond_init(bar, pthread_condattr_default); }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

        pike_cv_have_pthread_condattr_default=yes

else case e in #(
  e)
        pike_cv_have_pthread_condattr_default=no
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_condattr_default" >&5
printf "%s\n" "$pike_cv_have_pthread_condattr_default" >&6; }

    if test x$pike_cv_have_pthread_condattr_default = xyes ; then
      printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_DEFAULT 1" >>confdefs.h

    else
      :
    fi


    #
    # FreeBSD doesn't like the &, while AIX requires it...
    #

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_condattr_default is needs an & (AIX)" >&5
printf %s "checking if pthread_condattr_default is needs an & (AIX)... " >&6; }
    if test ${pike_cv_have_pthread_condattr_default_aix+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(pthread_cond_t *bar) { pthread_cond_init(bar, &pthread_condattr_default); }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

        pike_cv_have_pthread_condattr_default_aix=yes

else case e in #(
  e)
        pike_cv_have_pthread_condattr_default_aix=no
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_condattr_default_aix" >&5
printf "%s\n" "$pike_cv_have_pthread_condattr_default_aix" >&6; }

    if test x$pike_cv_have_pthread_condattr_default_aix = xyes ; then
      printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_DEFAULT_AIX 1" >>confdefs.h

    else
      :
    fi

##########################################################################

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_initial_thread_bos" >&5
printf %s "checking for __pthread_initial_thread_bos... " >&6; }
    if test ${pike_cv_have_pthread_initial_thread_bos+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        char *foo(void) { extern char *__pthread_initial_thread_bos;
           return __pthread_initial_thread_bos; }

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

        pike_cv_have_pthread_initial_thread_bos=yes

else case e in #(
  e)
        pike_cv_have_pthread_initial_thread_bos=no
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
     ;;
esac
fi


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_initial_thread_bos" >&5
printf "%s\n" "$pike_cv_have_pthread_initial_thread_bos" >&6; }

    if test x$pike_cv_have_pthread_initial_thread_bos = xyes ; then
      printf "%s\n" "#define HAVE_PTHREAD_INITIAL_THREAD_BOS 1" >>confdefs.h

    else
      :
    fi

##########################################################################

    # On Linux the threads don't inherit euid & egid from the main thread.
    # FIXME: Add a real test here!
	case "$pike_cv_sys_os" in
	  Linux*)
           # Since 2.6 it is not actually very likely to be broken,
           # since LinuxThreads is not used unless you patch the
           # kernel source and build your own kernel.
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking If threads are broken ..." >&5
printf %s "checking If threads are broken ...... " >&6; };
    if test "$cross_compiling" = yes
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
printf "%s\n" "assuming no" >&6; }
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _REENTRANT
#define _THREAD_SAFE
#define _MIT_POSIX_THREADS 1

#include <stdlib.h>
#include <pthread.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

void *foo(void *bar) { return (void *)getpid();  }
pthread_mutexattr_t attr;
pthread_mutex_t tmp;
pthread_t gazonk;

int main(void)
{
  void *sune;
#ifdef HAVE_PTHREAD_INIT
  pthread_init();
#endif /* HAVE_PTHREAD_INIT */
  pthread_create(&gazonk,0,foo,0);
  pthread_join(gazonk,&sune);
  exit(((int)sune) != getpid());
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

else case e in #(
  e)
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
 printf "%s\n" "#define HAVE_BROKEN_LINUX_THREAD_EUID 1" >>confdefs.h
 ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

	  ;;
          *kFreeBSD*)
	  ;;
	esac

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking behaviour of the pthread_t type" >&5
printf %s "checking behaviour of the pthread_t type... " >&6; }
    if test ${pike_cv_thread_t_type+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <stdlib.h>
#include <stddef.h>
#include <pthread.h>
extern pthread_t bar;

int
main (void)
{

	void *foo = (void *)(ptrdiff_t)bar;
	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_thread_t_type=integer
else case e in #(
  e)  pike_cv_thread_t_type=pointer  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_thread_t_type" >&5
printf "%s\n" "$pike_cv_thread_t_type" >&6; }

  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    LIBS="$OLDLIBS"
    CFLAGS="$OLDCFLAGS"

    echo "POSIX threads not working." >&5
    ulimit -a >&5 2>&5
    echo >&5

    # No POSIX threads.

    # Try C11 threads instead
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking C11 threads" >&5
printf %s "checking C11 threads... " >&6; }
    if test ${pike_cv_c11_threads+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* The following should cause a preprocessor (or compiler) failure when
 * C11 threads are not supported.
 */
#if !defined(__STDC_VERSION__)
#error "Not C94 or later."
#elif __STDC_VERSION__ - 0 < 201112
#error "Not C11 or later."
#elif defined(__STDC_NO_THREADS__)
#error "C11 threads not supported."
#endif
#include <threads.h>

int
main (void)
{
 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

        pike_cv_c11_threads=maybe

else case e in #(
  e) pike_cv_c11_threads=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
                  ;;
esac
fi


    if test "x$pike_cv_c11_threads" = "xmaybe"; then
        # NB: The RESULT and CHECKING here are due to SEARCH_LIBS
        #     having its own output. This is also the reason for
        #     the existence of the maybe value.
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
printf "%s\n" "maybe" >&6; }
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing thrd_create" >&5
printf %s "checking for library containing thrd_create... " >&6; }
if test ${ac_cv_search_thrd_create+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char thrd_create (void);
int
main (void)
{
return thrd_create ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' threads pthread
do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_thrd_create=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_thrd_create+y}
then :
  break
fi
done
if test ${ac_cv_search_thrd_create+y}
then :

else case e in #(
  e) ac_cv_search_thrd_create=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thrd_create" >&5
printf "%s\n" "$ac_cv_search_thrd_create" >&6; }
ac_res=$ac_cv_search_thrd_create
if test "$ac_res" != no
then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  pike_cv_c11_threads=yes
else case e in #(
  e) pike_cv_c11_threads=no ;;
esac
fi

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking C11 threads again" >&5
printf %s "checking C11 threads again... " >&6; }
    fi

    if test "x$pike_cv_c11_threads" = "xyes"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
        printf "%s\n" "#define _REENTRANT 1" >>confdefs.h

        printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h


printf "%s\n" "#define C11_THREADS 1" >>confdefs.h

        printf "%s\n" "#define PIKE_THREADS 1" >>confdefs.h

        using_threads="yes (C11 or later)"

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking behaviour of the thrd_t type" >&5
printf %s "checking behaviour of the thrd_t type... " >&6; }
        if test ${pike_cv_thread_t_type+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <stdlib.h>
#include <stddef.h>
#include <threads.h>
extern thrd_t bar;

int
main (void)
{

            void *foo = (void *)(ptrdiff_t)bar;
            return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_thread_t_type=integer
else case e in #(
  e)
               pike_cv_thread_t_type=pointer  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
         ;;
esac
fi

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_thread_t_type" >&5
printf "%s\n" "$pike_cv_thread_t_type" >&6; }

    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    # Try UNIX threads instead.
    #
    # These where the precursor to posix threads (aka pthreads) further above.
    # Typically used on OSes of the same vintage as Solaris 2.4 (ie ~1994).

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking unix threads" >&5
printf %s "checking unix threads... " >&6; }
    case "x$pike_cv_sys_os" in
      xUnixWare*|xOpenUNIX*)
  	if test "$GCC" = yes ; then
  	  CFLAGS="${CFLAGS} -pthread"
  	else
  	  CFLAGS="${CFLAGS} -Kthread"
  	fi
  	CFLAGS="${CFLAGS} -D_UNIXWARE_THREADS_"
      ;;
      *)
  	LIBS="${LIBS} -lthread"
      ;;
    esac

    if test ${pike_cv_unix_threads+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      if test "$cross_compiling" = yes
then :
  pike_cv_unix_threads=no
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _REENTRANT
#define _THREAD_SAFE
#define _UNIX_THREADS 1
#include <stdlib.h>
#include <thread.h>
#ifdef _UNIXWARE_THREADS_
#include <synch.h>
#endif

void *foo(void *bar) { thr_exit(0); return 0; }
mutex_t tmp;
thread_t gazonk;

int main(void)
{
  void *sune;
  mutex_lock(& tmp);
  thr_create(0,0,foo,0,0,&gazonk);
  thr_join(gazonk,0,&sune);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_unix_threads=yes
else case e in #(
  e) pike_cv_unix_threads=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

     ;;
esac
fi


    if test x$pike_cv_unix_threads = xyes ; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
      printf "%s\n" "#define _REENTRANT 1" >>confdefs.h

      printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h

      printf "%s\n" "#define _UNIX_THREADS 1" >>confdefs.h

      printf "%s\n" "#define PIKE_THREADS 1" >>confdefs.h

      using_threads="yes (unix)"

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cond_reltimedwait" >&5
printf %s "checking for cond_reltimedwait... " >&6; }
if test ${ac_cv_func_cond_reltimedwait+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef cond_reltimedwait
void *f = (void *) cond_reltimedwait;
#endif

int
main (void)
{

#ifdef cond_reltimedwait
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != cond_reltimedwait;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_cond_reltimedwait=yes"
else case e in #(
  e) eval "ac_cv_func_cond_reltimedwait=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define cond_reltimedwait to an innocuous variant, in case <limits.h> declares cond_reltimedwait.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define cond_reltimedwait innocuous_cond_reltimedwait

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cond_reltimedwait (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef cond_reltimedwait
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char cond_reltimedwait ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_cond_reltimedwait) || defined (__stub___cond_reltimedwait)
choke me
#else
char (*f) () = cond_reltimedwait;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != cond_reltimedwait;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_cond_reltimedwait=yes"
else case e in #(
  e) eval "ac_cv_func_cond_reltimedwait=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'cond_reltimedwait`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_COND_RELTIMEDWAIT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
      LIBS="$OLDLIBS"
      CFLAGS="$OLDCFLAGS"

      # Now we've sunk really low -- test for proprietary threads

      # SGI old-style shared group processes
      # AC_CHECK_FUNCS(sproc oserror)
      #
      # AC_MSG_CHECKING(Fallback to sproc)
      #
      # if test x$ac_cv_func_sproc$ac_cv_func_oserror = xyesyes; then
      #   AC_MSG_RESULT(yes)
      #   AC_DEFINE(_REENTRANT)
      #   AC_DEFINE(_THREAD_SAFE)
      #   AC_DEFINE(_SGI_SPROC_THREADS)
      #   AC_DEFINE(_SGI_MP_SOURCE)
      #   using_threads="yes (sgi)"
      # else
      #   AC_MSG_RESULT(no)
      #   :
      # fi
    fi # UNIX threads
    fi # C11 threads

    pike_cv_thread_t_type=integer
  fi # POSIX threads
fi  # NT
else
  # Without threads
  pike_cv_thread_t_type=integer
  :
fi

if test "x$pike_cv_thread_t_type" = "xpointer"; then
  printf "%s\n" "#define PIKE_THREAD_T_IS_POINTER 1" >>confdefs.h

fi

if test "x$pike_cv_sys_os" = "xWindows_NT" -o "x$pike_cv_sys_os" = "xAmigaOS"; then
    :
elif test "x$pike_cv_sys_os" = "xHaiku" -o "x$pike_cv_sys_os" = "xBeOS"; then
    # Haiku throws up an interactive window on core-dump, so hard-code
    # the value.
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking initial stack limit" >&5
printf %s "checking initial stack limit... " >&6; }
    if test ${pike_cv_initial_stack_size+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
                     pike_cv_initial_stack_size=16580608
                  ;;
esac
fi

    if test x$pike_cv_initial_stack_size = x ; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unlimited" >&5
printf "%s\n" "unlimited" >&6; }
    else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_initial_stack_size" >&5
printf "%s\n" "$pike_cv_initial_stack_size" >&6; }
        printf "%s\n" "#define Pike_INITIAL_STACK_SIZE $pike_cv_initial_stack_size" >>confdefs.h

    fi
else
  # Note: On some platforms (eg Solaris 11) the old test has been
  #       observed to hang intermittently. Use ulimit -s (kbytes)
  #       and subtract 64 kbytes for a redzone.
  #
  # For reference:
  #
  #   Platform                  Old        New     Diff  ulimit -s
  #   MacOS X 10.5/ppc     67076096   67039232    36864      65532
  #   MacOS X 14.2/arm64   67043328   67026944    16384      65520
  #   FreeBSD 13/x86_64   536870912  536805376    65536     524288
  #   Linux 2.6/x86_64     12517376   10420224  2097152      10240
  #   Linux 4.9/aarch64     8323072    8323072        0       8192
  #   Linux 4.9/aarch32(e)  8290304    8257536    32768       8192
  #   Linux 5.4/ppc64       8323072    8323072        0       8192
  #   Linux 5.4/ppc32(e)    8290304    8257536    32768       8192
  #   Linux 6.1/riscv64     8323072    8323072        0       8192
  #   Linux 6.5/x86_64      8323072    8323072        0       8192
  #   SunOS 5.8/sun4u       8323072    8323072        0       8192
  #   SunOS 5.10/x86_64    10485760   10485760        0      10304
  #   SunOS 5.11/x86_64     8323072    8323072        0       8192
  #   SunOS 5.11/sun4v      8323072    8323072        0       8192
  #
  # NB: The entry for Linux 2.6/x86_64 hints that the granularity
  #     for the limit on Linux is in 4 MB increments.
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking initial stack limit" >&5
printf %s "checking initial stack limit... " >&6; }
  if test ${pike_cv_initial_stack_size+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    stack_limit=`ulimit -s 2>/dev/null || echo unlimited`
    if test "x$stack_limit" = "xunlimited"; then
      pike_cv_initial_stack_size=''
    elif test "x$pike_cv_native_abi" = "x$pike_cv_abi"; then
      pike_cv_initial_stack_size=`awk "BEGIN { print $stack_limit * 1024 - 65536; }" </dev/null`
    else
      # Subtract an extra 64 kbytes for non-native emulation stack.
      pike_cv_initial_stack_size=`awk "BEGIN { print $stack_limit * 1024 - 131072; }" </dev/null`
    fi
   ;;
esac
fi

  if test x$pike_cv_initial_stack_size = x ; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unlimited" >&5
printf "%s\n" "unlimited" >&6; }
  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_initial_stack_size" >&5
printf "%s\n" "$pike_cv_initial_stack_size" >&6; }
    printf "%s\n" "#define Pike_INITIAL_STACK_SIZE $pike_cv_initial_stack_size" >>confdefs.h

  fi
fi

########################################################################


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking mutex error check flag" >&5
printf %s "checking mutex error check flag... " >&6; }
  if test ${pike_cv_PIKE_MUTEX_ERRORCHECK_value+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    pike_cv_PIKE_MUTEX_ERRORCHECK_value=""
    for const in PTHREAD_MUTEX_ERRORCHECK PTHREAD_MUTEX_ERRORCHECK_NP
    do
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#elif defined (HAVE_THREAD_H)
#include <thread.h>
#endif

int
main (void)
{
int tmp = (int) $const;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

	pike_cv_PIKE_MUTEX_ERRORCHECK_value="$const"
	break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    done
   ;;
esac
fi

  if test x"$pike_cv_PIKE_MUTEX_ERRORCHECK_value" != x; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_PIKE_MUTEX_ERRORCHECK_value" >&5
printf "%s\n" "$pike_cv_PIKE_MUTEX_ERRORCHECK_value" >&6; }
    printf "%s\n" "#define PIKE_MUTEX_ERRORCHECK $pike_cv_PIKE_MUTEX_ERRORCHECK_value" >>confdefs.h

  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
  fi


########################################################################


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking recursive mutex flag" >&5
printf %s "checking recursive mutex flag... " >&6; }
  if test ${pike_cv_PIKE_MUTEX_RECURSIVE_value+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    pike_cv_PIKE_MUTEX_RECURSIVE_value=""
    for const in PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
    do
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#elif defined (HAVE_THREAD_H)
#include <thread.h>
#endif

int
main (void)
{
int tmp = (int) $const;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

	pike_cv_PIKE_MUTEX_RECURSIVE_value="$const"
	break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    done
   ;;
esac
fi

  if test x"$pike_cv_PIKE_MUTEX_RECURSIVE_value" != x; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_PIKE_MUTEX_RECURSIVE_value" >&5
printf "%s\n" "$pike_cv_PIKE_MUTEX_RECURSIVE_value" >&6; }
    printf "%s\n" "#define PIKE_MUTEX_RECURSIVE $pike_cv_PIKE_MUTEX_RECURSIVE_value" >>confdefs.h

  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
  fi


########################################################################




ac_func=
for ac_item in $ac_func_c_list
do
  if test $ac_func; then
    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
      echo "#define $ac_item 1" >> confdefs.h
    fi
    ac_func=
  else
    ac_func=$ac_item
  fi
done


  if test "x$enable_binary" != "xno"; then


  ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "unistd.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <unistd.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h


fi



  ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_param_h" = xyes
then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "sys/param.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <sys/param.h>
#endif
EOF
    fi
    printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h


fi


  else
    for ac_hdr in unistd.h sys/param.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi



{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
printf %s "checking for working mmap... " >&6; }
if test ${ac_cv_func_mmap_fixed_mapped+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test "$cross_compiling" = yes
then :
  case "$host_os" in # ((
			  # Guess yes on platforms where we know the result.
		  linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
			  # If we don't know, assume the worst.
		  *)      ac_cv_func_mmap_fixed_mapped=no ;;
		esac
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propagated back to all the places they're supposed to be.  */

#include <fcntl.h>
#include <sys/mman.h>

#ifndef getpagesize
/* Prefer sysconf to the legacy getpagesize function, as getpagesize has
   been removed from POSIX and is limited to page sizes that fit in 'int'.  */
# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf (_SC_PAGESIZE)
# elif defined _SC_PAGE_SIZE
#  define getpagesize() sysconf (_SC_PAGE_SIZE)
# elif HAVE_GETPAGESIZE
int getpagesize ();
# else
#  ifdef HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif
#endif

int
main (void)
{
  char *data, *data2, *data3;
  const char *cdata2;
  long i, pagesize;
  int fd, fd2;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    return 1;
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftest.mmap", 0600);
  if (fd < 0)
    return 2;
  if (write (fd, data, pagesize) != pagesize)
    return 3;
  close (fd);

  /* Next, check that the tail of a page is zero-filled.  File must have
     non-zero length, otherwise we risk SIGBUS for entire page.  */
  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  if (fd2 < 0)
    return 4;
  cdata2 = "";
  if (write (fd2, cdata2, 1) != 1)
    return 5;
  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  if (data2 == MAP_FAILED)
    return 6;
  for (i = 0; i < pagesize; ++i)
    if (*(data2 + i))
      return 7;
  close (fd2);
  /* 'return 8;' not currently used.  */

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    return 9;
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    return 10;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      return 11;

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    return 12;
  if (read (fd, data3, pagesize) != pagesize)
    return 13;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      return 14;
  close (fd);
  free (data);
  free (data3);
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ac_cv_func_mmap_fixed_mapped=yes
else case e in #(
  e) ac_cv_func_mmap_fixed_mapped=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
if test $ac_cv_func_mmap_fixed_mapped = yes; then

printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h

fi
rm -f conftest.mmap conftest.txt




if test "x$ac_cv_func_mmap_fixed_mapped" = "xyes"; then
  # Mac OS X has an mmap that fails with ENODEV if we try
  # to use it for mexec_alloc et al.
  #
  # NB: mmap with MAP_ANON does however work.
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if mmap can be used to allocate PROT_EXEC" >&5
printf %s "checking if mmap can be used to allocate PROT_EXEC... " >&6; }
  if test ${pike_cv_mmap_PROT_EXEC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif

#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif

#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif

#include <errno.h>

#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
#define MAP_ANONYMOUS	MAP_ANON
#endif /* !MAP_ANONYMOUS && MAP_ANON */

#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
#define MAP_ANONYMOUS	MAP_ANON
#endif /* !MAP_ANONYMOUS && MAP_ANON */
#ifndef MAP_JIT
#define MAP_JIT 0
#endif

int
main (void)
{

        void *ptr;
	int dev_zero = -1;
#ifndef MAP_ANONYMOUS
        /* Neither MAP_ANONYMOUS nor MAP_ANON.
         * Map some /dev/zero.
         */
        dev_zero = open("/dev/zero", O_RDONLY);
	if (dev_zero < 0) return 1;
#define MAP_ANONYMOUS	0
#endif /* !MAP_ANONYMOUS */
	if ((ptr = mmap(NULL, 8192, PROT_EXEC|PROT_READ|PROT_WRITE,
		        MAP_PRIVATE|MAP_ANONYMOUS|MAP_JIT,
			dev_zero, 0)) == MAP_FAILED) {
	  return 2;
	}
	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

        pike_cv_mmap_PROT_EXEC="yes"

else case e in #(
  e)
        pike_cv_mmap_PROT_EXEC="no"
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <sys/types.h>

#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif

#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif

#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif

#include <errno.h>

#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
#define MAP_ANONYMOUS	MAP_ANON
#endif /* !MAP_ANONYMOUS && MAP_ANON */
#ifndef MAP_JIT
#define MAP_JIT 0
#endif

      int main(int argc, char **argv)
      {
        void *ptr;
	int dev_zero = -1;
#ifndef MAP_ANONYMOUS
        /* Neither MAP_ANONYMOUS nor MAP_ANON.
         * Map some /dev/zero.
         */
        dev_zero = open("/dev/zero", O_RDONLY);
	if (dev_zero < 0) {
	  fprintf(stderr, "open(\"/dev/zero\", O_RDONLY) failed. errno: %d\n",
		  errno);
	  return 1;
	}
#define MAP_ANONYMOUS	0
#endif /* !MAP_ANONYMOUS */
	if ((ptr = mmap(NULL, 8192, PROT_EXEC|PROT_READ|PROT_WRITE,
		        MAP_PRIVATE|MAP_ANONYMOUS|MAP_JIT,
			dev_zero, 0)) == MAP_FAILED) {
	  fprintf(stderr, "mmap(NULL, 8192, PROT_EXEC|PROT_READ|PROT_WRITE,\n"
			  "MAP_PRIVATE|MAP_ANONYMOUS|MAP_JIT, %d, 0) failed. errno: %d\n",
		  dev_zero,
		  errno);
	  return 2;
	}
	return 0;
      }

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :

      pike_cv_mmap_PROT_EXEC="yes"

else case e in #(
  e)
      pike_cv_mmap_PROT_EXEC="no"
     ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_mmap_PROT_EXEC" >&5
printf "%s\n" "$pike_cv_mmap_PROT_EXEC" >&6; }
  if test "x$pike_cv_mmap_PROT_EXEC" = "xyes"; then
    printf "%s\n" "#define MEXEC_USES_MMAP 1" >>confdefs.h

  fi
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _crypt" >&5
printf %s "checking for _crypt... " >&6; }
if test ${ac_cv_func__crypt+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef _crypt
void *f = (void *) _crypt;
#endif

int
main (void)
{

#ifdef _crypt
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != _crypt;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__crypt=yes"
else case e in #(
  e) eval "ac_cv_func__crypt=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define _crypt to an innocuous variant, in case <limits.h> declares _crypt.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define _crypt innocuous__crypt

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _crypt (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef _crypt
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char _crypt ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__crypt) || defined (__stub____crypt)
choke me
#else
char (*f) () = _crypt;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != _crypt;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__crypt=yes"
else case e in #(
  e) eval "ac_cv_func__crypt=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'_crypt`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE__CRYPT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poll" >&5
printf %s "checking for poll... " >&6; }
if test ${ac_cv_func_poll+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef poll
void *f = (void *) poll;
#endif

int
main (void)
{

#ifdef poll
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != poll;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_poll=yes"
else case e in #(
  e) eval "ac_cv_func_poll=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define poll to an innocuous variant, in case <limits.h> declares poll.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define poll innocuous_poll

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char poll (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef poll
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char poll ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_poll) || defined (__stub___poll)
choke me
#else
char (*f) () = poll;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != poll;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_poll=yes"
else case e in #(
  e) eval "ac_cv_func_poll=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'poll`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept4" >&5
printf %s "checking for accept4... " >&6; }
if test ${ac_cv_func_accept4+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef accept4
void *f = (void *) accept4;
#endif

int
main (void)
{

#ifdef accept4
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != accept4;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_accept4=yes"
else case e in #(
  e) eval "ac_cv_func_accept4=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define accept4 to an innocuous variant, in case <limits.h> declares accept4.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define accept4 innocuous_accept4

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char accept4 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef accept4
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char accept4 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_accept4) || defined (__stub___accept4)
choke me
#else
char (*f) () = accept4;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != accept4;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_accept4=yes"
else case e in #(
  e) eval "ac_cv_func_accept4=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'accept4`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
printf %s "checking for chroot... " >&6; }
if test ${ac_cv_func_chroot+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef chroot
void *f = (void *) chroot;
#endif

int
main (void)
{

#ifdef chroot
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != chroot;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_chroot=yes"
else case e in #(
  e) eval "ac_cv_func_chroot=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define chroot to an innocuous variant, in case <limits.h> declares chroot.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define chroot innocuous_chroot

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char chroot (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef chroot
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char chroot ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_chroot) || defined (__stub___chroot)
choke me
#else
char (*f) () = chroot;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != chroot;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_chroot=yes"
else case e in #(
  e) eval "ac_cv_func_chroot=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'chroot`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for closefrom" >&5
printf %s "checking for closefrom... " >&6; }
if test ${ac_cv_func_closefrom+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef closefrom
void *f = (void *) closefrom;
#endif

int
main (void)
{

#ifdef closefrom
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != closefrom;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_closefrom=yes"
else case e in #(
  e) eval "ac_cv_func_closefrom=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define closefrom to an innocuous variant, in case <limits.h> declares closefrom.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define closefrom innocuous_closefrom

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char closefrom (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef closefrom
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char closefrom ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_closefrom) || defined (__stub___closefrom)
choke me
#else
char (*f) () = closefrom;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != closefrom;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_closefrom=yes"
else case e in #(
  e) eval "ac_cv_func_closefrom=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'closefrom`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt" >&5
printf %s "checking for crypt... " >&6; }
if test ${ac_cv_func_crypt+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef crypt
void *f = (void *) crypt;
#endif

int
main (void)
{

#ifdef crypt
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != crypt;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_crypt=yes"
else case e in #(
  e) eval "ac_cv_func_crypt=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define crypt innocuous_crypt

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char crypt (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef crypt
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char crypt ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_crypt) || defined (__stub___crypt)
choke me
#else
char (*f) () = crypt;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != crypt;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_crypt=yes"
else case e in #(
  e) eval "ac_cv_func_crypt=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt_checkpass" >&5
printf %s "checking for crypt_checkpass... " >&6; }
if test ${ac_cv_func_crypt_checkpass+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef crypt_checkpass
void *f = (void *) crypt_checkpass;
#endif

int
main (void)
{

#ifdef crypt_checkpass
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != crypt_checkpass;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_crypt_checkpass=yes"
else case e in #(
  e) eval "ac_cv_func_crypt_checkpass=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define crypt_checkpass to an innocuous variant, in case <limits.h> declares crypt_checkpass.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define crypt_checkpass innocuous_crypt_checkpass

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char crypt_checkpass (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef crypt_checkpass
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char crypt_checkpass ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_crypt_checkpass) || defined (__stub___crypt_checkpass)
choke me
#else
char (*f) () = crypt_checkpass;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != crypt_checkpass;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_crypt_checkpass=yes"
else case e in #(
  e) eval "ac_cv_func_crypt_checkpass=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'crypt_checkpass`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_CRYPT_CHECKPASS 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt_r" >&5
printf %s "checking for crypt_r... " >&6; }
if test ${ac_cv_func_crypt_r+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef crypt_r
void *f = (void *) crypt_r;
#endif

int
main (void)
{

#ifdef crypt_r
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != crypt_r;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_crypt_r=yes"
else case e in #(
  e) eval "ac_cv_func_crypt_r=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define crypt_r to an innocuous variant, in case <limits.h> declares crypt_r.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define crypt_r innocuous_crypt_r

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char crypt_r (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef crypt_r
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char crypt_r ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_crypt_r) || defined (__stub___crypt_r)
choke me
#else
char (*f) () = crypt_r;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != crypt_r;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_crypt_r=yes"
else case e in #(
  e) eval "ac_cv_func_crypt_r=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'crypt_r`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_CRYPT_R 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
printf %s "checking for fchdir... " >&6; }
if test ${ac_cv_func_fchdir+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef fchdir
void *f = (void *) fchdir;
#endif

int
main (void)
{

#ifdef fchdir
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != fchdir;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_fchdir=yes"
else case e in #(
  e) eval "ac_cv_func_fchdir=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define fchdir to an innocuous variant, in case <limits.h> declares fchdir.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fchdir innocuous_fchdir

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fchdir (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fchdir
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fchdir ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fchdir) || defined (__stub___fchdir)
choke me
#else
char (*f) () = fchdir;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != fchdir;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_fchdir=yes"
else case e in #(
  e) eval "ac_cv_func_fchdir=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'fchdir`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdwalk" >&5
printf %s "checking for fdwalk... " >&6; }
if test ${ac_cv_func_fdwalk+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef fdwalk
void *f = (void *) fdwalk;
#endif

int
main (void)
{

#ifdef fdwalk
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != fdwalk;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_fdwalk=yes"
else case e in #(
  e) eval "ac_cv_func_fdwalk=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define fdwalk to an innocuous variant, in case <limits.h> declares fdwalk.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fdwalk innocuous_fdwalk

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fdwalk (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fdwalk
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fdwalk ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fdwalk) || defined (__stub___fdwalk)
choke me
#else
char (*f) () = fdwalk;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != fdwalk;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_fdwalk=yes"
else case e in #(
  e) eval "ac_cv_func_fdwalk=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'fdwalk`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_FDWALK 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftruncate64" >&5
printf %s "checking for ftruncate64... " >&6; }
if test ${ac_cv_func_ftruncate64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef ftruncate64
void *f = (void *) ftruncate64;
#endif

int
main (void)
{

#ifdef ftruncate64
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != ftruncate64;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_ftruncate64=yes"
else case e in #(
  e) eval "ac_cv_func_ftruncate64=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define ftruncate64 to an innocuous variant, in case <limits.h> declares ftruncate64.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define ftruncate64 innocuous_ftruncate64

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ftruncate64 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef ftruncate64
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ftruncate64 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_ftruncate64) || defined (__stub___ftruncate64)
choke me
#else
char (*f) () = ftruncate64;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != ftruncate64;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_ftruncate64=yes"
else case e in #(
  e) eval "ac_cv_func_ftruncate64=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'ftruncate64`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getauxval" >&5
printf %s "checking for getauxval... " >&6; }
if test ${ac_cv_func_getauxval+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getauxval
void *f = (void *) getauxval;
#endif

int
main (void)
{

#ifdef getauxval
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getauxval;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getauxval=yes"
else case e in #(
  e) eval "ac_cv_func_getauxval=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getauxval to an innocuous variant, in case <limits.h> declares getauxval.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getauxval innocuous_getauxval

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getauxval (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getauxval
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getauxval ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getauxval) || defined (__stub___getauxval)
choke me
#else
char (*f) () = getauxval;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getauxval;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getauxval=yes"
else case e in #(
  e) eval "ac_cv_func_getauxval=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getauxval`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethrtime" >&5
printf %s "checking for gethrtime... " >&6; }
if test ${ac_cv_func_gethrtime+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef gethrtime
void *f = (void *) gethrtime;
#endif

int
main (void)
{

#ifdef gethrtime
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != gethrtime;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_gethrtime=yes"
else case e in #(
  e) eval "ac_cv_func_gethrtime=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define gethrtime to an innocuous variant, in case <limits.h> declares gethrtime.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gethrtime innocuous_gethrtime

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethrtime (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gethrtime
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethrtime ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethrtime) || defined (__stub___gethrtime)
choke me
#else
char (*f) () = gethrtime;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != gethrtime;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_gethrtime=yes"
else case e in #(
  e) eval "ac_cv_func_gethrtime=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'gethrtime`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETHRTIME 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethrvtime" >&5
printf %s "checking for gethrvtime... " >&6; }
if test ${ac_cv_func_gethrvtime+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef gethrvtime
void *f = (void *) gethrvtime;
#endif

int
main (void)
{

#ifdef gethrvtime
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != gethrvtime;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_gethrvtime=yes"
else case e in #(
  e) eval "ac_cv_func_gethrvtime=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define gethrvtime to an innocuous variant, in case <limits.h> declares gethrvtime.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gethrvtime innocuous_gethrvtime

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethrvtime (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gethrvtime
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethrvtime ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethrvtime) || defined (__stub___gethrvtime)
choke me
#else
char (*f) () = gethrvtime;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != gethrvtime;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_gethrvtime=yes"
else case e in #(
  e) eval "ac_cv_func_gethrvtime=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'gethrvtime`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETHRVTIME 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getrctl" >&5
printf %s "checking for getrctl... " >&6; }
if test ${ac_cv_func_getrctl+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getrctl
void *f = (void *) getrctl;
#endif

int
main (void)
{

#ifdef getrctl
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getrctl;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getrctl=yes"
else case e in #(
  e) eval "ac_cv_func_getrctl=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getrctl to an innocuous variant, in case <limits.h> declares getrctl.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getrctl innocuous_getrctl

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getrctl (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getrctl
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getrctl ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getrctl) || defined (__stub___getrctl)
choke me
#else
char (*f) () = getrctl;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getrctl;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getrctl=yes"
else case e in #(
  e) eval "ac_cv_func_getrctl=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getrctl`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETRCTL 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getrlimit" >&5
printf %s "checking for getrlimit... " >&6; }
if test ${ac_cv_func_getrlimit+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getrlimit
void *f = (void *) getrlimit;
#endif

int
main (void)
{

#ifdef getrlimit
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getrlimit;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getrlimit=yes"
else case e in #(
  e) eval "ac_cv_func_getrlimit=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getrlimit to an innocuous variant, in case <limits.h> declares getrlimit.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getrlimit innocuous_getrlimit

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getrlimit (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getrlimit
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getrlimit ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getrlimit) || defined (__stub___getrlimit)
choke me
#else
char (*f) () = getrlimit;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getrlimit;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getrlimit=yes"
else case e in #(
  e) eval "ac_cv_func_getrlimit=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getrlimit`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getrusage" >&5
printf %s "checking for getrusage... " >&6; }
if test ${ac_cv_func_getrusage+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getrusage
void *f = (void *) getrusage;
#endif

int
main (void)
{

#ifdef getrusage
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getrusage;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getrusage=yes"
else case e in #(
  e) eval "ac_cv_func_getrusage=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getrusage to an innocuous variant, in case <limits.h> declares getrusage.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getrusage innocuous_getrusage

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getrusage (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getrusage
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getrusage ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getrusage) || defined (__stub___getrusage)
choke me
#else
char (*f) () = getrusage;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getrusage;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getrusage=yes"
else case e in #(
  e) eval "ac_cv_func_getrusage=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
printf %s "checking for gettimeofday... " >&6; }
if test ${ac_cv_func_gettimeofday+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef gettimeofday
void *f = (void *) gettimeofday;
#endif

int
main (void)
{

#ifdef gettimeofday
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != gettimeofday;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_gettimeofday=yes"
else case e in #(
  e) eval "ac_cv_func_gettimeofday=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gettimeofday innocuous_gettimeofday

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gettimeofday (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gettimeofday
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gettimeofday ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
choke me
#else
char (*f) () = gettimeofday;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != gettimeofday;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_gettimeofday=yes"
else case e in #(
  e) eval "ac_cv_func_gettimeofday=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getwd" >&5
printf %s "checking for getwd... " >&6; }
if test ${ac_cv_func_getwd+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getwd
void *f = (void *) getwd;
#endif

int
main (void)
{

#ifdef getwd
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getwd;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getwd=yes"
else case e in #(
  e) eval "ac_cv_func_getwd=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getwd to an innocuous variant, in case <limits.h> declares getwd.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getwd innocuous_getwd

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getwd (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getwd
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getwd ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getwd) || defined (__stub___getwd)
choke me
#else
char (*f) () = getwd;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getwd;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getwd=yes"
else case e in #(
  e) eval "ac_cv_func_getwd=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getwd`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for get_current_dir_name" >&5
printf %s "checking for get_current_dir_name... " >&6; }
if test ${ac_cv_func_get_current_dir_name+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef get_current_dir_name
void *f = (void *) get_current_dir_name;
#endif

int
main (void)
{

#ifdef get_current_dir_name
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != get_current_dir_name;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_get_current_dir_name=yes"
else case e in #(
  e) eval "ac_cv_func_get_current_dir_name=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define get_current_dir_name to an innocuous variant, in case <limits.h> declares get_current_dir_name.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define get_current_dir_name innocuous_get_current_dir_name

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char get_current_dir_name (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef get_current_dir_name
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char get_current_dir_name ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_get_current_dir_name) || defined (__stub___get_current_dir_name)
choke me
#else
char (*f) () = get_current_dir_name;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != get_current_dir_name;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_get_current_dir_name=yes"
else case e in #(
  e) eval "ac_cv_func_get_current_dir_name=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'get_current_dir_name`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GET_CURRENT_DIR_NAME 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5
printf %s "checking for inet_ntop... " >&6; }
if test ${ac_cv_func_inet_ntop+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef inet_ntop
void *f = (void *) inet_ntop;
#endif

int
main (void)
{

#ifdef inet_ntop
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != inet_ntop;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_inet_ntop=yes"
else case e in #(
  e) eval "ac_cv_func_inet_ntop=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define inet_ntop innocuous_inet_ntop

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char inet_ntop (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef inet_ntop
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char inet_ntop ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
char (*f) () = inet_ntop;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != inet_ntop;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_inet_ntop=yes"
else case e in #(
  e) eval "ac_cv_func_inet_ntop=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'inet_ntop`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmtime_r" >&5
printf %s "checking for gmtime_r... " >&6; }
if test ${ac_cv_func_gmtime_r+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef gmtime_r
void *f = (void *) gmtime_r;
#endif

int
main (void)
{

#ifdef gmtime_r
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != gmtime_r;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_gmtime_r=yes"
else case e in #(
  e) eval "ac_cv_func_gmtime_r=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gmtime_r innocuous_gmtime_r

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gmtime_r (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gmtime_r
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gmtime_r ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
choke me
#else
char (*f) () = gmtime_r;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != gmtime_r;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_gmtime_r=yes"
else case e in #(
  e) eval "ac_cv_func_gmtime_r=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'gmtime_r`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmtime_s" >&5
printf %s "checking for gmtime_s... " >&6; }
if test ${ac_cv_func_gmtime_s+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef gmtime_s
void *f = (void *) gmtime_s;
#endif

int
main (void)
{

#ifdef gmtime_s
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != gmtime_s;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_gmtime_s=yes"
else case e in #(
  e) eval "ac_cv_func_gmtime_s=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define gmtime_s to an innocuous variant, in case <limits.h> declares gmtime_s.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gmtime_s innocuous_gmtime_s

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gmtime_s (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gmtime_s
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gmtime_s ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gmtime_s) || defined (__stub___gmtime_s)
choke me
#else
char (*f) () = gmtime_s;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != gmtime_s;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_gmtime_s=yes"
else case e in #(
  e) eval "ac_cv_func_gmtime_s=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'gmtime_s`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GMTIME_S 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strptime" >&5
printf %s "checking for strptime... " >&6; }
if test ${ac_cv_func_strptime+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef strptime
void *f = (void *) strptime;
#endif

int
main (void)
{

#ifdef strptime
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != strptime;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_strptime=yes"
else case e in #(
  e) eval "ac_cv_func_strptime=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strptime innocuous_strptime

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strptime (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strptime
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strptime ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strptime) || defined (__stub___strptime)
choke me
#else
char (*f) () = strptime;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != strptime;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_strptime=yes"
else case e in #(
  e) eval "ac_cv_func_strptime=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'strptime`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for log2" >&5
printf %s "checking for log2... " >&6; }
if test ${ac_cv_func_log2+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef log2
void *f = (void *) log2;
#endif

int
main (void)
{

#ifdef log2
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != log2;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_log2=yes"
else case e in #(
  e) eval "ac_cv_func_log2=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define log2 to an innocuous variant, in case <limits.h> declares log2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define log2 innocuous_log2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char log2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef log2
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char log2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_log2) || defined (__stub___log2)
choke me
#else
char (*f) () = log2;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != log2;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_log2=yes"
else case e in #(
  e) eval "ac_cv_func_log2=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'log2`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_LOG2 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mallinfo" >&5
printf %s "checking for mallinfo... " >&6; }
if test ${ac_cv_func_mallinfo+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef mallinfo
void *f = (void *) mallinfo;
#endif

int
main (void)
{

#ifdef mallinfo
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != mallinfo;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_mallinfo=yes"
else case e in #(
  e) eval "ac_cv_func_mallinfo=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define mallinfo to an innocuous variant, in case <limits.h> declares mallinfo.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define mallinfo innocuous_mallinfo

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char mallinfo (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef mallinfo
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mallinfo ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_mallinfo) || defined (__stub___mallinfo)
choke me
#else
char (*f) () = mallinfo;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != mallinfo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_mallinfo=yes"
else case e in #(
  e) eval "ac_cv_func_mallinfo=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'mallinfo`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mallinfo2" >&5
printf %s "checking for mallinfo2... " >&6; }
if test ${ac_cv_func_mallinfo2+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef mallinfo2
void *f = (void *) mallinfo2;
#endif

int
main (void)
{

#ifdef mallinfo2
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != mallinfo2;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_mallinfo2=yes"
else case e in #(
  e) eval "ac_cv_func_mallinfo2=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define mallinfo2 to an innocuous variant, in case <limits.h> declares mallinfo2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define mallinfo2 innocuous_mallinfo2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char mallinfo2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef mallinfo2
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mallinfo2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_mallinfo2) || defined (__stub___mallinfo2)
choke me
#else
char (*f) () = mallinfo2;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != mallinfo2;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_mallinfo2=yes"
else case e in #(
  e) eval "ac_cv_func_mallinfo2=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'mallinfo2`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mallopt" >&5
printf %s "checking for mallopt... " >&6; }
if test ${ac_cv_func_mallopt+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef mallopt
void *f = (void *) mallopt;
#endif

int
main (void)
{

#ifdef mallopt
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != mallopt;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_mallopt=yes"
else case e in #(
  e) eval "ac_cv_func_mallopt=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define mallopt to an innocuous variant, in case <limits.h> declares mallopt.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define mallopt innocuous_mallopt

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char mallopt (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef mallopt
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mallopt ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_mallopt) || defined (__stub___mallopt)
choke me
#else
char (*f) () = mallopt;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != mallopt;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_mallopt=yes"
else case e in #(
  e) eval "ac_cv_func_mallopt=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'mallopt`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_MALLOPT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pread" >&5
printf %s "checking for pread... " >&6; }
if test ${ac_cv_func_pread+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef pread
void *f = (void *) pread;
#endif

int
main (void)
{

#ifdef pread
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != pread;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pread=yes"
else case e in #(
  e) eval "ac_cv_func_pread=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define pread to an innocuous variant, in case <limits.h> declares pread.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define pread innocuous_pread

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pread (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef pread
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pread ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pread) || defined (__stub___pread)
choke me
#else
char (*f) () = pread;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != pread;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pread=yes"
else case e in #(
  e) eval "ac_cv_func_pread=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'pread`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pwrite" >&5
printf %s "checking for pwrite... " >&6; }
if test ${ac_cv_func_pwrite+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef pwrite
void *f = (void *) pwrite;
#endif

int
main (void)
{

#ifdef pwrite
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != pwrite;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pwrite=yes"
else case e in #(
  e) eval "ac_cv_func_pwrite=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define pwrite to an innocuous variant, in case <limits.h> declares pwrite.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define pwrite innocuous_pwrite

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pwrite (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef pwrite
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pwrite ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pwrite) || defined (__stub___pwrite)
choke me
#else
char (*f) () = pwrite;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != pwrite;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pwrite=yes"
else case e in #(
  e) eval "ac_cv_func_pwrite=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'pwrite`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ptrace" >&5
printf %s "checking for ptrace... " >&6; }
if test ${ac_cv_func_ptrace+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef ptrace
void *f = (void *) ptrace;
#endif

int
main (void)
{

#ifdef ptrace
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != ptrace;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_ptrace=yes"
else case e in #(
  e) eval "ac_cv_func_ptrace=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define ptrace to an innocuous variant, in case <limits.h> declares ptrace.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define ptrace innocuous_ptrace

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ptrace (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef ptrace
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ptrace ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_ptrace) || defined (__stub___ptrace)
choke me
#else
char (*f) () = ptrace;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != ptrace;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_ptrace=yes"
else case e in #(
  e) eval "ac_cv_func_ptrace=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'ptrace`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_PTRACE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setrlimit" >&5
printf %s "checking for setrlimit... " >&6; }
if test ${ac_cv_func_setrlimit+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef setrlimit
void *f = (void *) setrlimit;
#endif

int
main (void)
{

#ifdef setrlimit
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != setrlimit;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setrlimit=yes"
else case e in #(
  e) eval "ac_cv_func_setrlimit=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define setrlimit to an innocuous variant, in case <limits.h> declares setrlimit.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setrlimit innocuous_setrlimit

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setrlimit (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setrlimit
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setrlimit ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setrlimit) || defined (__stub___setrlimit)
choke me
#else
char (*f) () = setrlimit;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != setrlimit;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setrlimit=yes"
else case e in #(
  e) eval "ac_cv_func_setrlimit=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'setrlimit`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setresuid" >&5
printf %s "checking for setresuid... " >&6; }
if test ${ac_cv_func_setresuid+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef setresuid
void *f = (void *) setresuid;
#endif

int
main (void)
{

#ifdef setresuid
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != setresuid;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setresuid=yes"
else case e in #(
  e) eval "ac_cv_func_setresuid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define setresuid to an innocuous variant, in case <limits.h> declares setresuid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setresuid innocuous_setresuid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setresuid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setresuid
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setresuid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setresuid) || defined (__stub___setresuid)
choke me
#else
char (*f) () = setresuid;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != setresuid;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setresuid=yes"
else case e in #(
  e) eval "ac_cv_func_setresuid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'setresuid`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigaction" >&5
printf %s "checking for sigaction... " >&6; }
if test ${ac_cv_func_sigaction+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef sigaction
void *f = (void *) sigaction;
#endif

int
main (void)
{

#ifdef sigaction
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != sigaction;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sigaction=yes"
else case e in #(
  e) eval "ac_cv_func_sigaction=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define sigaction to an innocuous variant, in case <limits.h> declares sigaction.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sigaction innocuous_sigaction

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sigaction (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sigaction
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sigaction ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sigaction) || defined (__stub___sigaction)
choke me
#else
char (*f) () = sigaction;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != sigaction;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sigaction=yes"
else case e in #(
  e) eval "ac_cv_func_sigaction=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'sigaction`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigvec" >&5
printf %s "checking for sigvec... " >&6; }
if test ${ac_cv_func_sigvec+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef sigvec
void *f = (void *) sigvec;
#endif

int
main (void)
{

#ifdef sigvec
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != sigvec;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sigvec=yes"
else case e in #(
  e) eval "ac_cv_func_sigvec=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define sigvec to an innocuous variant, in case <limits.h> declares sigvec.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sigvec innocuous_sigvec

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sigvec (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sigvec
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sigvec ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sigvec) || defined (__stub___sigvec)
choke me
#else
char (*f) () = sigvec;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != sigvec;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sigvec=yes"
else case e in #(
  e) eval "ac_cv_func_sigvec=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SIGVEC 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strcasecmp" >&5
printf %s "checking for strcasecmp... " >&6; }
if test ${ac_cv_func_strcasecmp+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef strcasecmp
void *f = (void *) strcasecmp;
#endif

int
main (void)
{

#ifdef strcasecmp
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != strcasecmp;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_strcasecmp=yes"
else case e in #(
  e) eval "ac_cv_func_strcasecmp=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strcasecmp innocuous_strcasecmp

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strcasecmp (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strcasecmp
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strcasecmp ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
choke me
#else
char (*f) () = strcasecmp;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != strcasecmp;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_strcasecmp=yes"
else case e in #(
  e) eval "ac_cv_func_strcasecmp=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for times" >&5
printf %s "checking for times... " >&6; }
if test ${ac_cv_func_times+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef times
void *f = (void *) times;
#endif

int
main (void)
{

#ifdef times
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != times;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_times=yes"
else case e in #(
  e) eval "ac_cv_func_times=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define times to an innocuous variant, in case <limits.h> declares times.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define times innocuous_times

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char times (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef times
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char times ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_times) || defined (__stub___times)
choke me
#else
char (*f) () = times;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != times;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_times=yes"
else case e in #(
  e) eval "ac_cv_func_times=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'times`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for truncate64" >&5
printf %s "checking for truncate64... " >&6; }
if test ${ac_cv_func_truncate64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef truncate64
void *f = (void *) truncate64;
#endif

int
main (void)
{

#ifdef truncate64
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != truncate64;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_truncate64=yes"
else case e in #(
  e) eval "ac_cv_func_truncate64=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define truncate64 to an innocuous variant, in case <limits.h> declares truncate64.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define truncate64 innocuous_truncate64

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char truncate64 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef truncate64
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char truncate64 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_truncate64) || defined (__stub___truncate64)
choke me
#else
char (*f) () = truncate64;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != truncate64;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_truncate64=yes"
else case e in #(
  e) eval "ac_cv_func_truncate64=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'truncate64`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_TRUNCATE64 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzset" >&5
printf %s "checking for tzset... " >&6; }
if test ${ac_cv_func_tzset+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef tzset
void *f = (void *) tzset;
#endif

int
main (void)
{

#ifdef tzset
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != tzset;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_tzset=yes"
else case e in #(
  e) eval "ac_cv_func_tzset=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define tzset to an innocuous variant, in case <limits.h> declares tzset.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define tzset innocuous_tzset

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char tzset (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef tzset
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tzset ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_tzset) || defined (__stub___tzset)
choke me
#else
char (*f) () = tzset;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != tzset;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_tzset=yes"
else case e in #(
  e) eval "ac_cv_func_tzset=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'tzset`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snprintf" >&5
printf %s "checking for snprintf... " >&6; }
if test ${ac_cv_func_snprintf+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef snprintf
void *f = (void *) snprintf;
#endif

int
main (void)
{

#ifdef snprintf
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != snprintf;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_snprintf=yes"
else case e in #(
  e) eval "ac_cv_func_snprintf=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define snprintf innocuous_snprintf

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char snprintf (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef snprintf
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char snprintf ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_snprintf) || defined (__stub___snprintf)
choke me
#else
char (*f) () = snprintf;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != snprintf;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_snprintf=yes"
else case e in #(
  e) eval "ac_cv_func_snprintf=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _snprintf" >&5
printf %s "checking for _snprintf... " >&6; }
if test ${ac_cv_func__snprintf+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef _snprintf
void *f = (void *) _snprintf;
#endif

int
main (void)
{

#ifdef _snprintf
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != _snprintf;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__snprintf=yes"
else case e in #(
  e) eval "ac_cv_func__snprintf=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define _snprintf innocuous__snprintf

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _snprintf (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef _snprintf
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char _snprintf ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__snprintf) || defined (__stub____snprintf)
choke me
#else
char (*f) () = _snprintf;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != _snprintf;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__snprintf=yes"
else case e in #(
  e) eval "ac_cv_func__snprintf=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE__SNPRINTF 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
printf %s "checking for strlcat... " >&6; }
if test ${ac_cv_func_strlcat+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef strlcat
void *f = (void *) strlcat;
#endif

int
main (void)
{

#ifdef strlcat
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != strlcat;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_strlcat=yes"
else case e in #(
  e) eval "ac_cv_func_strlcat=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strlcat innocuous_strlcat

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlcat (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strlcat
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strlcat ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlcat) || defined (__stub___strlcat)
choke me
#else
char (*f) () = strlcat;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != strlcat;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_strlcat=yes"
else case e in #(
  e) eval "ac_cv_func_strlcat=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'strlcat`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
printf %s "checking for strlcpy... " >&6; }
if test ${ac_cv_func_strlcpy+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef strlcpy
void *f = (void *) strlcpy;
#endif

int
main (void)
{

#ifdef strlcpy
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != strlcpy;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_strlcpy=yes"
else case e in #(
  e) eval "ac_cv_func_strlcpy=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strlcpy innocuous_strlcpy

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlcpy (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strlcpy
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strlcpy ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
choke me
#else
char (*f) () = strlcpy;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != strlcpy;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_strlcpy=yes"
else case e in #(
  e) eval "ac_cv_func_strlcpy=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'strlcpy`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wait3" >&5
printf %s "checking for wait3... " >&6; }
if test ${ac_cv_func_wait3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef wait3
void *f = (void *) wait3;
#endif

int
main (void)
{

#ifdef wait3
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != wait3;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_wait3=yes"
else case e in #(
  e) eval "ac_cv_func_wait3=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define wait3 innocuous_wait3

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char wait3 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef wait3
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char wait3 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_wait3) || defined (__stub___wait3)
choke me
#else
char (*f) () = wait3;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != wait3;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_wait3=yes"
else case e in #(
  e) eval "ac_cv_func_wait3=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'wait3`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wait4" >&5
printf %s "checking for wait4... " >&6; }
if test ${ac_cv_func_wait4+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef wait4
void *f = (void *) wait4;
#endif

int
main (void)
{

#ifdef wait4
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != wait4;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_wait4=yes"
else case e in #(
  e) eval "ac_cv_func_wait4=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define wait4 innocuous_wait4

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char wait4 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef wait4
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char wait4 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_wait4) || defined (__stub___wait4)
choke me
#else
char (*f) () = wait4;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != wait4;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_wait4=yes"
else case e in #(
  e) eval "ac_cv_func_wait4=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'wait4`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for waitpid" >&5
printf %s "checking for waitpid... " >&6; }
if test ${ac_cv_func_waitpid+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef waitpid
void *f = (void *) waitpid;
#endif

int
main (void)
{

#ifdef waitpid
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != waitpid;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_waitpid=yes"
else case e in #(
  e) eval "ac_cv_func_waitpid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define waitpid to an innocuous variant, in case <limits.h> declares waitpid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define waitpid innocuous_waitpid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char waitpid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef waitpid
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char waitpid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_waitpid) || defined (__stub___waitpid)
choke me
#else
char (*f) () = waitpid;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != waitpid;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_waitpid=yes"
else case e in #(
  e) eval "ac_cv_func_waitpid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'waitpid`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _wutime64" >&5
printf %s "checking for _wutime64... " >&6; }
if test ${ac_cv_func__wutime64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef _wutime64
void *f = (void *) _wutime64;
#endif

int
main (void)
{

#ifdef _wutime64
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != _wutime64;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__wutime64=yes"
else case e in #(
  e) eval "ac_cv_func__wutime64=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define _wutime64 to an innocuous variant, in case <limits.h> declares _wutime64.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define _wutime64 innocuous__wutime64

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _wutime64 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef _wutime64
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char _wutime64 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__wutime64) || defined (__stub____wutime64)
choke me
#else
char (*f) () = _wutime64;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != _wutime64;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__wutime64=yes"
else case e in #(
  e) eval "ac_cv_func__wutime64=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'_wutime64`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE__WUTIME64 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for munmap" >&5
printf %s "checking for munmap... " >&6; }
if test ${ac_cv_func_munmap+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef munmap
void *f = (void *) munmap;
#endif

int
main (void)
{

#ifdef munmap
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != munmap;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_munmap=yes"
else case e in #(
  e) eval "ac_cv_func_munmap=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define munmap to an innocuous variant, in case <limits.h> declares munmap.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define munmap innocuous_munmap

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char munmap (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef munmap
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char munmap ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_munmap) || defined (__stub___munmap)
choke me
#else
char (*f) () = munmap;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != munmap;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_munmap=yes"
else case e in #(
  e) eval "ac_cv_func_munmap=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'munmap`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load" >&5
printf %s "checking for shl_load... " >&6; }
if test ${ac_cv_func_shl_load+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef shl_load
void *f = (void *) shl_load;
#endif

int
main (void)
{

#ifdef shl_load
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != shl_load;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_shl_load=yes"
else case e in #(
  e) eval "ac_cv_func_shl_load=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define shl_load innocuous_shl_load

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef shl_load
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
char (*f) () = shl_load;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != shl_load;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_shl_load=yes"
else case e in #(
  e) eval "ac_cv_func_shl_load=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link" >&5
printf %s "checking for dld_link... " >&6; }
if test ${ac_cv_func_dld_link+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef dld_link
void *f = (void *) dld_link;
#endif

int
main (void)
{

#ifdef dld_link
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != dld_link;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_dld_link=yes"
else case e in #(
  e) eval "ac_cv_func_dld_link=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define dld_link to an innocuous variant, in case <limits.h> declares dld_link.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dld_link innocuous_dld_link

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dld_link (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dld_link
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dld_link ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dld_link) || defined (__stub___dld_link)
choke me
#else
char (*f) () = dld_link;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != dld_link;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_dld_link=yes"
else case e in #(
  e) eval "ac_cv_func_dld_link=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'dld_link`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_DLD_LINK 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_get_func" >&5
printf %s "checking for dld_get_func... " >&6; }
if test ${ac_cv_func_dld_get_func+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef dld_get_func
void *f = (void *) dld_get_func;
#endif

int
main (void)
{

#ifdef dld_get_func
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != dld_get_func;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_dld_get_func=yes"
else case e in #(
  e) eval "ac_cv_func_dld_get_func=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define dld_get_func to an innocuous variant, in case <limits.h> declares dld_get_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dld_get_func innocuous_dld_get_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dld_get_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dld_get_func
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dld_get_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dld_get_func) || defined (__stub___dld_get_func)
choke me
#else
char (*f) () = dld_get_func;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != dld_get_func;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_dld_get_func=yes"
else case e in #(
  e) eval "ac_cv_func_dld_get_func=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'dld_get_func`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_DLD_GET_FUNC 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pipe" >&5
printf %s "checking for pipe... " >&6; }
if test ${ac_cv_func_pipe+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef pipe
void *f = (void *) pipe;
#endif

int
main (void)
{

#ifdef pipe
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != pipe;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pipe=yes"
else case e in #(
  e) eval "ac_cv_func_pipe=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define pipe to an innocuous variant, in case <limits.h> declares pipe.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define pipe innocuous_pipe

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pipe (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef pipe
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pipe ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pipe) || defined (__stub___pipe)
choke me
#else
char (*f) () = pipe;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != pipe;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_pipe=yes"
else case e in #(
  e) eval "ac_cv_func_pipe=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'pipe`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strdup" >&5
printf %s "checking for strdup... " >&6; }
if test ${ac_cv_func_strdup+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef strdup
void *f = (void *) strdup;
#endif

int
main (void)
{

#ifdef strdup
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != strdup;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_strdup=yes"
else case e in #(
  e) eval "ac_cv_func_strdup=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define strdup innocuous_strdup

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strdup (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef strdup
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strdup ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strdup) || defined (__stub___strdup)
choke me
#else
char (*f) () = strdup;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != strdup;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_strdup=yes"
else case e in #(
  e) eval "ac_cv_func_strdup=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _strdup" >&5
printf %s "checking for _strdup... " >&6; }
if test ${ac_cv_func__strdup+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef _strdup
void *f = (void *) _strdup;
#endif

int
main (void)
{

#ifdef _strdup
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != _strdup;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__strdup=yes"
else case e in #(
  e) eval "ac_cv_func__strdup=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define _strdup to an innocuous variant, in case <limits.h> declares _strdup.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define _strdup innocuous__strdup

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _strdup (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef _strdup
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char _strdup ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__strdup) || defined (__stub____strdup)
choke me
#else
char (*f) () = _strdup;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != _strdup;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__strdup=yes"
else case e in #(
  e) eval "ac_cv_func__strdup=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'_strdup`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE__STRDUP 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kill" >&5
printf %s "checking for kill... " >&6; }
if test ${ac_cv_func_kill+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef kill
void *f = (void *) kill;
#endif

int
main (void)
{

#ifdef kill
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != kill;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_kill=yes"
else case e in #(
  e) eval "ac_cv_func_kill=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define kill to an innocuous variant, in case <limits.h> declares kill.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define kill innocuous_kill

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char kill (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef kill
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char kill ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_kill) || defined (__stub___kill)
choke me
#else
char (*f) () = kill;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != kill;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_kill=yes"
else case e in #(
  e) eval "ac_cv_func_kill=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'kill`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alarm" >&5
printf %s "checking for alarm... " >&6; }
if test ${ac_cv_func_alarm+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef alarm
void *f = (void *) alarm;
#endif

int
main (void)
{

#ifdef alarm
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != alarm;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_alarm=yes"
else case e in #(
  e) eval "ac_cv_func_alarm=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define alarm to an innocuous variant, in case <limits.h> declares alarm.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define alarm innocuous_alarm

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char alarm (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef alarm
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char alarm ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_alarm) || defined (__stub___alarm)
choke me
#else
char (*f) () = alarm;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != alarm;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_alarm=yes"
else case e in #(
  e) eval "ac_cv_func_alarm=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'alarm`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fork1" >&5
printf %s "checking for fork1... " >&6; }
if test ${ac_cv_func_fork1+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef fork1
void *f = (void *) fork1;
#endif

int
main (void)
{

#ifdef fork1
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != fork1;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_fork1=yes"
else case e in #(
  e) eval "ac_cv_func_fork1=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define fork1 to an innocuous variant, in case <limits.h> declares fork1.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fork1 innocuous_fork1

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fork1 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fork1
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fork1 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fork1) || defined (__stub___fork1)
choke me
#else
char (*f) () = fork1;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != fork1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_fork1=yes"
else case e in #(
  e) eval "ac_cv_func_fork1=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'fork1`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_FORK1 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
printf %s "checking for flock... " >&6; }
if test ${ac_cv_func_flock+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef flock
void *f = (void *) flock;
#endif

int
main (void)
{

#ifdef flock
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != flock;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_flock=yes"
else case e in #(
  e) eval "ac_cv_func_flock=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define flock to an innocuous variant, in case <limits.h> declares flock.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define flock innocuous_flock

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char flock (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef flock
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char flock ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_flock) || defined (__stub___flock)
choke me
#else
char (*f) () = flock;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != flock;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_flock=yes"
else case e in #(
  e) eval "ac_cv_func_flock=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'flock`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lockf" >&5
printf %s "checking for lockf... " >&6; }
if test ${ac_cv_func_lockf+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef lockf
void *f = (void *) lockf;
#endif

int
main (void)
{

#ifdef lockf
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != lockf;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_lockf=yes"
else case e in #(
  e) eval "ac_cv_func_lockf=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define lockf to an innocuous variant, in case <limits.h> declares lockf.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define lockf innocuous_lockf

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char lockf (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef lockf
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char lockf ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_lockf) || defined (__stub___lockf)
choke me
#else
char (*f) () = lockf;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != lockf;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_lockf=yes"
else case e in #(
  e) eval "ac_cv_func_lockf=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'lockf`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lockf64" >&5
printf %s "checking for lockf64... " >&6; }
if test ${ac_cv_func_lockf64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef lockf64
void *f = (void *) lockf64;
#endif

int
main (void)
{

#ifdef lockf64
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != lockf64;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_lockf64=yes"
else case e in #(
  e) eval "ac_cv_func_lockf64=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define lockf64 to an innocuous variant, in case <limits.h> declares lockf64.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define lockf64 innocuous_lockf64

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char lockf64 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef lockf64
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char lockf64 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_lockf64) || defined (__stub___lockf64)
choke me
#else
char (*f) () = lockf64;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != lockf64;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_lockf64=yes"
else case e in #(
  e) eval "ac_cv_func_lockf64=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'lockf64`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_LOCKF64 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setuid" >&5
printf %s "checking for setuid... " >&6; }
if test ${ac_cv_func_setuid+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef setuid
void *f = (void *) setuid;
#endif

int
main (void)
{

#ifdef setuid
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != setuid;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setuid=yes"
else case e in #(
  e) eval "ac_cv_func_setuid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define setuid to an innocuous variant, in case <limits.h> declares setuid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setuid innocuous_setuid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setuid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setuid
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setuid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setuid) || defined (__stub___setuid)
choke me
#else
char (*f) () = setuid;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != setuid;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setuid=yes"
else case e in #(
  e) eval "ac_cv_func_setuid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'setuid`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getuid" >&5
printf %s "checking for getuid... " >&6; }
if test ${ac_cv_func_getuid+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getuid
void *f = (void *) getuid;
#endif

int
main (void)
{

#ifdef getuid
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getuid;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getuid=yes"
else case e in #(
  e) eval "ac_cv_func_getuid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getuid to an innocuous variant, in case <limits.h> declares getuid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getuid innocuous_getuid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getuid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getuid
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getuid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getuid) || defined (__stub___getuid)
choke me
#else
char (*f) () = getuid;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getuid;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getuid=yes"
else case e in #(
  e) eval "ac_cv_func_getuid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getuid`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seteuid" >&5
printf %s "checking for seteuid... " >&6; }
if test ${ac_cv_func_seteuid+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef seteuid
void *f = (void *) seteuid;
#endif

int
main (void)
{

#ifdef seteuid
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != seteuid;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_seteuid=yes"
else case e in #(
  e) eval "ac_cv_func_seteuid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define seteuid to an innocuous variant, in case <limits.h> declares seteuid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define seteuid innocuous_seteuid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char seteuid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef seteuid
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char seteuid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_seteuid) || defined (__stub___seteuid)
choke me
#else
char (*f) () = seteuid;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != seteuid;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_seteuid=yes"
else case e in #(
  e) eval "ac_cv_func_seteuid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'seteuid`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for geteuid" >&5
printf %s "checking for geteuid... " >&6; }
if test ${ac_cv_func_geteuid+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef geteuid
void *f = (void *) geteuid;
#endif

int
main (void)
{

#ifdef geteuid
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != geteuid;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_geteuid=yes"
else case e in #(
  e) eval "ac_cv_func_geteuid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define geteuid to an innocuous variant, in case <limits.h> declares geteuid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define geteuid innocuous_geteuid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char geteuid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef geteuid
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char geteuid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_geteuid) || defined (__stub___geteuid)
choke me
#else
char (*f) () = geteuid;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != geteuid;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_geteuid=yes"
else case e in #(
  e) eval "ac_cv_func_geteuid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'geteuid`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setgid" >&5
printf %s "checking for setgid... " >&6; }
if test ${ac_cv_func_setgid+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef setgid
void *f = (void *) setgid;
#endif

int
main (void)
{

#ifdef setgid
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != setgid;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setgid=yes"
else case e in #(
  e) eval "ac_cv_func_setgid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define setgid to an innocuous variant, in case <limits.h> declares setgid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setgid innocuous_setgid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setgid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setgid
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setgid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setgid) || defined (__stub___setgid)
choke me
#else
char (*f) () = setgid;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != setgid;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setgid=yes"
else case e in #(
  e) eval "ac_cv_func_setgid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'setgid`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getgid" >&5
printf %s "checking for getgid... " >&6; }
if test ${ac_cv_func_getgid+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getgid
void *f = (void *) getgid;
#endif

int
main (void)
{

#ifdef getgid
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getgid;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getgid=yes"
else case e in #(
  e) eval "ac_cv_func_getgid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getgid to an innocuous variant, in case <limits.h> declares getgid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getgid innocuous_getgid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getgid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getgid
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getgid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getgid) || defined (__stub___getgid)
choke me
#else
char (*f) () = getgid;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getgid;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getgid=yes"
else case e in #(
  e) eval "ac_cv_func_getgid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getgid`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getegid" >&5
printf %s "checking for getegid... " >&6; }
if test ${ac_cv_func_getegid+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getegid
void *f = (void *) getegid;
#endif

int
main (void)
{

#ifdef getegid
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getegid;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getegid=yes"
else case e in #(
  e) eval "ac_cv_func_getegid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getegid to an innocuous variant, in case <limits.h> declares getegid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getegid innocuous_getegid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getegid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getegid
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getegid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getegid) || defined (__stub___getegid)
choke me
#else
char (*f) () = getegid;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getegid;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getegid=yes"
else case e in #(
  e) eval "ac_cv_func_getegid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getegid`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwent" >&5
printf %s "checking for getpwent... " >&6; }
if test ${ac_cv_func_getpwent+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getpwent
void *f = (void *) getpwent;
#endif

int
main (void)
{

#ifdef getpwent
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getpwent;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getpwent=yes"
else case e in #(
  e) eval "ac_cv_func_getpwent=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getpwent to an innocuous variant, in case <limits.h> declares getpwent.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getpwent innocuous_getpwent

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getpwent (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getpwent
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getpwent ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getpwent) || defined (__stub___getpwent)
choke me
#else
char (*f) () = getpwent;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getpwent;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getpwent=yes"
else case e in #(
  e) eval "ac_cv_func_getpwent=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getpwent`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwnam" >&5
printf %s "checking for getpwnam... " >&6; }
if test ${ac_cv_func_getpwnam+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getpwnam
void *f = (void *) getpwnam;
#endif

int
main (void)
{

#ifdef getpwnam
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getpwnam;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getpwnam=yes"
else case e in #(
  e) eval "ac_cv_func_getpwnam=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getpwnam to an innocuous variant, in case <limits.h> declares getpwnam.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getpwnam innocuous_getpwnam

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getpwnam (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getpwnam
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getpwnam ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getpwnam) || defined (__stub___getpwnam)
choke me
#else
char (*f) () = getpwnam;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getpwnam;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getpwnam=yes"
else case e in #(
  e) eval "ac_cv_func_getpwnam=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getpwnam`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwuid" >&5
printf %s "checking for getpwuid... " >&6; }
if test ${ac_cv_func_getpwuid+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getpwuid
void *f = (void *) getpwuid;
#endif

int
main (void)
{

#ifdef getpwuid
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getpwuid;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getpwuid=yes"
else case e in #(
  e) eval "ac_cv_func_getpwuid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getpwuid to an innocuous variant, in case <limits.h> declares getpwuid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getpwuid innocuous_getpwuid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getpwuid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getpwuid
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getpwuid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getpwuid) || defined (__stub___getpwuid)
choke me
#else
char (*f) () = getpwuid;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getpwuid;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getpwuid=yes"
else case e in #(
  e) eval "ac_cv_func_getpwuid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getpwuid`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getgrent" >&5
printf %s "checking for getgrent... " >&6; }
if test ${ac_cv_func_getgrent+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getgrent
void *f = (void *) getgrent;
#endif

int
main (void)
{

#ifdef getgrent
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getgrent;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getgrent=yes"
else case e in #(
  e) eval "ac_cv_func_getgrent=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getgrent to an innocuous variant, in case <limits.h> declares getgrent.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getgrent innocuous_getgrent

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getgrent (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getgrent
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getgrent ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getgrent) || defined (__stub___getgrent)
choke me
#else
char (*f) () = getgrent;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getgrent;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getgrent=yes"
else case e in #(
  e) eval "ac_cv_func_getgrent=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getgrent`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETGRENT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getgrnam" >&5
printf %s "checking for getgrnam... " >&6; }
if test ${ac_cv_func_getgrnam+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getgrnam
void *f = (void *) getgrnam;
#endif

int
main (void)
{

#ifdef getgrnam
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getgrnam;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getgrnam=yes"
else case e in #(
  e) eval "ac_cv_func_getgrnam=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getgrnam to an innocuous variant, in case <limits.h> declares getgrnam.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getgrnam innocuous_getgrnam

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getgrnam (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getgrnam
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getgrnam ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getgrnam) || defined (__stub___getgrnam)
choke me
#else
char (*f) () = getgrnam;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getgrnam;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getgrnam=yes"
else case e in #(
  e) eval "ac_cv_func_getgrnam=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getgrnam`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETGRNAM 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsid" >&5
printf %s "checking for setsid... " >&6; }
if test ${ac_cv_func_setsid+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef setsid
void *f = (void *) setsid;
#endif

int
main (void)
{

#ifdef setsid
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != setsid;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setsid=yes"
else case e in #(
  e) eval "ac_cv_func_setsid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define setsid to an innocuous variant, in case <limits.h> declares setsid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setsid innocuous_setsid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setsid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setsid
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setsid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setsid) || defined (__stub___setsid)
choke me
#else
char (*f) () = setsid;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != setsid;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setsid=yes"
else case e in #(
  e) eval "ac_cv_func_setsid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'setsid`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initgroups" >&5
printf %s "checking for initgroups... " >&6; }
if test ${ac_cv_func_initgroups+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef initgroups
void *f = (void *) initgroups;
#endif

int
main (void)
{

#ifdef initgroups
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != initgroups;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_initgroups=yes"
else case e in #(
  e) eval "ac_cv_func_initgroups=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define initgroups to an innocuous variant, in case <limits.h> declares initgroups.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define initgroups innocuous_initgroups

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char initgroups (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef initgroups
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char initgroups ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_initgroups) || defined (__stub___initgroups)
choke me
#else
char (*f) () = initgroups;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != initgroups;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_initgroups=yes"
else case e in #(
  e) eval "ac_cv_func_initgroups=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'initgroups`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
printf %s "checking for setgroups... " >&6; }
if test ${ac_cv_func_setgroups+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef setgroups
void *f = (void *) setgroups;
#endif

int
main (void)
{

#ifdef setgroups
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != setgroups;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setgroups=yes"
else case e in #(
  e) eval "ac_cv_func_setgroups=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define setgroups to an innocuous variant, in case <limits.h> declares setgroups.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setgroups innocuous_setgroups

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setgroups (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setgroups
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setgroups ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setgroups) || defined (__stub___setgroups)
choke me
#else
char (*f) () = setgroups;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != setgroups;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setgroups=yes"
else case e in #(
  e) eval "ac_cv_func_setgroups=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'setgroups`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5
printf %s "checking for sendfile... " >&6; }
if test ${ac_cv_func_sendfile+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef sendfile
void *f = (void *) sendfile;
#endif

int
main (void)
{

#ifdef sendfile
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != sendfile;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sendfile=yes"
else case e in #(
  e) eval "ac_cv_func_sendfile=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define sendfile to an innocuous variant, in case <limits.h> declares sendfile.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sendfile innocuous_sendfile

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sendfile (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sendfile
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sendfile ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sendfile) || defined (__stub___sendfile)
choke me
#else
char (*f) () = sendfile;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != sendfile;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sendfile=yes"
else case e in #(
  e) eval "ac_cv_func_sendfile=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'sendfile`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
printf %s "checking for socketpair... " >&6; }
if test ${ac_cv_func_socketpair+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef socketpair
void *f = (void *) socketpair;
#endif

int
main (void)
{

#ifdef socketpair
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != socketpair;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_socketpair=yes"
else case e in #(
  e) eval "ac_cv_func_socketpair=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define socketpair to an innocuous variant, in case <limits.h> declares socketpair.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define socketpair innocuous_socketpair

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char socketpair (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef socketpair
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char socketpair ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_socketpair) || defined (__stub___socketpair)
choke me
#else
char (*f) () = socketpair;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != socketpair;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_socketpair=yes"
else case e in #(
  e) eval "ac_cv_func_socketpair=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'socketpair`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty" >&5
printf %s "checking for openpty... " >&6; }
if test ${ac_cv_func_openpty+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef openpty
void *f = (void *) openpty;
#endif

int
main (void)
{

#ifdef openpty
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != openpty;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_openpty=yes"
else case e in #(
  e) eval "ac_cv_func_openpty=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define openpty innocuous_openpty

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char openpty (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef openpty
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char openpty ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_openpty) || defined (__stub___openpty)
choke me
#else
char (*f) () = openpty;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != openpty;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_openpty=yes"
else case e in #(
  e) eval "ac_cv_func_openpty=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap16" >&5
printf %s "checking for bswap16... " >&6; }
if test ${ac_cv_func_bswap16+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef bswap16
void *f = (void *) bswap16;
#endif

int
main (void)
{

#ifdef bswap16
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != bswap16;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_bswap16=yes"
else case e in #(
  e) eval "ac_cv_func_bswap16=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define bswap16 to an innocuous variant, in case <limits.h> declares bswap16.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define bswap16 innocuous_bswap16

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char bswap16 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef bswap16
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char bswap16 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_bswap16) || defined (__stub___bswap16)
choke me
#else
char (*f) () = bswap16;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != bswap16;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_bswap16=yes"
else case e in #(
  e) eval "ac_cv_func_bswap16=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'bswap16`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_BSWAP16 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __bswap16" >&5
printf %s "checking for __bswap16... " >&6; }
if test ${ac_cv_func___bswap16+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef __bswap16
void *f = (void *) __bswap16;
#endif

int
main (void)
{

#ifdef __bswap16
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != __bswap16;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func___bswap16=yes"
else case e in #(
  e) eval "ac_cv_func___bswap16=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define __bswap16 to an innocuous variant, in case <limits.h> declares __bswap16.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define __bswap16 innocuous___bswap16

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __bswap16 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef __bswap16
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char __bswap16 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___bswap16) || defined (__stub_____bswap16)
choke me
#else
char (*f) () = __bswap16;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != __bswap16;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func___bswap16=yes"
else case e in #(
  e) eval "ac_cv_func___bswap16=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'__bswap16`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE___BSWAP16 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap32" >&5
printf %s "checking for bswap32... " >&6; }
if test ${ac_cv_func_bswap32+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef bswap32
void *f = (void *) bswap32;
#endif

int
main (void)
{

#ifdef bswap32
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != bswap32;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_bswap32=yes"
else case e in #(
  e) eval "ac_cv_func_bswap32=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define bswap32 to an innocuous variant, in case <limits.h> declares bswap32.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define bswap32 innocuous_bswap32

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char bswap32 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef bswap32
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char bswap32 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_bswap32) || defined (__stub___bswap32)
choke me
#else
char (*f) () = bswap32;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != bswap32;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_bswap32=yes"
else case e in #(
  e) eval "ac_cv_func_bswap32=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'bswap32`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_BSWAP32 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __bswap32" >&5
printf %s "checking for __bswap32... " >&6; }
if test ${ac_cv_func___bswap32+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef __bswap32
void *f = (void *) __bswap32;
#endif

int
main (void)
{

#ifdef __bswap32
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != __bswap32;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func___bswap32=yes"
else case e in #(
  e) eval "ac_cv_func___bswap32=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define __bswap32 to an innocuous variant, in case <limits.h> declares __bswap32.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define __bswap32 innocuous___bswap32

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __bswap32 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef __bswap32
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char __bswap32 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___bswap32) || defined (__stub_____bswap32)
choke me
#else
char (*f) () = __bswap32;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != __bswap32;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func___bswap32=yes"
else case e in #(
  e) eval "ac_cv_func___bswap32=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'__bswap32`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE___BSWAP32 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap64" >&5
printf %s "checking for bswap64... " >&6; }
if test ${ac_cv_func_bswap64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef bswap64
void *f = (void *) bswap64;
#endif

int
main (void)
{

#ifdef bswap64
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != bswap64;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_bswap64=yes"
else case e in #(
  e) eval "ac_cv_func_bswap64=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define bswap64 to an innocuous variant, in case <limits.h> declares bswap64.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define bswap64 innocuous_bswap64

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char bswap64 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef bswap64
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char bswap64 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_bswap64) || defined (__stub___bswap64)
choke me
#else
char (*f) () = bswap64;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != bswap64;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_bswap64=yes"
else case e in #(
  e) eval "ac_cv_func_bswap64=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'bswap64`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_BSWAP64 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __bswap64" >&5
printf %s "checking for __bswap64... " >&6; }
if test ${ac_cv_func___bswap64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef __bswap64
void *f = (void *) __bswap64;
#endif

int
main (void)
{

#ifdef __bswap64
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != __bswap64;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func___bswap64=yes"
else case e in #(
  e) eval "ac_cv_func___bswap64=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define __bswap64 to an innocuous variant, in case <limits.h> declares __bswap64.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define __bswap64 innocuous___bswap64

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __bswap64 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef __bswap64
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char __bswap64 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___bswap64) || defined (__stub_____bswap64)
choke me
#else
char (*f) () = __bswap64;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != __bswap64;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func___bswap64=yes"
else case e in #(
  e) eval "ac_cv_func___bswap64=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'__bswap64`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE___BSWAP64 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fpclass" >&5
printf %s "checking for fpclass... " >&6; }
if test ${ac_cv_func_fpclass+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef fpclass
void *f = (void *) fpclass;
#endif

int
main (void)
{

#ifdef fpclass
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != fpclass;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_fpclass=yes"
else case e in #(
  e) eval "ac_cv_func_fpclass=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define fpclass to an innocuous variant, in case <limits.h> declares fpclass.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fpclass innocuous_fpclass

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fpclass (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fpclass
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fpclass ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fpclass) || defined (__stub___fpclass)
choke me
#else
char (*f) () = fpclass;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != fpclass;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_fpclass=yes"
else case e in #(
  e) eval "ac_cv_func_fpclass=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'fpclass`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_FPCLASS 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fp_class_d" >&5
printf %s "checking for fp_class_d... " >&6; }
if test ${ac_cv_func_fp_class_d+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef fp_class_d
void *f = (void *) fp_class_d;
#endif

int
main (void)
{

#ifdef fp_class_d
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != fp_class_d;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_fp_class_d=yes"
else case e in #(
  e) eval "ac_cv_func_fp_class_d=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define fp_class_d to an innocuous variant, in case <limits.h> declares fp_class_d.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fp_class_d innocuous_fp_class_d

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fp_class_d (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fp_class_d
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fp_class_d ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fp_class_d) || defined (__stub___fp_class_d)
choke me
#else
char (*f) () = fp_class_d;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != fp_class_d;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_fp_class_d=yes"
else case e in #(
  e) eval "ac_cv_func_fp_class_d=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'fp_class_d`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_FP_CLASS_D 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
printf %s "checking for isinf... " >&6; }
if test ${ac_cv_func_isinf+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef isinf
void *f = (void *) isinf;
#endif

int
main (void)
{

#ifdef isinf
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != isinf;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_isinf=yes"
else case e in #(
  e) eval "ac_cv_func_isinf=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define isinf innocuous_isinf

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char isinf (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef isinf
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char isinf ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_isinf) || defined (__stub___isinf)
choke me
#else
char (*f) () = isinf;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != isinf;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_isinf=yes"
else case e in #(
  e) eval "ac_cv_func_isinf=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'isinf`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_ISINF 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
printf %s "checking for isnan... " >&6; }
if test ${ac_cv_func_isnan+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef isnan
void *f = (void *) isnan;
#endif

int
main (void)
{

#ifdef isnan
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != isnan;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_isnan=yes"
else case e in #(
  e) eval "ac_cv_func_isnan=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define isnan innocuous_isnan

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char isnan (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef isnan
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char isnan ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_isnan) || defined (__stub___isnan)
choke me
#else
char (*f) () = isnan;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != isnan;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_isnan=yes"
else case e in #(
  e) eval "ac_cv_func_isnan=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'isnan`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_ISNAN 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _isnan" >&5
printf %s "checking for _isnan... " >&6; }
if test ${ac_cv_func__isnan+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef _isnan
void *f = (void *) _isnan;
#endif

int
main (void)
{

#ifdef _isnan
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != _isnan;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__isnan=yes"
else case e in #(
  e) eval "ac_cv_func__isnan=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define _isnan to an innocuous variant, in case <limits.h> declares _isnan.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define _isnan innocuous__isnan

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _isnan (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef _isnan
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char _isnan ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__isnan) || defined (__stub____isnan)
choke me
#else
char (*f) () = _isnan;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != _isnan;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__isnan=yes"
else case e in #(
  e) eval "ac_cv_func__isnan=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'_isnan`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE__ISNAN 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iszero" >&5
printf %s "checking for iszero... " >&6; }
if test ${ac_cv_func_iszero+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef iszero
void *f = (void *) iszero;
#endif

int
main (void)
{

#ifdef iszero
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != iszero;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_iszero=yes"
else case e in #(
  e) eval "ac_cv_func_iszero=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define iszero to an innocuous variant, in case <limits.h> declares iszero.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define iszero innocuous_iszero

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char iszero (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef iszero
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char iszero ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_iszero) || defined (__stub___iszero)
choke me
#else
char (*f) () = iszero;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != iszero;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_iszero=yes"
else case e in #(
  e) eval "ac_cv_func_iszero=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'iszero`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_ISZERO 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for finite" >&5
printf %s "checking for finite... " >&6; }
if test ${ac_cv_func_finite+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef finite
void *f = (void *) finite;
#endif

int
main (void)
{

#ifdef finite
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != finite;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_finite=yes"
else case e in #(
  e) eval "ac_cv_func_finite=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define finite to an innocuous variant, in case <limits.h> declares finite.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define finite innocuous_finite

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char finite (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef finite
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char finite ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_finite) || defined (__stub___finite)
choke me
#else
char (*f) () = finite;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != finite;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_finite=yes"
else case e in #(
  e) eval "ac_cv_func_finite=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'finite`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_FINITE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _finite" >&5
printf %s "checking for _finite... " >&6; }
if test ${ac_cv_func__finite+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef _finite
void *f = (void *) _finite;
#endif

int
main (void)
{

#ifdef _finite
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != _finite;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__finite=yes"
else case e in #(
  e) eval "ac_cv_func__finite=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define _finite to an innocuous variant, in case <limits.h> declares _finite.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define _finite innocuous__finite

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _finite (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef _finite
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char _finite ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__finite) || defined (__stub____finite)
choke me
#else
char (*f) () = _finite;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != _finite;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__finite=yes"
else case e in #(
  e) eval "ac_cv_func__finite=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'_finite`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE__FINITE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for signbit" >&5
printf %s "checking for signbit... " >&6; }
if test ${ac_cv_func_signbit+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef signbit
void *f = (void *) signbit;
#endif

int
main (void)
{

#ifdef signbit
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != signbit;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_signbit=yes"
else case e in #(
  e) eval "ac_cv_func_signbit=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define signbit to an innocuous variant, in case <limits.h> declares signbit.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define signbit innocuous_signbit

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char signbit (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef signbit
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char signbit ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_signbit) || defined (__stub___signbit)
choke me
#else
char (*f) () = signbit;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != signbit;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_signbit=yes"
else case e in #(
  e) eval "ac_cv_func_signbit=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'signbit`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SIGNBIT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nan" >&5
printf %s "checking for nan... " >&6; }
if test ${ac_cv_func_nan+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef nan
void *f = (void *) nan;
#endif

int
main (void)
{

#ifdef nan
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != nan;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_nan=yes"
else case e in #(
  e) eval "ac_cv_func_nan=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define nan to an innocuous variant, in case <limits.h> declares nan.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define nan innocuous_nan

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char nan (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef nan
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char nan ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_nan) || defined (__stub___nan)
choke me
#else
char (*f) () = nan;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != nan;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_nan=yes"
else case e in #(
  e) eval "ac_cv_func_nan=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'nan`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_NAN 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nice" >&5
printf %s "checking for nice... " >&6; }
if test ${ac_cv_func_nice+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef nice
void *f = (void *) nice;
#endif

int
main (void)
{

#ifdef nice
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != nice;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_nice=yes"
else case e in #(
  e) eval "ac_cv_func_nice=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define nice to an innocuous variant, in case <limits.h> declares nice.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define nice innocuous_nice

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char nice (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef nice
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char nice ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_nice) || defined (__stub___nice)
choke me
#else
char (*f) () = nice;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != nice;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_nice=yes"
else case e in #(
  e) eval "ac_cv_func_nice=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'nice`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __priocntl" >&5
printf %s "checking for __priocntl... " >&6; }
if test ${ac_cv_func___priocntl+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef __priocntl
void *f = (void *) __priocntl;
#endif

int
main (void)
{

#ifdef __priocntl
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != __priocntl;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func___priocntl=yes"
else case e in #(
  e) eval "ac_cv_func___priocntl=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define __priocntl to an innocuous variant, in case <limits.h> declares __priocntl.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define __priocntl innocuous___priocntl

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __priocntl (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef __priocntl
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char __priocntl ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___priocntl) || defined (__stub_____priocntl)
choke me
#else
char (*f) () = __priocntl;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != __priocntl;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func___priocntl=yes"
else case e in #(
  e) eval "ac_cv_func___priocntl=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'__priocntl`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE___PRIOCNTL 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler" >&5
printf %s "checking for sched_setscheduler... " >&6; }
if test ${ac_cv_func_sched_setscheduler+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef sched_setscheduler
void *f = (void *) sched_setscheduler;
#endif

int
main (void)
{

#ifdef sched_setscheduler
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != sched_setscheduler;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sched_setscheduler=yes"
else case e in #(
  e) eval "ac_cv_func_sched_setscheduler=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define sched_setscheduler to an innocuous variant, in case <limits.h> declares sched_setscheduler.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sched_setscheduler innocuous_sched_setscheduler

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sched_setscheduler (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sched_setscheduler
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_setscheduler ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sched_setscheduler) || defined (__stub___sched_setscheduler)
choke me
#else
char (*f) () = sched_setscheduler;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != sched_setscheduler;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sched_setscheduler=yes"
else case e in #(
  e) eval "ac_cv_func_sched_setscheduler=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'sched_setscheduler`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setpriority" >&5
printf %s "checking for setpriority... " >&6; }
if test ${ac_cv_func_setpriority+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef setpriority
void *f = (void *) setpriority;
#endif

int
main (void)
{

#ifdef setpriority
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != setpriority;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setpriority=yes"
else case e in #(
  e) eval "ac_cv_func_setpriority=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define setpriority to an innocuous variant, in case <limits.h> declares setpriority.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setpriority innocuous_setpriority

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setpriority (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setpriority
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setpriority ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setpriority) || defined (__stub___setpriority)
choke me
#else
char (*f) () = setpriority;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != setpriority;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setpriority=yes"
else case e in #(
  e) eval "ac_cv_func_setpriority=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'setpriority`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep" >&5
printf %s "checking for nanosleep... " >&6; }
if test ${ac_cv_func_nanosleep+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef nanosleep
void *f = (void *) nanosleep;
#endif

int
main (void)
{

#ifdef nanosleep
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != nanosleep;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_nanosleep=yes"
else case e in #(
  e) eval "ac_cv_func_nanosleep=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define nanosleep innocuous_nanosleep

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char nanosleep (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef nanosleep
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char nanosleep ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_nanosleep) || defined (__stub___nanosleep)
choke me
#else
char (*f) () = nanosleep;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != nanosleep;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_nanosleep=yes"
else case e in #(
  e) eval "ac_cv_func_nanosleep=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield" >&5
printf %s "checking for sched_yield... " >&6; }
if test ${ac_cv_func_sched_yield+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef sched_yield
void *f = (void *) sched_yield;
#endif

int
main (void)
{

#ifdef sched_yield
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != sched_yield;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sched_yield=yes"
else case e in #(
  e) eval "ac_cv_func_sched_yield=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sched_yield innocuous_sched_yield

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sched_yield (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sched_yield
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
choke me
#else
char (*f) () = sched_yield;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != sched_yield;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sched_yield=yes"
else case e in #(
  e) eval "ac_cv_func_sched_yield=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thr_yield" >&5
printf %s "checking for thr_yield... " >&6; }
if test ${ac_cv_func_thr_yield+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef thr_yield
void *f = (void *) thr_yield;
#endif

int
main (void)
{

#ifdef thr_yield
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != thr_yield;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_thr_yield=yes"
else case e in #(
  e) eval "ac_cv_func_thr_yield=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define thr_yield to an innocuous variant, in case <limits.h> declares thr_yield.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define thr_yield innocuous_thr_yield

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char thr_yield (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef thr_yield
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char thr_yield ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_thr_yield) || defined (__stub___thr_yield)
choke me
#else
char (*f) () = thr_yield;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != thr_yield;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_thr_yield=yes"
else case e in #(
  e) eval "ac_cv_func_thr_yield=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'thr_yield`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_THR_YIELD 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prctl" >&5
printf %s "checking for prctl... " >&6; }
if test ${ac_cv_func_prctl+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef prctl
void *f = (void *) prctl;
#endif

int
main (void)
{

#ifdef prctl
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != prctl;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_prctl=yes"
else case e in #(
  e) eval "ac_cv_func_prctl=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define prctl to an innocuous variant, in case <limits.h> declares prctl.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define prctl innocuous_prctl

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char prctl (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef prctl
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char prctl ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_prctl) || defined (__stub___prctl)
choke me
#else
char (*f) () = prctl;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != prctl;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_prctl=yes"
else case e in #(
  e) eval "ac_cv_func_prctl=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'prctl`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SetFilePointerEx" >&5
printf %s "checking for SetFilePointerEx... " >&6; }
if test ${ac_cv_func_SetFilePointerEx+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef SetFilePointerEx
void *f = (void *) SetFilePointerEx;
#endif

int
main (void)
{

#ifdef SetFilePointerEx
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != SetFilePointerEx;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_SetFilePointerEx=yes"
else case e in #(
  e) eval "ac_cv_func_SetFilePointerEx=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define SetFilePointerEx to an innocuous variant, in case <limits.h> declares SetFilePointerEx.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define SetFilePointerEx innocuous_SetFilePointerEx

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char SetFilePointerEx (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef SetFilePointerEx
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char SetFilePointerEx ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_SetFilePointerEx) || defined (__stub___SetFilePointerEx)
choke me
#else
char (*f) () = SetFilePointerEx;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != SetFilePointerEx;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_SetFilePointerEx=yes"
else case e in #(
  e) eval "ac_cv_func_SetFilePointerEx=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'SetFilePointerEx`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SETFILEPOINTEREX 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sync_instruction_memory" >&5
printf %s "checking for sync_instruction_memory... " >&6; }
if test ${ac_cv_func_sync_instruction_memory+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef sync_instruction_memory
void *f = (void *) sync_instruction_memory;
#endif

int
main (void)
{

#ifdef sync_instruction_memory
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != sync_instruction_memory;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sync_instruction_memory=yes"
else case e in #(
  e) eval "ac_cv_func_sync_instruction_memory=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define sync_instruction_memory to an innocuous variant, in case <limits.h> declares sync_instruction_memory.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sync_instruction_memory innocuous_sync_instruction_memory

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sync_instruction_memory (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sync_instruction_memory
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sync_instruction_memory ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sync_instruction_memory) || defined (__stub___sync_instruction_memory)
choke me
#else
char (*f) () = sync_instruction_memory;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != sync_instruction_memory;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sync_instruction_memory=yes"
else case e in #(
  e) eval "ac_cv_func_sync_instruction_memory=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'sync_instruction_memory`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SYNC_INSTRUCTION_MEMORY 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MakeDataExecutable" >&5
printf %s "checking for MakeDataExecutable... " >&6; }
if test ${ac_cv_func_MakeDataExecutable+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef MakeDataExecutable
void *f = (void *) MakeDataExecutable;
#endif

int
main (void)
{

#ifdef MakeDataExecutable
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != MakeDataExecutable;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_MakeDataExecutable=yes"
else case e in #(
  e) eval "ac_cv_func_MakeDataExecutable=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define MakeDataExecutable to an innocuous variant, in case <limits.h> declares MakeDataExecutable.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define MakeDataExecutable innocuous_MakeDataExecutable

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char MakeDataExecutable (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef MakeDataExecutable
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char MakeDataExecutable ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_MakeDataExecutable) || defined (__stub___MakeDataExecutable)
choke me
#else
char (*f) () = MakeDataExecutable;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != MakeDataExecutable;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_MakeDataExecutable=yes"
else case e in #(
  e) eval "ac_cv_func_MakeDataExecutable=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'MakeDataExecutable`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_MAKEDATAEXECUTABLE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _get_timezone" >&5
printf %s "checking for _get_timezone... " >&6; }
if test ${ac_cv_func__get_timezone+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef _get_timezone
void *f = (void *) _get_timezone;
#endif

int
main (void)
{

#ifdef _get_timezone
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != _get_timezone;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__get_timezone=yes"
else case e in #(
  e) eval "ac_cv_func__get_timezone=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define _get_timezone to an innocuous variant, in case <limits.h> declares _get_timezone.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define _get_timezone innocuous__get_timezone

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _get_timezone (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef _get_timezone
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char _get_timezone ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__get_timezone) || defined (__stub____get_timezone)
choke me
#else
char (*f) () = _get_timezone;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != _get_timezone;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__get_timezone=yes"
else case e in #(
  e) eval "ac_cv_func__get_timezone=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'_get_timezone`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE__GET_TIMEZONE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _get_daylight" >&5
printf %s "checking for _get_daylight... " >&6; }
if test ${ac_cv_func__get_daylight+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef _get_daylight
void *f = (void *) _get_daylight;
#endif

int
main (void)
{

#ifdef _get_daylight
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != _get_daylight;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__get_daylight=yes"
else case e in #(
  e) eval "ac_cv_func__get_daylight=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define _get_daylight to an innocuous variant, in case <limits.h> declares _get_daylight.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define _get_daylight innocuous__get_daylight

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _get_daylight (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef _get_daylight
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char _get_daylight ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__get_daylight) || defined (__stub____get_daylight)
choke me
#else
char (*f) () = _get_daylight;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != _get_daylight;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__get_daylight=yes"
else case e in #(
  e) eval "ac_cv_func__get_daylight=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'_get_daylight`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE__GET_DAYLIGHT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _get_tzname" >&5
printf %s "checking for _get_tzname... " >&6; }
if test ${ac_cv_func__get_tzname+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef _get_tzname
void *f = (void *) _get_tzname;
#endif

int
main (void)
{

#ifdef _get_tzname
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != _get_tzname;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__get_tzname=yes"
else case e in #(
  e) eval "ac_cv_func__get_tzname=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define _get_tzname to an innocuous variant, in case <limits.h> declares _get_tzname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define _get_tzname innocuous__get_tzname

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _get_tzname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef _get_tzname
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char _get_tzname ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__get_tzname) || defined (__stub____get_tzname)
choke me
#else
char (*f) () = _get_tzname;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != _get_tzname;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func__get_tzname=yes"
else case e in #(
  e) eval "ac_cv_func__get_tzname=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'_get_tzname`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE__GET_TZNAME 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for localtime_s" >&5
printf %s "checking for localtime_s... " >&6; }
if test ${ac_cv_func_localtime_s+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef localtime_s
void *f = (void *) localtime_s;
#endif

int
main (void)
{

#ifdef localtime_s
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != localtime_s;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_localtime_s=yes"
else case e in #(
  e) eval "ac_cv_func_localtime_s=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define localtime_s to an innocuous variant, in case <limits.h> declares localtime_s.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define localtime_s innocuous_localtime_s

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char localtime_s (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef localtime_s
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char localtime_s ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_localtime_s) || defined (__stub___localtime_s)
choke me
#else
char (*f) () = localtime_s;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != localtime_s;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_localtime_s=yes"
else case e in #(
  e) eval "ac_cv_func_localtime_s=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'localtime_s`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_LOCALTIME_S 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
printf %s "checking for sysconf... " >&6; }
if test ${ac_cv_func_sysconf+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef sysconf
void *f = (void *) sysconf;
#endif

int
main (void)
{

#ifdef sysconf
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != sysconf;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sysconf=yes"
else case e in #(
  e) eval "ac_cv_func_sysconf=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sysconf innocuous_sysconf

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sysconf (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sysconf
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sysconf ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sysconf) || defined (__stub___sysconf)
choke me
#else
char (*f) () = sysconf;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != sysconf;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_sysconf=yes"
else case e in #(
  e) eval "ac_cv_func_sysconf=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
printf %s "checking for getpagesize... " >&6; }
if test ${ac_cv_func_getpagesize+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getpagesize
void *f = (void *) getpagesize;
#endif

int
main (void)
{

#ifdef getpagesize
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getpagesize;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getpagesize=yes"
else case e in #(
  e) eval "ac_cv_func_getpagesize=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getpagesize innocuous_getpagesize

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getpagesize (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getpagesize
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getpagesize ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
choke me
#else
char (*f) () = getpagesize;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != getpagesize;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_getpagesize=yes"
else case e in #(
  e) eval "ac_cv_func_getpagesize=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'getpagesize`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GetSystemInfo" >&5
printf %s "checking for GetSystemInfo... " >&6; }
if test ${ac_cv_func_GetSystemInfo+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef GetSystemInfo
void *f = (void *) GetSystemInfo;
#endif

int
main (void)
{

#ifdef GetSystemInfo
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != GetSystemInfo;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_GetSystemInfo=yes"
else case e in #(
  e) eval "ac_cv_func_GetSystemInfo=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define GetSystemInfo to an innocuous variant, in case <limits.h> declares GetSystemInfo.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define GetSystemInfo innocuous_GetSystemInfo

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char GetSystemInfo (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef GetSystemInfo
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char GetSystemInfo ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_GetSystemInfo) || defined (__stub___GetSystemInfo)
choke me
#else
char (*f) () = GetSystemInfo;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != GetSystemInfo;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_GetSystemInfo=yes"
else case e in #(
  e) eval "ac_cv_func_GetSystemInfo=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'GetSystemInfo`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_GETSYSTEMINFO 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_getcpuclockid" >&5
printf %s "checking for clock_getcpuclockid... " >&6; }
if test ${ac_cv_func_clock_getcpuclockid+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef clock_getcpuclockid
void *f = (void *) clock_getcpuclockid;
#endif

int
main (void)
{

#ifdef clock_getcpuclockid
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != clock_getcpuclockid;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_clock_getcpuclockid=yes"
else case e in #(
  e) eval "ac_cv_func_clock_getcpuclockid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define clock_getcpuclockid to an innocuous variant, in case <limits.h> declares clock_getcpuclockid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define clock_getcpuclockid innocuous_clock_getcpuclockid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char clock_getcpuclockid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef clock_getcpuclockid
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char clock_getcpuclockid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_clock_getcpuclockid) || defined (__stub___clock_getcpuclockid)
choke me
#else
char (*f) () = clock_getcpuclockid;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != clock_getcpuclockid;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_clock_getcpuclockid=yes"
else case e in #(
  e) eval "ac_cv_func_clock_getcpuclockid=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'clock_getcpuclockid`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_CLOCK_GETCPUCLOCKID 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace" >&5
printf %s "checking for backtrace... " >&6; }
if test ${ac_cv_func_backtrace+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef backtrace
void *f = (void *) backtrace;
#endif

int
main (void)
{

#ifdef backtrace
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != backtrace;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_backtrace=yes"
else case e in #(
  e) eval "ac_cv_func_backtrace=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define backtrace innocuous_backtrace

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char backtrace (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef backtrace
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char backtrace ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_backtrace) || defined (__stub___backtrace)
choke me
#else
char (*f) () = backtrace;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != backtrace;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_backtrace=yes"
else case e in #(
  e) eval "ac_cv_func_backtrace=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SetErrorMode" >&5
printf %s "checking for SetErrorMode... " >&6; }
if test ${ac_cv_func_SetErrorMode+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef SetErrorMode
void *f = (void *) SetErrorMode;
#endif

int
main (void)
{

#ifdef SetErrorMode
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != SetErrorMode;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_SetErrorMode=yes"
else case e in #(
  e) eval "ac_cv_func_SetErrorMode=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define SetErrorMode to an innocuous variant, in case <limits.h> declares SetErrorMode.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define SetErrorMode innocuous_SetErrorMode

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char SetErrorMode (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef SetErrorMode
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char SetErrorMode ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_SetErrorMode) || defined (__stub___SetErrorMode)
choke me
#else
char (*f) () = SetErrorMode;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != SetErrorMode;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_SetErrorMode=yes"
else case e in #(
  e) eval "ac_cv_func_SetErrorMode=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'SetErrorMode`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SETERRORMODE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread_info" >&5
printf %s "checking for thread_info... " >&6; }
if test ${ac_cv_func_thread_info+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef thread_info
void *f = (void *) thread_info;
#endif

int
main (void)
{

#ifdef thread_info
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != thread_info;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_thread_info=yes"
else case e in #(
  e) eval "ac_cv_func_thread_info=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define thread_info to an innocuous variant, in case <limits.h> declares thread_info.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define thread_info innocuous_thread_info

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char thread_info (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef thread_info
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char thread_info ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_thread_info) || defined (__stub___thread_info)
choke me
#else
char (*f) () = thread_info;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != thread_info;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_thread_info=yes"
else case e in #(
  e) eval "ac_cv_func_thread_info=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'thread_info`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_THREAD_INFO 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for host_get_clock_service" >&5
printf %s "checking for host_get_clock_service... " >&6; }
if test ${ac_cv_func_host_get_clock_service+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef host_get_clock_service
void *f = (void *) host_get_clock_service;
#endif

int
main (void)
{

#ifdef host_get_clock_service
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != host_get_clock_service;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_host_get_clock_service=yes"
else case e in #(
  e) eval "ac_cv_func_host_get_clock_service=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define host_get_clock_service to an innocuous variant, in case <limits.h> declares host_get_clock_service.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define host_get_clock_service innocuous_host_get_clock_service

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char host_get_clock_service (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef host_get_clock_service
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char host_get_clock_service ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_host_get_clock_service) || defined (__stub___host_get_clock_service)
choke me
#else
char (*f) () = host_get_clock_service;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != host_get_clock_service;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_host_get_clock_service=yes"
else case e in #(
  e) eval "ac_cv_func_host_get_clock_service=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'host_get_clock_service`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_HOST_GET_CLOCK_SERVICE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random" >&5
printf %s "checking for arc4random... " >&6; }
if test ${ac_cv_func_arc4random+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef arc4random
void *f = (void *) arc4random;
#endif

int
main (void)
{

#ifdef arc4random
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != arc4random;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_arc4random=yes"
else case e in #(
  e) eval "ac_cv_func_arc4random=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define arc4random to an innocuous variant, in case <limits.h> declares arc4random.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define arc4random innocuous_arc4random

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char arc4random (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef arc4random
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char arc4random ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_arc4random) || defined (__stub___arc4random)
choke me
#else
char (*f) () = arc4random;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != arc4random;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_arc4random=yes"
else case e in #(
  e) eval "ac_cv_func_arc4random=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'arc4random`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


if test "x$with_poll:$ac_cv_func_poll" = "xyes:yes"; then
  printf "%s\n" "#define HAVE_AND_USE_POLL 1" >>confdefs.h

  if test "x$default_backend_method" = "xselect"; then
    default_backend_method=poll
  fi
else :; fi

# SunOS 4 realloc() returns NULL when reallocing NULL.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if realloc(NULL, SZ) works" >&5
printf %s "checking if realloc(NULL, SZ) works... " >&6; }
if test ${pike_cv_realloc_null_works+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :
   pike_cv_realloc_null_works=no

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
  void *foo = realloc(NULL, 16);

  return !foo;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
   pike_cv_realloc_null_works=yes

else case e in #(
  e)  pike_cv_realloc_null_works=no
   ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi

if test "x$pike_cv_realloc_null_works" = "xyes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_WORKING_REALLOC_NULL 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the type of the last argument to accept" >&5
printf %s "checking for the type of the last argument to accept... " >&6; }
if test ${pike_cv_accept_size_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  for t in socklen_t size_t int; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */

#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

/* NT */
#ifdef HAVE_WINSOCK2_H
#include <WinSock2.h>
#ifdef HAVE_WS2TCPIP_H
/* Needed for IPv6 support. */
#include <WS2tcpip.h>
#endif
#elif defined(HAVE_WINSOCK_H)
#include <winsock.h>
#endif

/* Here is the actual test: */
int accept(int, struct sockaddr *, $t *);

int
main (void)
{

      /* EMPTY */

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      pike_cv_accept_size_t=$t
      break

else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */

#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

/* NT */
#ifdef HAVE_WINSOCK2_H
#include <WinSock2.h>
#ifdef HAVE_WS2TCPIP_H
/* Needed for IPv6 support. */
#include <WS2tcpip.h>
#endif
#elif defined(HAVE_WINSOCK_H)
#include <winsock.h>
#endif

/* Here is the actual test: */
SOCKET accept(SOCKET, struct sockaddr *, $t *);

int
main (void)
{

        /* EMPTY */

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

	pike_cv_accept_size_t=$t
	break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  done
  if test "x$pike_cv_accept_size_t" = "x"; then
    # Check if it could be a Psocklen_t
    # Psocklen_t is a stupid typedef of socklen_t *.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */

#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

/* NT */
#ifdef HAVE_WINSOCK2_H
#include <WinSock2.h>
#ifdef HAVE_WS2TCPIP_H
/* Needed for IPv6 support. */
#include <WS2tcpip.h>
#endif
#elif defined(HAVE_WINSOCK_H)
#include <winsock.h>
#endif

/* Here is the actual test: */
int accept(int, struct sockaddr *, Psocklen_t);

int
main (void)
{

      /* EMPTY */

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      pike_cv_accept_size_t=socklen_t

else case e in #(
  e)
      # FIXME: Should probably have a warning here.
      # FIXME: Should we check if socklen_t exists, and use that?
      pike_cv_accept_size_t=int
     ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  fi
 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_accept_size_t *" >&5
printf "%s\n" "$pike_cv_accept_size_t *" >&6; }
printf "%s\n" "#define ACCEPT_SIZE_T $pike_cv_accept_size_t" >>confdefs.h


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getcwd" >&5
printf %s "checking for working getcwd... " >&6; }
if test ${pike_cv_func_working_getcwd+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
# First try getcwd(NULL, 0).
# This is the working == yes case, and is true on glibc and win32.
if test "$cross_compiling" = yes
then :
  # Assume that getcwd(NULL, val) works.
  pike_cv_func_working_getcwd=some
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */

#ifndef POSIX_SOURCE
#define POSIX_SOURCE
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_DIRECT_H
#include <direct.h>
#endif /* HAVE_DIRECT_H */
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#include <signal.h>

#include <stdlib.h>
#include <string.h>

#ifndef __NT__
int sig_child(int arg)
{
#ifdef HAVE_WAITPID
  waitpid(-1,0,WNOHANG);
#else
#ifdef HAVE_WAIT3
  wait3(0,WNOHANG,0);
#else
#ifdef HAVE_WAIT4
  wait3(-1,0,WNOHANG,0);
#else

  /* Leave them hanging */

#endif /* HAVE_WAIT4 */
#endif /* HAVE_WAIT3 */
#endif /* HAVE_WAITPID */

#ifdef SIGNAL_ONESHOT
  signal(SIGCHLD, sig_child);
#endif
}

int sig_alarm(void) { exit(1); }
#endif /* !__NT__ */

int main(void)
{
  char *tmp;
#ifndef __NT__
  signal(SIGCHLD,sig_child);
  signal(SIGALRM,sig_alarm);
  alarm(4);
#endif /* !__NT__ */
  tmp=getcwd(0,0);
  if(tmp && tmp[0] && (strlen(tmp) < 10000)) {
    free(tmp);
    exit(0);
  }
  exit(1);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_func_working_getcwd=yes
else case e in #(
  e)
# The getcwd(NULL, 0) case failed.
# Retry with getcwd(NULL, 10000).
# This is the working == some case, and is true on Solaris.
if test "$cross_compiling" = yes
then :
  # NB: This should be unreachable.
  pike_cv_func_working_getcwd=no
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */

#ifndef POSIX_SOURCE
#define POSIX_SOURCE
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_DIRECT_H
#include <direct.h>
#endif /* HAVE_DIRECT_H */
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#include <signal.h>

#include <stdlib.h>
#include <string.h>

#ifndef __NT__
int sig_child(int arg)
{
#ifdef HAVE_WAITPID
  waitpid(-1,0,WNOHANG);
#else
#ifdef HAVE_WAIT3
  wait3(0,WNOHANG,0);
#else
#ifdef HAVE_WAIT4
  wait3(-1,0,WNOHANG,0);
#else

  /* Leave them hanging */

#endif /* HAVE_WAIT4 */
#endif /* HAVE_WAIT3 */
#endif /* HAVE_WAITPID */

#ifdef SIGNAL_ONESHOT
  signal(SIGCHLD, sig_child);
#endif
}

int sig_alarm(void) { exit(1); }
#endif /* !__NT__ */

int main(void)
{
  char *tmp;
#ifndef __NT__
  signal(SIGCHLD,sig_child);
  signal(SIGALRM,sig_alarm);
  alarm(4);
#endif /* !__NT__ */
  tmp=getcwd(0,10000);
  if(tmp && tmp[0] && (strlen(tmp) < 10000)) {
    free(tmp);
    exit(0);
  }
  exit(1);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_func_working_getcwd=some
else case e in #(
  e) pike_cv_func_working_getcwd=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi


if test "$pike_cv_func_working_getcwd" = yes; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_WORKING_GETCWD 1" >>confdefs.h

elif test "$pike_cv_func_working_getcwd" = some; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: some" >&5
printf "%s\n" "some" >&6; }
  printf "%s\n" "#define HAVE_WORKING_GETCWD 0" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if mkdir takes 1 or 2 arguments" >&5
printf %s "checking if mkdir takes 1 or 2 arguments... " >&6; }
if test ${pike_cv_func_mkdir_args+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */

#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_DIRECT_H
#include <direct.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif

int
main (void)
{

  mkdir("conftestdir",0666);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_func_mkdir_args=2
else case e in #(
  e) pike_cv_func_mkdir_args=1 ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_mkdir_args" >&5
printf "%s\n" "$pike_cv_func_mkdir_args" >&6; }
printf "%s\n" "#define MKDIR_ARGS $pike_cv_func_mkdir_args" >>confdefs.h


if test "$ac_cv_func_sendfile" = "yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sendfile takes 4(Linux) or 6(HP/UX or MacOS X) or 7(FreeBSD) arguments" >&5
printf %s "checking if sendfile takes 4(Linux) or 6(HP/UX or MacOS X) or 7(FreeBSD) arguments... " >&6; }
  if test ${pike_cv_sendfile_args+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#ifdef __APPLE__
/* The <sys/socket.h> header file is broken and disregards _DARWIN_C_SOURCE
 * for the sendfile() declaration.
 */
#undef _POSIX_C_SOURCE
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif /* HAVE_SYS_SOCKET_H */
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif /* HAVE_SYS_UIO_H */
#ifdef HAVE_SYS_SENDFILE_H
#include <sys/sendfile.h>
#endif

int
main (void)
{

      return sendfile(0,0,0,0,(void *)0,(void *)0,0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      # Probably FreeBSD-style, but we need to check that
      # we indeed have a prototype...
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#ifdef __APPLE__
/* The <sys/socket.h> header file is broken and disregards _DARWIN_C_SOURCE
 * for the sendfile() declaration.
 */
#undef _POSIX_C_SOURCE
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif /* HAVE_SYS_SOCKET_H */
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif /* HAVE_SYS_UIO_H */
#ifdef HAVE_SYS_SENDFILE_H
#include <sys/sendfile.h>
#endif

int
main (void)
{

        /* This should fail on FreeBSD and HPUX.
         * If it succeeds, we do not have a prototype,
         * which would indicate Linux.
         */
        return sendfile(0,0,(void *)0,0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_sendfile_args=4
else case e in #(
  e)  pike_cv_sendfile_args=7  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#ifdef __APPLE__
/* The <sys/socket.h> header file is broken and disregards _DARWIN_C_SOURCE
 * for the sendfile() declaration.
 */
#undef _POSIX_C_SOURCE
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif /* HAVE_SYS_SOCKET_H */
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif /* HAVE_SYS_UIO_H */
#ifdef HAVE_SYS_SENDFILE_H
#include <sys/sendfile.h>
#endif

int
main (void)
{

        /* Try HPUX */
        return (int)sendfile(0,0,0,0,(void *)0,0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_sendfile_args=6
else case e in #(
  e)
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#ifdef __APPLE__
/* The <sys/socket.h> header file is broken and disregards _DARWIN_C_SOURCE
 * for the sendfile() declaration.
 */
#undef _POSIX_C_SOURCE
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif /* HAVE_SYS_SOCKET_H */
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif /* HAVE_SYS_UIO_H */
#ifdef HAVE_SYS_SENDFILE_H
#include <sys/sendfile.h>
#endif

int
main (void)
{

          /* Try Linux */
          return sendfile(0,0,(void *)0,0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_sendfile_args=4
else case e in #(
  e)  pike_cv_sendfile_args=bad  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;;
esac
fi

  if test "$pike_cv_sendfile_args" = "7"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 7 - FreeBSD style" >&5
printf "%s\n" "7 - FreeBSD style" >&6; }
    printf "%s\n" "#define HAVE_FREEBSD_SENDFILE 1" >>confdefs.h


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sendfile looks thread-safe" >&5
printf %s "checking if sendfile looks thread-safe... " >&6; }
    if test ${pike_cv_freebsd_sendfile_threadsafe+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      # We're optimistic -- default to assuming it works.
      pike_cv_freebsd_sendfile_threadsafe="yes"
      if test -f /usr/lib/libc_r.so; then
        if /usr/bin/nm -D /usr/lib/libc_r.so 2>&1 | grep _thread_sys >/dev/null 2>&1; then
          # Ok, looks like we can perform the test.
          # Assume we have a broken sendfile(2).
          pike_cv_freebsd_sendfile_threadsafe="no"
          if /usr/bin/nm -D /usr/lib/libc_r.so 2>&1 | grep _thread_sys_sendfile >/dev/null 2>&1; then
            # Wee! They have actually added a wrapper for sendfile(2)!
            pike_cv_freebsd_sendfile_threadsafe="yes"
          else :; fi
        else :; fi
      else :; fi
     ;;
esac
fi


    if test "$pike_cv_freebsd_sendfile_threadsafe" = "yes"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers count to the filelength" >&5
printf %s "checking whether headers count to the filelength... " >&6; }
      if test ${pike_cv_new_freebsd_sendfile+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
        # FIXME: Ought to do a proper test of whether
        #        headers affect the file length or not.
        pike_cv_new_freebsd_sendfile="unknown"
        case "x$pike_cv_sys_os" in
          xFreeBSD*)
            pike_cv_new_freebsd_sendfile="yes"
            # The behaviour was fixed in FreeBSD 5.0.
            if test `uname -r | awk -F. '{print $1}'` -lt 5; then
              pike_cv_new_freebsd_sendfile="no"
            fi
          ;;
        esac
       ;;
esac
fi

      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_new_freebsd_sendfile" >&5
printf "%s\n" "$pike_cv_new_freebsd_sendfile" >&6; }
      if test "x$pike_cv_new_freebsd_sendfile" = "xno"; then
        printf "%s\n" "#define HAVE_SENDFILE_HEADER_LEN_PROBLEM 1" >>confdefs.h

      fi
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - disabling use of sendfile" >&5
printf "%s\n" "no - disabling use of sendfile" >&6; }
      printf "%s\n" "#define HAVE_BROKEN_SENDFILE 1" >>confdefs.h

    fi
  else
    if test "$pike_cv_sendfile_args" = "6"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 6 - HP/UX or MacOS X style" >&5
printf "%s\n" "6 - HP/UX or MacOS X style" >&6; }
      # FIXME: Detect whether HPUX:
      #   sbsize_t sendfile(int from, int to, off_t off, bsize_t bytes,
      #                     struct iovec *hdtrl, int flags)
      # or MacOS X:
      #   int sendfile(int to, int from, off_t off, off_t *bytes,
      #                struct sf_hdtrl *hdtrl, int flags)

      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct sf_hdtr" >&5
printf %s "checking struct sf_hdtr... " >&6; }
      if test ${pike_cv_has_struct_sf_hdtr+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#ifdef __APPLE__
/* The <sys/socket.h> header file is broken and disregards _DARWIN_C_SOURCE
 * for the sendfile() declaration.
 */
#undef _POSIX_C_SOURCE
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif

int
main (void)
{

          struct sf_hdtr foo;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

          pike_cv_has_struct_sf_hdtr=yes

else case e in #(
  e)
          pike_cv_has_struct_sf_hdtr=no
         ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
       ;;
esac
fi

      if test "$pike_cv_has_struct_sf_hdtr" = "yes"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - MacOS X" >&5
printf "%s\n" "yes - MacOS X" >&6; }
        printf "%s\n" "#define HAVE_MACOSX_SENDFILE 1" >>confdefs.h

        # MacOS X sendfile() has the bug from FreeBSD 4.x and earlier.
        # FIXME: Ought to do a proper test of whether
        #        headers affect the file length or not.
        printf "%s\n" "#define HAVE_SENDFILE_HEADER_LEN_PROBLEM 1" >>confdefs.h

      else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - HPUX" >&5
printf "%s\n" "no - HPUX" >&6; }
        printf "%s\n" "#define HAVE_HPUX_SENDFILE 1" >>confdefs.h

      fi
    else
      if test "$pike_cv_sendfile_args" = "4"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 4 - Linux style" >&5
printf "%s\n" "4 - Linux style" >&6; }
      else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed - disabling use of sendfile" >&5
printf "%s\n" "failed - disabling use of sendfile" >&6; }
        printf "%s\n" "#define HAVE_BROKEN_SENDFILE 1" >>confdefs.h

      fi
    fi
  fi
else
  :
fi

if test x"$pike_cv_sys_os" = xWindows_NT ; then
 printf "%s\n" "#define HAVE_LOADLIBRARY 1" >>confdefs.h

 printf "%s\n" "#define HAVE_FREELIBRARY 1" >>confdefs.h

 printf "%s\n" "#define HAVE_GETPROCADDRESS 1" >>confdefs.h

 printf "%s\n" "#define DL_EXPORT _dlspec(export)" >>confdefs.h

else
 printf "%s\n" "#define DL_EXPORT /**/" >>confdefs.h

fi

if test $ac_cv_func_crypt$ac_cv_func__crypt = nono ; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
printf %s "checking for crypt in -lcrypt... " >&6; }
if test ${ac_cv_lib_crypt_crypt+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char crypt (void);
int
main (void)
{
return crypt ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_crypt_crypt=yes
else case e in #(
  e) ac_cv_lib_crypt_crypt=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
if test "x$ac_cv_lib_crypt_crypt" = xyes
then :
  LIBS="${LIBS} -lcrypt" ; printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h

else case e in #(
  e)
  if test -f "$srcdir/crypt.c"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using crypt.c for BSD style crypt()" >&5
printf "%s\n" "Using crypt.c for BSD style crypt()" >&6; }
    EXTRA_OBJS="${EXTRA_OBJS} crypt.o"
    printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h

    printf "%s\n" "#define USE_CRYPT_C 1" >>confdefs.h

  else
    :
  fi
 ;;
esac
fi


fi
if test $ac_cv_func_crypt_checkpass = yes ; then
    # crypt_checkpass(3) was added 2014-11-20 in OpenBSD.
    # Support for DES passwords was removed 2015-04-06.
    if test -f "$srcdir/crypt.c"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Recent OpenBSD crypt(3) detected." >&5
printf "%s\n" "Recent OpenBSD crypt(3) detected." >&6; }
        EXTRA_OBJS="${EXTRA_OBJS} crypt.o"
        printf "%s\n" "#define USE_CRYPT_C 1" >>confdefs.h

        printf "%s\n" "#define USE_PIKE_DES_CRYPT_ONLY 1" >>confdefs.h

    fi
fi

#############################################################################
# isfinite() is a macro on at least OS X and Linux which doesn't play well
# with AC_CHECK_FUNCS().

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working isfinite" >&5
printf %s "checking for working isfinite... " >&6; }
  if test ${pike_cv_func_isfinite+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <math.h>

int
main (void)
{

  int t = isfinite(0.0);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_func_isfinite=yes
else case e in #(
  e) pike_cv_func_isfinite=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <stdlib.h>
#include <math.h>

int main() {

  int t = isfinite(0.0);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_func_isfinite=yes
else case e in #(
  e) pike_cv_func_isfinite=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_isfinite" >&5
printf "%s\n" "$pike_cv_func_isfinite" >&6; }
  if test $pike_cv_func_isfinite = yes; then
    printf "%s\n" "#define HAVE_ISFINITE 1" >>confdefs.h

  else :; fi

#############################################################################

# FreeBSD 3.0 has broken F_SETFD when running with threads.

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether F_SETFD exists and works" >&5
printf %s "checking whether F_SETFD exists and works... " >&6; }

if test ${pike_cv_broken_f_setfd+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :
  pike_cv_broken_f_setfd=yes
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif /* HAVE_FCNTL_H */
#include <stdio.h>
#include <stdlib.h>
#ifndef FD_CLOEXEC
#define FD_CLOEXEC 1
#endif /* FD_CLOEXEC */
int main(int argc, char **argv)
{
  int fd = 0;
  if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) {
    exit(1);
  }
  if (fcntl(fd, F_GETFD) != FD_CLOEXEC) {
    exit(1);
  }
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_broken_f_setfd=no
else case e in #(
  e) pike_cv_broken_f_setfd=yes ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi


if test "x$pike_cv_broken_f_setfd" = "xyes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
  printf "%s\n" "#define HAVE_BROKEN_F_SETFD 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if test ${ac_cv_struct_tm+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>

int
main (void)
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_struct_tm=time.h
else case e in #(
  e) ac_cv_struct_tm=sys/time.h ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
printf "%s\n" "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then

printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h

fi


#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking extern int timezone" >&5
printf %s "checking extern int timezone... " >&6; }

if test ${pike_cv_has_external_timezone+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <time.h>

int
main (void)
{

  int _tz;
  _tz=timezone;
  timezone=_tz;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_has_external_timezone=yes
else case e in #(
  e) pike_cv_has_external_timezone=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
 ;;
esac
fi


if test "$pike_cv_has_external_timezone" = "yes"; then
  printf "%s\n" "#define HAVE_EXTERNAL_TIMEZONE 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_has_external_timezone" >&5
printf "%s\n" "$pike_cv_has_external_timezone" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking extern int altzone" >&5
printf %s "checking extern int altzone... " >&6; }

if test ${pike_cv_has_external_altzone+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <time.h>

int
main (void)
{

  int _tz;
  _tz=altzone;
  altzone=_tz;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_has_external_altzone=yes
else case e in #(
  e) pike_cv_has_external_altzone=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
 ;;
esac
fi


if test "$pike_cv_has_external_altzone" = "yes"; then
  printf "%s\n" "#define HAVE_EXTERNAL_ALTZONE 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_has_external_altzone" >&5
printf "%s\n" "$pike_cv_has_external_altzone" >&6; }

#############################################################################

# No test for this yet...
printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h


#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct sockaddr_in6" >&5
printf %s "checking struct sockaddr_in6... " >&6; }

if test ${pike_cv_has_struct_sockaddr_in6+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif /* HAVE_UNISTD_H */
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif /* HAVE_SYS_SOCKET_H */
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif /* HAVE_NETINET_IN_H */
#ifdef HAVE_WINSOCK2_H
#include <WinSock2.h>
#ifdef HAVE_WS2TCPIP_H
#include <WS2tcpip.h>
#endif
#elif defined(HAVE_WINSOCK_H)
#include <winsock.h>
#endif

int
main (void)
{

  struct sockaddr_in6 foo;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_has_struct_sockaddr_in6=yes
else case e in #(
  e) pike_cv_has_struct_sockaddr_in6=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
 ;;
esac
fi


if test "$pike_cv_has_struct_sockaddr_in6" = "yes"; then
  printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_has_struct_sockaddr_in6" >&5
printf "%s\n" "$pike_cv_has_struct_sockaddr_in6" >&6; }

#############################################################################

if test $ac_cv_header_malloc_h = yes; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct mallinfo in malloc.h" >&5
printf %s "checking struct mallinfo in malloc.h... " >&6; }
  if test ${pike_cv_struct_mallinfo+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif

int
main (void)
{

      struct mallinfo foo;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_struct_mallinfo=yes
else case e in #(
  e) pike_cv_struct_mallinfo=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
   ;;
esac
fi

  if test $pike_cv_struct_mallinfo = yes; then

printf "%s\n" "#define HAVE_STRUCT_MALLINFO 1" >>confdefs.h

  fi
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_struct_mallinfo" >&5
printf "%s\n" "$pike_cv_struct_mallinfo" >&6; }
fi

#############################################################################

#   if test "x$ac_cv_func_gethrtime" != "xyes"; then
#     AC_MSG_CHECKING(if we can make gethrtime by the RDTSC instruction)
#     AC_CACHE_VAL(pike_cv_own_gethrtime_rdtsc, [
#   	 AC_TRY_RUN([
#   #include <unistd.h>
#   #include <stdio.h>
#   #include <sys/time.h>
#
#   static long long hrtime_rtsc_zero;
#   static long long hrtime_rtsc_last;
#   static long long hrtime_max;
#   static struct timeval hrtime_timeval_zero;
#   static long double hrtime_conv=0.0;
#
#   #define GETTIMEOFDAY(PTR) gettimeofday(PTR,NULL)
#
#   #define RTSC(x)   							\
#      __asm__ __volatile__ (  "rdtsc"                			\
#   			       :"=a" (((unsigned long*)&x)[0]), 		\
#   			       "=d" (((unsigned long*)&x)[1]))
#
#   void own_gethrtime_init(void)
#   {
#      GETTIMEOFDAY(&hrtime_timeval_zero);
#      RTSC(hrtime_rtsc_zero);
#      hrtime_rtsc_last=hrtime_rtsc_zero;
#      hrtime_max=0;
#   }
#
#   int own_gethrtime_update(struct timeval *ptr)
#   {
#      long long td,t,now;
#      GETTIMEOFDAY(ptr);
#      RTSC(now);
#      td=((long long)ptr->tv_sec-hrtime_timeval_zero.tv_sec)*1000000000+
#   	  ((long long)ptr->tv_usec-hrtime_timeval_zero.tv_usec)*1000;
#
#      hrtime_rtsc_last=now;
#      t=now-hrtime_rtsc_zero;
#      if (t) hrtime_conv=((long double)td)/t;
#
#      return 1;
#   }
#
#   /* this is very sensitive to the compiler; keep all crap */
#
#   long long gethrtime(void)
#   {
#      long long now;
#      struct timeval tv;
#
#      if (hrtime_conv==0.0)
#      {
#   	  if (!own_gethrtime_update(&tv))  /* not calibrated yet */
#   	  {
#   	     return
#   		hrtime_max=
#   		((long long)tv.tv_sec-hrtime_timeval_zero.tv_sec)*1000000000+
#   		((long long)tv.tv_usec-hrtime_timeval_zero.tv_usec)*1000;
#   	  }
#      }
#
#      RTSC(now);
#
#      if (now-hrtime_rtsc_last > 2000000000)
#      {
#   	  own_gethrtime_update(&tv);
#   	  return gethrtime();
#      }
#
#      now = (long long) ( (long double)(now-hrtime_rtsc_zero) * hrtime_conv );
#
#      if (now<hrtime_max) now=hrtime_max;
#      return hrtime_max=now;
#   }
#
#   #include <stdio.h>
#
#   int main(void)
#   {
#      struct timeval tv1,tv2;
#      long long td,t1,t2;
#      own_gethrtime_init();
#
#      usleep(10);
#      own_gethrtime_update(&tv2);
#
#      t1=gethrtime();
#
#      gettimeofday(&tv1,NULL);
#      for (;;) /* busy loop */
#      {
#   	  GETTIMEOFDAY(&tv2);
#   	  td=((long long)tv2.tv_sec-tv1.tv_sec)*1000000000+
#   	     ((long long)tv2.tv_usec-tv1.tv_usec)*1000;
#   	  if (td>1000000) break;
#      }
#      t2=gethrtime();
#
#   /*   printf("t2-t1=%lld\n",t2-t1);  */
#
#      if (t2==hrtime_rtsc_zero ||
#   	   t2-t1>1100000 ||
#   	   t2-t1<900000) return 1;
#
#      return 0;
#   }], pike_cv_own_gethrtime_rdtsc=yes,
#   	    pike_cv_own_gethrtime_rdtsc=no, pike_cv_own_gethrtime_rdtsc=no)
#   	    ])
#     if test "x$pike_cv_own_gethrtime_rdtsc" = "xyes"; then
#   	AC_MSG_RESULT(yes)
#   	AC_DEFINE(OWN_GETHRTIME)
#   	AC_DEFINE(OWN_GETHRTIME_RDTSC)
#   	AC_DEFINE(HAVE_GETHRTIME)
#     else
#   	AC_MSG_RESULT([no])
#     fi
#   fi
#
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct tm has tm_gmtoff" >&5
printf %s "checking if struct tm has tm_gmtoff... " >&6; }

if test ${pike_cv_struct_tm_has_gmtoff+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef TM_IN_SYS_TIME
#include <sys/time.h>
#else
#include <time.h>
#endif

int
main (void)
{

  int _tz;
  struct tm foo;
  _tz=foo.tm_gmtoff;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_struct_tm_has_gmtoff=yes
else case e in #(
  e) pike_cv_struct_tm_has_gmtoff=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


if test "$pike_cv_struct_tm_has_gmtoff" = "yes"; then
  printf "%s\n" "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_struct_tm_has_gmtoff" >&5
printf "%s\n" "$pike_cv_struct_tm_has_gmtoff" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct tm has __tm_gmtoff" >&5
printf %s "checking if struct tm has __tm_gmtoff... " >&6; }

if test ${pike_cv_struct_tm_has___tm_gmtoff+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef TM_IN_SYS_TIME
#include <sys/time.h>
#else
#include <time.h>
#endif

int
main (void)
{

  int _tz;
  struct tm foo;
  _tz=foo.__tm_gmtoff;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_struct_tm_has___tm_gmtoff=yes
else case e in #(
  e) pike_cv_struct_tm_has___tm_gmtoff=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


if test "$pike_cv_struct_tm_has___tm_gmtoff" = "yes"; then
  printf "%s\n" "#define STRUCT_TM_HAS___TM_GMTOFF 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_struct_tm_has___tm_gmtoff" >&5
printf "%s\n" "$pike_cv_struct_tm_has___tm_gmtoff" >&6; }

#############################################################################
# iovec

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct iovec is defined" >&5
printf %s "checking if struct iovec is defined... " >&6; }
if test ${pike_cv_struct_iovec+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#include <unistd.h>
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif /* HAVE_SYS_UIO_H */

int
main (void)
{

    struct iovec iov;

    iov.iov_base = (void *)0;
    iov.iov_len = 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_struct_iovec=yes
else case e in #(
  e)  pike_cv_struct_iovec=no  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi

if test "$pike_cv_struct_iovec" = "yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_STRUCT_IOVEC 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

#############################################################################
# msghdr et al.

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct msghdr is defined" >&5
printf %s "checking if struct msghdr is defined... " >&6; }
if test ${pike_cv_struct_msghdr+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Needed for <sys/socket.h> on FreeBSD 4.9. */
#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

int
main (void)
{

    struct msghdr msg;

    msg.msg_iov = (void *)0;
    msg.msg_iovlen = 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_struct_msghdr=yes
else case e in #(
  e)  pike_cv_struct_msghdr=no  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi

if test "$pike_cv_struct_msghdr" = "yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_STRUCT_MSGHDR 1" >>confdefs.h


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct msghdr has the member msg_control (XPG 4.2)" >&5
printf %s "checking if struct msghdr has the member msg_control (XPG 4.2)... " >&6; }
  if test ${pike_cv_struct_msghdr_msg_control+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Needed for <sys/socket.h> on FreeBSD 4.9. */
#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

int
main (void)
{

      struct msghdr msg;

      msg.msg_control = (void *)0;
      msg.msg_controllen = 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_struct_msghdr_msg_control=yes
else case e in #(
  e)
      pike_cv_struct_msghdr_msg_control=no  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;;
esac
fi

  if test "$pike_cv_struct_msghdr_msg_control" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
    printf "%s\n" "#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1" >>confdefs.h

  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
  fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct msghdr has the member msg_accrights (old BSD)" >&5
printf %s "checking if struct msghdr has the member msg_accrights (old BSD)... " >&6; }
  if test ${pike_cv_struct_msghdr_msg_accrights+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Needed for <sys/socket.h> on FreeBSD 4.9. */
#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

int
main (void)
{

      struct msghdr msg;

      msg.msg_accrights = (void *)0;
      msg.msg_accrightslen = 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_struct_msghdr_msg_accrights=yes
else case e in #(
  e)
      pike_cv_struct_msghdr_msg_accrights=no  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;;
esac
fi

  if test "$pike_cv_struct_msghdr_msg_accrights" = "yes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
    printf "%s\n" "#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1" >>confdefs.h

  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
  fi

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for USHRT_MAX definition" >&5
printf %s "checking for USHRT_MAX definition... " >&6; }

if test ${pike_cv_ushrt_max_is_defined+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <limits.h>
#ifdef USHRT_MAX
oui
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "oui" >/dev/null 2>&1
then :
  pike_cv_ushrt_max_is_defined=yes
else case e in #(
  e) pike_cv_ushrt_max_is_defined=no ;;
esac
fi
rm -rf conftest*

 ;;
esac
fi


if test "$pike_cv_ushrt_max_is_defined" = "no" ; then
  printf "%s\n" "#define USHRT_MAX 65535" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_ushrt_max_is_defined" >&5
printf "%s\n" "$pike_cv_ushrt_max_is_defined" >&6; }




 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strchr declaration" >&5
printf %s "checking for strchr declaration... " >&6; }
 if test ${pike_cv_decl_strchr+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
   OLD_CPPFLAGS="$CPPFLAGS"
   pike_cv_decl_strchr=nonexistent
   for a in string.h unistd.h stdlib.h
   do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "strchr" >/dev/null 2>&1
then :
   pike_cv_decl_strchr=existent; break
fi
rm -rf conftest*


     # Kludge for MacOS X. Retry with the traditional cpp...
     CPPFLAGS="$CPPFLAGS -traditional-cpp"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "strchr" >/dev/null 2>&1
then :
   pike_cv_decl_strchr=existent; break
fi
rm -rf conftest*

     CPPFLAGS="$OLD_CPPFLAGS"
   done
   CPPFLAGS="$OLD_CPPFLAGS"
  ;;
esac
fi

 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_decl_strchr" >&5
printf "%s\n" "$pike_cv_decl_strchr" >&6; }
 if test "$pike_cv_decl_strchr" = nonexistent -o "$pike_cv_decl_strchr" = nonexistant; then
   printf "%s\n" "#define STRCHR_DECL_MISSING 1" >>confdefs.h

 fi


 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for malloc declaration" >&5
printf %s "checking for malloc declaration... " >&6; }
 if test ${pike_cv_decl_malloc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
   OLD_CPPFLAGS="$CPPFLAGS"
   pike_cv_decl_malloc=nonexistent
   for a in memory.h unistd.h stdlib.h
   do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "malloc" >/dev/null 2>&1
then :
   pike_cv_decl_malloc=existent; break
fi
rm -rf conftest*


     # Kludge for MacOS X. Retry with the traditional cpp...
     CPPFLAGS="$CPPFLAGS -traditional-cpp"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "malloc" >/dev/null 2>&1
then :
   pike_cv_decl_malloc=existent; break
fi
rm -rf conftest*

     CPPFLAGS="$OLD_CPPFLAGS"
   done
   CPPFLAGS="$OLD_CPPFLAGS"
  ;;
esac
fi

 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_decl_malloc" >&5
printf "%s\n" "$pike_cv_decl_malloc" >&6; }
 if test "$pike_cv_decl_malloc" = nonexistent -o "$pike_cv_decl_malloc" = nonexistant; then
   printf "%s\n" "#define MALLOC_DECL_MISSING 1" >>confdefs.h

 fi


 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpeername declaration" >&5
printf %s "checking for getpeername declaration... " >&6; }
 if test ${pike_cv_decl_getpeername+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
   OLD_CPPFLAGS="$CPPFLAGS"
   pike_cv_decl_getpeername=nonexistent
   for a in sys/socket.h sys/socketvar.h sys/socketio.h winsock.h winsock2.h ws2tcpip.h
   do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "getpeername" >/dev/null 2>&1
then :
   pike_cv_decl_getpeername=existent; break
fi
rm -rf conftest*


     # Kludge for MacOS X. Retry with the traditional cpp...
     CPPFLAGS="$CPPFLAGS -traditional-cpp"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "getpeername" >/dev/null 2>&1
then :
   pike_cv_decl_getpeername=existent; break
fi
rm -rf conftest*

     CPPFLAGS="$OLD_CPPFLAGS"
   done
   CPPFLAGS="$OLD_CPPFLAGS"
  ;;
esac
fi

 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_decl_getpeername" >&5
printf "%s\n" "$pike_cv_decl_getpeername" >&6; }
 if test "$pike_cv_decl_getpeername" = nonexistent -o "$pike_cv_decl_getpeername" = nonexistant; then
   printf "%s\n" "#define GETPEERNAME_DECL_MISSING 1" >>confdefs.h

 fi


 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for popen declaration" >&5
printf %s "checking for popen declaration... " >&6; }
 if test ${pike_cv_decl_popen+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
   OLD_CPPFLAGS="$CPPFLAGS"
   pike_cv_decl_popen=nonexistent
   for a in stdio.h unistd.h
   do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "popen" >/dev/null 2>&1
then :
   pike_cv_decl_popen=existent; break
fi
rm -rf conftest*


     # Kludge for MacOS X. Retry with the traditional cpp...
     CPPFLAGS="$CPPFLAGS -traditional-cpp"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "popen" >/dev/null 2>&1
then :
   pike_cv_decl_popen=existent; break
fi
rm -rf conftest*

     CPPFLAGS="$OLD_CPPFLAGS"
   done
   CPPFLAGS="$OLD_CPPFLAGS"
  ;;
esac
fi

 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_decl_popen" >&5
printf "%s\n" "$pike_cv_decl_popen" >&6; }
 if test "$pike_cv_decl_popen" = nonexistent -o "$pike_cv_decl_popen" = nonexistant; then
   printf "%s\n" "#define POPEN_DECL_MISSING 1" >>confdefs.h

 fi


 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getenv declaration" >&5
printf %s "checking for getenv declaration... " >&6; }
 if test ${pike_cv_decl_getenv+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
   OLD_CPPFLAGS="$CPPFLAGS"
   pike_cv_decl_getenv=nonexistent
   for a in unistd.h stdlib.h
   do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "getenv" >/dev/null 2>&1
then :
   pike_cv_decl_getenv=existent; break
fi
rm -rf conftest*


     # Kludge for MacOS X. Retry with the traditional cpp...
     CPPFLAGS="$CPPFLAGS -traditional-cpp"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "getenv" >/dev/null 2>&1
then :
   pike_cv_decl_getenv=existent; break
fi
rm -rf conftest*

     CPPFLAGS="$OLD_CPPFLAGS"
   done
   CPPFLAGS="$OLD_CPPFLAGS"
  ;;
esac
fi

 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_decl_getenv" >&5
printf "%s\n" "$pike_cv_decl_getenv" >&6; }
 if test "$pike_cv_decl_getenv" = nonexistent -o "$pike_cv_decl_getenv" = nonexistant; then
   printf "%s\n" "#define GETENV_DECL_MISSING 1" >>confdefs.h

 fi


 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname declaration" >&5
printf %s "checking for gethostname declaration... " >&6; }
 if test ${pike_cv_decl_gethostname+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
   OLD_CPPFLAGS="$CPPFLAGS"
   pike_cv_decl_gethostname=nonexistent
   for a in unistd.h netdb.h winsock.h winsock2.h ws2tcpip.h
   do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "gethostname" >/dev/null 2>&1
then :
   pike_cv_decl_gethostname=existent; break
fi
rm -rf conftest*


     # Kludge for MacOS X. Retry with the traditional cpp...
     CPPFLAGS="$CPPFLAGS -traditional-cpp"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "gethostname" >/dev/null 2>&1
then :
   pike_cv_decl_gethostname=existent; break
fi
rm -rf conftest*

     CPPFLAGS="$OLD_CPPFLAGS"
   done
   CPPFLAGS="$OLD_CPPFLAGS"
  ;;
esac
fi

 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_decl_gethostname" >&5
printf "%s\n" "$pike_cv_decl_gethostname" >&6; }
 if test "$pike_cv_decl_gethostname" = nonexistent -o "$pike_cv_decl_gethostname" = nonexistant; then
   printf "%s\n" "#define GETHOSTNAME_DECL_MISSING 1" >>confdefs.h

 fi


ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes
then :

else case e in #(
  e)
printf "%s\n" "#define size_t unsigned int" >>confdefs.h
 ;;
esac
fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
printf %s "checking for working alloca.h... " >&6; }
if test ${ac_cv_working_alloca_h+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <alloca.h>
int
main (void)
{
char *p = (char *) alloca (2 * sizeof (int));
			  if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_working_alloca_h=yes
else case e in #(
  e) ac_cv_working_alloca_h=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
if test $ac_cv_working_alloca_h = yes; then

printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
printf %s "checking for alloca... " >&6; }
if test ${ac_cv_func_alloca_works+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
if test "$ac_cv_func_alloca_works" != yes
then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stddef.h>
#ifndef alloca
# ifdef __GNUC__
#  define alloca __builtin_alloca
# elif defined _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  ifdef  __cplusplus
extern "C"
#  endif
void *alloca (size_t);
# endif
#endif

int
main (void)
{
char *p = (char *) alloca (1);
				    if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_alloca_works=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
fi ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
printf "%s\n" "$ac_cv_func_alloca_works" >&6; }

if test $ac_cv_func_alloca_works = yes; then

printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h

else
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble.  Some versions do not even contain alloca or
# contain a buggy version.  If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.

ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
printf %s "checking stack direction for C alloca... " >&6; }
if test ${ac_cv_c_stack_direction+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test "$cross_compiling" = yes
then :
  ac_cv_c_stack_direction=0
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
find_stack_direction (int *addr, int depth)
{
  int dir, dummy = 0;
  if (! addr)
    addr = &dummy;
  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  return dir + dummy;
}

int
main (int argc, char **argv)
{
  return find_stack_direction (0, argc + !argv + 20) < 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ac_cv_c_stack_direction=1
else case e in #(
  e) ac_cv_c_stack_direction=-1 ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h


fi



{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ualarm" >&5
printf %s "checking for ualarm... " >&6; }
if test ${ac_cv_func_ualarm+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef ualarm
void *f = (void *) ualarm;
#endif

int
main (void)
{

#ifdef ualarm
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != ualarm;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_ualarm=yes"
else case e in #(
  e) eval "ac_cv_func_ualarm=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define ualarm to an innocuous variant, in case <limits.h> declares ualarm.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define ualarm innocuous_ualarm

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ualarm (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef ualarm
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ualarm ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_ualarm) || defined (__stub___ualarm)
choke me
#else
char (*f) () = ualarm;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != ualarm;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_ualarm=yes"
else case e in #(
  e) eval "ac_cv_func_ualarm=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'ualarm`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_UALARM 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setitimer" >&5
printf %s "checking for setitimer... " >&6; }
if test ${ac_cv_func_setitimer+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef setitimer
void *f = (void *) setitimer;
#endif

int
main (void)
{

#ifdef setitimer
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != setitimer;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setitimer=yes"
else case e in #(
  e) eval "ac_cv_func_setitimer=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define setitimer to an innocuous variant, in case <limits.h> declares setitimer.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setitimer innocuous_setitimer

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setitimer (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setitimer
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setitimer ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setitimer) || defined (__stub___setitimer)
choke me
#else
char (*f) () = setitimer;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != setitimer;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setitimer=yes"
else case e in #(
  e) eval "ac_cv_func_setitimer=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'setitimer`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


if test "x$ac_cv_func_ualarm" = "xyes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking no of arguments to ualarm" >&5
printf %s "checking no of arguments to ualarm... " >&6; }
  if test ${pike_cv_ualarm_takes_two_args+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif /* HAVE_UNISTD_H */

int
main (void)
{

      ualarm(0,0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_ualarm_takes_two_args=yes
else case e in #(
  e) pike_cv_ualarm_takes_two_args=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;;
esac
fi

  if test "$pike_cv_ualarm_takes_two_args" = yes; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 2" >&5
printf "%s\n" "2" >&6; }
    printf "%s\n" "#define UALARM_TAKES_TWO_ARGS 1" >>confdefs.h

  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 1" >&5
printf "%s\n" "1" >&6; }
  fi
fi

if test "x$ac_cv_func_ptrace" = "xyes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking no of arguments to ptrace" >&5
printf %s "checking no of arguments to ptrace... " >&6; }
  if test ${pike_cv_ptrace_takes_four_args+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif /* HAVE_UNISTD_H */
#include <sys/types.h>
#ifdef HAVE_SYS_PTRACE_H
#include <sys/ptrace.h>
#endif /* HAVE_SYS_PTRACE_H */

int
main (void)
{

      ptrace(0,0,0,0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_ptrace_takes_four_args=yes
else case e in #(
  e) pike_cv_ptrace_takes_four_args=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;;
esac
fi

  if test "$pike_cv_ptrace_takes_four_args" = yes; then
    # FreeBSD:
    #   int ptrace(int request, pid_t pid, caddr_t addr, int data);
    # IRIX:
    #   int ptrace(int request, pid_t pid, int addr, int data);
    # Linux:
    #   long ptrace(enum __ptrace_request request, pid_t pid,
    #               void *addr, void *data);
    # Solaris 8:
    #   long ptrace(int, pid_t, long, long);
    # Solaris 10, 11 and later, 32-bit ABI only:
    #   int ptrace(int, pid_t, int, int);
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 4" >&5
printf "%s\n" "4" >&6; }
    printf "%s\n" "#define PTRACE_TAKES_FOUR_ARGS 1" >>confdefs.h


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of argument 3 (addr) to ptrace" >&5
printf %s "checking type of argument 3 (addr) to ptrace... " >&6; }
    if test ${pike_cv_ptrace_addr_type+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      # Modern OSes appear to use a pointer type.
      pike_cv_ptrace_addr_type=pointer

      # Test some integer variants.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif /* HAVE_UNISTD_H */
#include <sys/types.h>
#ifdef HAVE_SYS_PTRACE_H
#include <sys/ptrace.h>
#endif /* HAVE_SYS_PTRACE_H */
        /* Various 32-bit platforms. */
        int ptrace(int, pid_t, int, int);

int
main (void)
{

        ptrace(0,0,0,0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_ptrace_addr_type=integer
else case e in #(
  e)
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif /* HAVE_UNISTD_H */
#include <sys/types.h>
#ifdef HAVE_SYS_PTRACE_H
#include <sys/ptrace.h>
#endif /* HAVE_SYS_PTRACE_H */
          /* Solaris 8 */
          long ptrace(int, pid_t, long, long);

int
main (void)
{

          ptrace(0,0,0,0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_ptrace_addr_type=integer
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
       ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
     ;;
esac
fi

    if test "$pike_cv_ptrace_addr_type" = pointer; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: pointer" >&5
printf "%s\n" "pointer" >&6; }
      printf "%s\n" "#define PTRACE_ADDR_TYPE_IS_POINTER 1" >>confdefs.h

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: integer (SVID)" >&5
printf "%s\n" "integer (SVID)" >&6; }
    fi
  else
    # HPUX 11.0:
    #   int ptrace(int request, pid_t pid, int addr, int data, int addr2);
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 5" >&5
printf "%s\n" "5" >&6; }
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of argument 3 (addr) to ptrace" >&5
printf %s "checking type of argument 3 (addr) to ptrace... " >&6; }
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: integer (SVID)" >&5
printf "%s\n" "integer (SVID)" >&6; }
  fi
fi



########################################################################
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction" >&5
printf %s "checking stack direction... " >&6; }
if test ${pike_cv_hardware_stack_direction+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Defaulting to down." >&5
printf "%s\n" "$as_me: WARNING: Defaulting to down." >&2;}
    pike_cv_hardware_stack_direction=down

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>
static int (* volatile find_stack_direction_funptr)(void *foo, int cnt);
static int find_stack_direction(void *foo, int cnt)
{
  if (cnt) return 1*find_stack_direction_funptr(foo, cnt>>1);
  if (((void *)&foo) > foo) {
    return 1;
  } else {
    return -1;
  }
}

int main(void) {
  find_stack_direction_funptr = find_stack_direction;
  void *bar; exit( find_stack_direction_funptr(&bar, 0x10) < 0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
   pike_cv_hardware_stack_direction=up

else case e in #(
  e)  pike_cv_hardware_stack_direction=down
   ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_hardware_stack_direction" >&5
printf "%s\n" "$pike_cv_hardware_stack_direction" >&6; }

if grep STACK_DIRECTION confdefs.h >/dev/null 2>&1; then
  :
elif test "x$pike_cv_hardware_stack_direction" = "xup" ; then
  printf "%s\n" "#define STACK_DIRECTION 1" >>confdefs.h

else
  printf "%s\n" "#define STACK_DIRECTION -1" >>confdefs.h

fi

########################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking byteorder" >&5
printf %s "checking byteorder... " >&6; }
if test ${pike_cv_hardware_byteorder+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
if test "x$enable_binary" = "xno"; then
  pike_cv_hardware_byteorder=0
else
if test "$cross_compiling" = yes
then :

echo $ac_n "crosscompiling... $ac_c" 1>&6
    # Use some magical constants...
    cat > conftest.$ac_ext <<EOF
#line 105091 "configure"
#include "confdefs.h"
#include <stdio.h>
#if SIZEOF_INT == 4
#define T int
#else
#define T long
#endif
T int_info[] = {
  0, 0x5f426947L, 0x2d654e64L, 0x49614e5fL, 0
};
EOF
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
      if test -f "conftest.$ac_objext"; then
        if strings "conftest.$ac_objext" | grep "_BiG-eNdIaN_" >/dev/null; then
	  pike_cv_hardware_byteorder=4321
        elif strings "conftest.$ac_objext" | grep "GiB_dNe-_NaI" >/dev/null; then
	  pike_cv_hardware_byteorder=1234
	else
	  as_fn_error $? "Unable to determine hardware byteorder" "$LINENO" 5
	fi
      else
        as_fn_error $? "Unable to determine hardware byteorder" "$LINENO" 5
      fi
    else
      as_fn_error $? "Unable to determine hardware byteorder" "$LINENO" 5
    fi
    rm -rf conftest*

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>

int main(void)
{
#if SIZEOF_INT == 4
#define T int
#else
#define T long
#endif
  FILE *f;
  T a;
  int e;
  for(e=0;e<sizeof(T);e++)
    ((char *)&a)[e]=(e+1) % 10;

  f=fopen("conftest.out.2","w");
  for(e=0;e<sizeof(T);e++)
  {
    fprintf(f,"%d",(int)(a & 255));
    a>>=8;
  }
  fprintf(f,"\n");
  fclose(f);

  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_hardware_byteorder=`cat conftest.out.2`

else case e in #(
  e) as_fn_error $? "Unable to determine hardware byteorder" "$LINENO" 5
 ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

fi
 ;;
esac
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_hardware_byteorder" >&5
printf "%s\n" "$pike_cv_hardware_byteorder" >&6; }
printf "%s\n" "#define PIKE_BYTEORDER $pike_cv_hardware_byteorder" >>confdefs.h


########################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking null is special" >&5
printf %s "checking null is special... " >&6; }
if test ${pike_cv_null_is_special+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :
  pike_cv_null_is_special=no
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
union test {
  void * ptr;
  int val;
};
int main(void)
{
  union test t;
  t.ptr = NULL;
  if( t.val == 0 ) return 1;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_null_is_special=yes
else case e in #(
  e) pike_cv_null_is_special=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_null_is_special" >&5
printf "%s\n" "$pike_cv_null_is_special" >&6; }
if test "x$pike_cv_null_is_special" = xyes ; then
  printf "%s\n" "#define PIKE_NULL_IS_SPECIAL 1" >>confdefs.h

fi

########################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pointer alignment" >&5
printf %s "checking pointer alignment... " >&6; }
if test ${pike_cv_hardware_alignment+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "x$enable_binary" = "xno"; then
    pike_cv_hardware_alignment=4
  else
    if test "$cross_compiling" = yes
then :
  pike_cv_hardware_alignment=4

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>

struct x { char a; void *b; };

struct y { void *a; char b; };

int main(int argc, char *argv[])
{
  FILE *f;
  int align = (int)&(((struct x *)0)->b);
  if (align > sizeof(struct y)-sizeof(void *))
    align = sizeof(struct y) - sizeof(void *);

  if(!(f=fopen("conftest.out.2","w")))
    return 1;

  fprintf(f, "%d\n", align);
  fclose(f);
  return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_hardware_alignment=`cat conftest.out.2`
else case e in #(
  e) pike_cv_hardware_alignment=4 ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

  fi
 ;;
esac
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_hardware_alignment" >&5
printf "%s\n" "$pike_cv_hardware_alignment" >&6; }
printf "%s\n" "#define PIKE_POINTER_ALIGNMENT $pike_cv_hardware_alignment" >>confdefs.h


#############################################################################

## Check if we should default to --with-machine-code

#############################################################################

if test "$with_machine_code" = "no"; then :; else

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking machine code architecture" >&5
printf %s "checking machine code architecture... " >&6; }
  if test ${pike_cv_machine_code_arch+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    pike_cv_machine_code_arch=unknown
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef __GNUC__
#if !defined(__i386__) && !defined(__i386)
#error Not ia32 architecture
#endif
#elif defined(_MSC_VER)
#if !defined(_M_IX86)
#error Not ia32 architecture
#endif
#else
#error Unsupported compiler
#endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      pike_cv_machine_code_arch=ia32

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef __GNUC__
#if !defined(__x86_64__) && !defined(__x86_64) && !defined(__amd64) && !defined(__amd64__)
#error Not amd64 architecture
#endif
#elif defined(_MSC_VER)
#if !defined(_M_X64)
#error Not amd64 architecture
#endif
#error Unsupported ABI.
#else
#error Unsupported compiler
#endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      pike_cv_machine_code_arch=amd64

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef __GNUC__
#if !defined(sparc) && !defined(__sparc__) && !defined(__sparc)
#error Not sparc architecture
#endif
#else
#error Unsupported compiler
#endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      pike_cv_machine_code_arch=sparc

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef __GNUC__
#if !defined(__ppc__) && !defined(__powerpc__) && !defined(_POWER)
#error Not ppc32 architecture
#endif
#else
#error Unsupported compiler
#endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      pike_cv_machine_code_arch=ppc32

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef __GNUC__
#if !defined(__PPC64__) && !defined(__powerpc64__)
#error Not ppc64 architecture
#endif
#else
#error Unsupported compiler
#endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      pike_cv_machine_code_arch=ppc64

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(__GNUC__)
#if !defined(__arm__)
#error Not arm32 architecture
#endif
#else
#error Unsupported compiler
#endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      pike_cv_machine_code_arch=arm32

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(__GNUC__)
#if !defined(__aarch64__)
#error Not arm64 architecture
#endif
#else
#error Unsupported compiler
#endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      pike_cv_machine_code_arch=arm64

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(__GNUC__)
#if !defined(__riscv) || __riscv_xlen != 32
#error Not rv32 architecture
#endif
#else
#error Unsupported compiler
#endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      pike_cv_machine_code_arch=rv32

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(__GNUC__)
#if !defined(__riscv) || __riscv_xlen != 64
#error Not rv64 architecture
#endif
#else
#error Unsupported compiler
#endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      pike_cv_machine_code_arch=rv64

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_machine_code_arch" >&5
printf "%s\n" "$pike_cv_machine_code_arch" >&6; }
  if test "x$pike_cv_machine_code_arch" = xunknown ; then
    with_machine_code="no"
  else
    with_machine_code="yes"
    printf "%s\n" "#define PIKE_USE_MACHINE_CODE 1" >>confdefs.h

  fi
fi

########################################################################

PAXCTL_ALLOW_MPROTECT=:
if test yes = "$with_machine_code"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking register name convention" >&5
printf %s "checking register name convention... " >&6; }
  if test ${pike_cv_cpu_reg_prefix+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    for pike_cv_cpu_reg_prefix in "default" "" "r" "%%" "%%r" "unknown"; do
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define REGPREFIX "$pike_cv_cpu_reg_prefix"

int
main (void)
{

#if defined(__ppc__) || defined(__powerpc__) || defined(_POWER)
	__asm__ __volatile__(" li "REGPREFIX"11,1");
#else
	; /* Do not need to find out */
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  break
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    done
   ;;
esac
fi

  case "$pike_cv_cpu_reg_prefix" in
    default|unknown) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_cpu_reg_prefix" >&5
printf "%s\n" "$pike_cv_cpu_reg_prefix" >&6; };;
    *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pike_cv_cpu_reg_prefix}0" >&5
printf "%s\n" "${pike_cv_cpu_reg_prefix}0" >&6; }
       printf "%s\n" "#define PIKE_CPU_REG_PREFIX \"$pike_cv_cpu_reg_prefix\"" >>confdefs.h
;;
  esac

  if test "x$PAXCTL" = "x"; then :; else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ${PAXCTL} syntax to allow mprotect" >&5
printf %s "checking ${PAXCTL} syntax to allow mprotect... " >&6; }
    if test ${pike_cv_paxctl_allow_mprotect+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      echo "int main(int argc, char **argv) { return 0; }" >conftest.c
      pike_cv_paxctl_allow_mprotect=no
      if ${CC} ${CFLAGS} conftest.c -o conftest >&5 2>&1; then
	if test -f conftest; then
	  # Notes about paxctl flags:
	  #
	  # Flag	Linux			NetBSD
	  #     	Usage.			View PaX flags.
	  #   -v	View PaX flags.		-
	  #   -m	Allow mprotect.		Remove +m flag.
	  #   +m	File +m (fail).		Allow mprotect.
	  #   -M	Disallow mprotect.	Remove +M flag.
	  #   +M	File +M (fail).		Disallow mprotect.
	  #   -c	Convert GNU to PaX.	-
	  #   -C	Create PaX header.	-
	  #
	  # Note that Linux paxctl fails if there's no PaX ELF header,
	  # unless -C or -c have been specified.
	  # Note that Linux -C fails if there's a PT_GNU_STACK header.
	  # Note that Linux -c fails if there's no PT_GNU_STACK header.
	  for pike_cv_paxctl_allow_mprotect in +m -cCm no; do
	    if test "x$pike_cv_paxctl_allow_mprotect" = "xno"; then
	      break
	    fi
	    echo "${PAXCTL} ${pike_cv_paxctl_allow_mprotect} conftest" \
		>&5
	    if ${PAXCTL} ${pike_cv_paxctl_allow_mprotect} conftest \
		>&5 2>&1; then
	      break
	    fi
	  done
        else
	  echo "No result from compilation." >&5
	fi
      fi
     ;;
esac
fi

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_paxctl_allow_mprotect" >&5
printf "%s\n" "$pike_cv_paxctl_allow_mprotect" >&6; }
    if test "x$pike_cv_paxctl_allow_mprotect" = "xno"; then :; else
      PAXCTL_ALLOW_MPROTECT="\$(PAXCTL) ${pike_cv_paxctl_allow_mprotect}"
    fi
  fi
fi



########################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the RDTSC instruction (x86)" >&5
printf %s "checking for the RDTSC instruction (x86)... " >&6; }
if test ${pike_cv_have_rdtsc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
if test "$cross_compiling" = yes
then :
  pike_cv_have_rdtsc="possibly not"
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


static long long rdtsc(void)
{
   unsigned long l, h;
#if defined (_M_IX86) || defined (_M_X64)
   __asm {
     rdtsc
     mov l, eax
     mov h, edx
   }
#else
   __asm__ __volatile__ ("rdtsc" :"=a" (l), "=d" (h));
#endif
   return (((long long)h)<<32)|l;
}

int main(void)
{
   if (rdtsc()!=rdtsc())
      return 0;
   return 1;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_have_rdtsc=yes
else case e in #(
  e) pike_cv_have_rdtsc=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_rdtsc" >&5
printf "%s\n" "$pike_cv_have_rdtsc" >&6; }
if test "$pike_cv_have_rdtsc" = yes; then
  printf "%s\n" "#define HAVE_RDTSC 1" >>confdefs.h

fi

########################################################################

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
printf %s "checking for working fork... " >&6; }
  if test ${pike_cv_func_fork+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

int
main (void)
{

  exit(fork()==-1);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_func_fork=yes
else case e in #(
  e) pike_cv_func_fork=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <stdlib.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

int main() {

  exit(fork()==-1);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_func_fork=yes
else case e in #(
  e) pike_cv_func_fork=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_fork" >&5
printf "%s\n" "$pike_cv_func_fork" >&6; }
  if test $pike_cv_func_fork = yes; then
    printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h

  else :; fi


########################################################################

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fpsetmask" >&5
printf %s "checking for working fpsetmask... " >&6; }
  if test ${pike_cv_func_fpsetmask+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

int
main (void)
{

  fpsetmask(0);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_func_fpsetmask=yes
else case e in #(
  e) pike_cv_func_fpsetmask=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <stdlib.h>
#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

int main() {

  fpsetmask(0);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_func_fpsetmask=yes
else case e in #(
  e) pike_cv_func_fpsetmask=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_fpsetmask" >&5
printf "%s\n" "$pike_cv_func_fpsetmask" >&6; }
  if test $pike_cv_func_fpsetmask = yes; then
    printf "%s\n" "#define HAVE_FPSETMASK 1" >>confdefs.h

  else :; fi

########################################################################

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fpsetround" >&5
printf %s "checking for working fpsetround... " >&6; }
  if test ${pike_cv_func_fpsetround+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

#ifndef FP_RN
#define FP_RN 0
#endif /* FP_RN */

int
main (void)
{

  fpsetround(FP_RN);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_func_fpsetround=yes
else case e in #(
  e) pike_cv_func_fpsetround=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <stdlib.h>
#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

#ifndef FP_RN
#define FP_RN 0
#endif /* FP_RN */

int main() {

  fpsetround(FP_RN);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_func_fpsetround=yes
else case e in #(
  e) pike_cv_func_fpsetround=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_fpsetround" >&5
printf "%s\n" "$pike_cv_func_fpsetround" >&6; }
  if test $pike_cv_func_fpsetround = yes; then
    printf "%s\n" "#define HAVE_FPSETROUND 1" >>confdefs.h

  else :; fi

########################################################################

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working isless" >&5
printf %s "checking for working isless... " >&6; }
  if test ${pike_cv_func_isless+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif


int
main (void)
{

  int t = isless(0.0, 0.0);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_func_isless=yes
else case e in #(
  e) pike_cv_func_isless=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <stdlib.h>
#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif


int main() {

  int t = isless(0.0, 0.0);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_func_isless=yes
else case e in #(
  e) pike_cv_func_isless=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_isless" >&5
printf "%s\n" "$pike_cv_func_isless" >&6; }
  if test $pike_cv_func_isless = yes; then
    printf "%s\n" "#define HAVE_ISLESS 1" >>confdefs.h

  else :; fi

########################################################################

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working isunordered" >&5
printf %s "checking for working isunordered... " >&6; }
  if test ${pike_cv_func_isunordered+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif


int
main (void)
{

  int t = isunordered(0.0, 0.0);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_func_isunordered=yes
else case e in #(
  e) pike_cv_func_isunordered=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <stdlib.h>
#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif


int main() {

  int t = isunordered(0.0, 0.0);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_func_isunordered=yes
else case e in #(
  e) pike_cv_func_isunordered=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_isunordered" >&5
printf "%s\n" "$pike_cv_func_isunordered" >&6; }
  if test $pike_cv_func_isunordered = yes; then
    printf "%s\n" "#define HAVE_ISUNORDERED 1" >>confdefs.h

  else :; fi


########################################################################

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working dlopen" >&5
printf %s "checking for working dlopen... " >&6; }
  if test ${pike_cv_func_dlopen+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <dlfcn.h>

int
main (void)
{

  dlopen(0, 0);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_func_dlopen=yes
else case e in #(
  e) pike_cv_func_dlopen=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <stdlib.h>
#include <dlfcn.h>

int main() {

  dlopen(0, 0);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_func_dlopen=yes
else case e in #(
  e) pike_cv_func_dlopen=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_dlopen" >&5
printf "%s\n" "$pike_cv_func_dlopen" >&6; }
  if test $pike_cv_func_dlopen = yes; then
    printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h

  else :; fi


########################################################################

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working rint" >&5
printf %s "checking for working rint... " >&6; }
  if test ${pike_cv_func_rint+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif /* HAVE_IEEEFP_H */

int
main (void)
{

#ifdef HAVE_FPSETROUND
  /* Round to nearest */
#ifndef FP_RN
#define FP_RN 0
#endif /* FP_RN */
  fpsetround(FP_RN);
#endif /* HAVE_FPSETROUND */
  if(rint(0.1) != 0.0 ||
     rint(0.6) != 1.0) exit(1);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_func_rint=yes
else case e in #(
  e) pike_cv_func_rint=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <stdlib.h>
#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif /* HAVE_IEEEFP_H */

int main() {

#ifdef HAVE_FPSETROUND
  /* Round to nearest */
#ifndef FP_RN
#define FP_RN 0
#endif /* FP_RN */
  fpsetround(FP_RN);
#endif /* HAVE_FPSETROUND */
  if(rint(0.1) != 0.0 ||
     rint(0.6) != 1.0) exit(1);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_func_rint=yes
else case e in #(
  e) pike_cv_func_rint=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_rint" >&5
printf "%s\n" "$pike_cv_func_rint" >&6; }
  if test $pike_cv_func_rint = yes; then
    printf "%s\n" "#define HAVE_RINT 1" >>confdefs.h

  else :; fi


#############################################################################

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GetSystemTimeAsFileTime" >&5
printf %s "checking for working GetSystemTimeAsFileTime... " >&6; }
  if test ${pike_cv_func_GetSystemTimeAsFileTime+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#ifdef HAVE_WINBASE_H
#include <winbase.h>
#endif

int
main (void)
{

  FILETIME f;
  GetSystemTimeAsFileTime(&f);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_func_GetSystemTimeAsFileTime=yes
else case e in #(
  e) pike_cv_func_GetSystemTimeAsFileTime=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <stdlib.h>
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#ifdef HAVE_WINBASE_H
#include <winbase.h>
#endif

int main() {

  FILETIME f;
  GetSystemTimeAsFileTime(&f);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_func_GetSystemTimeAsFileTime=yes
else case e in #(
  e) pike_cv_func_GetSystemTimeAsFileTime=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_GetSystemTimeAsFileTime" >&5
printf "%s\n" "$pike_cv_func_GetSystemTimeAsFileTime" >&6; }
  if test $pike_cv_func_GetSystemTimeAsFileTime = yes; then
    printf "%s\n" "#define HAVE_GETSYSTEMTIMEASFILETIME 1" >>confdefs.h

  else :; fi

#############################################################################

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working gethostname" >&5
printf %s "checking for working gethostname... " >&6; }
  if test ${pike_cv_func_gethostname+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_WINSOCK2_H
#include <winsock2.h>
#elif defined(HAVE_WINSOCK_H)
#include <winsock.h>
#endif

int
main (void)
{

  char buffer[10000];
  char *x=gethostname(buffer,sizeof(buffer));
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_func_gethostname=yes
else case e in #(
  e) pike_cv_func_gethostname=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_WINSOCK2_H
#include <winsock2.h>
#elif defined(HAVE_WINSOCK_H)
#include <winsock.h>
#endif

int main() {

  char buffer[10000];
  char *x=gethostname(buffer,sizeof(buffer));
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_func_gethostname=yes
else case e in #(
  e) pike_cv_func_gethostname=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_gethostname" >&5
printf "%s\n" "$pike_cv_func_gethostname" >&6; }
  if test $pike_cv_func_gethostname = yes; then
    printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h

  else :; fi

########################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can declare environ" >&5
printf %s "checking if we can declare environ... " >&6; }
if test ${pike_cv_declare_environ+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>

int
main (void)
{

  extern char **environ;
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_declare_environ=yes
else case e in #(
  e) pike_cv_declare_environ=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_declare_environ" >&5
printf "%s\n" "$pike_cv_declare_environ" >&6; }
if test "x$pike_cv_declare_environ" = xyes ; then
  printf "%s\n" "#define DECLARE_ENVIRON 1" >>confdefs.h

fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for union wait (old BSD convention)" >&5
printf %s "checking for union wait (old BSD convention)... " >&6; }
if test ${pike_cv_union_wait+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif /* HAVE_SYS_WAIT_H */

int
main (void)
{

  union wait status;
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_union_wait=yes
else case e in #(
  e) pike_cv_union_wait=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_union_wait" >&5
printf "%s\n" "$pike_cv_union_wait" >&6; }
if test "x$pike_cv_union_wait" = "xyes" ; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether union wait is really needed" >&5
printf %s "checking whether union wait is really needed... " >&6; }
  if test ${pike_cv_union_wait_needed+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif /* HAVE_SYS_WAIT_H */

int
main (void)
{

  int status;
  return WIFEXITED(status) || 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_union_wait_needed=no
else case e in #(
  e) pike_cv_union_wait_needed=yes ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_union_wait_needed" >&5
printf "%s\n" "$pike_cv_union_wait_needed" >&6; }
  if test "x$pike_cv_union_wait_needed" = "xyes" ; then
    printf "%s\n" "#define HAVE_UNION_WAIT 1" >>confdefs.h

  else :; fi
else :; fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to extract an unsigned char" >&5
printf %s "checking how to extract an unsigned char... " >&6; }
if test ${pike_cv_method_extract_uchar+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
if test "$cross_compiling" = yes
then :
  pike_cv_method_extract_uchar=not_by_cast
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
int main(void)
{
  char i,*p;
  i=-10;
  p=&i;
  if(*(unsigned char *)(p)!= 0x100 - 10) exit(1);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_method_extract_uchar=by_cast
else case e in #(
  e) pike_cv_method_extract_uchar=not_by_cast ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
 ;;
esac
fi


if test "$pike_cv_method_extract_uchar" = by_cast; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: by cast" >&5
printf "%s\n" "by cast" >&6; }
  printf "%s\n" "#define EXTRACT_UCHAR_BY_CAST 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not by cast" >&5
printf "%s\n" "not by cast" >&6; }
fi

########################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to extract a signed char" >&5
printf %s "checking how to extract a signed char... " >&6; }
if test ${pike_cv_method_extract_char+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
if test "$cross_compiling" = yes
then :
  pike_cv_method_extract_char=not_by_cast
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
int main(void)
{
  char i,*p;
  i=-10;
  p=&i;
  if(*(signed char *)(p)!= -10) exit(1);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_method_extract_char=by_cast
else case e in #(
  e) pike_cv_method_extract_char=not_by_cast ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
 ;;
esac
fi


if test "$pike_cv_method_extract_char" = by_cast; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: by cast" >&5
printf "%s\n" "by cast" >&6; }
  printf "%s\n" "#define EXTRACT_CHAR_BY_CAST 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not by cast" >&5
printf "%s\n" "not by cast" >&6; }
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if float conversion can cause SIGFPE" >&5
printf %s "checking if float conversion can cause SIGFPE... " >&6; }
if test ${pike_cv_sys_idiot_sigfpe+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
 if test "$cross_compiling" = yes
then :
  pike_cv_sys_idiot_sigfpe=yes
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <math.h>

#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

float foo_float = 0.0;

int main(int argc, char **argv)
{
  float x=2.0, y=-128.0;
#ifdef HAVE_FPSETMASK
  fpsetmask(0);
#endif
  x = pow(2.0, -128.0);
  foo_float = x;
  if (x == 2.0) exit(1);
  x = pow(2.0, 1024.0);
  foo_float = x;
  if(x == 2.0) exit(1);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_sys_idiot_sigfpe=no
else case e in #(
  e) pike_cv_sys_idiot_sigfpe=yes ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi


if test $pike_cv_sys_idiot_sigfpe = yes ; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

  IEEE_FLAG=no
  if test "x${GCC-}" = xyes ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mieee" >&5
printf %s "checking -mieee... " >&6; }
  if test "x$pike_disabled_option_mieee" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_mieee+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mieee"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_mieee=yes
else case e in #(
  e) pike_cv_option_mieee=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mieee=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mieee=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mieee=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mieee=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mieee=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mieee=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mieee=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mieee=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mieee=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mieee=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_mieee" = "xyes" ; then
      CFLAGS="$CFLAGS -mieee"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
      IEEE_FLAG=yes
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

  else


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -ieee" >&5
printf %s "checking -ieee... " >&6; }
  if test "x$pike_disabled_option_ieee" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_ieee+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -ieee"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_ieee=yes
else case e in #(
  e) pike_cv_option_ieee=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_ieee=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_ieee=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_ieee=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_ieee=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_ieee=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_ieee=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_ieee=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_ieee=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_ieee=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_ieee=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_ieee" = "xyes" ; then
      CFLAGS="$CFLAGS -ieee"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
      IEEE_FLAG=yes
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

  fi
  TEST_IGNORE_SIGFPE=yes

  if test $IEEE_FLAG = yes; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if float conversion is still broken" >&5
printf %s "checking if float conversion is still broken... " >&6; }
    if test ${pike_cv_sys_idiot_sigfpe_with_ieee+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
 OLD_CFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS $OPTIMIZE"
 if test "$cross_compiling" = yes
then :
  pike_cv_sys_idiot_sigfpe_with_ieee=yes
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <math.h>

#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

float foo_float = 0.0;

int main(int argc, char **argv)
{
  float x=2.0, y=-128.0;
#ifdef HAVE_FPSETMASK
  fpsetmask(0);
#endif
  x = pow(2.0, -128.0);
  foo_float = x;
  if (x == 2.0) exit(1);
  x = pow(2.0, 1024.0);
  foo_float = x;
  if(x == 2.0) exit(1);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_sys_idiot_sigfpe_with_ieee=no
else case e in #(
  e) pike_cv_sys_idiot_sigfpe_with_ieee=yes ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

  CFLAGS="$OLD_CFLAGS"
 ;;
esac
fi


  if test $pike_cv_sys_idiot_sigfpe_with_ieee = yes ; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    TEST_IGNORE_SIGFPE=no
  fi
fi # IEEE_FLAG

if test $TEST_IGNORE_SIGFPE = yes; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ignoring SIGFPE helps" >&5
printf %s "checking if ignoring SIGFPE helps... " >&6; }
  if test ${pike_cv_sys_ignore_sigfpe+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
 OLD_CFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS $OPTIMIZE"
if test "$cross_compiling" = yes
then :
  pike_cv_sys_ignore_sigfpe=yes
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <signal.h>
#include <math.h>
int counter=0;
RETSIGTYPE func(void)
{
 if(counter++>10) exit(7);
 signal(SIGFPE,func);
}

float foo_float = 0.0;

int main(int argc, char **argv)
{
  float x=2.0, y=-128.0;
  signal(SIGFPE,func);
  x = pow(2.0, -128.0);
  foo_float = x;
  if (x == 2.0) exit(1);
  x = pow(2.0, 1024.0);
  foo_float = x;
  if(x == 2.0) exit(1);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_sys_ignore_sigfpe=yes
else case e in #(
  e) pike_cv_sys_ignore_sigfpe=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

  CFLAGS="$OLD_CFLAGS"
 ;;
esac
fi


if test "$pike_cv_sys_ignore_sigfpe" = yes; then
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
 printf "%s\n" "#define IGNORE_SIGFPE 1" >>confdefs.h

else
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi
fi # TEST_IGNORE_SIGFPE

else
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi # pike_cv_sys_idiot_sigfpe

#############################################################################



{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type of float" >&5
printf %s "checking for type of float... " >&6; }
if test ${pike_cv_float_type+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :

    echo $ac_n "crosscompiling... $ac_c" 1>&6
    # Use some magical constants...
    cat > conftest.$ac_ext <<EOF
#line 107355 "configure"
#include "confdefs.h"
#include <stdio.h>
float float_info[] = {
  0.0,
  14914788644012054221422592.0, 16305677175569252352.0,
  0.0
};
EOF
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
      if test -f "conftest.$ac_objext"; then
        if strings "conftest.$ac_objext" | grep "iEeE_bIg" >/dev/null; then
	  pike_cv_float_type=ieee_big
        elif strings "conftest.$ac_objext" | grep "EeEigIb_" >/dev/null; then
	  pike_cv_float_type=ieee_little
	else
	  pike_cv_float_type=not_ieee
	fi
      else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found - using default." >&5
printf "%s\n" "$as_me: WARNING: Object file not found - using default." >&2;}
	pike_cv_float_type=not_ieee
      fi
    else
      pike_cv_float_type=not_ieee
    fi
    rm -rf conftest*

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <math.h>
#define TY float
#define TEST_float
#define TEST_BIG
#define EXPECTED_SIZE_float 4
#define EXPECTED_SIZE_double 8
void check(TY n, char *pf, char *pd)
{
  int i;
  char *p, *p2 = (char*)&n;
#ifdef TEST_float
    p = pf;
#else
    p = pd;
#endif
  for(i=0; i<sizeof(TY); i++)
#ifdef TEST_BIG
    if(p[i] != p2[i])
      exit(1);
#else
    if(p[i] != p2[sizeof(TY)-i-1])
      exit(1);
#endif
}
int main(void)
{
  if(sizeof(TY)!=EXPECTED_SIZE_float)
    exit(1);
  check((TY)0.0, "\000\000\000\000", "\000\000\000\000\000\000\000\000");
  check((TY)1.0, "\077\200\000\000", "\077\360\000\000\000\000\000\000");
  check((TY)-1.0, "\277\200\000\000", "\277\360\000\000\000\000\000\000");
  check((TY)2.0, "\100\000\000\000", "\100\000\000\000\000\000\000\000");
  check((TY)1.5, "\077\300\000\000", "\077\370\000\000\000\000\000\000");
  check((TY)0.032999999821186065673828125, "\075\007\053\002", "\077\240\345\140\100\000\000\000");
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_float_type=ieee_big
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :
  pike_cv_float_type=not_ieee
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <math.h>
#define TY float
#define TEST_float
#define TEST_LITTLE
#define EXPECTED_SIZE_float 4
#define EXPECTED_SIZE_double 8
void check(TY n, char *pf, char *pd)
{
  int i;
  char *p, *p2 = (char*)&n;
#ifdef TEST_float
    p = pf;
#else
    p = pd;
#endif
  for(i=0; i<sizeof(TY); i++)
#ifdef TEST_BIG
    if(p[i] != p2[i])
      exit(1);
#else
    if(p[i] != p2[sizeof(TY)-i-1])
      exit(1);
#endif
}
int main(void)
{
  if(sizeof(TY)!=EXPECTED_SIZE_float)
    exit(1);
  check((TY)0.0, "\000\000\000\000", "\000\000\000\000\000\000\000\000");
  check((TY)1.0, "\077\200\000\000", "\077\360\000\000\000\000\000\000");
  check((TY)-1.0, "\277\200\000\000", "\277\360\000\000\000\000\000\000");
  check((TY)2.0, "\100\000\000\000", "\100\000\000\000\000\000\000\000");
  check((TY)1.5, "\077\300\000\000", "\077\370\000\000\000\000\000\000");
  check((TY)0.032999999821186065673828125, "\075\007\053\002", "\077\240\345\140\100\000\000\000");
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_float_type=ieee_little
else case e in #(
  e) pike_cv_float_type=not_ieee ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi

if test "$pike_cv_float_type" = ieee_big; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: IEEE big endian" >&5
printf "%s\n" "IEEE big endian" >&6; }
  printf "%s\n" "#define FLOAT_IS_IEEE_BIG 1" >>confdefs.h

elif test "$pike_cv_float_type" = ieee_little; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: IEEE little endian" >&5
printf "%s\n" "IEEE little endian" >&6; }
  printf "%s\n" "#define FLOAT_IS_IEEE_LITTLE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not IEEE" >&5
printf "%s\n" "not IEEE" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type of double" >&5
printf %s "checking for type of double... " >&6; }
if test ${pike_cv_double_type+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :

    echo $ac_n "crosscompiling... $ac_c" 1>&6
    # Use some magical constants...
    cat > conftest.$ac_ext <<EOF
#line 107533 "configure"
#include "confdefs.h"
#include <stdio.h>
double double_info[] = {
  0.0,
  12794738495187527498222028847205909954314554441725728393516969126669975252147490126864122090122288822751876426313291683594796075946303753742007913302630260537160845833197547903208108732031187791380480.0,
  0.0
};
EOF
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
      if test -f "conftest.$ac_objext"; then
        if strings "conftest.$ac_objext" | grep "iEeE_bIg" >/dev/null; then
	  pike_cv_double_type=ieee_big
        elif strings "conftest.$ac_objext" | grep "gIb_EeEi" >/dev/null; then
	  pike_cv_double_type=ieee_little
	else
	  pike_cv_double_type=not_ieee
	fi
      else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found - using default." >&5
printf "%s\n" "$as_me: WARNING: Object file not found - using default." >&2;}
	pike_cv_float_type=not_ieee
      fi
    else
      pike_cv_float_type=not_ieee
    fi
    rm -rf conftest*

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <math.h>
#define TY double
#define TEST_double
#define TEST_BIG
#define EXPECTED_SIZE_float 4
#define EXPECTED_SIZE_double 8
void check(TY n, char *pf, char *pd)
{
  int i;
  char *p, *p2 = (char*)&n;
#ifdef TEST_float
    p = pf;
#else
    p = pd;
#endif
  for(i=0; i<sizeof(TY); i++)
#ifdef TEST_BIG
    if(p[i] != p2[i])
      exit(1);
#else
    if(p[i] != p2[sizeof(TY)-i-1])
      exit(1);
#endif
}
int main(void)
{
  if(sizeof(TY)!=EXPECTED_SIZE_double)
    exit(1);
  check((TY)0.0, "\000\000\000\000", "\000\000\000\000\000\000\000\000");
  check((TY)1.0, "\077\200\000\000", "\077\360\000\000\000\000\000\000");
  check((TY)-1.0, "\277\200\000\000", "\277\360\000\000\000\000\000\000");
  check((TY)2.0, "\100\000\000\000", "\100\000\000\000\000\000\000\000");
  check((TY)1.5, "\077\300\000\000", "\077\370\000\000\000\000\000\000");
  check((TY)0.032999999821186065673828125, "\075\007\053\002", "\077\240\345\140\100\000\000\000");
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_double_type=ieee_big
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :
  pike_cv_double_type=not_ieee
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <math.h>
#define TY double
#define TEST_double
#define TEST_LITTLE
#define EXPECTED_SIZE_float 4
#define EXPECTED_SIZE_double 8
void check(TY n, char *pf, char *pd)
{
  int i;
  char *p, *p2 = (char*)&n;
#ifdef TEST_float
    p = pf;
#else
    p = pd;
#endif
  for(i=0; i<sizeof(TY); i++)
#ifdef TEST_BIG
    if(p[i] != p2[i])
      exit(1);
#else
    if(p[i] != p2[sizeof(TY)-i-1])
      exit(1);
#endif
}
int main(void)
{
  if(sizeof(TY)!=EXPECTED_SIZE_double)
    exit(1);
  check((TY)0.0, "\000\000\000\000", "\000\000\000\000\000\000\000\000");
  check((TY)1.0, "\077\200\000\000", "\077\360\000\000\000\000\000\000");
  check((TY)-1.0, "\277\200\000\000", "\277\360\000\000\000\000\000\000");
  check((TY)2.0, "\100\000\000\000", "\100\000\000\000\000\000\000\000");
  check((TY)1.5, "\077\300\000\000", "\077\370\000\000\000\000\000\000");
  check((TY)0.032999999821186065673828125, "\075\007\053\002", "\077\240\345\140\100\000\000\000");
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_double_type=ieee_little
else case e in #(
  e) pike_cv_double_type=not_ieee ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi

if test "$pike_cv_double_type" = ieee_big; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: IEEE big endian" >&5
printf "%s\n" "IEEE big endian" >&6; }
  printf "%s\n" "#define DOUBLE_IS_IEEE_BIG 1" >>confdefs.h

elif test "$pike_cv_double_type" = ieee_little; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: IEEE little endian" >&5
printf "%s\n" "IEEE little endian" >&6; }
  printf "%s\n" "#define DOUBLE_IS_IEEE_LITTLE 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not IEEE" >&5
printf "%s\n" "not IEEE" >&6; }
fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for volatile" >&5
printf %s "checking for volatile... " >&6; }
if test ${pike_cv_volatile+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
 volatile int foo=1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_volatile=yes
else case e in #(
  e) pike_cv_volatile=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi


if test "$pike_cv_volatile" = yes; then
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
 printf "%s\n" "#define VOLATILE volatile" >>confdefs.h

else
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
 printf "%s\n" "#define VOLATILE /**/" >>confdefs.h

fi

########################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
printf %s "checking for sig_atomic_t... " >&6; }
if test ${ac_cv_type_sig_atomic_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <signal.h>
#ifdef HAVE_CRT_SIGNAL_H
#include <crt/signal.h>
#endif
#include <sys/types.h>
#include <stdlib.h>
#include <stddef.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP_TRADITIONAL "sig_atomic_t" >/dev/null 2>&1
then :
  ac_cv_type_sig_atomic_t=yes
else case e in #(
  e) ac_cv_type_sig_atomic_t=no ;;
esac
fi
rm -rf conftest*

 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
printf "%s\n" "$ac_cv_type_sig_atomic_t" >&6; }
if test x"$ac_cv_type_sig_atomic_t" = xno; then
  printf "%s\n" "#define sig_atomic_t int" >>confdefs.h

else
  :
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal handlers reset automatically" >&5
printf %s "checking if signal handlers reset automatically... " >&6; }
if test ${pike_cv_sys_signal_oneshot+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :
  pike_cv_sys_signal_oneshot=yes
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <signal.h>
#include <sys/types.h>
#include <stdlib.h>
#include <stddef.h>
#ifdef HAVE_POLL_H
#include <poll.h>
#endif
#include <string.h>
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
VOLATILE sig_atomic_t sigrun[2]= { 0, 0 };
RETSIGTYPE func(int sig)
{
  write(2, "func called\n", sizeof("func called\n") - sizeof(""));
  sigrun[0] = -1;
}

int main(void)
{
#define sig SIGSEGV

#ifdef HAVE_SIGACTION
  {
    static struct sigaction action;
    action.sa_handler= func;
    sigfillset(&action.sa_mask);
#ifdef SA_INTERRUPT
    action.sa_flags=SA_INTERRUPT;
#endif
    sigaction(sig,&action,0);
  }
#else
#ifdef HAVE_SIGVEC
  {
    static struct sigvec action;
    action.sv_handler= func;
    action.sv_mask=-1;
#ifdef SV_INTERRUPT
    action.sv_flags=SV_INTERRUPT;
#endif
    sigvec(sig,&action,0);
  }
#else
  signal(sig, func);
#endif
#endif

  kill(getpid(), sig);
#ifdef HAVE_POLL
  struct pollfd sentinel;
  while(!strlen((char *)sigrun)) poll(&sentinel,0,100);
#else
  while(!strlen((char *)sigrun)) sleep(1);
#endif
  sigrun[0]=0;
  kill(getpid(), sig);
#ifdef HAVE_POLL
  while(!strlen((char *)sigrun)) poll(&sentinel,0,100);
#else
  while(!strlen((char *)sigrun)) sleep(1);
#endif
  sigrun[0]=0;
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_sys_signal_oneshot=no
else case e in #(
  e) pike_cv_sys_signal_oneshot=yes ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi


if test "$pike_cv_sys_signal_oneshot" = yes; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define SIGNAL_ONESHOT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

########################################################################
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking full availability of struct rusage members" >&5
printf %s "checking full availability of struct rusage members... " >&6; }
if test ${pike_cv_func_getrusage_full+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/time.h>
#ifdef HAVE_SYS_RUSAGE_H
#include <sys/rusage.h>
#endif
#include <sys/resource.h>
#ifndef RUSAGE_SELF
#define RUSAGE_SELF     0
#endif

int
main (void)
{

    struct rusage rus;
    long *v = (long *)main;
    getrusage(RUSAGE_SELF, &rus);
    *v++ = rus.ru_maxrss;
    *v++ = rus.ru_ixrss;
    *v++ = rus.ru_idrss;
    *v++ = rus.ru_isrss;
    *v++ = rus.ru_minflt;
    *v++ = rus.ru_majflt;
    *v++ = rus.ru_nswap;
    *v++ = rus.ru_inblock;
    *v++ = rus.ru_oublock;
    *v++ = rus.ru_msgsnd;
    *v++ = rus.ru_msgrcv;
    *v++ = rus.ru_nsignals;
    *v++ = rus.ru_nvcsw;
    *v++ = rus.ru_nivcsw;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_func_getrusage_full=yes

else case e in #(
  e) pike_cv_func_getrusage_full=no
   ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
 ;;
esac
fi


if test "$pike_cv_func_getrusage_full" = yes; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: all there" >&5
printf "%s\n" "all there" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: getrusage is restricted" >&5
printf "%s\n" "getrusage is restricted" >&6; }
  printf "%s\n" "#define GETRUSAGE_RESTRICTED 1" >>confdefs.h

fi

#############################################################################
#
# __func__ is new in ISO C 9x
#
# It should expand to the name of the current function, and is
# useful for debug.

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __func__ exists and works" >&5
printf %s "checking if __func__ exists and works... " >&6; }
if test ${pike_cv_have_working___func__+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :
  pike_cv_have_working___func__=no
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <string.h>
int main(void)
{
  exit(strcmp("main", __func__));
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_have_working___func__=yes
else case e in #(
  e) pike_cv_have_working___func__=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_working___func__" >&5
printf "%s\n" "$pike_cv_have_working___func__" >&6; }
if test "$pike_cv_have_working___func__" = yes; then
  printf "%s\n" "#define HAVE_WORKING___FUNC__ 1" >>confdefs.h

else :; fi

# gcc has __FUNCTION__ instead.

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __FUNCTION__ exists and works" >&5
printf %s "checking if __FUNCTION__ exists and works... " >&6; }
if test ${pike_cv_have_working___FUNCTION__+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :
  pike_cv_have_working___FUNCTION__=no
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <string.h>
int main(void)
{
  exit(strcmp("main", __FUNCTION__));
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_have_working___FUNCTION__=yes
else case e in #(
  e) pike_cv_have_working___FUNCTION__=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_working___FUNCTION__" >&5
printf "%s\n" "$pike_cv_have_working___FUNCTION__" >&6; }
if test "$pike_cv_have_working___FUNCTION__" = yes; then
  printf "%s\n" "#define HAVE_WORKING___FUNCTION__ 1" >>confdefs.h

else :; fi

#############################################################################

if test "$with_machine_code" = "yes" ; then
  cat >>confdefs.h <<_ACEOF
#define PIKE_BYTECODE_METHOD PIKE_BYTECODE_`echo $pike_cv_machine_code_arch | tr '[a-z]' '[A-Z]'`
_ACEOF

  byte_code_format=$pike_cv_machine_code_arch
else
  printf "%s\n" "#define PIKE_BYTECODE_METHOD PIKE_BYTECODE_DEFAULT" >>confdefs.h

  byte_code_format="virtual machine"
fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lc __declspec" >&5
printf %s "checking for lc __declspec... " >&6; }
if test ${pike_cv_lc___declspec+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :

    echo $ac_n "crosscompiling... $ac_c" 1>&6
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <stdarg.h>
__declspec(noreturn) void fatal(char *foo,...);

__declspec(noreturn) void fatal(char *foo,...)
{
  va_list args;
  va_start(foo,args);
  printf(foo,args);
  va_end(args);
  exit(2);
}

int
main (void)
{

  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_lc___declspec=yes
else case e in #(
  e) pike_cv_lc___declspec=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
__declspec(noreturn) void fatal(char *foo,...);

__declspec(noreturn) void fatal(char *foo,...)
{
  va_list args;
  va_start(foo,args);
  printf(foo,args);
  va_end(args);
  exit(2);
}

int main(void) {  exit(0); }


_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_lc___declspec=yes
else case e in #(
  e) pike_cv_lc___declspec=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_lc___declspec" >&5
printf "%s\n" "$pike_cv_lc___declspec" >&6; }
if test "$pike_cv_lc___declspec" = yes; then
  printf "%s\n" "#define HAVE_DECLSPEC 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc function attributes" >&5
printf %s "checking for gcc function attributes... " >&6; }
if test ${pike_cv_gcc_attributes+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :

    echo $ac_n "crosscompiling... $ac_c" 1>&6
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
void fatal(char *foo,...) __attribute__ ((noreturn,format (printf,1,2)));
int sqr(int x) __attribute__ ((const));

int sqr(int x) { return x*x; }

void fatal(char *foo,...)
{
  va_list args;
  va_start(args, foo);
  printf(foo,args);
  va_end(args);
  exit(2);
}

int
main (void)
{

  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_gcc_attributes=yes
else case e in #(
  e) pike_cv_gcc_attributes=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
void fatal(char *foo,...) __attribute__ ((noreturn,format (printf,1,2)));
int sqr(int x) __attribute__ ((const));

int sqr(int x) { return x*x; }

void fatal(char *foo,...)
{
  va_list args;
  va_start(args, foo);
  printf(foo,args);
  va_end(args);
  exit(2);
}

int main(void) {  exit(0); }


_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_gcc_attributes=yes
else case e in #(
  e) pike_cv_gcc_attributes=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_gcc_attributes" >&5
printf "%s\n" "$pike_cv_gcc_attributes" >&6; }
if test "$pike_cv_gcc_attributes" = yes; then
  printf "%s\n" "#define HAVE_FUNCTION_ATTRIBUTES 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if va_list is a state pointer" >&5
printf %s "checking if va_list is a state pointer... " >&6; }
if test ${pike_cv_va_list_is_state_ptr+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :
  # FIXME:
    pike_cv_va_list_is_state_ptr=unknown

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdarg.h>

void bar(va_list args)
{
  va_arg(args, int);
}

int foo(int a, ...)
{
  va_list args;

  va_start(args, a);

  bar(args);

  a = va_arg(args, int);

  va_end(args);

  return a;
}

int main(void)
{
  return foo(2, 1, 0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_va_list_is_state_ptr=yes
else case e in #(
  e) pike_cv_va_list_is_state_ptr=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi

if test "$pike_cv_va_list_is_state_ptr" = "yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define VA_LIST_IS_STATE_PTR 1" >>confdefs.h

elif test "$pike_cv_va_list_is_state_ptr" = "unknown"; then
  # FIXME: "no" works on most stuff except gcc/x86_64.
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown -- assume no" >&5
printf "%s\n" "unknown -- assume no" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

# Can't use AC_CHECK_FUNC for this since it usually is a macro.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
printf %s "checking for va_copy... " >&6; }
if test ${pike_cv_has_va_copy+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdarg.h>
#ifndef va_copy
    void *f = (void *) va_copy;
#endif

int
main (void)
{

#ifdef va_copy
    /* If there is a macro with this name we assume it takes the place of the function. */
    return 0;
#else
    return f != va_copy;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_has_va_copy=yes
else case e in #(
  e) pike_cv_has_va_copy=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
 ;;
esac
fi

if test "$pike_cv_has_va_copy" = yes; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_VA_COPY 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set things nonblocking" >&5
printf %s "checking how to set things nonblocking... " >&6; }
if test ${pike_cv_sys_nonblock+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    OCPPFLAGS="$CPPFLAGS"
    pike_cv_sys_bad_signal_handling=""
    pike_cv_sys_nonblock=UNKNOWN
    # USE_FCNTL_O_NONBLOCK seems to be the most common, so let's start
    # with it.
    for method in USE_FCNTL_O_NONBLOCK USE_FCNTL_FNDELAY USE_FCNTL_O_NDELAY \
		  USE_IOCTL_FIONBIO USE_IOCTLSOCKET_FIONBIO; do
      # Make sure we can run configure in a separate directory,
      # and set the method to try.
      CPPFLAGS="$OCPPFLAGS -D$method"
      if test "$cross_compiling" = yes
then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define TESTING
#include "fd_control.c"
#define main dummy_main

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

	  pike_cv_sys_nonblock=$method
	  break;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define TESTING
#include "fd_control.c"

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :

        pike_cv_sys_nonblock=$method
	break;

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

    done
    if test "$pike_cv_sys_nonblock" = "UNKNOWN"; then
      # Some OS's don't like signals in combination with threads.
      # Try compiling half the test...

      # USE_FCNTL_O_NONBLOCK seems to be the most common, so let's start
      # with it.
      for method in USE_FCNTL_O_NONBLOCK USE_FCNTL_FNDELAY USE_FCNTL_O_NDELAY \
		    USE_IOCTL_FIONBIO USE_IOCTLSOCKET_FIONBIO; do
	# Make sure we can run configure in a separate directory,
	# and set the method to try.
	CPPFLAGS="$OCPPFLAGS -D$method -DSHORT_TEST"
	if test "$cross_compiling" = yes
then :

	  :; # Not meaningful.

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define TESTING
#include "fd_control.c"

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :

	  pike_cv_sys_bad_signal_handling=" (signal handling failed)"
          pike_cv_sys_nonblock=$method
          break;

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

      done
    else :; fi
    # Restore CPPFLAGS
    CPPFLAGS="$OCPPFLAGS"
 ;;
esac
fi


if test "${pike_cv_sys_nonblock}" = "UNKNOWN"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none found" >&5
printf "%s\n" "none found" >&6; }
  if test "${pike_cv_sys_os}" = "Windows_NT" -o "${pike_cv_sys_os}" = "AmigaOS"; then :; else
    config_fail="No way to set nonblocking I/O"
  fi
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_sys_nonblock$pike_cv_sys_bad_signal_handling" >&5
printf "%s\n" "$pike_cv_sys_nonblock$pike_cv_sys_bad_signal_handling" >&6; }
  printf "%s\n" "#define $pike_cv_sys_nonblock 1" >>confdefs.h

fi

rm -f core

##########################################################################
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how well OOB handling works" >&5
printf %s "checking how well OOB handling works... " >&6; }
if test ${pike_cv_system_oob_working+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "x$enable_binary" = "xno"; then
    pike_cv_system_oob_working=WORKING
  else
    if test "$cross_compiling" = yes
then :
  pike_cv_system_oob_working=UNKNOWN
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/stat.h>
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif
#include <fcntl.h>
#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

#define SP_DEBUG(X)	fprintf X

#ifndef POLLRDNORM
#define POLLRDNORM      POLLIN
#endif

#ifndef POLLRDBAND
#define POLLRDBAND      POLLPRI
#endif

#ifndef POLLWRBAND
#define POLLWRBAND      POLLOUT
#endif

int set_nonblocking(int fd,int which)
{
  int ret;
  do
  {
#if defined(USE_IOCTL_FIONBIO) || defined(__NT__)
    ret=ioctl(fd, FIONBIO, &which);
#else

#ifdef USE_FCNTL_O_NDELAY
    ret=fcntl(fd, F_SETFL, which?O_NDELAY:0);
#else

#ifdef USE_FCNTL_O_NONBLOCK
    ret=fcntl(fd, F_SETFL, which?O_NONBLOCK:0);
#else

#ifdef USE_FCNTL_FNDELAY
    ret=fcntl(fd, F_SETFL, which?FNDELAY:0);
#else

#error Do not know how to set your filedescriptors nonblocking.

#endif
#endif
#endif
#endif
  } while(ret <0 && errno==EINTR);
  return ret;
}


FILE *output;
static int socketpair_fd = -1;
int my_socketpair(int family, int type, int protocol, int sv[2])
{
  static struct sockaddr_in my_addr;
  struct sockaddr_in addr,addr2;
  int retries=0;
  ACCEPT_SIZE_T len;

  memset(&addr,0,sizeof(struct sockaddr_in));

  if(socketpair_fd==-1)
  {
    if((socketpair_fd=socket(AF_INET, SOCK_STREAM, 0)) < 0) {
      SP_DEBUG((stderr, "my_socketpair:socket() failed, errno:%d\n",
		errno));
      return -1;
    }

    memset(&my_addr,0,sizeof(struct sockaddr_in));
    my_addr.sin_family=AF_INET;
    my_addr.sin_addr.s_addr=htonl(INADDR_ANY);
    my_addr.sin_port=htons(0);


    if(bind(socketpair_fd, (struct sockaddr *)&my_addr, sizeof(addr)) < 0)
    {
      SP_DEBUG((stderr, "my_socketpair:bind() failed, errno:%d\n",
		errno));
      close(socketpair_fd);
      socketpair_fd=-1;
      return -1;
    }

    len = sizeof(my_addr);
    if(getsockname(socketpair_fd,(struct sockaddr *)&my_addr,&len) < 0)
    {
      SP_DEBUG((stderr, "my_socketpair:getsockname() failed, errno:%d\n",
		errno));
      close(socketpair_fd);
      socketpair_fd=-1;
      return -1;
    }

    if(listen(socketpair_fd, 5) < 0)
    {
      SP_DEBUG((stderr, "my_socketpair:listen() failed, errno:%d\n",
		errno));
      close(socketpair_fd);
      socketpair_fd=-1;
      return -1;
    }

    set_nonblocking(socketpair_fd, 1);

    my_addr.sin_addr.s_addr=inet_addr("127.0.0.1");
  }


  if((sv[1]=socket(AF_INET, SOCK_STREAM, 0)) <0) {
    SP_DEBUG((stderr, "my_socketpair:socket() failed, errno:%d (2)\n",
	      errno));
    return -1;
  }


retry_connect:
  retries++;
  if(connect(sv[1], (struct sockaddr *)&my_addr, sizeof(addr)) < 0)
  {
    SP_DEBUG((stderr, "my_socketpair:connect() failed, errno:%d (%d)\n",
	      errno, EWOULDBLOCK));
    if(errno != EWOULDBLOCK)
    {
      int tmp2;
#ifdef ETIMEDOUT
      if (errno == ETIMEDOUT) {
        SP_DEBUG((stderr,
	          "my_socketpair: ETIMEDOUT!\n"
		  "Do you have a firewall in the way?\n"));
	/* ETIMEDOUT hints that quite a bit of time has passed,
	 * so no need for further retries. */
	fprintf(output, "TIMEOUT\n");
	exit(0);
      }
#endif
#ifdef ECONNREFUSED
      if (errno == ECONNREFUSED) {
        SP_DEBUG((stderr,
	          "my_socketpair: ECONNREFUSED!\n"
		  "Do you have a firewall in the way?\n"));
      }
#endif
      for(tmp2=0;tmp2<20;tmp2++)
      {
	int tmp;
	ACCEPT_SIZE_T len2;

	len2=sizeof(addr);
	tmp=accept(socketpair_fd,(struct sockaddr *)&addr,&len2);

	if(tmp!=-1) {
	  SP_DEBUG((stderr, "my_socketpair:accept() failed, errno:%d\n",
		    errno));
	  close(tmp);
	}
	else
	  break;
      }
      if(retries > 20) return -1;
      goto retry_connect;
    }
  }


  do
  {
    ACCEPT_SIZE_T len3;

    len3=sizeof(addr);
  retry_accept:
    sv[0]=accept(socketpair_fd,(struct sockaddr *)&addr,&len3);

    if(sv[0] < 0) {
      SP_DEBUG((stderr, "my_socketpair:accept() failed, errno:%d (2)\n",
		errno));
      if(errno==EINTR) goto retry_accept;
      close(sv[1]);
      return -1;
    }

    set_nonblocking(sv[0],0);

    len=sizeof(addr);
    if(getpeername(sv[0], (struct sockaddr *)&addr,&len)) {
      SP_DEBUG((stderr, "my_socketpair:getpeername() failed, errno:%d\n",
		errno));
      return -1;
    }
    len=sizeof(addr);
    if(getsockname(sv[1],(struct sockaddr *)&addr2,&len) < 0) {
      SP_DEBUG((stderr, "my_socketpair:getsockname() failed, errno:%d\n",
		errno));
      return -1;
    }
  }while(len < (int)sizeof(addr) ||
	 addr2.sin_addr.s_addr != addr.sin_addr.s_addr ||
	 addr2.sin_port != addr.sin_port);

  SP_DEBUG((stderr, "my_socketpair: succeeded\n",
	    errno));

  return 0;
}

int socketpair_ultra(int family, int type, int protocol, int sv[2])
{
  int retries=0;

  while(1)
  {
    int ret=my_socketpair(family, type, protocol, sv);
    if(ret>=0) return ret;

    switch(errno)
    {
      case EAGAIN: break;

      case EADDRINUSE:
	if(retries++ > 10) return ret;
	break;

      default:
	return ret;
    }
  }
}


struct pollfd pollset[2];
int fds[2];
static int sent=0;
int xcalls=0;

int ping(int fd)
{
  int r;
  sent++;
  if(sent > 10000)
  {
    fprintf(output,xcalls ? "SEMIWORKING" : "WORKING");
    exit(0);
  }
  do {
    r=send(fds[fd],"x",1,MSG_OOB);
  }while(r < 0 && errno==EINTR);
  if(r!=1)
  {
    SP_DEBUG((stderr,
	      "ping(%d): send(%d, \"x\", 1, MSG_OOB) failed with errno %d\n",
	      fd, fds[fd], errno));
    fprintf(output,"XBYTES\n");
    exit(0);
  }

  pollset[fd].events &=~ POLLWRBAND;
  pollset[!fd].events |= POLLRDBAND;
}

int pong(int fd)
{
  char foo[2];
  int r;
   do {
    r=recv(fds[fd], &foo, 2, MSG_OOB);
  }while(r < 0 && errno==EINTR);
  if(r!=1)
  {
    fprintf(output,"XBYTES\n");
    exit(0);
  }

  pollset[fd].events &=~ POLLRDBAND;
  pollset[fd].events |=  POLLWRBAND;
}

void pang(int fd)
{
  char foo[2];
  int r;
  xcalls++;
   do {
    r=recv(fds[fd], &foo, 2, 0);
  }while(r < 0 && errno==EINTR);
  if(r<0 && errno==EAGAIN) return;

  fprintf(output,"INLINED\n");
  exit(0);
}

int main(int argc, char **argv)
{
  int e;
  output=fopen("conftest.out.2","w");
  socketpair_ultra(AF_UNIX, SOCK_STREAM, 0, fds);

#define INIT(X) do {\
  set_nonblocking(fds[X],1); \
  pollset[X].fd=fds[X]; \
  pollset[X].events=POLLIN; \
}while(0);

  INIT(0);
  INIT(1);

  ping(0);

  while(1)
  {
    if(!poll(pollset, 2, 500))
    {
      fprintf(output,sent>1 ? "WORKS_A_LITTLE\n" : "TIMEOUT\n");
      exit(0);
    }

    for(e=0;e<2;e++)
    {
      if(pollset[e].revents & POLLERR) exit(1);
      if(pollset[e].revents & POLLRDBAND) pong(e);
      if(pollset[e].revents & POLLWRBAND) ping(e);
      if(pollset[e].revents & POLLIN) pang(e);
    }
  }
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_system_oob_working="`cat conftest.out.2`"
else case e in #(
  e) pike_cv_system_oob_working=UNKNOWN ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi


    rm -f conftest.out.2 >/dev/null 2>/dev/null || :
  fi
 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_system_oob_working" >&5
printf "%s\n" "$pike_cv_system_oob_working" >&6; }

case "x$pike_cv_system_oob_working" in
  xWORKING)        printf "%s\n" "#define PIKE_OOB_WORKS 3" >>confdefs.h
  ;;
  xSEMIWORKING)    printf "%s\n" "#define PIKE_OOB_WORKS 2" >>confdefs.h
  ;;
  xINLINED)        printf "%s\n" "#define PIKE_OOB_WORKS 1" >>confdefs.h
  ;;
  xWORKS_A_LITTLE) printf "%s\n" "#define PIKE_OOB_WORKS 1" >>confdefs.h
  ;;
  xXBYTES)         printf "%s\n" "#define PIKE_OOB_WORKS 0" >>confdefs.h
  ;;
  xTIMEOUT)        printf "%s\n" "#define PIKE_OOB_WORKS 0" >>confdefs.h
  ;;
  *)               printf "%s\n" "#define PIKE_OOB_WORKS -1" >>confdefs.h
 ;; #unknown
esac

#######################################################################


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to printf size_t" >&5
printf %s "checking how to printf size_t... " >&6; }
  if test ${pike_cv_printf_size_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

int
main (void)
{

size_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      found=no
      for mod in "z" "" "l" "ll" "L" ; do
	if test "$cross_compiling" = yes
then :
  :
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

#include <stddef.h>
#include <stdio.h>

int main() {
  char buf[50];
  if (((size_t)4711) > ((size_t)-4711)) {
    /* Signed type. */
    if (sizeof(size_t)>4)
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d",
	      ((size_t) 4711) << 32, -((size_t) 4711) << 32, 17);
      return !!strcmp("20233590931456,-20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d", (size_t) 4711, (size_t)-4711, 17);
      return !!strcmp("4711,-4711,17", buf);
    }
  } else {
    /* Unsigned type. */
    if (sizeof(size_t)>4)
    {
      sprintf(buf, "%${mod}d,%d",
	      ((size_t) 4711) << 32, 17);
      return !!strcmp("20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%d", (size_t) 4711, 17);
      return !!strcmp("4711,17", buf);
    }
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_printf_size_t="${mod}"; found=yes
else case e in #(
  e) : ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

	test ${found} = yes && break
      done
      test ${found} = no && pike_cv_printf_size_t=unknown

else case e in #(
  e)
      pike_cv_printf_size_t=nonexistent
     ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;;
esac
fi

  if test x"${pike_cv_printf_size_t}" = xnonexistent; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: type does not exist" >&5
printf "%s\n" "type does not exist" >&6; }
  else
    if test x"${pike_cv_printf_size_t}" = xunknown ; then
      res=""
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none found, defaulting to %${res}u, %${res}x" >&5
printf "%s\n" "none found, defaulting to %${res}u, %${res}x" >&6; }
    else
      res="${pike_cv_printf_size_t}"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: %${res}u, %${res}x" >&5
printf "%s\n" "%${res}u, %${res}x" >&6; }
    fi
    printf "%s\n" "#define PRINTSIZET \"${res}\"" >>confdefs.h

  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to printf ptrdiff_t" >&5
printf %s "checking how to printf ptrdiff_t... " >&6; }
  if test ${pike_cv_printf_ptrdiff_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

int
main (void)
{

ptrdiff_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      found=no
      for mod in "t" "" "l" "ll" "L" ; do
	if test "$cross_compiling" = yes
then :
  :
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

#include <stddef.h>
#include <stdio.h>

int main() {
  char buf[50];
  if (((ptrdiff_t)4711) > ((ptrdiff_t)-4711)) {
    /* Signed type. */
    if (sizeof(ptrdiff_t)>4)
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d",
	      ((ptrdiff_t) 4711) << 32, -((ptrdiff_t) 4711) << 32, 17);
      return !!strcmp("20233590931456,-20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d", (ptrdiff_t) 4711, (ptrdiff_t)-4711, 17);
      return !!strcmp("4711,-4711,17", buf);
    }
  } else {
    /* Unsigned type. */
    if (sizeof(ptrdiff_t)>4)
    {
      sprintf(buf, "%${mod}d,%d",
	      ((ptrdiff_t) 4711) << 32, 17);
      return !!strcmp("20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%d", (ptrdiff_t) 4711, 17);
      return !!strcmp("4711,17", buf);
    }
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_printf_ptrdiff_t="${mod}"; found=yes
else case e in #(
  e) : ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

	test ${found} = yes && break
      done
      test ${found} = no && pike_cv_printf_ptrdiff_t=unknown

else case e in #(
  e)
      pike_cv_printf_ptrdiff_t=nonexistent
     ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;;
esac
fi

  if test x"${pike_cv_printf_ptrdiff_t}" = xnonexistent; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: type does not exist" >&5
printf "%s\n" "type does not exist" >&6; }
  else
    if test x"${pike_cv_printf_ptrdiff_t}" = xunknown ; then
      res=""
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none found, defaulting to %${res}d, %${res}x" >&5
printf "%s\n" "none found, defaulting to %${res}d, %${res}x" >&6; }
    else
      res="${pike_cv_printf_ptrdiff_t}"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: %${res}d, %${res}x" >&5
printf "%s\n" "%${res}d, %${res}x" >&6; }
    fi
    printf "%s\n" "#define PRINTPTRDIFFT \"${res}\"" >>confdefs.h

  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to printf off_t" >&5
printf %s "checking how to printf off_t... " >&6; }
  if test ${pike_cv_printf_off_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

int
main (void)
{

off_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      found=no
      for mod in "" "t" "j" "l" "ll" "L" ; do
	if test "$cross_compiling" = yes
then :
  :
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

#include <stddef.h>
#include <stdio.h>

int main() {
  char buf[50];
  if (((off_t)4711) > ((off_t)-4711)) {
    /* Signed type. */
    if (sizeof(off_t)>4)
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d",
	      ((off_t) 4711) << 32, -((off_t) 4711) << 32, 17);
      return !!strcmp("20233590931456,-20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d", (off_t) 4711, (off_t)-4711, 17);
      return !!strcmp("4711,-4711,17", buf);
    }
  } else {
    /* Unsigned type. */
    if (sizeof(off_t)>4)
    {
      sprintf(buf, "%${mod}d,%d",
	      ((off_t) 4711) << 32, 17);
      return !!strcmp("20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%d", (off_t) 4711, 17);
      return !!strcmp("4711,17", buf);
    }
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_printf_off_t="${mod}"; found=yes
else case e in #(
  e) : ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

	test ${found} = yes && break
      done
      test ${found} = no && pike_cv_printf_off_t=unknown

else case e in #(
  e)
      pike_cv_printf_off_t=nonexistent
     ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;;
esac
fi

  if test x"${pike_cv_printf_off_t}" = xnonexistent; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: type does not exist" >&5
printf "%s\n" "type does not exist" >&6; }
  else
    if test x"${pike_cv_printf_off_t}" = xunknown ; then
      res=""
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none found, defaulting to %${res}d, %${res}x" >&5
printf "%s\n" "none found, defaulting to %${res}d, %${res}x" >&6; }
    else
      res="${pike_cv_printf_off_t}"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: %${res}d, %${res}x" >&5
printf "%s\n" "%${res}d, %${res}x" >&6; }
    fi
    printf "%s\n" "#define PRINTOFFT \"${res}\"" >>confdefs.h

  fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to printf INT64" >&5
printf %s "checking how to printf INT64... " >&6; }
  if test ${pike_cv_printf_INT64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

int
main (void)
{

INT64 tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

      found=no
      for mod in "" "l" "ll" "I64" "L" ; do
	if test "$cross_compiling" = yes
then :
  :
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

#include <stddef.h>
#include <stdio.h>

int main() {
  char buf[50];
  if (((INT64)4711) > ((INT64)-4711)) {
    /* Signed type. */
    if (sizeof(INT64)>4)
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d",
	      ((INT64) 4711) << 32, -((INT64) 4711) << 32, 17);
      return !!strcmp("20233590931456,-20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d", (INT64) 4711, (INT64)-4711, 17);
      return !!strcmp("4711,-4711,17", buf);
    }
  } else {
    /* Unsigned type. */
    if (sizeof(INT64)>4)
    {
      sprintf(buf, "%${mod}d,%d",
	      ((INT64) 4711) << 32, 17);
      return !!strcmp("20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%d", (INT64) 4711, 17);
      return !!strcmp("4711,17", buf);
    }
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_printf_INT64="${mod}"; found=yes
else case e in #(
  e) : ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

	test ${found} = yes && break
      done
      test ${found} = no && pike_cv_printf_INT64=unknown

else case e in #(
  e)
      pike_cv_printf_INT64=nonexistent
     ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;;
esac
fi

  if test x"${pike_cv_printf_INT64}" = xnonexistent; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: type does not exist" >&5
printf "%s\n" "type does not exist" >&6; }
  else
    if test x"${pike_cv_printf_INT64}" = xunknown ; then
      res="l"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none found, defaulting to %${res}d, %${res}x" >&5
printf "%s\n" "none found, defaulting to %${res}d, %${res}x" >&6; }
    else
      res="${pike_cv_printf_INT64}"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: %${res}d, %${res}x" >&5
printf "%s\n" "%${res}d, %${res}x" >&6; }
    fi
    printf "%s\n" "#define PRINTINT64 \"${res}\"" >>confdefs.h

  fi


#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C99-style designator struct initialization" >&5
printf %s "checking for C99-style designator struct initialization... " >&6; }
if test ${pike_cv_c99_struct_init+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    struct foo {
      int a;
      float b;
    } f = { .b = 0.5, .a = 1 };

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_c99_struct_init=yes

else case e in #(
  e)  pike_cv_c99_struct_init=no  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi

if test "x$pike_cv_c99_struct_init" = "xyes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

printf "%s\n" "#define HAVE_C99_STRUCT_INIT /**/" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C99-style struct literal expressions" >&5
printf %s "checking for C99-style struct literal expressions... " >&6; }
if test ${pike_cv_c99_struct_literal_expr+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    struct foo {
      int a;
      float b;
    };

int
main (void)
{

    struct foo f = ((struct foo){ 1, 0.5 });

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   pike_cv_c99_struct_literal_expr=yes

else case e in #(
  e)  pike_cv_c99_struct_literal_expr=no  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;;
esac
fi

if test "x$pike_cv_c99_struct_literal_expr" = "xyes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

printf "%s\n" "#define HAVE_C99_STRUCT_LITERAL_EXPR /**/" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pike_port.c works in CONFIGURE_TEST mode" >&5
printf %s "checking if pike_port.c works in CONFIGURE_TEST mode... " >&6; }
if test ${pike_cv_configure_test_pike_port_c+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :
  pike_cv_configure_test_pike_port_c=unknown
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>

#define CONFIGURE_TEST
/* The following headers can cause problems in this mode, and they easily
   get indirectly included unless we do this. */
#define STRALLOC_H
#define SVALUE_H
#define ARRAY_H

#include "pike_port.c"

int main(void)
{
  return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_configure_test_pike_port_c=yes
else case e in #(
  e) pike_cv_configure_test_pike_port_c=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_configure_test_pike_port_c" >&5
printf "%s\n" "$pike_cv_configure_test_pike_port_c" >&6; }
if test "x$pike_cv_configure_test_pike_port_c" = xno; then
  as_fn_error $? "

pike_port.c does not work in CONFIGURE_TEST mode. This is an internal
problem in Pike. configure aborted since further configure tests will
be unreliable.
" "$LINENO" 5
  exit 1
fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gettimeofday takes two arguments" >&5
printf %s "checking if gettimeofday takes two arguments... " >&6; }
if test ${pike_cv_func_gettimeofday_has_two_args+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
#  include <sys/time.h>
# else
#   include <time.h>
# endif
#endif

#ifndef HAVE_STRUCT_TIMEVAL
struct timeval
{
  long tv_sec;
  long tv_usec;
};
#endif

int
main (void)
{

{
  struct timeval tv;
  gettimeofday(&tv,(void *)0);
  exit(0);
}

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
   pike_cv_func_gettimeofday_has_two_args=yes
else case e in #(
  e) pike_cv_func_gettimeofday_has_two_args=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
#  include <sys/time.h>
# else
#   include <time.h>
# endif
#endif

#ifndef HAVE_STRUCT_TIMEVAL
struct timeval
{
  long tv_sec;
  long tv_usec;
};
#endif

int main(void) {
  struct timeval tv;
  gettimeofday(&tv,(void *)0);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
   pike_cv_func_gettimeofday_has_two_args=yes

else case e in #(
  e)  pike_cv_func_gettimeofday_has_two_args=no
   ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi


if test $pike_cv_func_gettimeofday_has_two_args = yes; then
  printf "%s\n" "#define GETTIMEOFDAY_TAKES_TWO_ARGS 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_gettimeofday_has_two_args" >&5
printf "%s\n" "$pike_cv_func_gettimeofday_has_two_args" >&6; }

if test "x$ac_cv_func_gethrvtime" = xyes; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethrvtime really works" >&5
printf %s "checking if gethrvtime really works... " >&6; }
  if test ${pike_cv_func_gethrvtime_works+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :
  pike_cv_func_gethrvtime_works=no
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>

#define CONFIGURE_TEST
/* The following headers can cause problems in this mode, and they easily
   get indirectly included unless we do this. */
#define STRALLOC_H
#define SVALUE_H
#define ARRAY_H

#include "pike_port.c"

int main(void)
{
  time_t start = TIME (0), now;
  hrtime_t vt = gethrvtime(), next_vt;
  if (start == (time_t) -1) return 1; /* Normal time doesn't work. */
  do { /* Take some cpu time. */
    now = TIME (0);
    next_vt = gethrvtime();
    if (next_vt < vt) return 2; /* Shouldn't go backward. */
    vt = next_vt;
  } while (now != (time_t) -1 && now <= start + 1);
  if (now == (time_t) -1) return 3; /* Normal time does not work. */
  if (vt <= 0) return 4; /* Should have accounted for some cpu time. */
  return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_func_gethrvtime_works=yes
else case e in #(
  e) pike_cv_func_gethrvtime_works=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_gethrvtime_works" >&5
printf "%s\n" "$pike_cv_func_gethrvtime_works" >&6; }
  if test "x$pike_cv_func_gethrvtime_works" = xyes; then
    printf "%s\n" "#define HAVE_WORKING_GETHRVTIME 1" >>confdefs.h

  fi
fi

#######################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rusage.c works in CONFIGURE_TEST mode" >&5
printf %s "checking if rusage.c works in CONFIGURE_TEST mode... " >&6; }
if test ${pike_cv_configure_test_rusage_c+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :
  pike_cv_configure_test_rusage_c=unknown
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define POSIX_SOURCE	1
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE	200112L
#endif

#include <stdio.h>

#define CONFIGURE_TEST
/* The following headers can cause problems in this mode, and they easily
   get indirectly included unless we do this. */
#define STRALLOC_H
#define SVALUE_H
#define ARRAY_H

#include "pike_port.c"		/* Tested earlier, but might be required. */
#include "rusage.c"

int main(void)
{
  init_rusage();
  return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_configure_test_rusage_c=yes
else case e in #(
  e) pike_cv_configure_test_rusage_c=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_configure_test_rusage_c" >&5
printf "%s\n" "$pike_cv_configure_test_rusage_c" >&6; }
if test "x$pike_cv_configure_test_rusage_c" = xno; then
  as_fn_error $? "

rusage.c does not work in CONFIGURE_TEST mode. This is an internal
problem in Pike. configure aborted since further configure tests will
be unreliable.
" "$LINENO" 5
  exit 1
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pike_threads.c works in CONFIGURE_TEST mode" >&5
printf %s "checking if pike_threads.c works in CONFIGURE_TEST mode... " >&6; }
if test ${pike_cv_configure_test_threads_c+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test "$cross_compiling" = yes
then :
  pike_cv_configure_test_threads_c=unknown
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define POSIX_SOURCE	1
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE	200112L
#endif

#include <stdio.h>

#define CONFIGURE_TEST
/* The following headers can cause problems in this mode, and they easily
   get indirectly included unless we do this. */
#define STRALLOC_H
#define SVALUE_H
#define ARRAY_H

#include "pike_port.c"		/* Tested earlier, but might be required. */
#include "pike_threads.c"

int main(void)
{
  return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_configure_test_threads_c=yes
else case e in #(
  e) pike_cv_configure_test_threads_c=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_configure_test_threads_c" >&5
printf "%s\n" "$pike_cv_configure_test_threads_c" >&6; }
if test "x$pike_cv_configure_test_threads_c" = xno; then
  as_fn_error $? "

pike_threads.c does not work in CONFIGURE_TEST mode. This is an internal
problem in Pike. configure aborted since further configure tests will
be unreliable.
" "$LINENO" 5
  exit 1
fi

#######################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fallback cpu time is thread local" >&5
printf %s "checking if fallback cpu time is thread local... " >&6; }
if test ${pike_cv_thread_local_cpu_time+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  rm -f confdefs.out.2 2>/dev/null
  if test "$cross_compiling" = yes
then :

      pike_cv_thread_local_cpu_time="unknown (cross compilation)"

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define POSIX_SOURCE	1
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE	200112L
#endif

#include <stdio.h>

#ifdef PIKE_THREADS

#define CONFIGURE_TEST
#define CONFIGURE_TEST_FALLBACK_GCT
/* The following headers can cause problems in this mode, and they easily
   get indirectly included unless we do this. */
#define STRALLOC_H
#define SVALUE_H
#define ARRAY_H

#include "pike_port.c"
#include "rusage.c"
#include "pike_threads.c"

PIKE_MUTEX_T m;
COND_T c;

cpu_time_t work_time, wait_time;

TH_RETURN_TYPE work_thread (void *dummy)
{
  struct timeval rt_start, rt;
  cpu_time_t start;
  fputs("work_thread waiting.\n", stderr);
  mt_lock (&m);
  fputs("work_thread start.\n", stderr);
  GETTIMEOFDAY (&rt_start);
  start = get_cpu_time();
  do {
    cpu_time_t t = get_cpu_time();
    GETTIMEOFDAY (&rt);
    if (t == (cpu_time_t) -1) {
      work_time = t;
      break;
    }
    work_time = t - start;
  } while (work_time < (CPU_TIME_TICKS / 10) && rt.tv_sec <= rt_start.tv_sec + 1);
  fputs("work_thread releasing main.\n", stderr);
  co_signal (&c);
  mt_unlock (&m);
  fputs("work_thread done.\n", stderr);
  return 0;
}

int main(void)
{
  cpu_time_t start;
  THREAD_T worker;
  FILE *res = fopen ("confdefs.out.2", "w"); /* weird name to circumvent configure cleanups */
  if (!res) return 2;

  init_rusage();
  really_low_th_init();

  mt_init (&m);
  co_init (&c);

  mt_lock (&m);
  fputs("Creating work_thread.\n", stderr);
  if (th_create (&worker, work_thread, NULL)) {
    fputs("unknown (failed to create thread)", res);
    fclose (res);
    return 3;
  }

  start = get_cpu_time();
  co_wait (&c, &m);
  wait_time = get_cpu_time() - start;
  if (start == (cpu_time_t) -1 || work_time == (cpu_time_t) -1) {
    fputs("unknown (get_cpu_time does not work)", res);
    fclose (res);
    return 4;
  }
  if (work_time < (CPU_TIME_TICKS / 10)) {
    fprintf (res, "unknown (get_cpu_time does not work - loop took only %ld ms)",
	     (long) (work_time / (CPU_TIME_TICKS / 1000)));
    fclose (res);
    return 5;
  }

  if (work_time > wait_time)
    return 0; /* It is thread local. */
  else {
    fputs("no", res);
    fclose (res);
    return 1; /* It is not thread local. */
  }
}

#else
int main(void)
{
  FILE *res = fopen ("confdefs.out.2", "w"); /* weird name to circumvent configure cleanups */
  if (!res) return 6;
  fputs("no", res);
  fclose (res);
  return 1;
}
#endif

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :

      pike_cv_thread_local_cpu_time=yes

else case e in #(
  e)
      if test -f confdefs.out.2 && test "x`cat confdefs.out.2`" != x; then
        pike_cv_thread_local_cpu_time=`cat confdefs.out.2`
      else
	as_fn_error $? "

Test failed to compile or execute.
Problems in pike_port.c, rusage.c or pike_threads.c when CONFIGURE_TEST
is defined?
" "$LINENO" 5
        # Don't set pike_cv_thread_local_cpu_time here so that the
        # failure doesn't get cached.
	result="unknown (compilation or execution failed)"
	exit 1
      fi
     ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

  rm -f confdefs.out.2 2>/dev/null
 ;;
esac
fi

test x"$pike_cv_thread_local_cpu_time" != x && result="$pike_cv_thread_local_cpu_time"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $result" >&5
printf "%s\n" "$result" >&6; }
if test "$pike_cv_thread_local_cpu_time" = yes; then
  printf "%s\n" "#define FB_CPU_TIME_IS_THREAD_LOCAL PIKE_YES" >>confdefs.h

elif test "$pike_cv_thread_local_cpu_time" = no; then
  printf "%s\n" "#define FB_CPU_TIME_IS_THREAD_LOCAL PIKE_NO" >>confdefs.h

else
  printf "%s\n" "#define FB_CPU_TIME_IS_THREAD_LOCAL PIKE_UNKNOWN" >>confdefs.h

fi

#######################################################################


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setenv" >&5
printf %s "checking for setenv... " >&6; }
if test ${ac_cv_func_setenv+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef setenv
void *f = (void *) setenv;
#endif

int
main (void)
{

#ifdef setenv
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != setenv;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setenv=yes"
else case e in #(
  e) eval "ac_cv_func_setenv=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define setenv to an innocuous variant, in case <limits.h> declares setenv.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setenv innocuous_setenv

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setenv (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setenv
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setenv ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setenv) || defined (__stub___setenv)
choke me
#else
char (*f) () = setenv;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != setenv;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_setenv=yes"
else case e in #(
  e) eval "ac_cv_func_setenv=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsetenv" >&5
printf %s "checking for unsetenv... " >&6; }
if test ${ac_cv_func_unsetenv+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef unsetenv
void *f = (void *) unsetenv;
#endif

int
main (void)
{

#ifdef unsetenv
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != unsetenv;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_unsetenv=yes"
else case e in #(
  e) eval "ac_cv_func_unsetenv=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define unsetenv to an innocuous variant, in case <limits.h> declares unsetenv.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define unsetenv innocuous_unsetenv

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char unsetenv (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef unsetenv
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char unsetenv ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_unsetenv) || defined (__stub___unsetenv)
choke me
#else
char (*f) () = unsetenv;
#endif
#ifdef __cplusplus
}
#endif

int
main (void)
{
return f != unsetenv;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "ac_cv_func_unsetenv=yes"
else case e in #(
  e) eval "ac_cv_func_unsetenv=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  fi
 ;;
esac
fi

if eval "test \"`echo '$ac_cv_func_'unsetenv`\" = yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


if test "$ac_cv_func_setenv:$ac_cv_func_unsetenv" = "yes:yes"; then
  :
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if putenv() always requires a '='" >&5
printf %s "checking if putenv() always requires a '='... " >&6; }
  if test ${pike_cv_putenv_always_requires_equal+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    if test "$cross_compiling" = yes
then :
  pike_cv_putenv_always_requires_equal=cross-compiling

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  #include <stdlib.h>

      int main(void)
      {
        putenv ("foo=bar");
        if (putenv ("foo") && !putenv ("foo=") && !getenv ("foo")) return 1;
        return 0;
      }
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_putenv_always_requires_equal=no
else case e in #(
  e) pike_cv_putenv_always_requires_equal=yes ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   ;;
esac
fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_putenv_always_requires_equal" >&5
printf "%s\n" "$pike_cv_putenv_always_requires_equal" >&6; }
  if test "x$pike_cv_putenv_always_requires_equal" != "xno"; then

printf "%s\n" "#define PUTENV_ALWAYS_REQUIRES_EQUAL /**/" >>confdefs.h

  fi
fi

#######################################################################

# Set info about shared libraries.







# SO is the extension of shared libraries
# -- usually so, sl on HP-UX
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SO" >&5
printf %s "checking SO... " >&6; }
if test -z "$SO"
then
	case "$pike_cv_sys_os" in
	hp*|HP*)   SO=sl;;
	*)	   SO=so;;
	esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
printf "%s\n" "$SO" >&6; }

# CCSHARED are the C *flags* used to create objects to go into a shared
# library -- this is only needed for a few systems
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
printf %s "checking CCSHARED... " >&6; }
if test ${pike_cv_sys_ccshared+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  if test -z "$CCSHARED" ; then
    if test "$GCC" = yes ; then
      case "$pike_cv_sys_os" in
        BSD/OS*)
          case "`uname -r`" in
            4.*) CCSHARED="-fPIC";;
            *) CCSHARED="";;
          esac
        ;;
        Darwin*)
          CCSHARED="-fPIC"
        ;;
        Haiku*|BeOS*)
          CCSHARED="-fPIC"
        ;;
        Solaris*)
          # The Image module runs out of symbol reference space unless we
          # use the large PIC model:
          # ld: fatal: too many symbols require `small' PIC references:
          # 	have 2205, maximum 2048 -- recompile some modules -K PIC.
          CCSHARED="-fPIC"
        ;;
        *)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -fPIC" >&5
printf %s "checking -fPIC... " >&6; }
  if test "x$pike_disabled_option_fPIC" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -fpic" >&5
printf %s "checking -fpic... " >&6; }
  if test "x$pike_disabled_option_fpic" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_fpic+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fpic"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_fpic=yes
else case e in #(
  e) pike_cv_option_fpic=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fpic=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fpic=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fpic=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fpic=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fpic=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fpic=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fpic=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fpic=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fpic=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fpic=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_fpic" = "xyes" ; then
      CCSHARED="$CCSHARED -fpic"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


  else
    if test ${pike_cv_option_fPIC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fPIC"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_fPIC=yes
else case e in #(
  e) pike_cv_option_fPIC=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fPIC=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fPIC=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fPIC=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fPIC=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fPIC=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fPIC=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fPIC=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fPIC=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fPIC=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fPIC=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_fPIC" = "xyes" ; then
      CCSHARED="$CCSHARED -fPIC"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -fpic" >&5
printf %s "checking -fpic... " >&6; }
  if test "x$pike_disabled_option_fpic" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_fpic+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fpic"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_fpic=yes
else case e in #(
  e) pike_cv_option_fpic=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fpic=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fpic=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fpic=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fpic=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fpic=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fpic=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fpic=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fpic=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fpic=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fpic=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_fpic" = "xyes" ; then
      CCSHARED="$CCSHARED -fpic"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi


    fi
  fi

        ;;
      esac
    else
      case "$pike_cv_sys_os" in
        Darwin*)
          CCSHARED="-fPIC"
        ;;
        Haiku*|BeOS*)
          CCSHARED="-fPIC"
        ;;
        hp*|HP*) CCSHARED="+z"; ;;
        FreeBSD*) CCSHARED="-fpic";;
        SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
        UnixWare*|OpenUNIX*) CCSHARED="-KPIC -dy -Bdynamic";;
        Solaris*)
          CCSHARED="-KPIC -Bdynamic"
          # Note: The Image module fails with
          #   Failed to load library: ld.so.1: pike: fatal:
          #   relocation error: R_AMD64_PC32: file Image.so:
          #   symbol really_free_svalue: value 0x28001ca5b2d does not fit
          # if the module is compiled with the default model.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -xmodel=medium" >&5
printf %s "checking -xmodel=medium... " >&6; }
  if test "x$pike_disabled_option_xmodel_medium" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_xmodel_medium+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xmodel=medium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_xmodel_medium=yes
else case e in #(
  e) pike_cv_option_xmodel_medium=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xmodel_medium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xmodel_medium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xmodel_medium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xmodel_medium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xmodel_medium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xmodel_medium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xmodel_medium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xmodel_medium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xmodel_medium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xmodel_medium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_xmodel_medium" = "xyes" ; then
      CCSHARED="$CCSHARED -xmodel=medium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

        ;;
        Windows_NT*) CCSHARED="-shared" ;;
      esac
    fi
  fi
  OLD_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS $CCSHARED"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

int
main (void)
{
exit(0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  pike_cv_sys_ccshared="$CCSHARED"
else case e in #(
  e) pike_cv_sys_ccshared='' ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  CFLAGS="$OLD_CFLAGS"
 ;;
esac
fi

CCSHARED="$pike_cv_sys_ccshared"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
printf "%s\n" "$CCSHARED" >&6; }

# LDSHARED is the ld *command* used to create shared library
# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
printf %s "checking LDSHARED... " >&6; }
if test -z "$LDSHARED" ; then
  # Notes:
  #
  #   * For gcc "$REALCC -shared" will work on many platforms.
  #
  #   * For clang "$REALCC -shared" will also work on most platforms
  #     (albeit undocumented).
  #
  #   * Try to avoid using "$REALCC -Wl,-Bshareable" or similar as
  #     it will not inform the compiler wrapper that it is about
  #     to link a shared module, and thus may cause it to provide
  #     extraneous files to the linker (causing warnings like
  #     "cannot find entry symbol __start; not setting start address".

  ldshared_is_cc=yes
  case "$pike_cv_sys_os" in
    AIX*)
      LDSHARED="ld -G"
      ldshared_is_cc=no
    ;;
    Darwin*)
      case "$pike_cv_osx_deployment_target" in
        no)
          # Mac OS X prior to 10.3 need -flat_namespace to support
          # dynamic modules
          LDSHARED="$REALCC $CFLAGS -bundle -bind_at_load -flat_namespace -undefined suppress"
        ;;
        10.*|11.*)
          # 10.3 or newer take advantage of two-level namespaces to avoid
          # symbol collisions for e.g. libjpeg which is referenced from both
          # _Image_JPEG and _Image_TIFF. It requires MACOSX_DEPLOYMENT_TARGET
          # which is initialized in smartlink to 10.3.
          LDSHARED="$REALCC $CFLAGS -bundle -bind_at_load -undefined dynamic_lookup"
        ;;
        *)
          # MacOS X 12.0 and later.
          # More recent X-code complains about use of
          # -undefined dynamic_lookup:
          #
          #   ld: warning: -undefined dynamic_lookup may not work
          #   with chained fixups
          #
          # There we instead use -bundle_loader $pike_bin analogous
          # to the way it is done on NT.
          #
          # On MacOS X 15.0 and later the linker complains about
          # -bind_at_load if -bundle_loader is specified. The
          # flag appears to be redundant, so skip it.
          LDSHARED="$REALCC $CFLAGS -bundle"
          LDSHARED_BASE_REQS="pike"
          LDSHARED_MODULE_ARGS="-bundle_loader `pwd`/pike"
          LDSHARED_MODULE_REQS="`pwd`/pike"
        ;;
      esac
      if test x"$pike_cv_option_Wlno_warn_duplicate_libraries" = "xyes" ; then
         LDSHARED="$LDSHARED -Wl,-no_warn_duplicate_libraries"
      fi
    ;;
    SunOS*)
      LDSHARED="ld"
      ldshared_is_cc=no
      ;;
    Solaris)
      LDSHARED="/usr/ccs/bin/ld -G"
      ldshared_is_cc=no
      ;;
    hp*|HP*)
      LDSHARED="ld -b"
      ldshared_is_cc=no
      ;;
    OSF*)
      LDSHARED="ld -expect_unresolved '*' -shared -msym -O3"
      ldshared_is_cc=no
      ;;
    DYNIX/ptx*)
      LDSHARED="ld -G"
      ldshared_is_cc=no
      ;;
    next*) LDSHARED="$REALCC $CFLAGS -nostdlib -r";;
    Linux*) LDSHARED="$REALCC -shared";;
    GNU/kFreeBSD*) LDSHARED="$REALCC -shared";;
    GNU*) LDSHARED="$REALCC -Wl,-Bshareable";;
    FreeBSD*) LDSHARED="$REALCC -shared";;
    NetBSD*) LDSHARED="$REALCC -shared";;
    OpenBSD*) LDSHARED="$REALCC -shared";;
    Haiku*|BeOS*) LDSHARED="$REALCC -shared";;
    BSD/OS*)
      case "`uname -r`" in
       4-9.*) LDSHARED="$REALCC -shared";;
        *) LDSHARED="shlicc -r"
	   ldshared_is_cc=no
	   ;;
      esac
    ;;
    SCO_SV*) LDSHARED="$REALCC -G -KPIC -Wl,-Bexport";;
    UNIX_SV*)
      LDSHARED="ld -G"
      ldshared_is_cc=no
      ;;
    UnixWare*|OpenUNIX*)
      if test "$GCC" = yes ; then
        LDSHARED="$REALCC -G -fPIC"
      else
        LDSHARED="$REALCC -G -KPIC -Wl,-Bexport"
      fi
    ;;
    Windows_NT*|NT*)
      if test x$with_dynamic_modules != xno; then
        if test "x${GCC-}" = xyes ; then
          LDSHARED="$REALCC -shared"
          LDSHARED_BASE_REQS=pike.exe
          LDSHARED_MODULE_ARGS="`pwd`/pike.exe"
          LDSHARED_MODULE_REQS="`pwd`/pike.exe"
          LC_REQ=""
        else
	  # It's important that we use $(CC) unexpanded here so that any
	  # -MD/-MDd flags also gets passed to the linker.
	  LDSHARED='$(CC) -shared'
	  LDSHARED_BASE_REQS=pike.lib
	  LDSHARED_MODULE_ARGS="-l`pwd`/pike"
	  LDSHARED_MODULE_REQS="`pwd`/pike.lib"
          LDSHARED_MODULE_ARGS="$LDSHARED_MODULE_ARGS -pdb:\$\$modname.pdb"
        fi
      fi
    ;;
    *)
      LDSHARED="ld"
      ldshared_is_cc=no
      ;;
  esac
  if test "$ldshared_is_cc" = "yes" ; then
    # On architectures where the shared linker is the C compiler,
    # options such as -fpic or -fPIC must sometimes also be supplied.
    # Make sure to use the same flavor as when compiling the object files.
    LDSHARED="$LDSHARED $CCSHARED"

    if test "$GCC" = "yes" -a "$pike_cv_is_mingw" != "yes" -a \
            "$pike_cv_sys_os" != "Darwin" ; then
      # On some architectures gcc attempts to link the shared object with
      # the standard startup files (crt0.o et al), which may fail due to
      # relocation errors. The flag -nostartfiles exists in gcc since at
      # least version 3.3.2 from 2003, so this should be safe.
      LDSHARED="$LDSHARED -nostartfiles"
    fi
  fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDSHARED $LDSHARED_MODULE_ARGS" >&5
printf "%s\n" "$LDSHARED $LDSHARED_MODULE_ARGS" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
printf %s "checking LINKFORSHARED... " >&6; }

if test ${pike_cv_sys_linkforshared+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
# LINKFORSHARED are the flags passed to the $(CC) command that links
# the pike executable -- this is only needed for a few systems
if test -z "$LINKFORSHARED"
then
  LINKFORSHARED=""
  if test "$GCC" = yes ; then
    case "$pike_cv_sys_os" in
      AIX*)
        # This is probably wrong, but I don't have a man page for ld yet.
        LINKFORSHARED=""
      ;;
      Darwin*) LINKFORSHARED="-dynamic";;
      hp*|HP*) LINKFORSHARED="-Wl,-E";;
      Linux*) LINKFORSHARED="-rdynamic";;
      Haiku*|BeOS*) LINKFORSHARED="-Xlinker -export-dynamic";;
      BSD/OS*)
        case "`uname -r`" in
         4.*) LINKFORSHARED="-rdynamic";;
       esac
      ;;
      BSD/OS*)
        case "`uname -r`" in
         4.*) LINKFORSHARED="-rdynamic";;
       esac
      ;;
      GNU*) LINKFORSHARED="-rdynamic";;
      NetBSD*) LINKFORSHARED="-Wl,-E";;
      OpenBSD*) LINKFORSHARED="-Wl,-E";;
      next*) LINKFORSHARED="-u libsys_s";;
      SCO_SV*) LINKFORSHARED="-fpic -Wl,-Bexport";;
      # What about UNIX_SV?
      UnixWare*|OpenUNIX*) LINKFORSHARED="-fpic -Wl,-Bexport";;

      FreeBSD*)
        if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See 'config.log' for more details" "$LINENO" 5; }
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
int main(void){exit(
#ifdef __ELF__
    0
#else
    1
#endif
);}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  LINKFORSHARED=-rdynamic
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

      ;;
    esac
  else
    case "$pike_cv_sys_os" in
      AIX*) LINKFORSHARED="-Bexport";;
      Darwin*) LINKFORSHARED="-dynamic";;
      hp*|HP*) LINKFORSHARED="-Wl,-E";;
      Linux*) LINKFORSHARED="-rdynamic";;
      GNU*) LINKFORSHARED="-rdynamic";;
      next*) LINKFORSHARED="-u libsys_s";;
      SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
      # What about UNIX_SV?
      UnixWare*|OpenUNIX*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;

      FreeBSD*)
        if test "$cross_compiling" = yes
then :
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See 'config.log' for more details" "$LINENO" 5; }
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
int main(void){exit(
#ifdef __ELF__
    0
#else
    1
#endif
);}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  LINKFORSHARED=-rdynamic
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

      ;;
    esac
  fi
fi


   OLD_CFLAGS="$CFLAGS"
   CFLAGS="$CFLAGS $LINKFORSHARED"
   if test "$cross_compiling" = yes
then :
  pike_cv_sys_linkforshared=''
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
int main(void) { exit(0); }
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_sys_linkforshared="$LINKFORSHARED"
else case e in #(
  e) pike_cv_sys_linkforshared='' ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

   CFLAGS="$OLD_CFLAGS"
 ;;
esac
fi


LINKFORSHARED="$pike_cv_sys_linkforshared"

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
printf "%s\n" "$LINKFORSHARED" >&6; }

#############################################################################

# In case we're going to use gcc for linking shared objects,
# we should use the -static-libgcc flag if it exists.
# Shared libgcc is nothing but trouble.
STATIC_LIBGCC=""
if test yes = "$GCC" ; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -static-libgcc" >&5
printf %s "checking -static-libgcc... " >&6; }
  if test "x$pike_disabled_option_static_libgcc" = "xyes"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
printf "%s\n" "disabled" >&6; }

  else
    if test ${pike_cv_option_static_libgcc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -static-libgcc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#if SIZEOF_OFF64_T != 0
        /* Make sure that __STDC__ doesn't get set to 1
         * on Solaris with old headers.
         */
        off64_t off64_value = (off64_t)17;
#endif
#endif
        int foo;
        int bar(int argc, char **argv)
        {
          /* The following code triggs gcc:s generation of aline opcodes,
           * which some versions of as does not support.
           */
	  if (argc > 0) argc = 0;
	  return argc;
        }

int
main (void)
{

        return bar(0, (void *)0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  pike_cv_option_static_libgcc=yes
else case e in #(
  e) pike_cv_option_static_libgcc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_static_libgcc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_static_libgcc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_static_libgcc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_static_libgcc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_static_libgcc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_static_libgcc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_static_libgcc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_static_libgcc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_static_libgcc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_static_libgcc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2
     ;;
esac
fi


    if test x"$pike_cv_option_static_libgcc" = "xyes" ; then
      STATIC_LIBGCC="$STATIC_LIBGCC -static-libgcc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }

    fi
  fi

else :; fi

#############################################################################

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if dynamic loading works" >&5
printf %s "checking if dynamic loading works... " >&6; }
if test ${pike_cv_sys_dynamic_loading+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  mybase=""
  case "$LDSHARED_MODULE_ARGS" in
    *-bundle_loader*)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if __GNUC__ >= 4
__attribute__ ((visibility("default")))
# endif
void testfunc2(void) { }

int
main (void)
{
 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

        mybase=mybase
        mv conftest$ac_exeext $mybase

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ! -z "$mybase" ; then
        mv "$mybase" conftest$ac_exeext
        ln -s conftest$ac_exeext "$mybase"
        mybase="-bundle_loader $mybase"
      fi
      ;;

    *pike.exe)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if __GNUC__ >= 4
__attribute__ ((visibility("default")))
# endif
__declspec(dllexport) void testfunc2(void) { }

int
main (void)
{
 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :

        mybase=mybase.exe
        mv conftest$ac_exeext $mybase

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ! -z "$mybase" ; then
        mv "$mybase" conftest$ac_exeext
        ln -s conftest$ac_exeext "$mybase"
      fi
      ;;
  esac

  cat >conftest.c <<EOF
#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#include <stdio.h>
#include <stdlib.h>
#ifdef __NT__
__declspec(dllimport)
#endif
extern void testfunc2(void);
#if __GNUC__ >= 4
__attribute__ ((visibility("default")))
# endif
void testfunc(void) {
  fprintf(stderr,"Calling testfunc2\n");
  testfunc2();
  fprintf(stderr,"testfunc2 returned!\n");
  exit(1);
}
EOF

  echo $CC -c $CFLAGS $CCSHARED conftest.c -o conftest.o 1>&5
  $CC -c $CFLAGS $CCSHARED conftest.c -o conftest.o 1>&5 2>&5

  echo $BINDIR/smartlink $LDSHARED $LDFLAGS conftest.o $mybase -o conftest.$SO 1>&5
  $BINDIR/smartlink $LDSHARED $LDFLAGS conftest.o $mybase -o conftest.$SO 1>&5 2>&5

  if test -f conftest.$SO ; then
    mv conftest.$SO myconftest.so

    OLD_CFLAGS="$CFLAGS"

    CFLAGS="$CFLAGS $LINKFORSHARED"
    OLD_CC="$CC"
    case "$LD" in
      *shlicc)
        CC="$BINDIR/smartlink shlicc"
      ;;
    esac
    if test "$cross_compiling" = yes
then :
  pike_cv_sys_dynamic_loading=no
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#include <stdlib.h>
#define TESTING
#ifdef __NT__
#define USE_DLL
#endif
#include "dynamic_load.c"
#if __GNUC__ >= 4
__attribute__ ((visibility("default")))
# endif
#ifdef __NT__
__declspec(dllexport)
#endif
void testfunc2(void) { exit(0); }

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  pike_cv_sys_dynamic_loading=yes
else case e in #(
  e) pike_cv_sys_dynamic_loading=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

    CFLAGS="$OLD_CFLAGS"
    CC="$OLD_CC"
  else
    pike_cv_sys_dynamic_loading=no
  fi
  rm -f myconftest.so $mybase >/dev/null 2>/dev/null
 ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pike_cv_sys_dynamic_loading" >&5
printf "%s\n" "$pike_cv_sys_dynamic_loading" >&6; }


if test "x$with_dynamic_modules" != "xno" ; then
  if test x$pike_cv_sys_dynamic_loading = xno ; then
    with_dynamic_modules=no
    LDSHARED_BASE_REQS=""
    LDSHARED_MODULE_ARGS=""
    LDSHARED_MODULE_REQS=""
    LDSHARED_MODULE_ARGS=""
  else
    with_dynamic_modules=yes
  fi
fi

crt_type=static

if test x$with_dynamic_modules = xyes \
     -a "x$pike_cv_sys_os" = xWindows_NT ; then
  # If dlls are enabled then compile for and link with the dynamic crt
  # to make all modules share the same crt instance.
  crt_type=dynamic
  printf "%s\n" "#define USE_DLL 1" >>confdefs.h

fi

# Let the --with-crt argument override the chosen crt linkage.
test x"$with_crt" != x && crt_type="$with_crt"

INSTALL_EXPORT_ARGS=''

if test "x$pike_cv_sys_os" = xWindows_NT ; then
  # POSIX-side environment variables are not passed by sprsh.
  INSTALL_EXPORT_ARGS="${INSTALL_EXPORT_ARGS} "'VERSION_SUFFIX=$${PIKE_VERSION_SUFFIX}'
fi

if test x"$crt_type" = xdynamic; then
  CFLAGS="$CFLAGS $dynamic_crt_flag"
  if test x$with_debug_crt = xyes; then
    INSTALL_EXPORT_ARGS="${INSTALL_EXPORT_ARGS} --debug-crt"
  else
    INSTALL_EXPORT_ARGS="${INSTALL_EXPORT_ARGS} --release-crt"
  fi
elif test x"$crt_type" = xstatic; then
  CFLAGS="$CFLAGS $static_crt_flag"
else
  as_fn_error $? "Pass either \"static\" or \"dynamic\" to --with-crt" "$LINENO" 5
fi



# In case the normal libz is linked to the dynamic crt we need to use
# a different one linked with the static crt for the exe installer. We
# check if there is such a thing in the build environment with the
# nonstandard name "z_static".
UNCOMPRESS_LIBZ=-lz
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz_static" >&5
printf %s "checking for inflate in -lz_static... " >&6; }
if test ${ac_cv_lib_z_static_inflate+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lz_static  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char inflate (void);
int
main (void)
{
return inflate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_z_static_inflate=yes
else case e in #(
  e) ac_cv_lib_z_static_inflate=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_static_inflate" >&5
printf "%s\n" "$ac_cv_lib_z_static_inflate" >&6; }
if test "x$ac_cv_lib_z_static_inflate" = xyes
then :
  UNCOMPRESS_LIBZ=-lz_static
fi



#######################################################################
# Since configure doesn't always know if we will be linking with ld or cc,
# We use this little code snippet to add flags to ld that would otherwise
# be given automatically by $(CC) $(CFLAGS)
# /Hubbe
#
if test "$ldflags_is_set" = no ; then
case "x$LD $LDFLAGS" in
  *\$\(CFLAGS\)*)
    # Options in CFLAGS, no stuff needs to be added
  ;;
  x$CC*|x\$\(CC\)*)
    LD="$LD \$(CFLAGS)"
  ;;
  *)
    LD="$LD ${LD_FALLBACK_FLAGS-}"
  ;;
esac

case "x$LDSHARED $LDFLAGS" in
  *\$\(CFLAGS\)*)
    # Options in CFLAGS, no stuff needs to be added
  ;;
  x$CC*|x\$\(CC\)*)
    LDSHARED="$LDSHARED $STATIC_LIBGCC \$(CFLAGS)"
  ;;
  *)
    LDSHARED="$LDSHARED ${LD_FALLBACK_FLAGS-}"
  ;;
esac
fi

##########################################################################

case "x$pike_cv_sys_os" in
  xWindows_NT)
    signal_handler="custom NT"
  ;;

  xAmigaOS)
    signal_handler="custom AmigaOS"
  ;;

  xLinux | *kFreeBSD)
    # Linux's stupid thread implementation doesn't survive USE_WAIT_THREAD.
    # Does not work on FreeBSD 15.0, NetBSD 10.1 or OpenBSD 7.7; the
    # lib/modules/testsuite.in testsuite has several tests they fail with:
    #   "Lost track of a child (pid 19799, errno from wait 10)."
    signal_handler="SIGCHILD"
    printf "%s\n" "#define USE_SIGCHILD 1" >>confdefs.h

  ;;

  *)
    # This is valid for at least Solaris, AIX and Darwin.
    #
    # Note that all of FreeBSD 15.0, NetBSD 10.1 and OpenBSD 7.7 have
    # a waitpid(2) that intermittently fails with errno == 0. This is
    # however better than losing track of children (see above).
    if grep _REENTRANT confdefs.h >/dev/null 2>&1; then
      signal_handler="wait thread"
      printf "%s\n" "#define USE_WAIT_THREAD 1" >>confdefs.h

    else
      signal_handler="SIGCHILD"
      printf "%s\n" "#define USE_SIGCHILD 1" >>confdefs.h

    fi
  ;;
esac

#######################################################################
# Since all $OPTIMIZE flags have to be automatically included in $CFLAGS
# (because otherwise the tests will not be accurate) we have to remove all
# OPTIMIZE flags from the regular CFLAGS...
# (also some other misc work on the flags)

INTERPRET_DEOPTIMIZE=

OPT_GOT_OFLAG=no
OPT_GOT_MCPU=no
OPT_GOT_MTUNE=no
OPT_GOT_MARCH=no
NEW_CFLAGS=
NEW_OPTIMIZE=
OPT_NOT_USED=
for opt in ${CFLAGS-}
do
   case " $OPTIMIZE " in
     *\ $opt\ *) ;;
     *)
       case "$opt" in
	  +O*|-O*)
	    if test "x$OPT_GOT_OFLAG" = "xno"; then
              # only use the first -O flag (from make.conf etc)
	      OPT_GOT_OFLAG=yes
	      if test "x$with_copt" != xno; then
		OPTIMIZE="${OPTIMIZE-} $opt"
	      else
	        OPT_NOT_USED="${OPT_NOT_USED-} $opt"
              fi
	    fi
	    ;;
	  -f*)
	    if test "x$opt" = "x-fomit-frame-pointer" -a \
	            "x$with_machine_code" = xyes; then
	       INTERPRET_DEOPTIMIZE=-fno-omit-frame-pointer

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:

-fno-omit-frame-pointer used for interpret.c,
since the use of machine code is broken by -fomit-frame-pointer.
" >&5
printf "%s\n" "$as_me: WARNING:

-fno-omit-frame-pointer used for interpret.c,
since the use of machine code is broken by -fomit-frame-pointer.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: -fno-omit-frame-pointer used for interpret.c,
since the use of machine code is broken by -fomit-frame-pointer.

EOF

	    fi

	    if test "x$with_copt" != xno; then
	      OPTIMIZE="${OPTIMIZE-} $opt"
	    else
	      OPT_NOT_USED="${OPT_NOT_USED-} $opt"
	    fi
	    ;;
	  -parallel|-ip*)
	    # Flags used by icc and ecc.
	    # They need to be propagated to the linker.
	    OPTIMIZE="${OPTIMIZE-} $opt"
	    EXTRALDFLAGS="${EXTRALDFLAGS} $opt"
	    ;;
          -pipe)
	    OPTIMIZE="${OPTIMIZE-} $opt"
	    ;;
	  -mcpu*)
            if test "x$OPT_GOT_MCPU" = xno; then
 	      NEW_CFLAGS="$NEW_CFLAGS $opt"
	      OPT_GOT_MCPU=yes
	    fi
            ;;
	  -mtune*)
	    if test "x$OPT_GOT_MTUNE" = xno; then
 	      NEW_CFLAGS="$NEW_CFLAGS $opt"
	      OPT_GOT_MTUNE=yes
	    fi
            ;;
	  -march*)
            if test "x$OPT_GOT_MARCH" = xno; then
 	      NEW_CFLAGS="$NEW_CFLAGS $opt"
	      OPT_GOT_MARCH=yes
	    fi
            ;;
          *)
	    NEW_CFLAGS="$NEW_CFLAGS $opt"
	    ;;
       esac
     ;;
   esac
done
CFLAGS="$NEW_CFLAGS"

unset NEW_CFLAGS
unset OPT_GOT_OFLAG
unset OPT_GOT_MCPU
unset OPT_GOT_MTUNE
unset OPT_GOT_ARCH



#############################################################################



#############################################################################
# Remove the extra args temporarily added to CPPFLAGS.

for extra_arg in $CONF_CPPFLAGS_EXTRA; do
  NEW_CPPFLAGS=""
  for arg in $CPPFLAGS; do
    test "$arg" = "$extra_arg" || NEW_CPPFLAGS="$NEW_CPPFLAGS $arg"
  done
  CPPFLAGS="$NEW_CPPFLAGS"
done

#############################################################################

# The following set of substitution variables are used to implement
# two quite different building orders in the makefile. See the comment
# above the "pike" target in Makefile.in.

if test x$with_dynamic_modules = xyes ; then
  dmmsrc="modules/dynamic_module_makefile.in"
  DYNAMIC_MODULE_FLAGS=""
  CCSHARED="${CCSHARED} ${DYNAMIC_MODULE_FLAGS}"
  PIKE_LIB="libpike.so"
  MODULE_O=tmodule.o
  BUILD_PIKE=pike
  POST_MODULE_BUILD_TYPE=dynamic
  STATIC_POST_MODULES_LINKOPTS=
else
  printf "%s\n" "#define USE_SEMIDYNAMIC_MODULES 1" >>confdefs.h

  dmmsrc="modules/semidynamic_module_makefile.in"
  PIKE_LIB="libpike.a"
  MODULE_O=pike_modules.o
  BUILD_PIKE=tpike
  POST_MODULE_BUILD_TYPE=static
  STATIC_POST_MODULES_LINKOPTS=post_modules/linker_options
  DYNAMIC_MODULE_FLAGS=""
fi








#############################################################################

PMOD_TARGETS=`echo $srcdir/*.cmod | sed -e "s/\.cmod/\.c/g" | sed -e "s|$srcdir/|\\$(SRCDIR)/|g"`
test "$PMOD_TARGETS" = '$(SRCDIR)/*.c' && PMOD_TARGETS=


#############################################################################

# Microsoft has decided to make our lives yet more complicated by
# introducing a fancy dependency tracking system in VC8. It got
# manifest files (oooh!) written in xml (aahh!). It got a linker that
# can't make binaries with the dependency info built in from the
# beginning. It got an amazing array of special cases and quirky rules
# on how crt dlls may be loaded and not that's almost certain to nail
# you sooner or later. All in all, it's the most insanely overcomplex
# system to keep your exe and dlls from loading that stinkin' little
# crt dll you can ever imagine. For the full story, see
# http://www.codeproject.com/cpp/vcredists_x86.asp.

if test "x$MTEXE" != x; then
  # Embed the manifests. C.f. http://msdn2.microsoft.com/en-us/library/ms235591.aspx
  # You might want to disable this if you want to try private crts.
  # See also the PRIVATE_CRT parts of install.pike.
  MT_FIX_PIKE_EXE="\
    @if test -f pike.exe.manifest; then \
      echo \"$MTEXE -nologo -manifest pike.exe.manifest '-outputresource:pike.exe;1'\"; \
      $MTEXE -nologo -manifest pike.exe.manifest '-outputresource:pike.exe;1'; \
    else :; fi"
  MT_FIX_MODULE_SO="\
    @if test -f module.so.manifest; then \
      echo \"$MTEXE -nologo -manifest module.so.manifest '-outputresource:module.so;2'\"; \
      $MTEXE -nologo -manifest module.so.manifest '-outputresource:module.so;2'; \
    else :; fi"
else
  MT_FIX_PIKE_EXE=@:
  MT_FIX_MODULE_SO=@:
fi



if test "x$pike_cv_sys_os" = xWindows_NT; then
  if test "x$RCEXE$WINDRES" != x; then
    # Windows icon
    PIKE_ICON_RES=pike_icon.res
  fi
fi


if test "x$enable_pikelib" != "xno"; then
  # Everything needs to be compiled for library use.
  CFLAGS="$CFLAGS $CCSHARED"
  CCSHARED=""
fi

#############################################################################

echo
echo "Compiler summary:"
echo
echo "C Compiler:    $CC"
echo "Preprocessor:  $CPP"
echo "Linker:        $LD"
echo "Shared linker: $LDSHARED"
echo
echo "Shared object extension: $SO"
echo "Dynamic modules: $with_dynamic_modules"
echo
echo "PIKE_LIB:      $PIKE_LIB"
echo
echo "CPPFLAGS:      $CPPFLAGS"
echo "CFLAGS:        $CFLAGS"
echo "CCSHARED:      $CCSHARED"
echo "LINKFORSHARED: $LINKFORSHARED"
echo "LIBGCC:        $LIBGCC"
echo "WARN:          $WARN"
echo "PROFIL:        $PROFIL"
echo "OPTIMIZE:      $OPTIMIZE"
echo "LDFLAGS:       $LDFLAGS"
echo "LIBS:          $LIBS"
echo "prefix:        $prefix"
echo

#############################################################################

export CC CPP LDFLAGS CFLAGS CPPFLAGS LIBS
export prefix exec_prefix OTHERFLAGS
export DEFINES INSTALL

PIKE_SRC_DIR=$srcdir
export PIKE_SRC_DIR
BUILD_BASE=`pwd`
export BUILD_BASE

if test "$pike_cv_sys_os" = "Windows_NT"; then
  # If this doesn't begin with '/', it's relative to pike.exe.
  default_master=../lib/master.pike
elif test "$pike_cv_sys_os" = "AmigaOS"; then
  default_master=PROGDIR:lib/master.pike
else
  default_master=$prefix/pike/%d.%d.%d/lib/master.pike
fi
printf "%s\n" "#define DEFAULT_MASTER \"$default_master\"" >>confdefs.h


BUILD_DATE=`date +%-d.%-m.%Y`













pike_cv_prog_CC="${CC}"

#############################################################################

# Autoconf 2.50 and later stupidity...

  # Ensure that the propagated CC (if any) is up to date.
  # Otherwise the sub-configures will attempt to use eg
  # -R with the raw compiler, which only works on Solaris.
  ac_configure_args=`echo " $ac_configure_args " | sed -e "s% 'CC=$REALCC' % 'CC=$CC' %g" -e "s% 'CC=$RAWCC' % 'CC=$CC' %g"`

  if test "x$enable_binary" = "xno"; then
    # --disable-binary
    # LIBS and LDFLAGS contain lots of junk, which is likely to confuse
    # the real compiler when the sub-configures run AC_PROG_CC.
    LIBS=""
    LDFLAGS=""
  fi




subdirs="$subdirs modules post_modules"



dependencies=$srcdir/dependencies







common_module_makefile=modules/common_module_makefile


# Assignments for make_variables.in.

# Afaik BUILDDIR/TMP_BUILDDIR and BINDIR/TMP_BINDIR are always the
# same thing. Can it be cleaned up? /mast
TMP_BUILDDIR=$BUILDDIR
TMP_BINDIR=$BINDIR

BASE_CFLAGS=$CFLAGS
BASE_CXXFLAGS=$CXXFLAGS
BASE_CPPFLAGS=$CPPFLAGS
MOD_LDSHARED="$LDSHARED $LDSHARED_MODULE_ARGS"

# Put LIBS into the LDFLAGS that the modules will use. This is
# necessary to keep compatibility with module configure scripts. Some
# modules don't expand @LIBS@ at all, so we can't use a BASE_LIBS to
# init the module LIBS.
BASE_LDFLAGS="$LDFLAGS $LIBS"

#
# Note: We must output before visiting the subdirs,
#       since we need *_module_makefile to exist.
#


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval test \${ac_cv_prog_make_${ac_make}_set+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@echo '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make ;;
esac
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  SET_MAKE=
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi


  ac_config_files="$ac_config_files stamp-h"


  PMOD_TARGETS=`echo $srcdir/*.cmod | sed -e "s/\.cmod/\.c/g" | sed -e "s|$srcdir/|\\$(SRCDIR)/|g"`
  test "$PMOD_TARGETS" = '$(SRCDIR)/*.c' && PMOD_TARGETS=


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Pike base directory" >&5
printf %s "checking for the Pike base directory... " >&6; }
  if test "x$PIKE_SRC_DIR" != "x" -a -f "${PIKE_SRC_DIR}/make_variables.in"; then
    make_variables_in="${PIKE_SRC_DIR}/make_variables.in"
    make_variables_in_file=$make_variables_in
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${PIKE_SRC_DIR}" >&5
printf "%s\n" "${PIKE_SRC_DIR}" >&6; }


  else

    counter=.

    uplevels=
    while test ! -f "$srcdir/${uplevels}make_variables.in"
    do
      counter=.$counter
      if test $counter = .......... ; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
printf "%s\n" "failed" >&6; }
        exit 1
      else
        :
      fi
      uplevels=../$uplevels
    done

    make_variables_in=${uplevels}make_variables.in
    make_variables_in_file=$make_variables_in
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${uplevels}." >&5
printf "%s\n" "${uplevels}." >&6; }
    PIKE_SRC_DIR="`cd $srcdir/${uplevels} && pwd`"
  fi



  rm propagated_variables.new 2>/dev/null
  prop_var_changes=""
  for var in `sed -n -e 's/^#propagated_variables:\(.*\)$/\1/p' < $make_variables_in_file`; do
    # NB: If you get a strange error here you probably got a bogus
    # value in IFS.
    eval export $var
    eval echo \"${var}=\$$var\" >> propagated_variables.new
  done

  propvar_diff=yes
  if test -f propagated_variables.old; then
                    cmp -s propagated_variables.new propagated_variables.old && propvar_diff=no
    rm propagated_variables.old
  elif test -f propagated_variables; then
    cmp -s propagated_variables propagated_variables.new && propvar_diff=no
  fi

  if test $propvar_diff = no; then
    rm propagated_variables.new
  else
    mv propagated_variables.new propagated_variables
                    if test "x$subdirs" != x; then
      for subdir in $subdirs; do
	if test -f "$subdir/config.status"; then
	  echo "$as_me: creating $subdir/propagated_variables (propagated variables have changed)" >&6
	  test -f "$subdir/propagated_variables" && mv "$subdir/propagated_variables" "$subdir/propagated_variables.old"
	  cp propagated_variables "$subdir"
	fi
      done
    fi
  fi


  propagated_variables=propagated_variables


  make_variables=make_variables

  ACCONFIG_H=""
  if test -f "$srcdir/acconfig.h"; then
    ACCONFIG_H='$(SRCDIR)/acconfig.h'
  fi


  CONFIG_HEADERS_IN=""
  if test "x$CONFIG_HEADERS" = "x"; then :; else
    for h in $CONFIG_HEADERS; do
      CONFIG_HEADERS_IN="$CONFIG_HEADERS_IN \$(SRCDIR)/$h.in"
    done
  fi


    if test "x$subdirs" != x; then
    for subdir in $subdirs; do
      if test -f "$srcdir/$subdir/configure"; then :; else
	echo "$as_me: no configurescript in $srcdir/$subdir/" >&6
	echo "$as_me: running ${PIKE_SRC_DIR}/run_autoconfig $srcdir/$subdir" >&6
	"${PIKE_SRC_DIR}/run_autoconfig" "$srcdir/${subdir}" >&6 2>&6
      fi
    done
  fi

  # Autoconf 2.50 and later stupidity...


    unset ac_cv_env_build_alias_set
    unset ac_cv_env_build_alias_value
    unset ac_cv_env_host_alias_set
    unset ac_cv_env_host_alias_value
    unset ac_cv_env_target_alias_set
    unset ac_cv_env_target_alias_value
    unset ac_cv_env_CC_set
    unset ac_cv_env_CC_value
    unset ac_cv_env_CFLAGS_set
    unset ac_cv_env_CFLAGS_value
    unset ac_cv_env_CXX_set
    unset ac_cv_env_CXX_value
    unset ac_cv_env_CXXCPP_set
    unset ac_cv_env_CXXCPP_value
    unset ac_cv_env_CXXFLAGS_set
    unset ac_cv_env_CXXFLAGS_value
    unset ac_cv_env_LDFLAGS_set
    unset ac_cv_env_LDFLAGS_value
    unset ac_cv_env_LIBS_set
    unset ac_cv_env_LIBS_value
    unset ac_cv_env_CPPFLAGS_set
    unset ac_cv_env_CPPFLAGS_value
    unset ac_cv_env_CPP_set
    unset ac_cv_env_CPP_value


  if test x"$MODULE_OK:$REQUIRE_MODULE_OK" = "xno:yes"; then
    as_fn_error $? "Required module failed to configure." "$LINENO" 5
  fi


  ac_config_files="$ac_config_files make_variables:$make_variables_in Makefile modules/common_module_makefile modules/static_module_makefile post_modules/static_module_makefile:modules/static_module_makefile.in modules/dynamic_module_makefile:$dmmsrc post_modules/dynamic_module_makefile:$dmmsrc precompile.sh specs"

ac_config_commands="$ac_config_commands default"

cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# 'ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* 'ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # 'set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # 'set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs



: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else case e in #(
  e) case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac ;;
esac
fi



# Reset variables that may have inherited troublesome values from
# the environment.

# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
as_nl='
'
export as_nl
IFS=" ""	$as_nl"

PS1='$ '
PS2='> '
PS4='+ '

# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done

# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi

# The user is always right.
if ${PATH_SEPARATOR+false} :; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as 'sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi



# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  printf "%s\n" "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else case e in #(
  e) as_fn_append ()
  {
    eval $1=\$$1\$2
  } ;;
esac
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else case e in #(
  e) as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  } ;;
esac
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n.  New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
    # In both cases, we have to default to 'cp -pR'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -pR'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -pR'
  fi
else
  as_ln_s='cp -pR'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi


# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p

# Sed expression to map a string onto a valid CPP name.
as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated

# Sed expression to map a string onto a valid variable name.
as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
as_tr_sh="eval sed '$as_sed_sh'" # deprecated


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by $as_me, which was
generated by GNU Autoconf 2.72.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
'$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to the package provider."

_ACEOF
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.72,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2023 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=?*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  --*=)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    printf "%s\n" "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    printf "%s\n" "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error $? "ambiguous option: '$1'
Try '$0 --help' for more information.";;
  --help | --hel | -h )
    printf "%s\n" "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error $? "unrecognized option: '$1'
Try '$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  printf "%s\n" "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "machine.h") CONFIG_HEADERS="$CONFIG_HEADERS machine.h" ;;
    "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
    "make_variables") CONFIG_FILES="$CONFIG_FILES make_variables:$make_variables_in" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "modules/common_module_makefile") CONFIG_FILES="$CONFIG_FILES modules/common_module_makefile" ;;
    "modules/static_module_makefile") CONFIG_FILES="$CONFIG_FILES modules/static_module_makefile" ;;
    "post_modules/static_module_makefile") CONFIG_FILES="$CONFIG_FILES post_modules/static_module_makefile:modules/static_module_makefile.in" ;;
    "modules/dynamic_module_makefile") CONFIG_FILES="$CONFIG_FILES modules/dynamic_module_makefile:$dmmsrc" ;;
    "post_modules/dynamic_module_makefile") CONFIG_FILES="$CONFIG_FILES post_modules/dynamic_module_makefile:$dmmsrc" ;;
    "precompile.sh") CONFIG_FILES="$CONFIG_FILES precompile.sh" ;;
    "specs") CONFIG_FILES="$CONFIG_FILES specs" ;;
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;

  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to '$tmp'.
$debug ||
{
  tmp= ac_tmp=
  trap 'exit_status=$?
  : "${ac_tmp:=$tmp}"
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with './config.status config.h'.
if test -n "$CONFIG_FILES"; then

if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  ac_cs_awk_getline=:
  ac_cs_awk_pipe_init=
  ac_cs_awk_read_file='
      while ((getline aline < (F[key])) > 0)
	print(aline)
      close(F[key])'
  ac_cs_awk_pipe_fini=
else
  ac_cs_awk_getline=false
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  ac_cs_awk_read_file='
      print "|#_!!_#|"
      print "cat " F[key] " &&"
      '$ac_cs_awk_pipe_init
  # The final ':' finishes the AND list.
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
fi
ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
_ACEOF

# Create commands to substitute file output variables.
{
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  echo "_ACAWK" &&
  echo "_ACEOF"
} >conf$$files.sh &&
. ./conf$$files.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
rm -f conf$$files.sh

{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""
  \$ac_cs_awk_pipe_init
}
{
  line = $ 0
  nfields = split(line, field, "@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }
  if (nfields == 3 && !substed) {
    key = field[2]
    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
      \$ac_cs_awk_read_file
      next
    }
  }
  print line
}
\$ac_cs_awk_pipe_fini
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
h
s///
s/^/:/
s/[	 ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@srcdir@:/:/g
s/^:*//
s/:*$//
x
s/\(=[	 ]*\).*/\1/
G
s/\n//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with './config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script 'defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_tt"; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$ac_tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain ':'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is 'configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
printf "%s\n" "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
printf "%s\n" X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when '$srcdir' = '.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
if $ac_cs_awk_getline; then
  $AWK -f "$ac_tmp/subs.awk"
else
  $AWK -f "$ac_tmp/subs.awk" | $SHELL
fi \
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
which seems to be undefined.  Please make sure it is defined" >&5
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
which seems to be undefined.  Please make sure it is defined" >&2;}

  rm -f "$ac_tmp/stdin"
  case $ac_file in
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  esac \
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      printf "%s\n" "/* $configure_input  */" >&1 \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    } >"$ac_tmp/config.h" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$ac_tmp/config.h" "$ac_file" \
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
    fi
  else
    printf "%s\n" "/* $configure_input  */" >&1 \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error $? "could not create -" "$LINENO" 5
  fi
 ;;

  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "stamp-h":F) echo foo >stamp-h ;;
    "default":C)
	    case "x$CONFIG_HEADERS" in
	      *machine.h*) echo foo >stamp-h ;;
	    esac
	    chmod +x precompile.sh
           ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || as_fn_exit 1
fi

#
# CONFIG_SUBDIRS section.
#
if test "$no_recursion" != yes; then

  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  # so they do not pile up.
  ac_sub_configure_args=
  ac_prev=
  eval "set x $ac_configure_args"
  shift
  for ac_arg
  do
    if test -n "$ac_prev"; then
      ac_prev=
      continue
    fi
    case $ac_arg in
    -cache-file | --cache-file | --cache-fil | --cache-fi \
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
      ac_prev=cache_file ;;
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
    | --c=*)
      ;;
    --config-cache | -C)
      ;;
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
      ac_prev=srcdir ;;
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
      ;;
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
      ac_prev=prefix ;;
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
      ;;
    --disable-option-checking)
      ;;
    *)
      case $ac_arg in
      *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
      esac
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
    esac
  done

  # Always prepend --prefix to ensure using the same prefix
  # in subdir configurations.
  ac_arg="--prefix=$prefix"
  case $ac_arg in
  *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"

  # Pass --silent
  if test "$silent" = yes; then
    ac_sub_configure_args="--silent $ac_sub_configure_args"
  fi

  # Always prepend --disable-option-checking to silence warnings, since
  # different subdirs can have different --enable and --with options.
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"

  ac_popdir=`pwd`
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue

    # Do not complain, so a configure script can configure whichever
    # parts of a large source tree are present.
    test -d "$srcdir/$ac_dir" || continue

    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
    printf "%s\n" "$ac_msg" >&6
    as_dir="$ac_dir"; as_fn_mkdir_p
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


    cd "$ac_dir"

    # Check for configure.gnu first; this name is used for a wrapper for
    # Metaconfig's "Configure" on case-insensitive file systems.
    if test -f "$ac_srcdir/configure.gnu"; then
      ac_sub_configure=$ac_srcdir/configure.gnu
    elif test -f "$ac_srcdir/configure"; then
      ac_sub_configure=$ac_srcdir/configure
    else
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
      ac_sub_configure=
    fi

    # The recursion is here.
    if test -n "$ac_sub_configure"; then
      # Make the cache file name correct relative to the subdirectory.
      case $cache_file in
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
      *) # Relative name.
	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
      esac

      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
      # The eval makes quoting arguments work.
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    fi

    cd "$ac_popdir"
  done
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi



# NOTE: M4 uses [] as quotes.

PIKE_VERSION="`sed -n -e 's/^.*PIKE_MAJOR_VERSION[ \t]*\([^ \t]*\)/\1/p' <$srcdir/version.h`.`sed -n -e 's/^.*PIKE_MINOR_VERSION[ \t]*\([^ \t]*\)/\1/p' <$srcdir/version.h`.`sed -n -e 's/^.*PIKE_BUILD_VERSION[ \t]*\([^ \t]*\)/\1/p' <$srcdir/version.h`"
PIKE_VERSION_LONG="Pike v`sed -n -e 's/^.*PIKE_MAJOR_VERSION[ \t]*\([^ \t]*\)/\1/p' <$srcdir/version.h`.`sed -n -e 's/^.*PIKE_MINOR_VERSION[ \t]*\([^ \t]*\)/\1/p' <$srcdir/version.h` release `sed -n -e 's/^.*PIKE_BUILD_VERSION[ \t]*\([^ \t]*\)/\1/p' <$srcdir/version.h`"


if test "x$with_cdebug" = x; then
  with_cdebug=no
fi
if test "x$with_rtldebug" = x; then
  with_rtldebug=no
fi
if test "x$with_dmalloc" = x; then
  with_dmalloc=no
fi
if test "x$with_copt" = xno ; then
  opt_reasons="  ($OPT_NOT_USED turned off with --without-copt)"
else
  opt_reasons=
fi

rm -f config.info 2>/dev/null

float_is_ieee=""
if test "x$float_type" = "xfloat" -a "x$pike_cv_float_type" = "xieee_big"; then
  float_is_ieee=" (ieee big endian)"
elif test "x$float_type" = "xfloat" -a "x$pike_cv_float_type" = "xieee_little"; then
  float_is_ieee=" (ieee little endian)"
elif test "x$float_type" = "xdouble" -a "x$pike_cv_double_type" = "xieee_big"; then
  float_is_ieee=" (ieee big endian)"
elif test "x$float_type" = "xdouble" -a "x$pike_cv_double_type" = "xieee_little"; then
  float_is_ieee=" (ieee little endian)"
fi

cat >>config.info <<EOF
=========================================================
$PIKE_VERSION_LONG configuration summary

install information:
prefix.............. $prefix
pike binary......... $prefix/bin/pike
pike library........ $prefix/pike/${PIKE_VERSION}/lib

system information:
system.............. $UNAME`echo $pike_cv_libgcc_filename | sed -n -e 's+^.*gcc-lib/\([^/]*\)/.*$+ (\1)+p'`
EOF

uname -a >/dev/null 2>/dev/null && echo "uname............... `uname -a`" >>config.info
hostname >/dev/null 2>/dev/null && echo "hostname............ `hostname`" >>config.info
whoami >/dev/null 2>/dev/null   && echo "user................ `whoami`" >>config.info

# too many dots makes too long lines, keep them as short as possible
# inside each section

cat >>config.info <<EOF

build information:
source path......... $srcdir
build path.......... $BUILDDIR
ABI................. $with_abi
cpp................. $CPP
cc.................. $CC
ld.................. $LD
cc shared........... $CCSHARED
ld shared........... $LINKFORSHARED
pike................ $PIKE
install............. $INSTALL
shared object....... .$SO
libs................ $LIBS
cross-compiled...... ${ac_cv_prog_cc_cross:-${cross_compiling}}
building lib........ $enable_pikelib
CPPFLAGS............ $CPPFLAGS
CFLAGS (opt)........ $OPTIMIZE$opt_reasons
CFLAGS (warn)....... $WARN
CFLAGS (misc)....... $CFLAGS $OSFLAGS $PROFIL
LDFLAGS............. $LDFLAGS $LINKFORSHARED $EXTRALDFLAGS
EOF

# insert information about debugging tools here, if they are turned on
if test "x$with_valgrind" != xno ; then
  cat >>config.info <<EOF
valgrind............ yes, using $VALGRIND $VALGRINDARGS
EOF
fi
if test "x$with_dtrace" != xno ; then
  cat >>config.info <<EOF
dtrace.............. yes
EOF
fi

cat >>config.info <<EOF

features:
backend............. $default_backend_method
dynamic loading..... $pike_cv_sys_dynamic_loading
threads............. $using_threads
signal handler...... $signal_handler
cdebug.............. $with_cdebug
rtldebug............ $with_rtldebug
dmalloc............. $with_dmalloc
dlmalloc............ $enable_dlmalloc
byte code format.... $byte_code_format
module reloc........ ${with_relocatable_dumped_modules:-no}
use machine code.... $with_machine_code
int type............ $int_type ($sizeof_int_type bytes)
float type.......... $float_type ($sizeof_float_type bytes)$float_is_ieee
pointer size........ $ac_cv_sizeof_char_p bytes
EOF

touch confdefs.h 2>/dev/null

OLD_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="-I. -I$srcdir $CPPFLAGS"
if test "$cross_compiling" = yes
then :
  :
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include "svalue.h"

int main(void)
{
   FILE *fp, *out;
   char float_type[80] = "?";
   char int_type[80] = "?";
   char *s;
   struct svalue sval;

   out=fopen("config.info", "a");
   if (!out) return 1;

   fprintf(out,"svalue size......... %d bytes (%d+%d+%d)\n",
           sizeof(sval),
           sizeof(TYPEOF(sval)),
           sizeof(SUBTYPEOF(sval)),
           sizeof(sval.u));

   fclose(out);

   return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"
then :

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

rm -f conftypes.txt 2>/dev/null
CPPFLAGS="$OLD_CPPFLAGS"

echo >>config.info

ls -1 pike_*.feature 2>/dev/null | xargs cat | sort >>config.info
ls -1 post_modules/*/pike_*.feature modules/*/pike_*.feature 2>/dev/null |  xargs cat | sort >>config.info

if test -f config.warnings; then
  echo >>config.info
  echo 'Warnings and notes summary:' >>config.info
  echo >>config.info
  cat config.warnings >>config.info
elif test -f config.notes; then
  echo >>config.info
  echo 'Notes summary:' >>config.info
  echo >>config.info
fi

if test -f config.notes; then
  cat config.notes >>config.info
fi

echo

echo "=========================================================" >>config.info

cat config.info

if test "x$config_fail" = "x"; then :; else
  echo 1>&2
  echo 1>&2
  echo "Configuration error: $config_fail" 1>&2
  echo 1>&2
  exit 1
fi

