#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69.
#
#
# Copyright (C) 1992-1996, 1998-2012 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 -n "${ZSH_VERSION+set}" && (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 `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; 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


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# 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
  test -z "$as_dir" && as_dir=.
    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
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

# 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'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
as_fn_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 -n \"\${ZSH_VERSION+set}\" && (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 \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
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
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || 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
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

else
  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
  test -z "$as_dir" && as_dir=.
  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_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
IFS=$as_save_IFS


      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'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
fi

    if test x$as_have_required = xno; then :
  $as_echo "$0: This script requires a shell more modern than all"
  $as_echo "$0: the shells that I found on your system."
  if test x${ZSH_VERSION+set} = xset ; then
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  else
    $as_echo "$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
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=`$as_echo "$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 ||
$as_echo 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
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
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
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
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
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$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 ||
$as_echo 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 '
      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" ||
    { $as_echo "$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
}

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

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_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

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


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="configure.in"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_subst_vars='LTLIBOBJS
LIBOBJS
SICSTUS_BUILD_VERSION
SICSTUS_MICRO_VERSION
SICSTUS_BETA_VERSION
SICSTUS_REVISION_VERSION
SICSTUS_MINOR_VERSION
SICSTUS_MAJOR_VERSION
PARMAKE
RTKERNEL_BASENAME_WITH_STAT_SUFFIX
RTKERNEL_BASENAME_WITH_DSO_SUFFIX
RTKERNEL_BASENAME_SANS_SUFFIX
WAMFILTER
OLDSICSTUS
SLEEP
MKDIR
CC_NOLIBPATH
TCLINC
TCLLIB
COMCLIENTLIB
SOCKETLIB
SYSTEMLIB
M4_FLAGS
ARFLAGS
LN
STSFX
JNI_SHSFX
FLI_SHSFX
SHSFX
NMEDIT
RTKERNEL_EXPFILE
MAPFILEOPT
SHLDFLAGS
SHLD
INCR_CFLAGS
SPLFR_LD_r_FLAGS
SPLM_LIBS
SPLD_CXX
SPLD_CC
SPLD_EXE_EXTRA_RPATH
SPLD_EXE_LDFLAGS
SPLD_JNI_LIBS
SPLD_EXE_LIBS
SPLD_CONFIG_CFLAGS
DT_LIBS
DT_CPPFLAGS
DT_CC_PATH
DT_CC
DT_OUTPUT_OPT
DT_ENV_LIB
DT_ENV_INCLUDE
DT_CFLAGS
CSCFLAGS
SPLFR_LD_R_POST_PROCESS_LIB_OPT
SPLFR_LD_R_POST_PROCESS_EXPFILE_OPT
SPLFR_LD_R_POST_PROCESS
SPLFR_SHLD_POST_PROCESS_LIB_OPT
SPLFR_SHLD_POST_PROCESS_EXPFILE_OPT
SPLFR_SHLD_POST_PROCESS
EXPFILE_SYMBOL_PREFIX
SUITE_EXPECTED_FAILURES
SUITE_SKIPPED_TESTS
WAM_O_CFLAGS_EXTRA
CC_WNO_STRINGOP_OVERFLOW_OPTION
CC_WNO_IMPLICIT_FALLTHROUGH_OPTION
CC_WNO_CONVERSION_OPTION
CC_WNO_ERROR
CC_WERROR
EXPECT_WARNINGS_MULTI_SP_C
SPLD_TOOLFLAGS
SPLD_OPT_LOCALE_NAME_DEFAULT
SPLD_OPT_USE_LOCALE_DEFAULT
SPLD_OPT_MOVEABLE_NEEDS_WRAPPER
SPLD_OPT_WRAPPER_DEFAULT
SPLD_OPT_MOVEABLE_DEFAULT
SPLD_DSFLAGS
INSTALLER_HAS_TCLTK
TCLTK_VERSION
INSTALLER_TCLTK_VERSION
TCLTK_PATH
TK_PATH
TCL_PATH
TCLTK_MODULE
TK_LIBRARY
TCL_LIBRARY
TCLTK_SRC_BUILD_DIR
INSTALLER_HAS_JAVA_JNI
JAVADOCFLAGS
JDK_RPATH
INSTALLER_JAVA_VERSION
JAVA_CLASSPATH
JAVACDBGFLAGS
JAVACFLAGS
JAVAINC
JAVALIB
JASPER_MODULE
JAVA_EXECOPTS
JDK_PATH
JAVAEXEC_ENV_ARGS
JASPER_ENV_ARGS
ENABLE_JAVA_JNI
USE_JAVAC_H_FOR_JNI_HEADERS
ENABLE_JAVA
JAR
JAVADOC
JAVAH
JAVAC
JAVAEXEC
java_in_path
INSTALLER_HAS_ODBC
ODBC_MODULE
ODBCINC
ODBCLIB
X_EXTRA_LIBS
X_LIBS
X_PRE_LIBS
X_CFLAGS
XMKMF
SP_BIGENDIAN
ENABLE_CLPFD
SHVER
MALLOC_ENV
CHR_MODULE
SPACEOUT_MODULE
TIMEOUT_MODULE
RMDUMMY
ULIMIT_CMD
ULIMIT_DATA
SHPRE
SPAUXOBJ
CHARMAINOBJ
WINMAINOBJ
DSMAINOBJ
QUOTECHAR
IMPLIB
WIN64
WIN32
WIN32_SPLD_CC_SPECIAL
WIN32_SPLD_SHLD_SPECIAL
WIN32_EXTRAOBJS
PATHSEP
ENABLE_STATLIB
SPLFR_SHLD_LASTARG
KERNEL_SHLD_GENIMPLIB
NOLINK_OPT
SHLD_OUTPUT_OPT
NOLINK_OUTPUT_OPT
OUTPUT_OPT
HAVE_SYSV_ORIGIN
LD_R
LD
SHLD_RTKERNELEXP
SPLFR_LD_EXPORT_ARG
SPLFR_SHLD_EXPORT_ARG
SPLFR_SHLDFLAGS
SPLFR_SHLD
SP_RTSYS_DIRNAME_WIN
SP_RTSYS_DIRNAME_UNIX
SP_RTSYS_DIRNAME
KERNEL_SHLD_FLAGS
BENCH_ITERATIONS_SCALE
HIGH_RESOLUTION_TIME_CP
STDTAR
PAX_ARCHIVE_FORMAT
USE_PAX
SP_INSTALL_ZCAT
ZCAT
SP_INSTALL_DECRYPT
PERLAPP_ENABLED
PERLAPP_MODE
SPLD_SHLD_JNILIB_FLAGS
SHLD_ROPT
CC_ROPT
LD_LIBRARY_PATH_name
SP_JIT_USE_LQ_STQ
SP_JIT_PRELOAD_FAIL
SP_JIT_ABI
SP_NO_MULTI_SP_FEATURE
RESGEN_TYPE
MACOSX_MALLOC_SCRIBBLE_KLUDGE
MACOSX_MAKEFILE_ENV_EXPORTS
SP_AARCH64
SP_POWER64
SP_X64
SP_X86
LC_ALL_UTF8_LOCALE_NAME
INSTALLER_TCLTK_DIRS
INSTALLER_JAVA_DIRS
USE_TCLTK_SRC_BUILD
CHMOD
AR
MV
CP
RM
LN_S
RANLIB
NO_UNKNOWN_PRAGMAS
GCCLIB
ac_ct_CXX
CXXFLAGS
CXX
PERL
EGREP
GREP
VALGRIND_FLAGS
JIT_PPC64LE
JIT
MINIZINC
MINIZINC_BIN_DIR
MINIZINC_DIR
VALGRIND_SUPPRESSIONS_FILES
VALGRIND
NOVERBOSE_FLAG
VERBOSE_FLAG
CPP
CC_IS_MSVC
CC_IS_CLANG
CC_IS_GCC
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
DOTNET_LAUNCHER_ARGS
DOTNET_LAUNCHER
CSC
DOTNET
SET_MAKE
MAKE
RELEASE_YEAR
RELEASE_MONTH
RTKERNEL_INSTANCE_TEMPLATE
WIN32_RTKERNEL_BASENAME_SANS_SUFFIX
UNIX_RTKERNEL_BASENAME_SANS_SUFFIX
SP_LIBRARY_DIR
SP_BINAUXDIR
SP_PATHDIR
SP_ROOTLIBDIR
JASPER_SPLFR_FLAGS
SPLD_CONFIG_FILE
SPLD_CONFIG_FILE_BASENAME
SP_BINDIR
TOP_SRCDIR
EMACS_MODE_LINE_BUFFER_READONLY
NATIVEPATHBACKSLASH
NATIVEPATH
CYGPATHBACKSLASH
CYGPATH
SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING
SP_CLAUSE_ISO_BODY
SP_AVOID_PREFIX_MINUS_ARGUMENT_BRACKETING
SP_DIRNAME
SP_GET_DISPATCH_NAME
SICSTUS_VERSION
SICSTUS_VERSION_STRING
SICSTUS_RELEASE_BUILD
DBGFLAG
DEBUG_BUILD
BASH
POSIX_SHELL
POSIX_GREP
UNAME
SORT
PCACHE
CPUCOUNTCOMMAND
PLATFORM
SP_64
build_os
build_vendor
build_cpu
build
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'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_64bit
with_number_of_cpus
enable_dbg
enable_release_build
enable_avoid_prefix_minus_argument_bracketing
enable_iso_body
enable_iso_body_hide_meta_wrapping
with_release_month
with_release_year
with_suite
enable_cc
enable_CC
with_mono_framework
with_mono_bin
enable_apple_gcc
enable_cc_warning_unused
enable_cc_shld
enable_generic_fli
enable_jit
enable_float_consistency
enable_fstrict_aliasing
enable_Wsequence_point
enable_gcc_fomit_frame_pointer
enable_mieee_fp
enable_ftrapv
enable_clang_sanitizers
enable_address_sanitizer
enable_fortify_source
enable_stack_protector
enable_stack_protector_all
enable_fvisibility
enable_native_cpu
enable_tcltk_src_build
with_installer_java_dirs
with_installer_tcltk_dirs
enable_hugepages
with_resgen_type
enable_macos_nocommon
enable_multi_sp
with_x
with_bdbversion
with_bdb
with_libdb
with_odbc
with_libodbc
with_java
enable_java_jni
enable_jdk_rpath
enable_macosx_java
with_tcltkversion
with_tcltk
with_tcl
with_tk
with_libtk
enable_tcltk_version_fallback
enable_tp_rpaths
enable_spld_moveable
enable_spld_cc
enable_spld_cxx
'
      ac_precious_vars='build_alias
host_alias
target_alias
SORT
UNAME
POSIX_GREP
POSIX_SHELL
BASH
MAKE
DOTNET
CSC
DOTNET_LAUNCHER
DOTNET_LAUNCHER_ARGS
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
VALGRIND
VALGRIND_SUPPRESSIONS_FILES
MINIZINC_DIR
MINIZINC_BIN_DIR
MINIZINC
VALGRIND_FLAGS
PERL
CXX
CXXFLAGS
CCC
AR
BENCH_ITERATIONS_SCALE
XMKMF
TCLTK_SRC_BUILD_DIR'


# 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

  # Accept the important Cygnus configure options, so we can diagnose typos.

  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=`$as_echo "$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=`$as_echo "$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=`$as_echo "$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=`$as_echo "$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.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_echo "$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" ;;
    *)     $as_echo "$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 ||
$as_echo 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

X features:
  --x-includes=DIR    X include files are in DIR
  --x-libraries=DIR   X library files are in DIR

System types:
  --build=BUILD     configure for building on BUILD [guessed]
_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-64bit            64bit support
  --enable-dbg            Enable debugging. Default on.
  --enable-new-dbg-policy            internal.
  --enable-release-build        For building release candidates. Suppresses assertions etc even if beta.
  --enable-avoid-prefix-minus-argument-bracketing        internal
  --enable-iso-body        internal
  --enable-iso-body-hide-meta-wrapping        internal
  --enable-cc             Try to use C compiler cc.
  --enable-CC             Try to use C++ compiler CC.
  --disable-apple-gcc            Internal Mac OS X
  --enable-cc-warning-unused            Warn for unused variables etc.
  --enable-cc-shld            Internal use
  --enable-generic-fli            Use SPLFR-generated glue for FLI-calls
  --enable-jit    JIT compilation
  --enable-float-consistency            Increase floating point consistency (cl /Op, gcc -ffloat-store)
  --enable-fstrict-aliasing    Internal
  --disable-Wsequence-point    Internal
--disable-gcc-fomit-frame-pointer       Internal use only.
  --disable-mieee-fp            Do not use -mieee-fp with GCC
  --enable-ftrapv            Internal
  --enable-clang-sanitizers            Internal
  --disable-address-sanitizer            Internal
  --enable-fortify_source            Internal GCC
  --enable-stack-protector            Internal GCC
  --enable-stack-protector-all            Internal GCC
  --enable-fvisibility            Internal GCC/ELF
  --enable-native-cpu            Use and optimize for the native/build CPU
  --enable-tcltk-src-build            Whether to use Tcl/Tk built from source
  --enable-hugepages            Enable huge pages support
  --enable-macos-nocommon  Internal
  --disable-multi-sp            Disable multiple run-time support
  --disable-java-jni        Disable linking with Java, e.g., library(jasper)
  --enable-jdk-rpath          Embed rpath to JDK (default)
  --enable-macosx-java          Use (legacy) Java 6 from Apple
  --enable-tcltk-version-fallback     Internal. Used by InstallSICStus
  --enable-tp-rpath          Internal use. Embed rpath to third party libraries into sicstus exe
  --enable-spld-moveable          Internal use. Make spld --moveable the default.
  --enable-spld-cc             C compiler to use for spld/splfr
  --enable-spld-cxx             C++ compiler to use for spld/splfr

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-number-of-cpus          Internal, how many CPUs to use
  --with-release-month            Internal
  --with-release-year            Internal
  --without-suite            Enable/disable the test-suite.
 --with-mono-framework The (OS X) Mono framework directory
 --with-mono-bin The Mono binaries directory
  --with-installer-java-dirs            Colon separated list of directories where SICStusInstaller should search for Java
  --with-installer-tcltk-dirs           Colon separated list of directories where SICStusInstaller should search for TCL/TK
  --with-resgen-type=TYPE            Internal
  --with-x                use the X Window System
  --with-bdbversion       Ignored for backward compatibility
  --with-bdb=DIR          Ignored for backward compatibility
  --with-libdb            Ignored for backward compatibility
  --with-odbc=DIR          Location of ODBC installation, e.g., /usr/local/unixODBC
  --with-libodbc            Specify full path of libodbc.so.
                           Used by installer. Overrides --with-odbc but not --without-odbc
  --with-java=DIR        Location of Java-installation
  --with-tcltkversion     Specify Tcl/Tk version (rarely needed). Ex: 8.0, 8.0/8.3
  --with-tcltk            Specify path to Tcl/Tk installation, e.g., /usr/local
  --with-tcl              Specify path to Tcl installation. Overrides --with-tcltk.
  --with-tk               Specify path to Tcl installation. Overrides --with-tcltk.
  --with-libtk            Specify full path of libtk<ver>.so.
                          Used by installer. Overrides --with-tcltk.

Some influential environment variables:
  SORT
  UNAME
  POSIX_GREP  full path to POSIX compliant grep (e.g. GNU grep)
  POSIX_SHELL full path to POSIX compliant shell (e.g. bash or /bin/sh)
  BASH
  MAKE
  DOTNET
  CSC
  DOTNET_LAUNCHER

  DOTNET_LAUNCHER_ARGS

  CC
  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>
  CPP         C preprocessor
  VALGRIND
  VALGRIND_SUPPRESSIONS_FILES

  MINIZINC_DIR

  MINIZINC_BIN_DIR

  MINIZINC
  VALGRIND_FLAGS

  PERL
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  AR
  BENCH_ITERATIONS_SCALE

  XMKMF       Path to xmkmf, Makefile generator for X Window System
  TCLTK_SRC_BUILD_DIR


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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$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 guested configure.
    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
      $as_echo "$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.69

Copyright (C) 2012 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
  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\""
$as_echo "$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
  $as_echo "$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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

} # ac_fn_c_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\""
$as_echo "$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
  $as_echo "$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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
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_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
  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\""
$as_echo "$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
  $as_echo "$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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
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_run LINENO
# ----------------------
# Try to link 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\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$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\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
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 ()
{
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 ()
{
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
  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
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
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 ()
{
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
  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
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext 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 ()
{
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
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
fi
rm -f core conftest.err conftest.$ac_objext 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 () { return $2; }
static unsigned long int ulongval () { return $2; }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  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
  ac_retval=1
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_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
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$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$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\""
$as_echo "$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
  $as_echo "$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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
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_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
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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 (); 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 $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 ();
/* 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 ()
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_func

# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_c_check_header_mongrel ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if eval \${$3+:} false; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_header_compiler=yes
else
  ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ac_header_preproc=yes
else
  ac_header_preproc=no
fi
rm -f conftest.err conftest.i conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  yes:no: )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
  no:yes:* )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_mongrel
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.69.  Invocation command line was

  $ $0 $@

_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
  test -z "$as_dir" && as_dir=.
    $as_echo "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=`$as_echo "$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=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    $as_echo "## ---------------- ##
## 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_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$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

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

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

    if test -s confdefs.h; then
      $as_echo "## ----------- ##
## confdefs.h. ##
## ----------- ##"
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$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

$as_echo "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_URL "$PACKAGE_URL"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  # We do not want a PATH search for config.site.
  case $CONFIG_SITE in #((
    -*)  ac_site_file1=./$CONFIG_SITE;;
    */*) ac_site_file1=$CONFIG_SITE;;
    *)   ac_site_file1=./$CONFIG_SITE;;
  esac
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file" \
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$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
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
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,)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$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
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
$as_echo "$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=`$as_echo "$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
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error $? "run \`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







# Make explicit --build work (for Apple Silicon arm64)
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
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.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.


# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
if ${ac_cv_build+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
$as_echo "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


real_host=''
if test "${build_alias:-unset}" != "unset"; then # explicit --build=...
   case "${build}" in
      aarch64-apple-*)
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking real_host from build ($build)" >&5
$as_echo_n "checking real_host from build ($build)... " >&6; }
        real_host="arm64-darwin-$(echo "${build_os}" | sed -n -e 's/darwin//p')"
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_host}" >&5
$as_echo "${real_host}" >&6; }
      ;;
   esac
fi

if test -z "${real_host}"; then
   real_host="`./sp_platform`"
else # real_host set
   :

fi # real_host set

# [PM] 3.9b5 (PRM 2956) For binary installations the install time
# platform (e.g. x86-linux-glibc2.2) may differ from the platform used
# to build the binary installer (e.g. x86-linux-glibc2.1).
#
# When the platform name is used as part of the directory structure
# (e.g., library/<PLATFORM>) the build-time $PLATFORM should be used
# (as is done by InstallSICStus, spld, splfr). However, the $PLATFORM
# during installation by configure (this file) will be the install
# time PLATFORM which will be used to substitute any occurrences of
# @PLATFORM@. Currently we can ignore this mismatch since nothing uses
# @PLATFORM@ at install time (except to set
# INSTALL_PLATFORM in distrib.in, spld.config.in).
# InstallSICStus will warn if $INSTALL_PLATFORM differs from $BUILD_PLATFORM.


# [PM] 3.8.5 Someone should document the meaning
# of $host vs. $PLATFORM in this configure script
# I suspect that only one should be used, I cannot see a pattern for
# whether $host and $PLATFORM is used in this file
# [PM] 3.8.5 used to set host but need --host for sparc64

# [PD] 3.8.5: make sure $PLATFORM is not affected by the change above
PLATFORM="$real_host"
# [PM] 3.8.5 If --host not specified use sp_platform
# [PM] autoconf 2.13 sets host to NONE even if AC_CANONICAL_HOST is not used
(test "x$host" = xNONE || test "x$host" = x ) && host=$real_host


platform_defaults_64bit=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: The original platform is $PLATFORM" >&5
$as_echo "$as_me: The original platform is $PLATFORM" >&6;}
case $PLATFORM in
   x86_64-linux-*)
      platform_supports_64bit=yes
      platform_defaults_64bit=yes
   ;;
   i386-darwin-9.*)
      platform_supports_64bit=yes
   ;;
   # [PM] 4.2.3 assume that any newer Darwin defaults 64-bit (Darwin 12 is Mac OS X 10.8)
   i*86-darwin-*)
   # i*86-darwin-10.*|i*86-darwin-11.*)
      platform_defaults_64bit=yes
      platform_supports_64bit=yes
   ;;
   arm**-darwin-*)
      platform_defaults_64bit=yes
      platform_supports_64bit=yes
   ;;
   powerpcle64-linux-*)
      platform_defaults_64bit=yes
      platform_supports_64bit=yes
   ;;
   powerpcle6432-linux-*)
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not expect PLATFORM=$PLATFORM" >&5
$as_echo "$as_me: WARNING: Did not expect PLATFORM=$PLATFORM" >&2;}
      platform_supports_64bit=yes
   ;;
   powerpc64-linux-*|powerpc6432-linux-*)
            platform_supports_64bit=yes
   ;;
   aarch64-linux-*)
      platform_defaults_64bit=yes
      platform_supports_64bit=yes
   ;;
   *win32*)
      platform_supports_64bit=yes
   ;;
   *)
      platform_supports_64bit=no
   ;;
esac

# Check whether --enable-64bit was given.
if test "${enable_64bit+set}" = set; then :
  enableval=$enable_64bit; enable_64bit=$enableval
else
  enable_64bit=${platform_defaults_64bit}

fi

case "$enable_64bit" in
  yes|no)
      ;;
  *)
    as_fn_error $? "Illegal --enable-64bit value" "$LINENO" 5
  ;;
esac

if test "$platform_supports_64bit" = no; then
  if test "$enable_64bit" = yes; then
    as_fn_error $? "64bit builds are not supported on this platform" "$LINENO" 5
  fi
fi

if test $platform_supports_64bit = yes; then

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 64bit is enabled" >&5
$as_echo_n "checking whether 64bit is enabled... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_64bit" >&5
$as_echo "$enable_64bit" >&6; }

if test "${enable_64bit}" = "yes"; then
   case "${host}" in
   x86_64-linux-*)
               ;;
   i386-darwin-*)
          host64=`echo "$host" | sed -n -e  's/^i386-/x86_64-/p'`
     if test -z "$host64"; then
       as_fn_error $? "Could not create 64bit equivialent name for host ($host)" "$LINENO" 5
     fi
     host="$host64"
     ;;
   powerpc6432-linux-*)
          host64=`echo "$host" | sed -n -e  's/^powerpc6432\(-.*-.*\)$/powerpc64\1/p'` # akk
     if test -z "$host64"; then
       as_fn_error $? "Could not create 64bit equivialent name for host ($host)" "$LINENO" 5
     fi
     host="$host64"
     ;;
   x86-win32-nt-4)
     host="x86_64-win32-nt-4"
     ;;
   powerpcle64-*-*)
          :
     ;;
   *64-*-*)
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: host should no longer be used with 64bit, use --enable-64bit instead." >&5
$as_echo "$as_me: WARNING: host should no longer be used with 64bit, use --enable-64bit instead." >&2;}
     ;;
   *-*-*)
     host64=`echo "$host" | sed -n -e  's/^\([^-]*\)\(-.*-.*\)$/\164\2/p'`
     if test -z "$host64"; then
       as_fn_error $? "Could not create 64bit equivialent name for host ($host)" "$LINENO" 5
     fi
     host="$host64"
     ;;
   *)
     as_fn_error $? "Malformed host type ($host)" "$LINENO" 5
     ;;
   esac
else    case "${host}" in
   x86_64-linux-*)
          host32=`echo "$host" | sed -n -e  's/^x86_64/x86/p'`
     if test -z "$host32"; then
       as_fn_error $? "Could not create 32bit equivialent name for host ($host)" "$LINENO" 5
     fi
     host="$host32"
     ;;
   *-*-*)
     :
     ;;
   *)
     as_fn_error $? "Malformed host type ($host)" "$LINENO" 5
     ;;
   esac
fi

if test $enable_64bit = yes; then
   case "$PLATFORM" in
   x86_64-linux-*)
               ;;
   i386-darwin-*)
          PLATFORM64=`echo "$PLATFORM" | sed -n -e  's/^i386-/x86_64-/p'`
     if test -z "$PLATFORM64"; then
       as_fn_error $? "Could not create 64bit equivialent name for PLATFORM ($PLATFORM)" "$LINENO" 5
     fi
     PLATFORM="$PLATFORM64"
     ;;
   powerpc6432-linux-*)
          PLATFORM64=`echo "$PLATFORM" | sed -n -e  's/^powerpc6432\(-.*-.*\)$/powerpc64\1/p'` # akk
     if test -z "$PLATFORM64"; then
       as_fn_error $? "Could not create 64bit equivialent name for PLATFORM ($PLATFORM)" "$LINENO" 5
     fi
     PLATFORM="$PLATFORM64"
     ;;
   aarch64-linux-*)
          :
     ;;
   x86-win32-nt-4)
     PLATFORM="x86_64-win32-nt-4"
     ;;
   powerpcle64-*-*)
          :
     ;;
   *64-*-*)
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: host should no longer be used with 64bit, use --enable-64bit instead." >&5
$as_echo "$as_me: WARNING: host should no longer be used with 64bit, use --enable-64bit instead." >&2;}
     ;;
   *-*-*)
     PLATFORM64=`echo "$PLATFORM" | sed -n -e  's/^\([^-]*\)\(-.*-.*\)$/\164\2/p'`
     if test -z "$PLATFORM64"; then
       as_fn_error $? "Could not create 64bit equivialent name for PLATFORM ($PLATFORM)" "$LINENO" 5
     fi
     PLATFORM="$PLATFORM64"
     ;;
   *)
     as_fn_error $? "Malformed PLATFORM type ($PLATFORM)" "$LINENO" 5
     ;;
   esac
else    case "$PLATFORM" in
   x86_64-linux-*)
          PLATFORM32=`echo "$PLATFORM" | sed -n -e  's/^x86_64/x86/p'`
     if test -z "$PLATFORM32"; then
       as_fn_error $? "Could not create 32bit equivialent name for PLATFORM ($PLATFORM)" "$LINENO" 5
     fi
     PLATFORM="$PLATFORM32"
     ;;
   *-*-*)
     :
     ;;
   *)
     as_fn_error $? "Malformed PLATFORM type ($PLATFORM)" "$LINENO" 5
     ;;
   esac
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32/64 bit specific platform name" >&5
$as_echo_n "checking for 32/64 bit specific platform name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PLATFORM}" >&5
$as_echo "${PLATFORM}" >&6; }

if test "${enable_64bit:-no}" = "yes"; then
  SP_64=yes

else
  SP_64=no

fi




# Check whether --with-number_of_cpus was given.
if test "${with_number_of_cpus+set}" = set; then :
  withval=$with_number_of_cpus; with_number_of_cpus=$withval
else
  with_number_of_cpus=0
fi


CPUCOUNTCOMMAND=":"

case $with_number_of_cpus in
  0)
    :
    ;;
  *)
    case $PLATFORM in
      *-darwin-*)
	CPUCOUNTCOMMAND="hwprefs cpu_count=$with_number_of_cpus"
        ;;
      *)
        :
	;;
    esac
esac



# Check if config.cache was made on the same platform. If not, remove it
# and run configure again. Useful is you use the same directory for
# building on several platforms.
PCACHE=./platform.cache

if test -f "${PCACHE}"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking validity of ${PCACHE}" >&5
$as_echo_n "checking validity of ${PCACHE}... " >&6; }
    # [PM] 3.8.7 platform.cache may contain spaces ("Unknown host type ...")
    if test "x`cat "${PCACHE}"`" != "x${host}"; then
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, invalid" >&5
$as_echo "no, invalid" >&6; }
        as_fn_error $? "You need to do make maintainerclean and re-configure" "$LINENO" 5
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
    fi
else
    echo "${host}" > "${PCACHE}"
fi

sp_isbindistr=yes


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable and object file extensions" >&5
$as_echo_n "checking for executable and object file extensions... " >&6; }
case $PLATFORM in
     *win32*)
       # Note that exeext is really exe-suffix and includes the period.
       ac_cv_exeext='.exe'
       ac_cv_objext='obj'
     ;;
     *)
       ac_cv_exeext=''
       ac_cv_objext='o'
     ;;
esac
EXEEXT="$ac_cv_exeext"
OBJEXT="$ac_cv_objext"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$EXEEXT\" and \".$OBJEXT\"" >&5
$as_echo "\"$EXEEXT\" and \".$OBJEXT\"" >&6; }




if test $sp_isbindistr = yes; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is a pre-built installation" >&5
$as_echo_n "checking whether this is a pre-built installation... " >&6; }
   install_prebuilt=$PREBUILT_INSTALL_ENABLED
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_prebuilt" >&5
$as_echo "$install_prebuilt" >&6; }
else    install_prebuilt=no
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prebuilt installations are supported" >&5
$as_echo_n "checking whether prebuilt installations are supported... " >&6; }
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PREBUILT_INSTALL_ENABLED" >&5
$as_echo "$PREBUILT_INSTALL_ENABLED" >&6; }
fi


# SP_CHECK_ABSOLUTE(VAR)
# -------------------------------
# [PM] 4.2.1 Ensure variable is absolute, if non-empty.
# All variables used with AC_PATH_PROG/AC_PATH_PROGS must be absolute
# (the Autoconf 2.61 docs incorrectly claims that any value makes
# AC_PATH_PROG do nothing)



{ case "${SORT:-/}" in /*) ;; *) as_fn_error $? "SORT ($SORT) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "sort${EXEEXT}", so it can be a program name with args.
set dummy sort${EXEEXT}; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_SORT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $SORT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="/bin:/usr/bin:${PATH}"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_SORT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SORT=$ac_cv_path_SORT
if test -n "$SORT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
$as_echo "$SORT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi




{ case "${UNAME:-/}" in /*) ;; *) as_fn_error $? "UNAME ($UNAME) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "uname${EXEEXT}", so it can be a program name with args.
set dummy uname${EXEEXT}; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_UNAME+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $UNAME in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_UNAME="$UNAME" # 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
  test -z "$as_dir" && as_dir=.
    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="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
UNAME=$ac_cv_path_UNAME
if test -n "$UNAME"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
$as_echo "$UNAME" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



# [PM] 4.1 also if !src since we need POSIX_GREP for test suite
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX compliant grep" >&5
$as_echo_n "checking for POSIX compliant grep... " >&6; }


case "${host}" in
  *)
    : ${POSIX_GREP:=`command -p command -p -v grep 2> /dev/null`}
  ;;
esac

if test -n "${POSIX_GREP}"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${POSIX_GREP}" >&5
$as_echo "${POSIX_GREP}" >&6; }
else

    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find POSIX compliant grep, falling back to PATH lookup" >&5
$as_echo "$as_me: WARNING: Could not find POSIX compliant grep, falling back to PATH lookup" >&2;}
  { case "${POSIX_GREP:-/}" in /*) ;; *) as_fn_error $? "POSIX_GREP ($POSIX_GREP) must be an absolute path" "$LINENO" 5; ;; esac; }
  # Extract the first word of "grep$EXEEXT", so it can be a program name with args.
set dummy grep$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_POSIX_GREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $POSIX_GREP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_POSIX_GREP="$POSIX_GREP" # 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
  test -z "$as_dir" && as_dir=.
    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_POSIX_GREP="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
POSIX_GREP=$ac_cv_path_POSIX_GREP
if test -n "$POSIX_GREP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSIX_GREP" >&5
$as_echo "$POSIX_GREP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi

# [PM] 4.2 Check for POSIX shell (not clear whether this is really needed when !src)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX compliant shell" >&5
$as_echo_n "checking for POSIX compliant shell... " >&6; }


case "${host}" in
  *)
    if test -z "${POSIX_SHELL}"; then
       if posix_shell=`command -p command -p -v sh` 2>/dev/null; then
           : ${POSIX_SHELL:="${posix_shell}"}
       fi
    fi
  ;;
esac

if test -n "${POSIX_SHELL}"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${POSIX_SHELL}" >&5
$as_echo "${POSIX_SHELL}" >&6; }
else

    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find POSIX compliant shell, falling back to PATH lookup" >&5
$as_echo "$as_me: WARNING: Could not find POSIX compliant shell, falling back to PATH lookup" >&2;}
  { case "${POSIX_SHELL:-/}" in /*) ;; *) as_fn_error $? "POSIX_SHELL ($POSIX_SHELL) must be an absolute path" "$LINENO" 5; ;; esac; }
  # Extract the first word of "sh$EXEEXT", so it can be a program name with args.
set dummy sh$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_POSIX_SHELL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $POSIX_SHELL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_POSIX_SHELL="$POSIX_SHELL" # 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
  test -z "$as_dir" && as_dir=.
    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_POSIX_SHELL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
POSIX_SHELL=$ac_cv_path_POSIX_SHELL
if test -n "$POSIX_SHELL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSIX_SHELL" >&5
$as_echo "$POSIX_SHELL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi


{ case "${BASH:-/}" in /*) ;; *) as_fn_error $? "BASH ($BASH) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "bash$EXEEXT", so it can be a program name with args.
set dummy bash$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_BASH+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $BASH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_BASH="$BASH" # 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
  test -z "$as_dir" && as_dir=.
    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_BASH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
BASH=$ac_cv_path_BASH
if test -n "$BASH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
$as_echo "$BASH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi




if test "x${prefix}" = "xNONE"; then
   prefix=/usr/local
fi

if test "x${exec_prefix}" = "xNONE"; then
   exec_prefix=$prefix
fi

SICSTUS_MAJOR_VERSION=4
SICSTUS_MINOR_VERSION=10
SICSTUS_REVISION_VERSION=2
SICSTUS_BETA_VERSION=0
# [PM] 4.3.5+ Also see SICSTUS_EXTRA_BOOT_INFO

if test "$SICSTUS_BETA_VERSION" = "0"; then
   SICSTUS_MICRO_VERSION=1000
else
   SICSTUS_MICRO_VERSION=${SICSTUS_BETA_VERSION}
fi
SICSTUS_BUILD_VERSION="${SICSTUS_MAJOR_VERSION}.${SICSTUS_MINOR_VERSION}.${SICSTUS_REVISION_VERSION}.${SICSTUS_MICRO_VERSION}"

# [PM] DBGFLAG should be set for binary distributions as well. (overwritten if src build)
DBGFLAG=yes
# [PM] 3.9.1 OPTFLAG should be set for binary distributions as well. (overwritten if src build)
OPTFLAG=yes


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking debugging" >&5
$as_echo_n "checking debugging... " >&6; }
# Check whether --enable-dbg was given.
if test "${enable_dbg+set}" = set; then :
  enableval=$enable_dbg; DBGFLAG="$enableval"
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DBGFLAG}" >&5
$as_echo "${DBGFLAG}" >&6; }
if test "${DBGFLAG}" != yes; then
    PERSISTENT_CONFIGURE_OPTIONS="${PERSISTENT_CONFIGURE_OPTIONS} --enable-dbg=$DBGFLAG"
fi

SP_NEW_DBG_POLICY_default=yes

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking new debug flag policy" >&5
$as_echo_n "checking new debug flag policy... " >&6; }
new_policy="${SP_NEW_DBG_POLICY_default}"
# Check whether --enable-dbg was given.
if test "${enable_dbg+set}" = set; then :
  enableval=$enable_dbg; new_policy="$enableval"
fi


if test "${new_policy:-no}" != no; then
  SP_NEW_DBG_POLICY=yes
  $as_echo "#define SP_NEW_DBG_POLICY 1" >>confdefs.h

else
  SP_NEW_DBG_POLICY=no
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SP_NEW_DBG_POLICY}" >&5
$as_echo "${SP_NEW_DBG_POLICY}" >&6; }
if test "${SP_NEW_DBG_POLICY}" != "${SP_NEW_DBG_POLICY_default}"; then
    PERSISTENT_CONFIGURE_OPTIONS="${PERSISTENT_CONFIGURE_OPTIONS} --enable-new-dbg-policy=${SP_NEW_DBG_POLICY}"
fi

case "${DBGFLAG:-yes}" in
    yes|no)
	DEBUG_BUILD=no
	;;
    *)
                        cat >>confdefs.h <<_ACEOF
#define SICSTUS_DBG $DBGFLAG
_ACEOF

	DEBUG_BUILD=yes
	;;
esac



# [PM] 4.1 we need to set SICSTUS_RELEASE_BUILD also in binary
# installs to enable analyze_bench_speed Suite target.
# AND for SPLD_CONFIG_CFLAGS (SPRM 11482)

if test "${DEBUG_BUILD}" = "yes"; then
  SICSTUS_RELEASE_BUILD_default="no"
elif test "$SICSTUS_BETA_VERSION" != "0"; then
  SICSTUS_RELEASE_BUILD_default="no"
else
  SICSTUS_RELEASE_BUILD_default="yes"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is a release build" >&5
$as_echo_n "checking whether this is a release build... " >&6; }
# Check whether --enable-release-build was given.
if test "${enable_release_build+set}" = set; then :
  enableval=$enable_release_build; SICSTUS_RELEASE_BUILD="$enableval"
else
  SICSTUS_RELEASE_BUILD="${SICSTUS_RELEASE_BUILD_default}"
fi


if test "${SICSTUS_RELEASE_BUILD}" = "yes"; then
  SICSTUS_RELEASE_BUILD="yes"
  $as_echo "#define SICSTUS_RELEASE_BUILD 1" >>confdefs.h

else # !SICSTUS_RELEASE_BUILD
  if test "${SICSTUS_RELEASE_BUILD_default}" != "no"; then
        as_fn_error $? "Cannot use --disable-release-build" "$LINENO" 5
  fi
  SICSTUS_RELEASE_BUILD="no"
  $as_echo "#define SICSTUS_RELEASE_BUILD 0" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SICSTUS_RELEASE_BUILD}" >&5
$as_echo "${SICSTUS_RELEASE_BUILD}" >&6; }





cat >>confdefs.h <<_ACEOF
#define SICSTUS_MAJOR_VERSION $SICSTUS_MAJOR_VERSION
_ACEOF

cat >>confdefs.h <<_ACEOF
#define SICSTUS_MINOR_VERSION $SICSTUS_MINOR_VERSION
_ACEOF

cat >>confdefs.h <<_ACEOF
#define SICSTUS_REVISION_VERSION $SICSTUS_REVISION_VERSION
_ACEOF

cat >>confdefs.h <<_ACEOF
#define SICSTUS_BETA_VERSION $SICSTUS_BETA_VERSION
_ACEOF


if test "${SICSTUS_BETA_VERSION:-0}" = "0"; then
  SICSTUS_BETA_VERSION_STRING=""
else
  SICSTUS_BETA_VERSION_STRING="beta$SICSTUS_BETA_VERSION"
fi

SICSTUS_VERSION_STRING="$SICSTUS_MAJOR_VERSION.$SICSTUS_MINOR_VERSION.$SICSTUS_REVISION_VERSION$SICSTUS_BETA_VERSION_STRING"
SP_DIRNAME="sicstus-$SICSTUS_VERSION_STRING"
SP_RTSYS_DIRNAME_UNIX="sp-$SICSTUS_VERSION_STRING"
SP_RTSYS_DIRNAME_WIN="${SP_RTSYS_DIRNAME_UNIX}"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SICStus version" >&5
$as_echo_n "checking SICStus version... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SICSTUS_VERSION_STRING" >&5
$as_echo "$SICSTUS_VERSION_STRING" >&6; }


cat >>confdefs.h <<_ACEOF
#define SICSTUS_VERSION_STRING "$SICSTUS_VERSION_STRING"
_ACEOF

# [PM 4.0.5 printf '%.2d%.2d%.2d' is tempting but would become octal if major version is single digit.
SICSTUS_VERSION=`expr '(' '(' '(' "$SICSTUS_MAJOR_VERSION" '*' 100 ')' '+' "$SICSTUS_MINOR_VERSION" ')' '*' 100 ')' '+' "$SICSTUS_REVISION_VERSION"`
cat >>confdefs.h <<_ACEOF
#define SICSTUS_VERSION  $SICSTUS_VERSION
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version specific name for SP_get_dispatch" >&5
$as_echo_n "checking version specific name for SP_get_dispatch... " >&6; }
SP_GET_DISPATCH_NAME="SP_get_dispatch_${SICSTUS_VERSION}"
cat >>confdefs.h <<_ACEOF
#define SP_GET_DISPATCH_NAME  $SP_GET_DISPATCH_NAME
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SP_GET_DISPATCH_NAME" >&5
$as_echo "$SP_GET_DISPATCH_NAME" >&6; }





# [PM] 4.3 SP_AVOID_PREFIX_MINUS_ARGUMENT_BRACKETING must be seen in
# product installs so the test suite does the right thing for iso
# suite.

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bracketing should be avoided in the argument to prefix minus" >&5
$as_echo_n "checking whether bracketing should be avoided in the argument to prefix minus... " >&6; }
SP_AVOID_PREFIX_MINUS_ARGUMENT_BRACKETING_default=no
# Check whether --enable-avoid-prefix-minus-argument-bracketing was given.
if test "${enable_avoid_prefix_minus_argument_bracketing+set}" = set; then :
  enableval=$enable_avoid_prefix_minus_argument_bracketing; if test "${enableval:-no}" = "yes"; then
	    SP_AVOID_PREFIX_MINUS_ARGUMENT_BRACKETING=yes
	else
	    SP_AVOID_PREFIX_MINUS_ARGUMENT_BRACKETING=no
	fi
else
  SP_AVOID_PREFIX_MINUS_ARGUMENT_BRACKETING=${SP_AVOID_PREFIX_MINUS_ARGUMENT_BRACKETING_default}
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SP_AVOID_PREFIX_MINUS_ARGUMENT_BRACKETING" >&5
$as_echo "$SP_AVOID_PREFIX_MINUS_ARGUMENT_BRACKETING" >&6; }


# [PM] 4.3 SP_CLAUSE_ISO_BODY must be seen in product installs so the
# test suite does the right thing for iso suite.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clause/2 et al. should hide the non-ISO-compliant rewriting we do" >&5
$as_echo_n "checking whether clause/2 et al. should hide the non-ISO-compliant rewriting we do... " >&6; }

# [PM] 4.3 Was, in effect, 'no' pre 4.3. Need 'yes' for 13322-1 compliance.
SP_CLAUSE_ISO_BODY_default=yes
# Check whether --enable-iso-body was given.
if test "${enable_iso_body+set}" = set; then :
  enableval=$enable_iso_body; if test "${enableval:-no}" = "yes"; then
	    SP_CLAUSE_ISO_BODY=yes
	else
	    SP_CLAUSE_ISO_BODY=no
	fi
else
  SP_CLAUSE_ISO_BODY=${SP_CLAUSE_ISO_BODY_default}
fi



if test "${SP_CLAUSE_ISO_BODY}" = "yes"; then
  $as_echo "#define SP_CLAUSE_ISO_BODY 1" >>confdefs.h

else
  $as_echo "#define SP_CLAUSE_ISO_BODY 0" >>confdefs.h

fi
if test "${SP_CLAUSE_ISO_BODY}" = "yes"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SP_CLAUSE_ISO_BODY (ISO 13322-1 compatible)" >&5
$as_echo "$SP_CLAUSE_ISO_BODY (ISO 13322-1 compatible)" >&6; }
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SP_CLAUSE_ISO_BODY (not ISO 13322-1 compatible)" >&5
$as_echo "$SP_CLAUSE_ISO_BODY (not ISO 13322-1 compatible)" >&6; }
fi

# [PM] 4.3 SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING must be seen
# in product installs so the test suite does the right thing for iso
# suite.
if test "${SP_CLAUSE_ISO_BODY}" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clause/2 et al. should hide the module wrapping of meta argument done in callers" >&5
$as_echo_n "checking whether clause/2 et al. should hide the module wrapping of meta argument done in callers... " >&6; }
  # [PM] 4.3 Was, in effect, 'no' pre 4.3. Need 'yes' for 13322-1 compliance.
  SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING_default=yes

  # Check whether --enable-iso-body-hide-meta-wrapping was given.
if test "${enable_iso_body_hide_meta_wrapping+set}" = set; then :
  enableval=$enable_iso_body_hide_meta_wrapping; if test "${enableval:-no}" = "yes"; then
              SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING=yes
          else
              SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING=no
          fi
else
  SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING=${SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING_default}
fi



  if test "${SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING}" = "yes"; then
    $as_echo "#define SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING 1" >>confdefs.h

  else
    $as_echo "#define SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING 0" >>confdefs.h

  fi
  if test "${SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING}" = "yes"; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING (ISO 13322-1 compatible)" >&5
$as_echo "$SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING (ISO 13322-1 compatible)" >&6; }
  else
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING (not ISO 13322-1 compatible)" >&5
$as_echo "$SP_CLAUSE_ISO_BODY_NO_META_ARGUMENT_WRAPPING (not ISO 13322-1 compatible)" >&6; }
  fi
fi # SP_CLAUSE_ISO_BODY



case $PLATFORM in
       *win32*)
         CYGPATH="cygpath -m" # -m uses forward slash
         CYGPATHBACKSLASH="cygpath -w"


                                                                        NATIVEPATH='$(shell $(CYGPATH) "$(strip $(1))")'
         NATIVEPATHBACKSLASH='$(shell $(CYGPATHBACKSLASH) "$(strip $(1))")'
       ;;
       *)
         CYGPATH=echo
         CYGPATHBACKSLASH=echo
         NATIVEPATH='$(strip $(1))'
         NATIVEPATHBACKSLASH='$(strip $(1))'
      ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
$as_echo_n "checking for CYGPATH... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
$as_echo "$CYGPATH" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATHBACKSLASH" >&5
$as_echo_n "checking for CYGPATHBACKSLASH... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATHBACKSLASH" >&5
$as_echo "$CYGPATHBACKSLASH" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVEPATH" >&5
$as_echo_n "checking for NATIVEPATH... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVEPATH" >&5
$as_echo "$NATIVEPATH" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVEPATHBACKSLASH" >&5
$as_echo_n "checking for NATIVEPATHBACKSLASH... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVEPATHBACKSLASH" >&5
$as_echo "$NATIVEPATHBACKSLASH" >&6; }






EMACS_MODE_LINE_BUFFER_READONLY='"; buffer-read-only:t; dummy2:"'


CURR_PWD="`pwd`"

case $host in
    *win32*)
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CURR_PWD ($CURR_PWD) path needs spaces removed" >&5
$as_echo_n "checking whether CURR_PWD ($CURR_PWD) path needs spaces removed... " >&6; }
        if expr "X${CURR_PWD}" : ".* .*" 1>/dev/null 2>&1; then # contains a space
           CURR_PWD_NATIVE_PATH=`cygpath -m -s "${CURR_PWD}"`
           if test -n "${CURR_PWD_NATIVE_PATH}"; then
              CURR_PWD="`cygpath -u "${CURR_PWD_NATIVE_PATH}"`"
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($CURR_PWD)" >&5
$as_echo "yes ($CURR_PWD)" >&6; }
           else
              as_fn_error $? "Failed to remove spaces from CURR_PWD path ($CURR_PWD)" "$LINENO" 5
           fi
        else
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
        fi
     ;;
esac

TOP_SRCDIR="$CURR_PWD"




if test $sp_isbindistr = yes; then
    SP_ROOTDIR="$prefix"
else
   case $PLATFORM in
       *win32*)
          SP_ROOTDIR="$TOP_SRCDIR"
       ;;
       *)
          SP_ROOTDIR="$TOP_SRCDIR/Utils/$host"
       ;;
   esac
fi

SP_BINDIR="$SP_ROOTDIR/bin"


SPLD_CONFIG_FILE_BASENAME="spconfig-$SICSTUS_VERSION_STRING"


: ${SPLD_CONFIG_FILE="$SP_BINDIR/$SPLD_CONFIG_FILE_BASENAME"}


: ${JASPER_SPLFR_FLAGS=""}



case $PLATFORM in
    *win32*)
      SP_ROOTLIBDIR="$SP_ROOTDIR"
    ;;
    *)
      SP_ROOTLIBDIR="$SP_ROOTDIR/lib"
    ;;
esac


case $PLATFORM in
    *win32*)
       SP_PATHDIR="$SP_ROOTDIR"
    ;;
    *)
       SP_PATHDIR="$SP_ROOTLIBDIR/$SP_DIRNAME"
    ;;
esac


SP_BINAUXDIR="$SP_PATHDIR/bin"


# Library-modules
SP_LIBRARY_DIR="$SP_PATHDIR/library"


SPVER="${SICSTUS_MAJOR_VERSION}-${SICSTUS_MINOR_VERSION}-${SICSTUS_REVISION_VERSION}${SICSTUS_BETA_VERSION_STRING:+-}${SICSTUS_BETA_VERSION_STRING}"


UNIX_RTKERNEL_BASENAME_SANS_SUFFIX="libsprt${SPVER}"

WIN32_RTKERNEL_BASENAME_SANS_SUFFIX="sprt${SPVER}"


case "${PLATFORM}" in
    *win32*)
       RTKERNEL_BASENAME_SANS_SUFFIX="${WIN32_RTKERNEL_BASENAME_SANS_SUFFIX}"
    ;;
    *)
       RTKERNEL_BASENAME_SANS_SUFFIX="${UNIX_RTKERNEL_BASENAME_SANS_SUFFIX}"
    ;;
esac


RTKERNEL_INSTANCE_TEMPLATE="${RTKERNEL_BASENAME_SANS_SUFFIX}-instance-XX"

cat >>confdefs.h <<_ACEOF
#define RTKERNEL_INSTANCE_TEMPLATE_STRING "${RTKERNEL_INSTANCE_TEMPLATE}"
_ACEOF



# Check whether --with-release-month was given.
if test "${with_release_month+set}" = set; then :
  withval=$with_release_month; RELEASE_MONTH=$withval
else
  RELEASE_MONTH=`date +%B`
fi




# Check whether --with-release-year was given.
if test "${with_release_year+set}" = set; then :
  withval=$with_release_year; RELEASE_YEAR=$withval
else
  RELEASE_YEAR=`date +%Y`

fi


cat >>confdefs.h <<_ACEOF
#define RELEASE_YEAR $RELEASE_YEAR
_ACEOF




{ case "${MAKE:-/}" in /*) ;; *) as_fn_error $? "MAKE ($MAKE) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "make$EXEEXT", so it can be a program name with args.
set dummy make$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_MAKE+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $MAKE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MAKE="$MAKE" # 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
  test -z "$as_dir" && as_dir=.
    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_MAKE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
MAKE=$ac_cv_path_MAKE
if test -n "$MAKE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
$as_echo "$MAKE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi


# Set CONFIG_AUX_DIR to an absolute path. This is needed in order for
# INSTALL to be set to an absolute path if no install-program is found
# and install-sh is used as a fallback.
ac_aux_dir=
for ac_dir in $TOP_SRCDIR "$srcdir"/$TOP_SRCDIR; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOP_SRCDIR \"$srcdir\"/$TOP_SRCDIR" "$LINENO" 5
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.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking testsuite" >&5
$as_echo_n "checking testsuite... " >&6; }

# Check whether --with-suite was given.
if test "${with_suite+set}" = set; then :
  withval=$with_suite; SUITE=$withval
     EXPLICIT_SUITE=yes
else
  SUITE=yes
     EXPLICIT_SUITE=no
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUITE" >&5
$as_echo "$SUITE" >&6; }
if test "x$SUITE" != "xyes"; then
  EXPLICIT_SUITE=no
fi

#################################################################
#
# Check for C compiler.
#
#################################################################
case $host in
    *win32*)    # Use cl per default on cygwin hosts
	: ${CC=cl.exe}
	: ${CXX=cl.exe}
        : ${CPP="cl.exe -nologo -E"}
        msvc_cc=yes
	;;
    *)
        msvc_cc=no
        ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default C-compiler" >&5
$as_echo_n "checking default C-compiler... " >&6; }
# Check whether --enable-cc was given.
if test "${enable_cc+set}" = set; then :
  enableval=$enable_cc;
        if test "$enableval" = "yes"; then
	    CC='cc'
	else
	    CC=$enableval
	fi

fi


if test -z "${CC}"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CC}" >&5
$as_echo "${CC}" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default C++ compiler" >&5
$as_echo_n "checking default C++ compiler... " >&6; }
# Check whether --enable-CC was given.
if test "${enable_CC+set}" = set; then :
  enableval=$enable_CC;
        case "$enableval" in
        yes)
	    CXX='CC'
            ;;
        no)             sp_prog_cxx_succeeds=no
            unset CXX
            ;;
	*)
	    CXX="$enableval"
            ;;
	esac

fi


if test "x$sp_prog_cxx_succeeds" = "xno"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
else
  if test -z "$CXX"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
  fi
fi





mono_dotnet_launcher_args_default=''

mono_bin_default=''
case $PLATFORM in
     *darwin*)
        default_mono_framework=''
        if test -d '/Library/Frameworks/Mono.framework' ; then
           default_mono_framework='/Library/Frameworks/Mono.framework'
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Path to Mono framework" >&5
$as_echo_n "checking Path to Mono framework... " >&6; }

# Check whether --with-mono-framework was given.
if test "${with_mono_framework+set}" = set; then :
  withval=$with_mono_framework; MONO_FRAMEWORK="$withval"
else
  MONO_FRAMEWORK="$default_mono_framework"

fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MONO_FRAMEWORK:-none}" >&5
$as_echo "${MONO_FRAMEWORK:-none}" >&6; }
	if test -d "$MONO_FRAMEWORK" && test -d "$MONO_FRAMEWORK/Commands"; then
	   mono_bin_default="$MONO_FRAMEWORK/Commands"
	fi

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether macOS supports 32-bit" >&5
$as_echo_n "checking whether macOS supports 32-bit... " >&6; }
	# [PM] 4.6.0 On macOS, Windows.Forms only works in 32-bit mono'
        can_pb_evaluate_dotnet_csharp=yes
         macos_MM_mm="$( sw_vers -productVersion | sed -n 's/^\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$/\1.\2/p' )"
        case "${macos_MM_mm:-unknown}" in
             10.*)
                 macos_mm="$( expr "${macos_MM_mm}" : '10\.\([1-9][0-9]*\)' )"
                # [PM] 4.7.0 From macOS 10.15 Catalina, "32-bit apps are no longer compatible with macOS."
                if test "${macos_mm:-999}" -lt 15 ; then
                   mono_dotnet_launcher_args_default='--arch=32'
                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, ${macos_MM_mm}" >&5
$as_echo "yes, ${macos_MM_mm}" >&6; }
                else
                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, ${macos_MM_mm}" >&5
$as_echo "no, ${macos_MM_mm}" >&6; }
                   can_pb_evaluate_dotnet_csharp=no
                fi
             ;;
             *) # macOS 11 (Big Sur) or later. No 32-bit support.
             	mono_dotnet_launcher_args_default=''
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, ${macos_MM_mm:-unknown version}" >&5
$as_echo "no, ${macos_MM_mm:-unknown version}" >&6; }
                can_pb_evaluate_dotnet_csharp=no
             ;;
        esac
        if test "${can_pb_evaluate_dotnet_csharp:-yes}" = "no"; then
           # pb_evaluate_dotnet_csharp hangs after dumping threads.
           SUITE_SKIPPED_TESTS="${SUITE_SKIPPED_TESTS}${SUITE_SKIPPED_TESTS:+ }pb_evaluate_dotnet_csharp"
           SUITE_EXPECTED_FAILURES="${SUITE_EXPECTED_FAILURES}${SUITE_EXPECTED_FAILURES:+ }pb_evaluate_dotnet_csharp"
        fi
     ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Path to Mono binaries" >&5
$as_echo_n "checking Path to Mono binaries... " >&6; }

# Check whether --with-mono-bin was given.
if test "${with_mono_bin+set}" = set; then :
  withval=$with_mono_bin; MONO_BIN="$withval"
else
  MONO_BIN="$mono_bin_default"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MONO_BIN:-none}" >&5
$as_echo "${MONO_BIN:-none}" >&6; }

# The C# compiler in Mono is MCS, in .NET it is CSC
if test "${MONO_BIN:+set}" = "set"; then
   csc_basename_default="mcs$EXEEXT"
else
   csc_basename_default="csc$EXEEXT"
fi


{ case "${DOTNET:-/}" in /*) ;; *) as_fn_error $? "DOTNET ($DOTNET) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "dotnet$EXEEXT", so it can be a program name with args.
set dummy dotnet$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_DOTNET+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $DOTNET in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DOTNET="$DOTNET" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="${DOTNET_BIN:+${DOTNET_BIN}:}${PATH}"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_DOTNET="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
DOTNET=$ac_cv_path_DOTNET
if test -n "$DOTNET"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOTNET" >&5
$as_echo "$DOTNET" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


case $host in
    *win32*)
        if expr "X${DOTNET}" : ".* .*" 1>/dev/null 2>&1; then # contains a space
           DOTNET=`cygpath -m -s "${DOTNET}"`
        fi
        if test -n "${DOTNET}"; then
           DOTNET="`cygpath -u "${DOTNET}"`"
        fi
    ;;
esac


case $host in
    *win32*)
        dotnet4dir_native="${SYSTEMROOT:-${WINDIR}}\\Microsoft.NET\\Framework\\v4.0.30319"
        DOTNET4DIR="$(cygpath -u "${dotnet4dir_native}")"
	DOTNET_BIN="${DOTNET4DIR}"
	;;
    *)
	DOTNET_BIN="${MONO_BIN}"
	;;
esac


{ case "${CSC:-/}" in /*) ;; *) as_fn_error $? "CSC ($CSC) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "$csc_basename_default", so it can be a program name with args.
set dummy $csc_basename_default; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_CSC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $CSC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CSC="$CSC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="${DOTNET_BIN:+${DOTNET_BIN}:}${PATH}"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_CSC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
CSC=$ac_cv_path_CSC
if test -n "$CSC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC" >&5
$as_echo "$CSC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi





{ case "${DOTNET_LAUNCHER:-/}" in /*) ;; *) as_fn_error $? "DOTNET_LAUNCHER ($DOTNET_LAUNCHER) must be an absolute path" "$LINENO" 5; ;; esac; }
if test "${MONO_BIN:+set}" = "set"; then

 # Extract the first word of "mono$EXEEXT", so it can be a program name with args.
set dummy mono$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_DOTNET_LAUNCHER+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $DOTNET_LAUNCHER in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DOTNET_LAUNCHER="$DOTNET_LAUNCHER" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="${DOTNET_BIN:+${DOTNET_BIN}:}${PATH}"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_DOTNET_LAUNCHER="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
DOTNET_LAUNCHER=$ac_cv_path_DOTNET_LAUNCHER
if test -n "$DOTNET_LAUNCHER"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOTNET_LAUNCHER" >&5
$as_echo "$DOTNET_LAUNCHER" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



fi # using Mono




if test "${MONO_BIN:+set}" = "set"; then
   : ${DOTNET_LAUNCHER_ARGS:="${mono_dotnet_launcher_args_default}"}
fi # using Mono




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default C# compiler" >&5
$as_echo_n "checking default C# compiler... " >&6; }

if test "${CSC:-no}" = "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
    CSC=no
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC" >&5
$as_echo "$CSC" >&6; }
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}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
  test -z "$as_dir" && as_dir=.
    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"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
  test -z "$as_dir" && as_dir=.
    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"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
  test -z "$as_dir" && as_dir=.
    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"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
  test -z "$as_dir" && as_dir=.
    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"
    $as_echo "$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
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
  test -z "$as_dir" && as_dir=.
    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"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
  test -z "$as_dir" && as_dir=.
    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"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "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:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$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.
$as_echo "$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\""
$as_echo "$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
  $as_echo "$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 ()
{

  ;
  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.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
ac_link_default=`$as_echo "$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\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  $as_echo "$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+set}" = set && 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
  ac_file=''
fi
if test -z "$ac_file"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$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
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "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\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$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
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$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; }
fi
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$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 ()
{
FILE *f = fopen ("conftest.out", "w");
 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.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "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\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$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\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$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
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details" "$LINENO" 5; }
    fi
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if ${ac_cv_objext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  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\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$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; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if ${ac_cv_c_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

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

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if ${ac_cv_prog_cc_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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 ()
{

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

int
main ()
{

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

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  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.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; 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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

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 "${GCC:-no}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc ($CC) is really Intel icc" >&5
$as_echo_n "checking whether gcc ($CC) is really Intel icc... " >&6; }

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

int
main ()
{
#ifndef __INTEL_COMPILER
     not intel compiler
    #endif
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ICC=yes
else
  ICC=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICC" >&5
$as_echo "$ICC" >&6; };

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc ($CC) is really clang" >&5
$as_echo_n "checking whether gcc ($CC) is really clang... " >&6; }
    cc_version=`$CC --version | head -n 1` 2> /dev/null
    case "${cc_version}" in
     *clang*)
       CLANG=yes
     ;;
     *)
       CLANG=no
     ;;
    esac
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
$as_echo "$CLANG" >&6; }
    if test $CLANG = yes ; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking clang version (parsing \"$cc_version\")" >&5
$as_echo_n "checking clang version (parsing \"$cc_version\")... " >&6; }
      clang_version="${cc_version}"
      clang_apple_version_guessed=''

      if echo "${clang_version}" |  $POSIX_GREP '[Aa][Pp][Pp][Ll][Ee]'  1>/dev/null 2>&1 ; then
         # Apple version


         clang_apple_version=`echo "$cc_version" | sed -n  's/[Aa][Pp][Pp][Ll][Ee] LLVM version \([1-9][0-9]*\.[0-9][0-9]*\).*/\1/p' `
         clang_llvm_version=`echo "$cc_version" | sed -n  's/.* LLVM version \([1-9][0-9]*\.[0-9][0-9]*\).*/\1/p' `
         clang_llvm_version_major=`echo "$clang_llvm_version" | sed -n  's/\([1-9][0-9]*\)\..*/\1/p' `
         clang_llvm_version_minor=`echo "$clang_llvm_version" | sed -n  's/[1-9][0-9]*\.\([0-9][0-9]*\).*/\1/p' `

                  if test -z "$clang_llvm_version"; then
           clang_apple_version=11.0
           clang_llvm_version_major='8'
           clang_llvm_version_minor='0'
           clang_llvm_version="${clang_llvm_version_major}.${clang_llvm_version_minor}"
           clang_apple_version_guessed=' (guessed)'
         fi

      else # Not Apple version (e.g. MacPorts)
       # something like "clang version 3.4 (tags/RELEASE_34/final)"
         clang_apple_version=''
         clang_llvm_version=`echo "$cc_version" | sed -n  's/.*clang *version *\([1-9][0-9]*\.[0-9][0-9]*\).*/\1/p' `
         clang_llvm_version_major=`echo "$clang_llvm_version" | sed -n  's/\([1-9][0-9]*\)\..*/\1/p' `
         clang_llvm_version_minor=`echo "$clang_llvm_version" | sed -n  's/[1-9][0-9]*\.\([0-9][0-9]*\).*/\1/p' `
      fi


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${clang_version}${clang_llvm_version:+ (LLVM $clang_llvm_version, Major: ${clang_llvm_version_major}, Minor: ${clang_llvm_version_minor})}${clang_apple_version:+ (Apple $clang_apple_version)}${clang_apple_version_guessed}" >&5
$as_echo "${clang_version}${clang_llvm_version:+ (LLVM $clang_llvm_version, Major: ${clang_llvm_version_major}, Minor: ${clang_llvm_version_minor})}${clang_apple_version:+ (Apple $clang_apple_version)}${clang_apple_version_guessed}" >&6; }

            : ${clang_version:=unknown}
      : ${clang_llvm_version:=unknown}
      : ${clang_apple_version:=unknown}
    else
            clang_version=''
      clang_apple_version=''
      clang_llvm_version=''
    fi
fi

CC_IS_GCC=${GCC:-no}

CC_IS_CLANG=${CLANG:-no}

CC_IS_MSVC=${CC_IS_MSVC:-no}


case "${DBGFLAG:-yes}" in
    yes|no)
	;;
    *)
                if test "${SP_NEW_DBG_POLICY:-no}" = "yes"; then

                                                            CFLAGS="$CFLAGS -DDBG=1.2.3.4DO_NOT_USE6.7.8 -DDBG_POISON"
        else
          CFLAGS="$CFLAGS -DDBG=$DBGFLAG"
        fi
	;;
esac



case $PLATFORM in
   *darwin-*)
      has_apple_gcc_default=yes
      # Check whether --enable-apple-gcc was given.
if test "${enable_apple_gcc+set}" = set; then :
  enableval=$enable_apple_gcc; has_apple_gcc="$enableval"
else
  has_apple_gcc="${has_apple_gcc_default}"
fi

      # normalize
      case "${has_apple_gcc:-yes}" in
        no)
        ;;
        *)
        has_apple_gcc=yes
        ;;
      esac

      if test "${CLANG:-no}" = "yes"; then
         no_cpp_precomp=''
      fi

      if test "${has_apple_gcc:-yes}" = "yes" ; then
         : ${no_cpp_precomp='-no-cpp-precomp'}
      fi

      if test "${GCC:-no}" = "yes"; then

         : ${CPP="${CC} -E ${no_cpp_precomp}"}
      fi
   ;;
   *)
   ;;
esac

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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "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 ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-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.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # 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.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
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
  # Passes both tests.
ac_preproc_ok=:
break
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

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$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.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # 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.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
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
  # Passes both tests.
ac_preproc_ok=:
break
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
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
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






# [PM] 3.8.7,3.9b2 autoconf 2.52 configure will incorrectly add -g to
#            CFLAGS even though cl does not permit it. So, remove -g
#            if win32 cl or if explicitly requesting no debugging info
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -g should be passed to C compiler (${CC})" >&5
$as_echo_n "checking whether -g should be passed to C compiler (${CC})... " >&6; }
keep_minus_g=yes
case $host in
    *win32*)

        if test "${msvc_cc}" = yes; then
           keep_minus_g=no
        fi
	;;
    *)
	if test "${DBGFLAG:-yes}" = no; then
           keep_minus_g=no
        fi
        ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${keep_minus_g}" >&5
$as_echo "${keep_minus_g}" >&6; }

if test "${keep_minus_g}" = no; then
  NEW_CFLAGS=''
  for cflag in $CFLAGS
  do
      case "${cflag}" in
          -g)
              : # discard -g
              ;;
          *)
              NEW_CFLAGS="$NEW_CFLAGS $cflag"
              ;;
      esac
  done

  CFLAGS="${NEW_CFLAGS}"
fi # !keep_minus_g

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler should warn about unused variables etc" >&5
$as_echo_n "checking whether C compiler should warn about unused variables etc... " >&6; }
# Check whether --enable-cc-warning-unused was given.
if test "${enable_cc_warning_unused+set}" = set; then :
  enableval=$enable_cc_warning_unused; cc_warning_unused=$enableval
else
  cc_warning_unused=yes # [PM] 3.9b5 default on

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_warning_unused" >&5
$as_echo "$cc_warning_unused" >&6; }


CFLAGS_EXTRA=""

CFLAGS_EXTRA_SEMANTICS=""



: ${cc_warnings_are_errors=no}



: ${picky_cc=no}

# Not all compilers rejects unknown parameters.
if test "${GCC:-no}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC}) accepts -pipe" >&5
$as_echo_n "checking whether the C compiler (${CC}) accepts -pipe... " >&6; }
    echo "int main() { return 0; }" > dummy.c
    if "${CC}" -pipe dummy.c -o dummy >/dev/null 2>&1 && ./dummy; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	CFLAGS="$CFLAGS -pipe"
    else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    rm -f dummy*
fi

if test "${GCC:-no}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
$as_echo_n "checking gcc version... " >&6; }

                GCC_VERSION=`${CC} --version | tr '\n' ' '`

    cat > gcctmp.c <<EOF
#include <stdio.h>
int main(int argc, char **argv) {
    int gcc_minor =
#ifdef __GNUC__
    printf("%d",(int)__GNUC__);
#endif
    return 0;
}
EOF
    ${CC-cc} gcctmp.c -o ./gcctmp
    GCC_MAJOR=`./gcctmp`
    : ${GCC_MAJOR:=0}


    cat > gcctmp.c <<EOF
#include <stdio.h>
int main(int argc, char **argv) {
    int gcc_minor =
#ifdef __GNUC_MINOR__
    printf("%d",(int)__GNUC_MINOR__);
#endif
    return 0;
}
EOF
    ${CC-cc} gcctmp.c -o ./gcctmp
    GCC_MINOR=`./gcctmp`
    : ${GCC_MINOR:=0}

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Major version $GCC_MAJOR, minor version $GCC_MINOR" >&5
$as_echo "Major version $GCC_MAJOR, minor version $GCC_MINOR" >&6; }
    rm -f gcctmp*
fi

if test "${GCC:-no}" = "yes"; then
    VERBOSE_FLAG="-v"
    NOVERBOSE_FLAG=""
else
    VERBOSE_FLAG=""
    NOVERBOSE_FLAG=""
fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC}) should be used for shared linking" >&5
$as_echo_n "checking whether the C compiler (${CC}) should be used for shared linking... " >&6; }
# Check whether --enable-cc-shld was given.
if test "${enable_cc_shld+set}" = set; then :
  enableval=$enable_cc_shld; enable_cc_shld=$enableval
else
  enable_cc_shld="default"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cc_shld" >&5
$as_echo "$enable_cc_shld" >&6; }


ENABLE_GPROF=no
ENABLE_GCOV=no



{ case "${VALGRIND:-/}" in /*) ;; *) as_fn_error $? "VALGRIND ($VALGRIND) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "valgrind$EXEEXT", so it can be a program name with args.
set dummy valgrind$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_VALGRIND+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $VALGRIND in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_VALGRIND="$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
  test -z "$as_dir" && as_dir=.
    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_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
VALGRIND=$ac_cv_path_VALGRIND
if test -n "$VALGRIND"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
$as_echo "$VALGRIND" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind suppression files" >&5
$as_echo_n "checking for valgrind suppression files... " >&6; }
if test -z "${VALGRIND_SUPPRESSIONS_FILES}"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${VALGRIND_SUPPRESSIONS_FILES}" >&5
$as_echo "${VALGRIND_SUPPRESSIONS_FILES}" >&6; }
fi



# [PM] 4.3.4 MiniZinc IDE 2.0 on OS X makes it more convenient to
# always specify the binary directory instead of the install
# directory.
#
# [PM] 4.3 Try to figure out MINIZINC_DIR, preferably from explicit argument, otherwise from explicit MINIZINC.
# Note: We do not want to use a path found on PATH here, so use the raw MINIZINC.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to MiniZinc binaries" >&5
$as_echo_n "checking for path to MiniZinc binaries... " >&6; }



minizinc_bin_dir_arg_="${MINIZINC_BIN_DIR}"
case $host in
    *win32*)
     case "${minizinc_bin_dir_arg_}" in
     xx-quoted-win-path:*)
	minizinc_bin_dir_arg_win32="$(echo "${minizinc_bin_dir_arg_}" | sed -e 's/^xx-quoted-win-path://' -e 's/%/ /g')"
	minizinc_bin_dir_arg=$(cygpath -u $(cygpath -m -s "${minizinc_bin_dir_arg_win32}" 2> /dev/null) 2> /dev/null )
	if test -z "${minizinc_bin_dir_arg_}"; then
	  as_fn_error $? "Could not Unixify path \"${minizinc_bin_dir_arg_}\"" "$LINENO" 5
	fi
	;;
     *)
	minizinc_bin_dir_arg="${minizinc_bin_dir_arg_}"
	;;
     esac
  ;;
  *) # not Windows
     minizinc_bin_dir_arg="${minizinc_bin_dir_arg_}"
  ;;
esac
MINIZINC_BIN_DIR="${minizinc_bin_dir_arg}"



if test -n "${MINIZINC_BIN_DIR}"; then
  : # MINIZINC_BIN_DIR set
elif test -n "${MINIZINC_DIR}"; then
  # MINIZINC_DIR set, use it to set MINIZINC_BIN_DIR
  MINIZINC_BIN_DIR="${MINIZINC_DIR%/}/bin"
else
  # Neither MINIZINC_BIN_DIR nor MINIZINC_DIR set
  :
fi


if test -n "${MINIZINC_BIN_DIR}"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MINIZINC_BIN_DIR}" >&5
$as_echo "${MINIZINC_BIN_DIR}" >&6; }
else # MINIZINC_BIN_DIR not set
  # [PM] 4.5.0. Minizinc 2.3.0 directory layout.
  # Try path to MINIZINC, assuming it is in ${MINIZINC_BIN_DIR}
  if test -z "${MINIZINC_BIN_DIR}"; then
     if test -n "${MINIZINC}"; then
       MINIZINC_BIN_DIR=`dirname "${MINIZINC}"`
       if test -n "${MINIZINC_BIN_DIR}"; then
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MINIZINC_BIN_DIR} (from MINIZINC)" >&5
$as_echo "${MINIZINC_BIN_DIR} (from MINIZINC)" >&6; }
       fi
     fi
  fi

  if test -z "${MINIZINC_BIN_DIR}"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
  fi
fi # MINIZINC_BIN_DIR not set

case "${PLATFORM}" in
     *win32*)
	if test -n "${MINIZINC_BIN_DIR}"; then
	     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MiniZinc binaries path needs shorting from ${MINIZINC_BIN_DIR}" >&5
$as_echo_n "checking whether MiniZinc binaries path needs shorting from ${MINIZINC_BIN_DIR}... " >&6; }
             if expr "X${MINIZINC_BIN_DIR}" : ".* .*" 1>/dev/null 2>&1; then # contains a space
                minizinc_bin_dir_short=`cygpath -m -s "${MINIZINC_BIN_DIR}"`
	        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, to ${minizinc_bin_dir_short}" >&5
$as_echo "yes, to ${minizinc_bin_dir_short}" >&6; }
		MINIZINC_BIN_DIR="${minizinc_bin_dir_short}"
             else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (good)" >&5
$as_echo "no (good)" >&6; }
             fi
       fi
       ;;
esac



{ case "${MINIZINC_BIN_DIR:-/}" in /*) ;; *) as_fn_error $? "MINIZINC_BIN_DIR ($MINIZINC_BIN_DIR) must be an absolute path" "$LINENO" 5; ;; esac; }

# [PM] 4.5.0 Minizinc 2.2.x has a universal minizinc tool.
# Also, the legacy tools are broken on Windows, at least until 2.2.3,
# see <https://github.com/MiniZinc/libminizinc/issues/261>.

{ case "${MINIZINC:-/}" in /*) ;; *) as_fn_error $? "MINIZINC ($MINIZINC) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "minizinc${EXEEXT}", so it can be a program name with args.
set dummy minizinc${EXEEXT}; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_MINIZINC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $MINIZINC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MINIZINC="$MINIZINC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="${MINIZINC_BIN_DIR:+${MINIZINC_BIN_DIR}:}:${PATH}"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_MINIZINC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
MINIZINC=$ac_cv_path_MINIZINC
if test -n "$MINIZINC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINIZINC" >&5
$as_echo "$MINIZINC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



if test -x "${MINIZINC}"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking minizinc version" >&5
$as_echo_n "checking minizinc version... " >&6; }
   minizinc_vers="$( "${MINIZINC}" --version 2> /dev/null )"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${minizinc_vers:-unknown}" >&5
$as_echo "${minizinc_vers:-unknown}" >&6; }
fi




sp_fli_apply_asm_generic_default=no
case $PLATFORM in
  *win32*)
        if test "${enable_64bit:-no}" = "yes"; then
	  # [PM] 4.3.2+ Win64 needs --enable-generic-fli (we have no glue code yet).
	  # Note: this also implies that Win64 gets --disable-jit-fli
          sp_fli_apply_asm_generic_default=yes
        fi
   ;;
esac



# Check whether --enable-generic-fli was given.
if test "${enable_generic_fli+set}" = set; then :
  enableval=$enable_generic_fli;
         case "${enableval:-no}" in
         yes)
           enableval=yes
           ;;
         *)
           enableval=no
           ;;
         esac
         SP_FLI_APPLY_ASM_GENERIC=$enableval
         PERSISTENT_CONFIGURE_OPTIONS="${PERSISTENT_CONFIGURE_OPTIONS} --enable-generic-fli=$enableval"

else
  SP_FLI_APPLY_ASM_GENERIC=$sp_fli_apply_asm_generic_default
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic foreign language glue should be used" >&5
$as_echo_n "checking whether generic foreign language glue should be used... " >&6; }
if test "${SP_FLI_APPLY_ASM_GENERIC:-no}" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  $as_echo "#define SP_FLI_APPLY_ASM_GENERIC 1" >>confdefs.h

  FLI_APPLY_ASM_FILE='' # fli_apply_asm_generic.c
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether JIT compilation is enabled" >&5
$as_echo_n "checking whether JIT compilation is enabled... " >&6; }
# Check whether --enable-jit was given.
if test "${enable_jit+set}" = set; then :
  enableval=$enable_jit; ENABLE_JIT="${enableval}"
else
  ENABLE_JIT="${ENABLE_JIT_default}"
fi


case "${ENABLE_JIT:-no}" in
  yes)
    JIT=yes
    JIT_ON=yes
  ;;
  0)
    # [PM] 4.2.1 --enable-jit=0 means functionality enabled but jitting is off by default
    JIT=yes
    JIT_ON=no
  ;;
  *)
    JIT=no
    JIT_ON=no
  ;;
esac







case $PLATFORM in
    *linux*)
      if test "${enable_64bit}" = "yes"; then
         # [PM] 4.0.5 valgrind defaults to 8 also on 64-bit platforms. SICStus requires 16-byte alignment from malloc().
         VALGRIND_FLAGS="${VALGRIND_FLAGS}${VALGRIND_FLAGS:+ }--alignment=16"
      fi
    ;;
    *-darwin*)
       VALGRIND_FLAGS="${VALGRIND_FLAGS}${VALGRIND_FLAGS:+ }--dsymutil=yes"
    ;;
esac
if test "${JIT:-no}" = "yes"; then
   valgrind_smc_check_jit_option=--smc-check=all
   if test ${VALGRIND:-unset} != unset; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether valgrind supports --smc-check=all-non-file (new in 3.7.0)" >&5
$as_echo_n "checking whether valgrind supports --smc-check=all-non-file (new in 3.7.0)... " >&6; }
     if ${VALGRIND} --help 2> /dev/null | ${POSIX_GREP} -e '--smc-check=.*all-non-file' 2> /dev/null 1>&2 ; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
       valgrind_smc_check_jit_option=--smc-check=all-non-file
     else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, or unknown. Fall back to --smc-check=all (slow)" >&5
$as_echo "no, or unknown. Fall back to --smc-check=all (slow)" >&6; }
     fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking valgrind option for proper JIT handling" >&5
$as_echo_n "checking valgrind option for proper JIT handling... " >&6; }
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_smc_check_jit_option" >&5
$as_echo "$valgrind_smc_check_jit_option" >&6; }
   fi # VALGRIND

   VALGRIND_FLAGS="${VALGRIND_FLAGS}${VALGRIND_FLAGS:+ }${valgrind_smc_check_jit_option}"
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind flags" >&5
$as_echo_n "checking for valgrind flags... " >&6; }
if test -z "${VALGRIND_FLAGS}"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${VALGRIND_FLAGS}" >&5
$as_echo "${VALGRIND_FLAGS}" >&6; }
fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if ${ac_cv_path_GREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
  test -z "$as_dir" && as_dir=.
    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
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '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

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if ${ac_cv_path_EGREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
  test -z "$as_dir" && as_dir=.
    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
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '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
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


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

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "" >/dev/null 2>&1; then :
  :
fi
rm -f conftest*



{ case "${PERL:-/}" in /*) ;; *) as_fn_error $? "PERL ($PERL) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "perl$EXEEXT", so it can be a program name with args.
set dummy perl$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PERL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PERL="$PERL" # 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
  test -z "$as_dir" && as_dir=.
    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_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PERL=$ac_cv_path_PERL
if test -n "$PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
$as_echo "$PERL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



if test -n "${PERL}"; then

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
$as_echo_n "checking Perl version... " >&6; }
    # This is perl, version 5.005_03 built for i386-linux
    # This is perl, version 5.004_03
    # This is perl, v5.6.0 built for i686-linux

    perl_version=`$PERL -version | grep "This is perl"`
    if echo $perl_version | grep '5\.' >/dev/null; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
    else
	as_fn_error $? "no (you need Perl 5 or later)" "$LINENO" 5
    fi
fi

if test -z "${PERL}"; then
    as_fn_error $? "could not find a usable Perl" "$LINENO" 5
fi




if test $SUITE = "yes"; then

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if A${EMPTY_STRING}C${EMPTY_STRING}_PROG_CXX will succeed" >&5
$as_echo_n "checking if A${EMPTY_STRING}C${EMPTY_STRING}_PROG_CXX will succeed... " >&6; }

        : ${sp_prog_cxx_succeeds=yes}

    if test "x$sp_prog_cxx_succeeds" != "xno"; then
                        if test "${GCC:-no}" = "yes"; then
         : ${CXX=${CC}}
      fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
                  if test $EXPLICIT_SUITE != yes; then
      ( 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
  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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
  test -z "$as_dir" && as_dir=.
    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"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "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
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
  test -z "$as_dir" && as_dir=.
    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"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "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:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$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.
$as_echo "$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\""
$as_echo "$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
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if ${ac_cv_cxx_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

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

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if ${ac_cv_prog_cxx_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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 ()
{

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

int
main ()
{

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

else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  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.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; 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
 ) && sp_prog_cxx_succeeds=yes || sp_prog_cxx_succeeds=no
      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: C++ disabled" >&5
$as_echo "C++ disabled" >&6; }
    fi

    if test "${sp_prog_cxx_succeeds:-no}" = "yes"; then

          GCCLIB=''
    fi

fi # $SUITE



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether floating point consistency should be maintained" >&5
$as_echo_n "checking whether floating point consistency should be maintained... " >&6; }
# Check whether --enable-float-consistency was given.
if test "${enable_float_consistency+set}" = set; then :
  enableval=$enable_float_consistency; float_consistency=$enableval
else
  float_consistency=yes
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $float_consistency" >&5
$as_echo "$float_consistency" >&6; }

if test "${GCC:-no}" = "yes"; then


    case $PLATFORM in
       *-darwin-*)
         enable_dwarf2_default=no
         G3CFLAG='-g'
       ;;
       *)
         G3CFLAG='-g3'
         enable_dwarf2_default=no
       ;;
    esac

    if test "${enable_dwarf2:-$enable_dwarf2_default}" = "yes"; then
      G3CFLAG="${G3CFLAG} -gdwarf-2"
    fi

    if test "${CLANG:-no}" = "yes" && ! test "${SP_CLANG_NO_FDEBUG_MACRO:-no}" = "yes"; then
       G3CFLAG="${G3CFLAG} -fdebug-macro"
    fi

    if test "${ENABLEG3:-no}" = "yes"; then
      CFLAGS_EXTRA="$CFLAGS_EXTRA $G3CFLAG"
    fi

    gcc_warnings=""

            gcc_warnings="$gcc_warnings -Wall"

       # DBG
       # [PM] The only reason these warnings are not on in release
       # builds is that CFLAGS are used by splfr/spld also for
       # compiling user (C) code (but see SPLD_CONFIG_CFLAGS)
       # 2001-01-10 SICStus 3.9 and testsuit builds without triggering
       # any warning! Keep it that way (without disabling warnings :-)

       # [PM] 3.9 -Wparentheses finds if-else nesting bugs, keep!
       # gcc_warnings="$gcc_warnings -Wno-parentheses"

       # [PM] 3.9b5 see if we can work around any legitimate unused locals instead.
       # gcc_warnings="$gcc_warnings -Wno-unused" # We have lots of unused arguments (e.g. `w')

       if test "$cc_warning_unused" = "no"; then
          if test "x$picky_cc" = "xno"; then # turn off no warnings with picky cc
             gcc_warnings="$gcc_warnings -Wno-unused " # after -Wall!
          fi
       else
          gcc_warnings="-Wunused $gcc_warnings"
       fi
       gcc_warnings="$gcc_warnings -Wstrict-aliasing"

                                   if test "${OPTFLAG:-no}" = "yes"; then
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdisabled-optimization support" >&5
$as_echo_n "checking whether ${CC} supports -Wdisabled-optimization support... " >&6; }
         if test "${ICC:-no}" = "yes"; then
           # [PM] 4.2.1 icc only warns so the try-compile test does no good.
           can_Wdisabled_optimization=no
         else
	   cflags_old="${CFLAGS}";
	   CFLAGS="${CFLAGS} -Wdisabled-optimization"
	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  can_Wdisabled_optimization=yes
else
  can_Wdisabled_optimization=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	   CFLAGS="${cflags_old}"
         fi
         if test "${can_Wdisabled_optimization:-no}" = "yes"; then
                      gcc_warnings="${gcc_warnings} -Wdisabled-optimization"
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
         else
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
         fi
       fi # OPTFLAG = yes
       gcc_warnings="$gcc_warnings -Wmissing-prototypes"

                                   gcc_warnings="-Wstrict-prototypes $gcc_warnings"
       gcc_warnings="-Wmissing-declarations $gcc_warnings"

       if test "${ICC:-no}" = "yes"; then
         # [PM] 4.2.1 Happens for zlib code (and probably some of our code as well)
         # error #310: old-style parameter list (anachronism)
         diag_disable="${diag_disable:+${diag_disable},}310"

         # [PM] 4.2.1 Happens for COMPILE_TIME_ASSERT_DECLARATION()
         # error #1419: external declaration in primary source file
         diag_disable="${diag_disable:+${diag_disable},}1419"

         # [PM] 4.2.1 Happens a lot in clpfd
         # error #188: enumerated type mixed with another type
         diag_disable="${diag_disable:+${diag_disable},}188"
         gcc_warnings="${gcc_warnings}${diag_disable:+ -diag-disable ${diag_disable}}"
       else
	 	 	 	 gcc_warnings="-Wdeclaration-after-statement $gcc_warnings"
         gcc_warnings="$gcc_warnings -Wnested-externs"
       fi

       # NO: gcc_warnings="$gcc_warnings -Wconversion"

       # [PM] 4.3 Not yet (and see --enable-cc-Wconversion)
       # # [PM] 4.3 See if we can have this. It is the default on
       # # Windows and we want to use similar warning on all platforms.
       # gcc_warnings="$gcc_warnings -Wconversion"
       # # [PM] 4.3 But we do not want to warn about sign conversion (e.g. from size_t to spio_t_offset)
       # if test "x$picky_cc" = "xno"; then
       #   gcc_warnings="$gcc_warnings -Wno-sign-conversion"
       # fi


       # No: gcc_warnings="$gcc_warnings -Wwrite-strings"
       gcc_warnings="$gcc_warnings -Wpointer-arith"

       if test "${ICC:-no}" = "yes"; then
          :
       else
         # Some additional warnings
         gcc_warnings="$gcc_warnings -W"
       fi

       # Turn off some that are turned on by -W
       if test "x$picky_cc" = "xno"; then # turn off no warnings with picky cc
          gcc_warnings="$gcc_warnings -Wno-sign-compare" # signed unsigned compares are everywhere
       fi
                CFLAGS_EXTRA="$CFLAGS_EXTRA $gcc_warnings"

                        cc_Werror="-Werror"
    cc_Wno_error="-Wno-error"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for how to suppress stringop overflow warnings" >&5
$as_echo_n "checking for how to suppress stringop overflow warnings... " >&6; }
    if test "$GCC_MAJOR" -ge "10"; then
      cc_Wno_stringop_overflow='-Wno-stringop-overflow'
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cc_Wno_stringop_overflow:-none}" >&5
$as_echo "${cc_Wno_stringop_overflow:-none}" >&6; }

    # [PM] 4.2.1+

    if test "${CLANG:-no}" = "yes"; then
      # [PM] 4.3
      cc_Wconversion_option='-Wconversion -Wno-sign-conversion'
      cc_Wno_conversion_option='-Wno-conversion'
    elif test "$GCC_MAJOR" -gt "4" || { test "$GCC_MAJOR" = "4" && test "$GCC_MINOR" -ge "3"; }; then # >= 4.3
      cc_Wconversion_option='-Wconversion -Wno-sign-conversion'
      cc_Wno_conversion_option='-Wno-conversion'
    else # < 4.2
      # [PM] 4.2.1+ -Wconversion in GCC <= 4.2 is something else, that we do not want.
      cc_Wconversion_option=''
      cc_Wno_conversion_option='-Wno-conversion'
    fi

    # [PM] 4.4.0+ GCC-7 case fall-through warnings. We should NOT
    # suppress it. Instead rely on comments in the source code when
    # fall through is intentional (using a /* FALLTHROUGH */ comment
    # before the about-to-be-falled-into case).
    #
    # Unfortunately the zlib sources uses case fallthrough, and since
    # we do not want to modify those sources, we suppress the warning
    # when compiling zlib.
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler can suppress warnings about case fallthrough" >&5
$as_echo_n "checking whether the compiler can suppress warnings about case fallthrough... " >&6; }
    if test "${CLANG:-no}" = "yes"; then
      # TODO: Presumably clang will get this warning someday if it does not already.
      cc_Wno_implicit_fallthrough_option=''
    elif test "$GCC_MAJOR" -ge "7"; then # >= 7
      cc_Wno_implicit_fallthrough_option='-Wno-implicit-fallthrough'
    else # < 7
      cc_Wno_implicit_fallthrough_option=''
    fi
    if test -n "${cc_Wno_implicit_fallthrough_option}"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, ${cc_Wno_implicit_fallthrough_option}" >&5
$as_echo "yes, ${cc_Wno_implicit_fallthrough_option}" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi

    if test "x$picky_cc" != "xno"; then
       CFLAGS_EXTRA="-Wstrict-prototypes $CFLAGS_EXTRA"
       CFLAGS_EXTRA="-Wmissing-declarations -Wmissing-prototypes $CFLAGS_EXTRA"

       if test $picky_cc -gt 1; then
          # -Wshadow is off by default since there are hard to avoid cases in wam().
          CFLAGS_EXTRA="-Wshadow $CFLAGS_EXTRA"
       fi
       if test $picky_cc -gt 2; then
          # Warns about, e.g., casting a return value of integral type
          # to a pointer or vice versa. Happens a lot in SICStus (TAGGED<->Ptr)
          # So, it is pretty useless for SICStus
          # We could perhaps start using a type-safe cast, something like:
          # To cast x of type From to y of type To do (in a suitable macro):
          # {
          #   From tmp_x = x; // $(CC) will barf if x not close to type From
          #   To tmp_y = (To)tmp_x; // -Wbad-function-cast will not complain
          #   tmp_y # GCC extension, tmp_y is the value returned from the compound expression
          # }
          # Could then define Cast so that y = Cast(To,From,x) expands to the above.
          # Without GCC we could use inline functions, one for each From type,
          # inline From castFrom(From x) { return x; }
          # #define Cast(To,From,X) (To) cast ## From ((x))
          # Thus y = Cast(void*,TAGGED,x) expands to y = (void*)castTAGGED(x)
          # (This gives a "type safe" cast but does not help the -Wbad-function-cast issue.)
          #
          CFLAGS_EXTRA="-Wbad-function-cast $CFLAGS_EXTRA"
          # This is turned off by default above
          CFLAGS_EXTRA="-Wsign-compare $CFLAGS_EXTRA"

          # Very common in SICStus, thus not very useful.
          CFLAGS_EXTRA="-Wconversion $CFLAGS_EXTRA"

          CFLAGS_EXTRA="-Wunused $CFLAGS_EXTRA"
       fi
    fi

    NO_UNKNOWN_PRAGMAS="-Wno-unknown-pragmas"



    if test "${ENABLE_GPROF:-unset}" = "yes"; then
	CFLAGS_EXTRA="-pg ${CFLAGS_EXTRA}"
        SPLD_EXE_LDFLAGS="${SPLD_EXE_LDFLAGS} -pg"
                SPLD_TOOLFLAGS="${SPLD_TOOLFLAGS:+${SPLD_TOOLFLAGS} }--static"
    fi
    if test "${ENABLE_GCOV:-unset}" = "yes"; then
	CFLAGS_EXTRA="-fprofile-arcs -ftest-coverage ${CFLAGS_EXTRA}"
            fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstrict-aliasing should be used" >&5
$as_echo_n "checking whether -fstrict-aliasing should be used... " >&6; }
                                use_fstrict_aliasing_default=no
    # Check whether --enable-fstrict-aliasing was given.
if test "${enable_fstrict_aliasing+set}" = set; then :
  enableval=$enable_fstrict_aliasing; use_fstrict_aliasing="${enableval}"
else
  use_fstrict_aliasing="${use_fstrict_aliasing_default}"
fi

    if test "${use_fstrict_aliasing:-no}" = "yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      # [PM] 4.1 It is the default for < -O2
      CFLAGS_EXTRA_SEMANTICS="$CFLAGS_EXTRA_SEMANTICS -fstrict-aliasing"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      CFLAGS_EXTRA_SEMANTICS="$CFLAGS_EXTRA_SEMANTICS -fno-strict-aliasing"
    fi

        DISABLE_WSEQUENCE_POINT_DEFAULT=no
    # Check whether --enable-Wsequence-point was given.
if test "${enable_Wsequence_point+set}" = set; then :
  enableval=$enable_Wsequence_point; DISABLE_WSEQUENCE_POINT="${enableval}"
        DISABLE_WSEQUENCE_POINT="${DISABLE_WSEQUENCE_POINT_DEFAULT}"
fi


    if test "${DISABLE_WSEQUENCE_POINT:-no}" = "yes"; then
                                                      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC}) supports -Wno-sequence-point" >&5
$as_echo_n "checking whether the C compiler (${CC}) supports -Wno-sequence-point... " >&6; }
      if ${CC} -Wno-sequence-point -S -o /dev/null -x c /dev/null >/dev/null 2>&1; then
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
                  CFLAGS_EXTRA="$CFLAGS_EXTRA -Wno-sequence-point"
      else
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi
    fi # DISABLE_WSEQUENCE_POINT

            CFLAGS_EXTRA="$CFLAGS_EXTRA -fno-common"

        if test "${ICC:-no}" = "yes"; then
            cflags_float_consistency=''
      cflags_march_native=''
    elif test "${CLANG:-no}" = "yes"; then
            cflags_float_consistency=''
      cflags_march_native='-march=native -mtune=native'
    else
      cflags_float_consistency="-ffloat-store"
      cflags_march_native='-march=native -mtune=native'
    fi

    # Machine-specific GCC-options.
    case "`$UNAME -m`" in
	*86|x86*|i86*)

	    case $PLATFORM in
		*-darwin*)
		   if test "${enable_64bit}" = "yes"; then
                      # [PM] 4.2.3+ Symptom was that library(tcltk) crashed in libunwind on OS 10.8.2 x86_64. SPRM 12939.
                      enable_omit_framepointer_default=no
		   fi
		;;
                *)
                   enable_omit_framepointer_default=yes
                ;;
	    esac


	    if test "${ENABLE_GPROF:-no}" = "yes"; then
               enable_omit_framepointer_default=no
            fi

            enable_omit_framepointer=dummy
            if test "${OPTFLAG:-no}" = "yes"; then
               { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC option -fomit-frame-pointer should be used" >&5
$as_echo_n "checking whether GCC option -fomit-frame-pointer should be used... " >&6; }
               # Check whether --enable-gcc-fomit-frame-pointer was given.
if test "${enable_gcc_fomit_frame_pointer+set}" = set; then :
  enableval=$enable_gcc_fomit_frame_pointer; enable_omit_framepointer=$enableval
else
  enable_omit_framepointer=${enable_omit_framepointer_default}
fi

               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_omit_framepointer" >&5
$as_echo "$enable_omit_framepointer" >&6; }
            fi # OPTFLAG
            if test ${enable_omit_framepointer} = yes; then
              fomit_frame_pointer="-fomit-frame-pointer"
            else
              fomit_frame_pointer=""
            fi
            CFLAGS_EXTRA="${CFLAGS_EXTRA} ${fomit_frame_pointer}"

            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float consistency flags" >&5
$as_echo_n "checking for float consistency flags... " >&6; }
            	                ENABLE_MIEEE_FP_default=no
            # Check whether --enable-mieee-fp was given.
if test "${enable_mieee_fp+set}" = set; then :
  enableval=$enable_mieee_fp;
	       case "${enableval:-no}" in
	       yes)
		 enableval=yes
		 ;;
	       *)
		 enableval=no
		 ;;
	       esac
	       ENABLE_MIEEE_FP=$enableval
	       PERSISTENT_CONFIGURE_OPTIONS="${PERSISTENT_CONFIGURE_OPTIONS} --enable-mieee-fp=$enableval"

else
  ENABLE_MIEEE_FP=$ENABLE_MIEEE_FP_default
fi



            if test "${ICC:-no}" = "yes"; then
               :
            elif test "${CLANG:-no}" = "yes"; then
               :
            elif test "${ENABLE_MIEEE_FP:-yes}" = "no"; then
               :
            else
              cflags_float_consistency="${cflags_float_consistency}${cflags_float_consistency:+ }-mieee-fp"
            fi
	    if test "${cflags_float_consistency:+set}" = "set"; then
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cflags_float_consistency" >&5
$as_echo "$cflags_float_consistency" >&6; }
            else
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
	    fi


	    ;;

    esac


        if test "$float_consistency" = "yes"; then
       CFLAGS_EXTRA_SEMANTICS="$CFLAGS_EXTRA_SEMANTICS ${cflags_float_consistency}"
    fi

    if test "${enable_64bit:-yes}" = "no"; then
      case $PLATFORM in
        *linux*)
        # 32-bit Linux, GCC
        # [PM] 4.10.1+ binutils 2.39 ld, e.g. on Ubuntu 24.04, gives fatal warning about:
        # "missing .note.GNU-stack section implies executable stack"
        # Note: Adding noexecstack here is not sufficient, we also need it on SHLDFLAGS.
        # Note: -z noexecstack was introduced in binutils 2.17, so is
        # probably not available in Fedore Core 3.
        SPLD_EXE_LDFLAGS="${SPLD_EXE_LDFLAGS}${SPLD_EXE_LDFLAGS:+ }-Wl,-z,noexecstack"
        clang_sanitizer_32bit_problem=yes
      ;;
      esac
    fi # 32-bit

                                    if test "${CLANG:-no}" = "yes"; then
      if test "${enable_64bit:-yes}" = "no"; then
        case $PLATFORM in
          *linux*)
          # 32-bit Linux, CLANG
          clang_sanitizer_32bit_problem=yes
        ;;
        esac
      fi # 32-bit
    fi # CLANG

    if test "${clang_sanitizer_32bit_problem:-no}" = yes; then

      cannot_use_ftrapv_option=yes
    fi


    if test "${DEBUG_BUILD:-no}" = "yes"; then
              : ${use_ftrapv_default=yes}
    else
       use_ftrapv_default=no
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -ftrapv and similar functionality should be used" >&5
$as_echo_n "checking whether -ftrapv and similar functionality should be used... " >&6; }

    # Check whether --enable-ftrapv was given.
if test "${enable_ftrapv+set}" = set; then :
  enableval=$enable_ftrapv; use_ftrapv=$enableval
else
  use_ftrapv=$use_ftrapv_default
fi


    if test "${use_ftrapv:-no}" = "yes"; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi

    if test "${use_ftrapv:-no}" = "yes"; then
      if test "${cannot_use_ftrapv_option:-no}" != yes; then
                CFLAGS_EXTRA="$CFLAGS_EXTRA -ftrapv"
      fi
    fi


    if test "${use_ftrapv:-no}" = "yes"; then
       if test "${CLANG:-no}" = "yes"; then
         use_clang_sanitizers_default=yes
       elif test "${GCC:-no}" = "yes"; then
         # [PM] 4.4.2 in recent GCCs. Turn if off if building debug version with old GCC
         use_clang_sanitizers_default=yes
       else
         use_clang_sanitizers_default=no
       fi
    fi

    # Check whether --enable-clang-sanitizers was given.
if test "${enable_clang_sanitizers+set}" = set; then :
  enableval=$enable_clang_sanitizers; use_clang_sanitizers=$enableval
else
  use_clang_sanitizers=$use_clang_sanitizers_default
fi


    # [PM] 4.2.1 add clang option -fcatch-undefined-behavior if -ftrapv
    if test "${use_ftrapv:-no}" = "yes"; then
       # [PM] 4.3 figure out the version specific options
       if test "${use_clang_sanitizers:-no}" = "yes" ; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC}) supports -fsanitize=<checks> option" >&5
$as_echo_n "checking whether the C compiler (${CC}) supports -fsanitize=<checks> option... " >&6; }
          # [PM] 4.4.2 Now also use santizers with GCC (which has the same sanitizer, but seems to work worse than Clang).

          # [PM] 4.3 Apple clang does not accept the same options as
          # the corresponding LLVM version
          # Xcode 5.0.{0,1,2}  cc --version: Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)
          #   Supports -fsanitize=undefined-trap -fsanitize-undefined-trap-on-error
          #   Does not support [-ftrapv] -fsanitize=undefined-trap
          #       clang: error: '-fsanitize-undefined-trap-on-error' required with '-fsanitize=undefined-trap' option
          #   Does not support [-ftrapv] -fsanitize=undefined
          #       Gives contradictory error messages:
          #       clang: error: '-fsanitize-undefined-trap-on-error' required with '-fsanitize=undefined' option
          #       clang: error: unsupported argument 'undefined' to option 'fsanitize='
          #
          # Xcode 5.1          cc --version: Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
          #   Supports [-ftrapv] -fsanitize-undefined-trap-on-error
          #        BUT: does not trap all (any?) of the things -fsanitize=undefined traps (e.g. ((int)1)<<100)
          #   Does not support [-ftrapv] -fsanitize=undefined
          #        Lack lib: ld: file not found: .../lib/darwin/libclang_rt.ubsan_osx.a
          #   Does not support [-ftrapv] -fsanitize=undefined -fsanitize-undefined-trap-on-error
          #        clang: error: invalid argument '-fsanitize=undefined' not allowed with '-fsanitize-undefined-trap-on-error'
          #   Does not support [-ftrapv] -fsanitize=undefined-trap [-fsanitize-undefined-trap-on-error]
          #        clang: error: unsupported argument 'undefined-trap' to option 'fsanitize='
          #   Does not support [-ftrapv] -fsanitize=undefined -fsanitize-undefined-trap-on-error
          #        clang: error: invalid argument '-fsanitize=undefined' not allowed with '-fsanitize-undefined-trap-on-error'
          # Xcode Version 6.1 (6A1052d) cc --version: 6 Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
	  #    Supports [-ftrapv] -fsanitize=undefined-trap -fsanitize-undefined-trap-on-error
	  #        It traps things like 1<<100.
	  # Xcode Version 7.0 (7A220) cc --version: Apple LLVM version 7.0.0 (clang-700.0.72)
	  #    Does not support -fcatch-undefined-behavior (same as -fsanitize=undefined)

          if test "${CLANG:-no}" = "yes"; then
             # LLVM >= 3.3 seems to support -fsanitize=<check>
             if   test ${clang_llvm_version_major:-0} -gt 3 || { test ${clang_llvm_version_major:-0} = 3 && test ${clang_llvm_version_minor:-0} -ge 3 ; } ; then
                  clang_supports_sanitize_option=yes
             else
                  clang_supports_sanitize_option=no
             fi
          else
             # Assume it works in any GCC we use
             clang_supports_sanitize_option=yes
          fi
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_supports_sanitize_option" >&5
$as_echo "$clang_supports_sanitize_option" >&6; }

          clang_broken_sanitize_undefined=no

          { $as_echo "$as_me:${as_lineno-$LINENO}: checking clang options to trap undefined behavior" >&5
$as_echo_n "checking clang options to trap undefined behavior... " >&6; }
          if test ${clang_supports_sanitize_option:-no} = yes ; then
            case "${clang_apple_version:-unknown}" in
              unknown) # not Apple version
                if test "${CLANG:-no}" = "yes"; then
		  # -fsanitize=undefined-trap and -fsanitize-undefined-trap-on-error is documented for LLVM 3.4 at least

		  # [PM] 4.3 tested with port install clang-3.4
		  # [PM] 4.3 undefined-trap works too but does not give the nice explanations
		  # clang_sanitize_undefined_check_variant='undefined-trap'
		  # clang_extra_sanitize_undefined_option='-fsanitize-undefined-trap-on-error'

		  # Also requires ([PM] 4.6.0+ still true?): Distrib/make.sh extra_kernel_shld_libs=-fsanitize=undefined SPLFRFLAGS='--verbose -fsanitize=undefined ' SPLDFLAGS='--verbose -fsanitize=undefined'

		  		  		  clang_sanitize_undefined_check_variant='bool,enum,float-cast-overflow,integer-divide-by-zero,null,object-size,return,shift,signed-integer-overflow,unreachable'


                                    clang_sanitize_undefined_check_variant="${clang_sanitize_undefined_check_variant},implicit-unsigned-integer-truncation"
                  clang_sanitize_undefined_check_variant="${clang_sanitize_undefined_check_variant},implicit-signed-integer-truncation"



		  # Use -fno-sanitize-recover=all to stop immediately on all errors
		  clang_extra_sanitize_undefined_option='-fno-sanitize-recover=all'
		else # GCC
                 # [PM] 4.4.2 We only support recent GCC with sanitizers.

		 clang_sanitize_undefined_check_variant='bool,enum,float-cast-overflow,integer-divide-by-zero,null,object-size,return,shift,signed-integer-overflow,unreachable'
                 # [PM] 4.4.2 I was unable to turn it off (for jit_intel.c) and found no way to let the preprocessor know that alignment was strictly checked.
                 # clang_sanitize_undefined_check_variant="${clang_sanitize_undefined_check_variant},alignment"
                 # [PM] 4.4.2 I could not find a separate way to turn off the leak sanitizer, and we have malloc() leaks (that should be investigated!)
                 # clang_sanitize_undefined_check_variant="${clang_sanitize_undefined_check_variant},address"



		 clang_broken_sanitize_undefined=no
		 clang_extra_sanitize_undefined_option=''
		 # Make all undefined tests fatal
		 clang_extra_sanitize_undefined_option="$clang_extra_sanitize_undefined_option -fno-sanitize-recover"
		fi # GCC
              ;;
              5.0) # Apple LLVM 5.0
                clang_sanitize_undefined_check_variant='undefined-trap'
                clang_extra_sanitize_undefined_option='-fsanitize-undefined-trap-on-error'
              ;;
              5.*) # Apple LLVM 5.1 or newer 5.x

                 # [PM] 4.3.2 Supported by Xcode Version Version 5.1.1 (5B1008) cc --version: Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) (4.6.0+ NOTE: our code (possibly only library/lmdb/)  still violates alignment restrictions, so no 'alignment' in this list.)
		clang_sanitize_undefined_check_variant='bool,enum,float-cast-overflow,integer-divide-by-zero,null,object-size,return,shift,signed-integer-overflow,unreachable'

                clang_broken_sanitize_undefined=no
		clang_extra_sanitize_undefined_option=''
		# [PM] 4.3.2 Is -fno-sanitize-recover needed?
                clang_extra_sanitize_undefined_option="$clang_extra_sanitize_undefined_option -fno-sanitize-recover"
		# [PM] 4.3.2 Is -fsanitize-undefined-trap-on-error
                clang_extra_sanitize_undefined_option="$clang_extra_sanitize_undefined_option -fsanitize-undefined-trap-on-error"

              ;;
              6.*) # Apple LLVM 6.0 or newer 6.x
                 # [PM] 4.3.2 Supported by Xcode Version 6.1 (6A1052d) cc --version: 6 Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn) (4.6.0+ NOTE: our code (possibly only library/lmdb/)  still violates alignment restrictions, so no 'alignment' in this list.)
		clang_sanitize_undefined_check_variant='bool,enum,float-cast-overflow,integer-divide-by-zero,null,object-size,return,shift,signed-integer-overflow,unreachable'

                # [PM] 4.3.2+ SPRM 14816 We do not want float divide by zero to be treated as undefined behavior.
                # clang_sanitize_undefined_check_variant="${clang_sanitize_undefined_check_variant},float-divide-by-zero"

# [PM] 4.3.2+ An alternative would be to disable float-divide-by-zero, but instead we just do not add it above.
#                 # -fno-sanitize=float-divide-by-zero is supported by Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
#                 # [PM] 4.3.2+ SPRM 14816
#                 clang_sanitize_no_undefined_check_variant='float-divide-by-zero' # Hope this is supported

                clang_broken_sanitize_undefined=no
		clang_extra_sanitize_undefined_option=''
		# [PM] 4.3.2 Is -fno-sanitize-recover needed?
                clang_extra_sanitize_undefined_option="$clang_extra_sanitize_undefined_option -fno-sanitize-recover"
		# [PM] 4.3.2 Is -fsanitize-undefined-trap-on-error
                clang_extra_sanitize_undefined_option="$clang_extra_sanitize_undefined_option -fsanitize-undefined-trap-on-error"
              ;;
              7.*|*) # Apple Apple LLVM version 7.x.y; or newer (which we assume can handle whatever 7 handles)
		 # Xcode 7.3.0: Apple Apple LLVM version 7.3.0 (clang-703.0.29)
		 # Xcode 7.2.0: Apple LLVM version 7.0.2 (clang-700.1.81)
		 # Xcode 7.1.0: Apple LLVM version 7.0.0 (clang-700.1.76)
		 # Xcode 7.0.0: Apple LLVM version 7.0.0 (clang-700.0.72)
                 # [PM] 4.3.3 I have not found a way to figure out what the Xcode 7.x compilers support.

		 # Unfortunately Xcode 7.0.0--7.3.0 does not support
		 # the Clang 3.9 "-fsanitize=undefined: All of the
		 # checks listed above other than
		 # unsigned-integer-overflow."

                 # Xcode 7.3.0 does not support -fno-sanitize-recover,
                 # it says "clang: error: argument
                 # '-fno-sanitize-recover' is deprecated, use
                 # '-fno-sanitize-recover=undefined,integer'" (but it
                 # does not support
                 # '-fno-sanitize-recover=undefined,integer').
		 #
		 # Instead, for each check, add both -fsanitize=CHECK and -fno-sanitize-recover=CHECK


                 # Hope that Xcode 7.x supports at least what is supperted by Xcode Version 6.1 (6A1052d) cc --version: 6 Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn) (4.6.0+ NOTE: our code (possibly only library/lmdb/)  still violates alignment restrictions, so no 'alignment' in this list.)
		clang_sanitize_undefined_check_variant='bool,enum,float-cast-overflow,integer-divide-by-zero,null,object-size,return,shift,signed-integer-overflow,unreachable'

                                clang_sanitize_undefined_check_variant="${clang_sanitize_undefined_check_variant},implicit-unsigned-integer-truncation"
                clang_sanitize_undefined_check_variant="${clang_sanitize_undefined_check_variant},implicit-signed-integer-truncation"

                                # [PM] 4.3.2+ SPRM 14816 We do not want float divide by zero to be treated as undefined behavior.
                # clang_sanitize_undefined_check_variant="${clang_sanitize_undefined_check_variant},float-divide-by-zero"


                clang_broken_sanitize_undefined=no
		clang_extra_sanitize_undefined_option=''
		# [PM] 4.4.2 enable address sanitizer, by default, with the other sanitizer. (Currently not compatible with Java.)
		# Check whether --enable-address-sanitizer was given.
if test "${enable_address_sanitizer+set}" = set; then :
  enableval=$enable_address_sanitizer; use_address_sanitizer=$enableval
else
  use_address_sanitizer="${use_clang_sanitizers:-no}"
fi

                if test "${use_address_sanitizer:-yes}" = "yes" ; then
                  clang_extra_sanitize_undefined_option="$clang_extra_sanitize_undefined_option -fsanitize=address"
                fi
		# [PM] 4.3.3 Make all undefined tests fatal ("By default, non-fatal checks are those enabled by UndefinedBehaviorSanitizer, except for -fsanitize=return and -fsanitize=unreachable. "
                clang_extra_sanitize_undefined_option="$clang_extra_sanitize_undefined_option -fsanitize-undefined-trap-on-error"
              ;;

            esac

            # -fsanitize=...
	    if test "${clang_sanitize_undefined_check_variant:+set}" = "set"; then
               # [PM] 4.3.2 We do not want commas on CFLAGS since that
               # makes it hard to explicitly pass them to splfr/spld (as
               # done by the C++ tests in Suite). Instead split the
               # sanitize arguments into separate options.
               clang_trap_undefined_options=$( echo ",${clang_sanitize_undefined_check_variant}" | sed -e 's/,/ -fsanitize=/g' )
            else
               clang_trap_undefined_options=''
            fi
            if test "${CLANG:-no}" = "yes"; then

              if test "${clang_sanitizer_32bit_problem:-no}" = yes; then
                # signed-integer-overflow is affected by this problem
		clang_trap_undefined_options1="$( echo "${clang_trap_undefined_options}" | sed -e 's/-fsanitize=signed-integer-overflow//g' )"
		clang_trap_undefined_options="${clang_trap_undefined_options1}"
              fi

              has_O1_or_higher=yes
	      if test "${OPTFLAG:-no}" != "yes" ; then
		has_O1_or_higher=no
		# Optimizations turned off but perhaps we added -O1 above.
		if expr "X${CFLAGS}" : ".* -O1.*" 1>/dev/null 2>&1; then # contains a -O1 (hack alert, could be part of something else)
		  has_O1_or_higher=yes
		fi
	      fi # OPTFLAG != yes

	      if test "${has_O1_or_higher}" = "no"; then
		# -fsanitize=object-size requires -O1 (otherwise CLANG (and GCC?) barfs). So, remove it if we think no optimizations are on.
		clang_trap_undefined_options1="$( echo "${clang_trap_undefined_options}" | sed -e 's/-fsanitize=object-size//g' )"
		clang_trap_undefined_options="${clang_trap_undefined_options1}"
              else # has_O1_or_higher
		:;
	      fi # has_O1_or_higher
            fi # CLANG = yes

#             # -fno-sanitize=...
# 	    if test "${clang_sanitize_no_undefined_check_variant:+set}" = "set"; then
#                clang_trap_no_undefined_options=$( echo ",${clang_sanitize_no_undefined_check_variant}" | sed -e 's/,/ -fno-sanitize=/g' )
#
#             else
#                clang_trap_no_undefined_options=''
#             fi

            clang_trap_undefined_options="${clang_trap_undefined_options} ${clang_trap_no_undefined_options} ${clang_extra_sanitize_undefined_option}"
          else
            # [PM] 4.3 assume -fcatch-undefined-behavior is supported prior to LLVM 3.1
            clang_trap_undefined_options="-fcatch-undefined-behavior"
          fi
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${clang_trap_undefined_options}" >&5
$as_echo "${clang_trap_undefined_options}" >&6; }

                                        CFLAGS_EXTRA="$CFLAGS_EXTRA ${clang_trap_undefined_options:+-DSP_C_SANITIZERS }${clang_trap_undefined_options}"

          if test ${clang_broken_sanitize_undefined:-no} = "yes" ; then
	     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Trapping undefined behavior is broken in this version of clang ($clang_version)" >&5
$as_echo "$as_me: WARNING: Trapping undefined behavior is broken in this version of clang ($clang_version)" >&2;}
          fi

       fi # CLANG
    fi # -ftrapv


    # [PM] 4.1.3 Consider enabling _FORTIFY_SOURCE for release builds too
    if test "${DEBUG_BUILD:-no}" = "yes"; then
              use_fortify_source_default=yes
    else
       use_fortify_source_default=no
    fi

    if test "${OPTFLAG:-no}" != "yes" && test "${GCC:-no}" = "yes"; then
                                                        use_fortify_source_default=no
    fi

                                if test "${CLANG:-no}" = "yes" && test "${use_clang_sanitizers:-no}" = "yes" ; then
       use_fortify_source_default=no
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -D_FORTIFY_SOURCE=2 should be used" >&5
$as_echo_n "checking whether -D_FORTIFY_SOURCE=2 should be used... " >&6; }

    # Check whether --enable-fortify_source was given.
if test "${enable_fortify_source+set}" = set; then :
  enableval=$enable_fortify_source; use_fortify_source=$enableval
else
  use_fortify_source=$use_fortify_source_default
fi


    if test "${use_fortify_source:-no}" = "yes"; then
                     CFLAGS_EXTRA="$CFLAGS_EXTRA -D_FORTIFY_SOURCE=2"
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi

    if test "${CLANG:-no}" = "yes" && test "${use_clang_sanitizers:-no}" = "yes" && test "${use_fortify_source:-no}" = "yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using clang with both --enable-fortify_source and --enable-clang-sanitizers is likely to fail compilation" >&5
$as_echo "$as_me: WARNING: Using clang with both --enable-fortify_source and --enable-clang-sanitizers is likely to fail compilation" >&2;};
    fi

    if test "${DEBUG_BUILD:-no}" = "yes"; then
       use_stack_protector_all_default=yes
    else
       use_stack_protector_all_default=no
    fi
    # [PM] 4.1.3 Consider enabling -fstack-protector for release builds too.
    # [PM] 4.1.3 UPDATE: Do _not_ enable in release builds. It seems
    # to require libssp.so which may not be present on users machines
    # (was an issue when enabling stack protection on zjuk).

    if test "${DEBUG_BUILD:-no}" = "yes"; then
       use_stack_protector_default=yes
    else
       use_stack_protector_default=no
    fi

    use_stack_protector_explicit=no
    # Check whether --enable-stack-protector was given.
if test "${enable_stack_protector+set}" = set; then :
  enableval=$enable_stack_protector; use_stack_protector=$enableval
                   use_stack_protector_explicit=yes
else
  use_stack_protector=$use_stack_protector_default
fi


    # Check whether --enable-stack-protector-all was given.
if test "${enable_stack_protector_all+set}" = set; then :
  enableval=$enable_stack_protector_all; use_stack_protector_all=$enableval
else
  use_stack_protector_all=$use_stack_protector_all_default
fi


    use_stack_protector_disabled=no
    if test "${use_stack_protector_explicit:-no}" = "yes"; then
      if test "${use_stack_protector:-yes}" = "no"; then
        # [PM] 4.1.3 Explicitly disabled. Needed for platforms lacking libssp.so.
        use_stack_protector_disabled=yes
      fi # use_stack_protector
    fi # use_stack_protector_explicit


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector-all should be used" >&5
$as_echo_n "checking whether -fstack-protector-all should be used... " >&6; }
    if test "${use_stack_protector_disabled:-no}" = "yes"; then
      use_stack_protector_all=no
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (explicitly disabled)" >&5
$as_echo "no (explicitly disabled)" >&6; }
    else
      if test "${use_stack_protector_all:-no}" = "yes"; then
        if test -n "${gcc_opt_fstack_protector_all}"; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          CFLAGS_EXTRA="${CFLAGS_EXTRA}${gcc_opt_fstack_protector_all:+ ${gcc_opt_fstack_protector_all}}"
        else
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (option not supported by $CC)" >&5
$as_echo "no (option not supported by $CC)" >&6; }
        fi
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi
    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector should be used" >&5
$as_echo_n "checking whether -fstack-protector should be used... " >&6; }
    if test "${use_stack_protector_disabled:-no}" = "yes"; then
      use_stack_protector=no
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (explicitly disabled)" >&5
$as_echo "no (explicitly disabled)" >&6; }
    else
      if test "${use_stack_protector:-no}" = "yes"; then
        if test -n "${gcc_opt_fstack_protector}"; then
          if test "${use_stack_protector_all:-no}" = "yes"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (implied by $gcc_opt_fstack_protector_all)" >&5
$as_echo "no (implied by $gcc_opt_fstack_protector_all)" >&6; }
          else
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
            CFLAGS_EXTRA="${CFLAGS_EXTRA}${gcc_opt_fstack_protector:+ ${gcc_opt_fstack_protector}}"
          fi
        else
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (option not supported by $CC)" >&5
$as_echo "no (option not supported by $CC)" >&6; }
        fi
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi
    fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden should be used" >&5
$as_echo_n "checking whether -fvisibility=hidden should be used... " >&6; }

    use_fvisibility_default=no
    case $PLATFORM in
        *win32*)
          # Does not apply (effectively always on) on Windows.
          use_fvisibility_default=no
        ;;
        *linux*)
                                                            use_fvisibility_default=yes
        ;;
        *-darwin*)
                    use_fvisibility_default=yes
        ;;
        *)
        : # FIXME: use fvisibility on Solaris?
        ;;
    esac

    # Check whether --enable-fvisibility was given.
if test "${enable_fvisibility+set}" = set; then :
  enableval=$enable_fvisibility; use_fvisibility=$enableval
else
  use_fvisibility=$use_fvisibility_default
fi

    : ${use_fvisibility:=${use_fvisibility_default}}
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${use_fvisibility}" >&5
$as_echo "${use_fvisibility}" >&6; }
    if test "${use_fvisibility}" = "yes"; then
      $as_echo "#define SP_USE_GCC_VISIBILITY 1" >>confdefs.h

      CFLAGS_EXTRA="${CFLAGS_EXTRA} -fvisibility=hidden"
      SP_USE_GCC_VISIBILITY=yes
    else
      SP_USE_GCC_VISIBILITY=no
    fi

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether code should be optimized for build (native) CPU" >&5
$as_echo_n "checking whether code should be optimized for build (native) CPU... " >&6; }
# Check whether --enable-native-cpu was given.
if test "${enable_native_cpu+set}" = set; then :
  enableval=$enable_native_cpu; march_native=$enableval
else
  march_native=no
fi

if test "${march_native:-no}" = "yes" && test -n "${cflags_march_native}"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (${cflags_march_native})" >&5
$as_echo "yes (${cflags_march_native})" >&6; }
   CFLAGS="${CFLAGS} ${cflags_march_native}"
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


case "x$host_os" in
  *cygwin* ) CYGWIN=yes;;
         * ) CYGWIN=no;;
esac


##################################################################
#
# Check for some misc programs
#
##################################################################

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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
  test -z "$as_dir" && as_dir=.
    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"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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
  test -z "$as_dir" && as_dir=.
    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"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$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

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

: ${LN='ln -s'}

# Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_RM+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RM"; then
  ac_cv_prog_RM="$RM" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_RM="rm"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
RM=$ac_cv_prog_RM
if test -n "$RM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
$as_echo "$RM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


# Extract the first word of "cp", so it can be a program name with args.
set dummy cp; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CP"; then
  ac_cv_prog_CP="$CP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_CP="cp"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CP=$ac_cv_prog_CP
if test -n "$CP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
$as_echo "$CP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


# Extract the first word of "mv", so it can be a program name with args.
set dummy mv; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_MV+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MV"; then
  ac_cv_prog_MV="$MV" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_MV="mv"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MV=$ac_cv_prog_MV
if test -n "$MV"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
$as_echo "$MV" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



# Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_AR="ar"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


# Extract the first word of "chmod", so it can be a program name with args.
set dummy chmod; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CHMOD+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CHMOD"; then
  ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_CHMOD="chmod"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CHMOD=$ac_cv_prog_CHMOD
if test -n "$CHMOD"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
$as_echo "$CHMOD" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir accepts -p" >&5
$as_echo_n "checking if mkdir accepts -p... " >&6; }
mkdir_tmpdir=`pwd`/tmpdir/foo/bar
if mkdir -p $mkdir_tmpdir >/dev/null 2>&1 && test -d $mkdir_tmpdir; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    : ${MKDIR='mkdir -p'}
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    : ${MKDIR="$TOP_SRCDIR/ensdir"}
fi
rm -rf `pwd`/tmpdir




# Misc. stuff


unset LDFLAGS

# Remember if TCLLIB or TCLINC has ben set by the user.
if test ."$TCLLIB". != .. || test ."$TCLINC". != ..; then
    user_tcltk_config=yes
else
    user_tcltk_config=no
fi

case $PLATFORM in
    *win32*)
      USE_TCLTK_SRC_BUILD_default=yes
    ;;
    *linux*)
      USE_TCLTK_SRC_BUILD_default=no
    ;;
    *-darwin*)
      USE_TCLTK_SRC_BUILD_default=yes
    ;;
    *)
      USE_TCLTK_SRC_BUILD_default=yes
    ;;
esac

# Check whether --enable-tcltk-src-build was given.
if test "${enable_tcltk_src_build+set}" = set; then :
  enableval=$enable_tcltk_src_build; USE_TCLTK_SRC_BUILD="$enableval"
else
  USE_TCLTK_SRC_BUILD="${USE_TCLTK_SRC_BUILD_default}"
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Tcl/Tk is built from source" >&5
$as_echo_n "checking whether Tcl/Tk is built from source... " >&6; }
case "${USE_TCLTK_SRC_BUILD}" in
     yes)
     if test "${USE_TCLTK_SRC_BUILD}" != "${USE_TCLTK_SRC_BUILD_default}"; then
        PERSISTENT_CONFIGURE_OPTIONS="$PERSISTENT_CONFIGURE_OPTIONS --enable-tcltk-src-build"
     fi
     ;;

     no)
     if test "${USE_TCLTK_SRC_BUILD}" != "${USE_TCLTK_SRC_BUILD_default}"; then
        PERSISTENT_CONFIGURE_OPTIONS="$PERSISTENT_CONFIGURE_OPTIONS --disable-tcltk-src-build"
     fi
     ;;

     *)
     as_fn_error $? "invalid value for USE_TCLTK_SRC_BUILD (${USE_TCLTK_SRC_BUILD})" "$LINENO" 5
     ;;

esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_TCLTK_SRC_BUILD}" >&5
$as_echo "${USE_TCLTK_SRC_BUILD}" >&6; }



# Some (currently only HP/UX) architectures requires statements of the
# form 'sleep 1' to placed at strategic places in the makefile in order
# to ensure that targets are created strictly later than their dependencies.
#
# This defaults to ''.
SLEEP=''


# [PM] Support code needed for API dispatch table (sp_GlobalSICStus)
SPAUXOBJ="spaux.$OBJEXT"

SPAUXMAINOBJ=""




# Check whether --with-installer-java-dirs was given.
if test "${with_installer_java_dirs+set}" = set; then :
  withval=$with_installer_java_dirs; INSTALLER_JAVA_DIRS="$withval"
fi


# Check whether --with-installer-tcltk-dirs was given.
if test "${with_installer_tcltk_dirs+set}" = set; then :
  withval=$with_installer_tcltk_dirs; INSTALLER_TCLTK_DIRS="$withval"
fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for en_US.utf8 locale name" >&5
$as_echo_n "checking for en_US.utf8 locale name... " >&6; }
# [PM] 4.1.3 platforms differ in case and hyphenation (delete space and tab, output by cygwin local command)
en_US_utf8_locale_name="`locale -a | ${POSIX_GREP} -i -e 'en_us\.utf-*8' | tr -d ' 	' | head -n 1 2>/dev/null`"
if test "${en_US_utf8_locale_name:+set}" = "set"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${en_US_utf8_locale_name}" >&5
$as_echo "${en_US_utf8_locale_name}" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C.UTF-8 locale name" >&5
$as_echo_n "checking for C.UTF-8 locale name... " >&6; }
# [PM] 4.7.0 Ubuntu 20.04 LTS does not have any en_US.* by default, but do have C.UTF-8
c_utf8_locale_name="`locale -a | ${POSIX_GREP} -i -e '\<c\.utf-*8' | tr -d ' 	' | head -n 1 2>/dev/null`"
if test "${c_utf8_locale_name:+set}" = "set"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${c_utf8_locale_name}" >&5
$as_echo "${c_utf8_locale_name}" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default UTF-8 locale name" >&5
$as_echo_n "checking for default UTF-8 locale name... " >&6; }
if test "${en_US_utf8_locale_name:+set}" = "set"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${en_US_utf8_locale_name}" >&5
$as_echo "${en_US_utf8_locale_name}" >&6; }
  LC_ALL_UTF8_LOCALE_NAME="${en_US_utf8_locale_name}"
elif test "${c_utf8_locale_name:+set}" = "set"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${c_utf8_locale_name}" >&5
$as_echo "${c_utf8_locale_name}" >&6; }
  LC_ALL_UTF8_LOCALE_NAME="${c_utf8_locale_name}"
else
  : ${LC_ALL_UTF8_LOCALE_NAME:='en_US.utf8'}
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none. Fallback to ${LC_ALL_UTF8_LOCALE_NAME}" >&5
$as_echo "none. Fallback to ${LC_ALL_UTF8_LOCALE_NAME}" >&6; }
fi





##################################################################
#
# Check platform characteristics
#
##################################################################


case $PLATFORM in
    *-win32*)
    ;;
    *)
                                :
    ;;
esac


# [PM] 4.0 Set this to yes if SHLD is gcc (for -pg)
gcc_shld=no
HIGH_RESOLUTION_TIME_CP=no # assume cp -p drops some time info

case $PLATFORM in

    *linux*)



        CFLAGS="$CFLAGS -D_REENTRANT"
                CFLAGS="$CFLAGS -D_GNU_SOURCE"
                CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64"

        $as_echo "#define HAVE_LINUX_PROC_SELF_EXE 1" >>confdefs.h


	case "${PLATFORM}" in
	x86_64-*)
            SP_JIT_ABI=linuxx64
	    ;;
        x86-*)
            SP_JIT_ABI=linuxx86
            ;;
	powerpc64-*|powerpcle64-*)
            # [PM] 4.3.2 We do not distinguish little and big-endian (presumably JIT will only see little-endian)
            SP_JIT_ABI=linuxppc64
	    # [MC] 4.3.3 gcc uses "-a64 -mpower7 -many -mlittle"
	    ASFLAGS="${ASFLAGS} -a64 -many"
	    # [MC] 4.3.3 otherwise off by default
	    CFLAGS="${CFLAGS} -misel"
	    ;;
        esac

        if test "${enable_64bit}" != "${platform_defaults_64bit}"; then
                    if test "${enable_64bit}" = "yes"; then # force 64 bit when 32 bit is the default
                        CFLAGS="${CFLAGS} -m64"
            SHLD_architecture='-m64'
	    case "${PLATFORM}" in
	    x86_64-*)
            	SPLFR_LD_r_FLAGS='-m elf_x86_64'
                ASFLAGS="${ASFLAGS} --64"
	        ;;
	    powerpc64-*|powerpcle64-*)
		SPLFR_LD_r_FLAGS='-m elf64ppc'
                ;;
            esac
          else # force 32 bit when 64 bit is the default
            CFLAGS="${CFLAGS} -m32"
            SHLD_architecture='-m32'

	    case "${PLATFORM}" in
	    x86*)
                SPLFR_LD_r_FLAGS='-m elf_i386'
                ASFLAGS="${ASFLAGS} --32"
	        ;;
	    powerpc64*|powerpcle64*)
                				SPLFR_LD_r_FLAGS='-m elf32ppc'
                ASFLAGS="${ASFLAGS} -a32"
                ;;
            esac
          fi
        fi # non-standard setting

        case $PLATFORM in
         *)

           AVOID_PTHREAD_CANCEL_DEFAULT=yes
           ;;
        esac


        JAVA_LDFLAGS="$JAVA_LDFLAGS -lpthread"
        case $PLATFORM in
	  powerpc64*|powerpcle64*) # powerpc64 or powerpc6432
	    if test "${enable_64bit:-no}" = "yes"; then
	       : ${java_explicit_data_model=64}
	    fi
	        	              ;;
        esac
			        $as_echo "#define SETITIMER_EARLY 1" >>confdefs.h


        ld_no_exec_stack=''
        FLI_FILE=fli_dl.c
        hugepages_enabled_default=no

        case $PLATFORM in
          x86-*)
            if test "${SP_FLI_APPLY_ASM_GENERIC:-no}" != "yes"; then
              FLI_APPLY_ASM_FILE=fli_x86.s
            fi
            $as_echo "#define SP_X86 1" >>confdefs.h

            SP_X86=yes

            hugepages_enabled_default=yes
            # [PM] 4.10.1+ For details see SPLD_EXE_LDFLAGS
            ld_no_exec_stack='-Wl,-z,noexecstack'
          ;;
          x86_64-*)
            if test "${SP_FLI_APPLY_ASM_GENERIC:-no}" != "yes"; then
              FLI_APPLY_ASM_FILE=fli_sysv_abi_x86_64.s
              $as_echo "#define FLI_APPLY_ASM_SYSV_ABI_X86_64 1" >>confdefs.h

            fi
            $as_echo "#define SP_X64 1" >>confdefs.h

            SP_X64=yes

            hugepages_enabled_default=yes
          ;;
          powerpc6432-*)
            if test "${SP_FLI_APPLY_ASM_GENERIC:-no}" != "yes"; then
              FLI_APPLY_ASM_FILE=fli_sysv_abi_ppc32.c
              $as_echo "#define FLI_APPLY_ASM_SYSV_ABI_PPC32 1" >>confdefs.h

            fi
            $as_echo "#define SP_POLL_BROKEN_FOR_FIFOS 1" >>confdefs.h

                        : ${resgen_type_default="cc"}
	  ;;
          powerpcle64-*)
            if test "${SP_FLI_APPLY_ASM_GENERIC:-no}" != "yes"; then
              FLI_APPLY_ASM_FILE=fli_sysv_abi_ppc64le.s
              $as_echo "#define FLI_APPLY_ASM_ABI_PPC64LE 1" >>confdefs.h

            fi
            $as_echo "#define SP_POWER64 1" >>confdefs.h

            SP_POWER64=yes

            : ${resgen_type_default="cc"}
	  ;;
          powerpc64-*)
            if test "${SP_FLI_APPLY_ASM_GENERIC:-no}" != "yes"; then
              FLI_APPLY_ASM_FILE=fli_sysv_abi_ppc64.s
              $as_echo "#define FLI_APPLY_ASM_ABI_PPC 1" >>confdefs.h

            fi
            $as_echo "#define SP_POWER64 1" >>confdefs.h

            SP_POWER64=yes

            : ${resgen_type_default="cc"}
	  ;;
          aarch64-*)
            if test "${SP_FLI_APPLY_ASM_GENERIC:-no}" != "yes"; then
              FLI_APPLY_ASM_FILE='fli_sysv_abi_aarch64.s'
              $as_echo "#define FLI_APPLY_ASM_ABI_AARCH64 1" >>confdefs.h

            fi
            $as_echo "#define SP_AARCH64 1" >>confdefs.h

            SP_AARCH64=yes

            : ${resgen_type_default="cc"}
	  ;;
        esac
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether huge pages should be supported" >&5
$as_echo_n "checking whether huge pages should be supported... " >&6; }
        # Check whether --enable-hugepages was given.
if test "${enable_hugepages+set}" = set; then :
  enableval=$enable_hugepages; hugepages_enabled=$enableval
else
  hugepages_enabled=$hugepages_enabled_default
fi

        if test "${hugepages_enabled:-no}" = "yes"; then
          hugepages_enabled=yes
          $as_echo "#define SP_HUGEPAGES 1" >>confdefs.h

        else
          hugepages_enabled=no
          $as_echo "#define SP_HUGEPAGES 0" >>confdefs.h

        fi
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hugepages_enabled" >&5
$as_echo "$hugepages_enabled" >&6; }
        # [PM] 4.2.1 Currently the hugepage support is not used unless
        # explicitly enabled at runtime.
        $as_echo "#define SP_HUGEPAGES_DEFAULT 0" >>confdefs.h

        if test "${enable_64bit}" = "yes"; then
                      : ${resgen_type_default="cc"}
        else # 32-bit elf
           : ${resgen_type_default="prefix"}
        fi


# Check whether --with-resgen-type was given.
if test "${with_resgen_type+set}" = set; then :
  withval=$with_resgen_type; resgen_type=$withval
else
  resgen_type=$resgen_type_default
fi

        RESGEN_TYPE="${resgen_type}"

                                                                                                gcc_ropt="-Wl,-rpath,"
                CC_ROPT="$gcc_ropt"
        SHLD_ROPT="$gcc_ropt"

        # [PM] 3.9b4 DT_RPATH can contain $ORIGIN for location
        # independent implicit dependency
        HAVE_SYSV_ORIGIN=yes

        LD_LIBRARY_PATH_name="LD_LIBRARY_PATH"

        gcc_shld=yes
	: ${SHLD="${CC}"}
        : ${LD="ld"}

        # SHLD_Wlno_undefined="-Wl,--no-undefined"
        SHLD_Wlno_undefined=""


                                        spio_libs="-lrt"

        SPLD_EXE_LIBS="-ldl -lm -lpthread${spio_libs:+ ${spio_libs}}"
        KERNEL_SHLD_LIBS="$SPLD_EXE_LIBS"


                        if test ${PREBUILT_INSTALL_ENABLED:-no} = yes; then
          can_prebuilt=yes
          SPLD_TOOLFLAGS="${SPLD_TOOLFLAGS:+${SPLD_TOOLFLAGS} }--moveable"
        fi
        # [PM] 4.2 Make spld --moveable the default
        enable_moveable_default='yes'

                if test "${fatal_text_relocs:-no}" = "yes"; then
           # Note that --warn-shared-textrel is not supported by older GNU ld
           shld_JIT_flags="${shld_JIT_flags} -Wl,--warn-shared-textrel -Wl,--fatal-warnings"
        fi


                                : ${SHLDFLAGS="-shared ${SHLD_architecture} ${SHLD_Wlno_undefined} ${shld_JIT_flags} ${ld_no_exec_stack}"}
        : ${SPLFR_SHLDFLAGS="$SHLDFLAGS"}
        : ${INCR_CFLAGS="-fPIC"}
        # [PM] 3.9.1 See also SHLD_RTKERNELEXP
        # [PD] 3.9 Add option for scope reduction of symbols.
        #          On linux SHLD is gcc which calls GNU ld.
        MAPFILEOPT="-Wl,--version-script="
        # [PM] 3.9.1 must be "" if MAPFILEOPT is used
        SHLD_RTKERNELEXP=""

                SPLFR_SHLD_EXPORT_ARG='-Wl,--version-script=@SP_MAP_FILE@'
                SPLFR_LD_EXPORT_ARG=""





                                                MKDISTR_COMPRESS=gzip
        MKDISTR_COMPRESS_ARGS=-9
        SP_INSTALL_ZCAT=zcat

        $as_echo "#define HAVE_PROC_SELF_FD 1" >>confdefs.h


		DEFAULT_POSIX_PATH=/bin:/usr/bin

        ;;

    *-freebsd*|*-netbsd*|*-openbsd*)
        as_fn_error $? "SICStus is not yet supported for $PLATFORM, contact sicstus-support@ri.se" "$LINENO" 5
        ;;

    *darwin-*)

                $as_echo "#define SP_DARWIN 1" >>confdefs.h

        darwin=yes

	        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is Darwin 9 (Mac OS 10.5) or newer" >&5
$as_echo_n "checking whether this is Darwin 9 (Mac OS 10.5) or newer... " >&6; }
        case "$PLATFORM" in
        *darwin-8.*)
          darwin_9_or_newer=no
          ;;
        *)
          darwin_9_or_newer=yes
          ;;
        esac
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $darwin_9_or_newer" >&5
$as_echo "$darwin_9_or_newer" >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is Darwin 10 (Mac OS 10.6) or newer" >&5
$as_echo_n "checking whether this is Darwin 10 (Mac OS 10.6) or newer... " >&6; }
        if test "${darwin_9_or_newer:-no}" != "yes"; then
          darwin_10_or_newer=no
        else
          case "$PLATFORM" in
          *darwin-9.*)
            darwin_10_or_newer=no
            ;;
          *)
            darwin_10_or_newer=yes
            ;;
          esac
        fi
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $darwin_10_or_newer" >&5
$as_echo "$darwin_10_or_newer" >&6; }

         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcrun --show-sdk-path" >&5
$as_echo_n "checking for xcrun --show-sdk-path... " >&6; }
         # xcrun --show-sdk-path is new in Xcode 5. Ignore errors, just let it become empty.
         XCRUN_SDK_PATH=$( xcrun --sdk macosx --show-sdk-path 2>/dev/null )
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${XCRUN_SDK_PATH:-none}" >&5
$as_echo "${XCRUN_SDK_PATH:-none}" >&6; }

         # [PM] 4.3.3 OS X 10.10.5 et al. default locale environment
         # is a mess (only LC_CTYPE=UTF-8 but setlocale(LC_CTYPE,"")
         # does not work).
	 # Set it explicitly.
         PERL_LC_ALL="env 'LC_ALL=${LC_ALL_UTF8_LOCALE_NAME}'"




        # [PM] 3.8.7 avoid memory allocation errors when running test suite (see relnotes)
        # Should be empty or semi-colon terminated (used as "$(ULIMIT_DATA) sicstus -f ...")
        ULIMIT_DATA='ulimit -d unlimited;'
        # [PM] 3.8.7 the MacOS X rm does not like being called without arguments
        #      To ensure rm is never called without arguments, always do
        #      rm -f ...whildcard... $(RMDUMMY)
        RMDUMMY=nonexisting_dummy_file

        CC_ROPT=""
        SHLD_ROPT=""



	if test "${GCC:-no}" != "yes"; then
	    as_fn_error $? "non-gcc compiler for Darwin not supported" "$LINENO" 5 #  are there any others? MetroWerks, Motorola?
	fi


                KERNEL_FRAMEWORKS_I=''

                if test "${darwin_9_or_newer:-no}" != "yes" && test "${enable_64bit:-no}" = "yes"; then
           :
        else # 32-bit or Darwin 9
           KERNEL_FRAMEWORKS="-framework CoreFoundation"
        fi

        : ${SHSFX='dylib'}


        # [PM] 3.8.7 GCCLIB in fact breaks the cplus test suite and does not seem to be needed.
        GCCLIB=''
        MACOS_NOCOMMON=no
        # Check whether --enable-macos-nocommon was given.
if test "${enable_macos_nocommon+set}" = set; then :
  enableval=$enable_macos_nocommon; MACOS_NOCOMMON=$enableval
fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld -d should be used for static foreign resources" >&5
$as_echo_n "checking whether ld -d should be used for static foreign resources... " >&6; }
        if test "${enable_macos_nocommon:-no}" = "yes"; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (does not work in recent Xcode/ld" >&5
$as_echo "yes (does not work in recent Xcode/ld" >&6; }
                    SPLFR_LD_r_FLAGS="-d"
        else
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (good)" >&5
$as_echo "no (good)" >&6; }
          SPLFR_LD_r_FLAGS=""
        fi
        : ${LD=ld}
        : ${SHLD="${CC}"}

                shld_error_duplicate_symbols="-Wl,-multiply_defined,error"

                { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM=$PLATFORM" >&5
$as_echo "$as_me: PLATFORM=$PLATFORM" >&6;}
        case $PLATFORM in
        arm64-*)
            # FIXME: ### DO NOT PUSH ### Is this needed when running from Terminal.app? Does it help when running from (x86_64) Emacs.app?
            shld_cpu_opts='-arch arm64'
            ac_cv_c_bigendian=no
            ;;
        powerpc-*|powerpcle-*)
            if test "${has_apple_gcc:-yes}" = "yes" ; then
              shld_cpu_opts="-arch ppc"
            fi
            ac_cv_c_bigendian=yes
            ;;
        i386-*)
            if test "${has_apple_gcc:-yes}" = "yes" ; then
              shld_cpu_opts="-arch i386"
            fi
            ac_cv_c_bigendian=no
            ;;
        esac

        if test "${enable_64bit:-no}" = "yes"; then
               shld_arch_width_opts='-m64'
        else
               shld_arch_width_opts='-m32'
        fi
                shld_arch_opts="${shld_cpu_opts} ${shld_arch_width_opts}"
        shld_JIT_flags=''
        if test "${JIT:-no}" = "yes"; then

                                        if test "${fatal_text_relocs:-yes}" = "no"; then
            if test "${enable_64bit:-no}" = "yes"; then
              : # "ld: warning: -read_only_relocs cannot be used with x86_64"
            else
              shld_JIT_flags='-read_only_relocs warning'
            fi
          fi

                                                                                                                                                                                                                          fi
                : ${SHLDFLAGS="-dynamiclib ${shld_arch_opts} ${shld_error_duplicate_symbols} ${shld_JIT_flags}"}

        LD_LIBRARY_PATH_name="DYLD_LIBRARY_PATH"

        # [PM] 4.2 Mac OS X 10.5 and later has @loader_path which should better than @executable_path (and closer to $ORIGIN semantics)
	        : ${KERNEL_SHLD_FLAGS="-install_name @loader_path/${SP_RTSYS_DIRNAME_UNIX}/${RTKERNEL_BASENAME_SANS_SUFFIX}.${SHSFX} ${clang_trap_undefined_options}" }

                use_xsi_cache=no

        spio_libs=""
        : ${KERNEL_SHLD_LIBS="${KERNEL_FRAMEWORKS}"}
                        SPLD_EXE_LIBS="${KERNEL_FRAMEWORKS}"

                : ${SPLD_OPT_WRAPPER_DEFAULT="no"}
                                                        # [PM] 4.2 Make spld --moveable the default
        enable_moveable_default='yes'
        # [PM] 4.2 Now --moveable is the default:
        # SPLD_TOOLFLAGS="${SPLD_TOOLFLAGS:+${SPLD_TOOLFLAGS} }--moveable"

                if test ${PREBUILT_INSTALL_ENABLED:-no} = yes; then
          can_prebuilt=yes
          SPLD_TOOLFLAGS="${SPLD_TOOLFLAGS:+${SPLD_TOOLFLAGS} }--moveable"
        fi

        if test $sp_isbindistr != yes; then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FIXME: need a KERNEL_LIBS/KERNEL_STATIC_LIBS for static linking against SP run-time/PM" >&5
$as_echo "$as_me: WARNING: FIXME: need a KERNEL_LIBS/KERNEL_STATIC_LIBS for static linking against SP run-time/PM" >&2;}
        fi
        if test "${DEBUG_BUILD:-no}" = "yes"; then
                                 cc_no_common=""
        else
            cc_no_common="-fno-common"
        fi

                                        CFLAGS="${CFLAGS} -D_APPLE_C_SOURCE"

        : ${INCR_CFLAGS="$cc_no_common -dynamic"}

        : ${SPLFR_SHLD="${CC}"}

		                        : ${SPLFR_SHLDFLAGS="-bundle ${shld_arch_opts} ${CFLAGS} ${clang_trap_undefined_options}"}
                CFLAGS="${CFLAGS} ${shld_arch_opts}"


                                CPPFLAGS="${no_cpp_precomp} $CPPFLAGS"
        CFLAGS="${no_cpp_precomp} ${KERNEL_FRAMEWORKS_I} ${CFLAGS}"

	# FLI_FILE=fli_rhap.c
        FLI_FILE=fli_dl.c
        case "${PLATFORM}" in
               i386-*)
                if test "${SP_FLI_APPLY_ASM_GENERIC:-no}" != "yes"; then
                  FLI_APPLY_ASM_FILE=fli_i386_darwin.s
                fi
                $as_echo "#define SP_X86 1" >>confdefs.h

                SP_X86=yes

                ASFLAGS='-arch i386'
                SP_JIT_ABI=darwinx86
               ;;
               x86_64-*|i38664-*)
                if test "${SP_FLI_APPLY_ASM_GENERIC:-no}" != "yes"; then
                  FLI_APPLY_ASM_FILE=fli_sysv_abi_x86_64.s
                  $as_echo "#define FLI_APPLY_ASM_SYSV_ABI_X86_64 1" >>confdefs.h

                fi
                $as_echo "#define SP_X64 1" >>confdefs.h

                SP_X64=yes

                ASFLAGS='-arch x86_64'
                SP_JIT_ABI=darwinx64
               ;;
               powerpc-*)
                if test "${SP_FLI_APPLY_ASM_GENERIC:-no}" != "yes"; then
                  FLI_APPLY_ASM_FILE=fli_apple_abi_ppc32.s
                  $as_echo "#define FLI_APPLY_ASM_ABI_PPC 1" >>confdefs.h

                fi
                ASFLAGS='-arch ppc'
               ;;
               powerpc64-*)
                as_fn_error $? "PPC64-support is not available" "$LINENO" 5
                ASFLAGS='-arch ppc64'
               ;;
              aarch64-*|arm64-*) # FIXME: autoconf wants "aarch64" but Apple (uname -m) uses "arm64". (We typically follow the ventor convention)
                if test "${SP_FLI_APPLY_ASM_GENERIC:-no}" != "yes"; then
                  FLI_APPLY_ASM_FILE='fli_sysv_abi_aarch64.s'
                  $as_echo "#define FLI_APPLY_ASM_ABI_AARCH64 1" >>confdefs.h

                  $as_echo "#define FLI_APPLY_ASM_ABI_AARCH64_SUB_ABI_APPLE 1" >>confdefs.h

                fi
                ASFLAGS='-arch arm64'
                $as_echo "#define SP_AARCH64 1" >>confdefs.h

                SP_AARCH64=yes

                              ;;

        esac




        # [PM] 4.3 "jnilib" does not work with Java 8, "dylib" should work with from Java 5, so use that.
        # [PM] 4.3 "Java HotSpot also recognizes .dylib as a valid JNI
        #          library format as of OS X v10.5."
        #
        #          Java 8 System.mapLibraryName("foo") now uses suffix
        #          "dylib" instead of "jnilib" as in Java 6 (and
        #          perhaps 7?).
        #
        # # [PM] 3.9.1 MacOS X JDK 1.3.1 System.loadLibrary("NAME") loads libNAME.jnilib
        # JNI_SHSFX="jnilib"
        JNI_SHSFX="dylib"

        # [PM] 3.9.1 MacOS X dynamic foreign resources are bundles,
        # not dynamic libraries and so should not, as was done in 3.8,
        # use .dylib but rather .bundle (or something like .splib)
        FLI_SHSFX="bundle"
                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking method for hiding symbols" >&5
$as_echo_n "checking method for hiding symbols... " >&6; }
        if test "${darwin_9_or_newer:-no}" = "yes"; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: -exported_symbol" >&5
$as_echo "-exported_symbol" >&6; }

                    SPLFR_SHLD_EXPORT_ARG="-Wl,-exported_symbol,_@SP_MAIN_NAME@"


          SPLFR_LD_EXPORT_ARG="-exported_symbol _@SP_MAIN_NAME@"

          SHLD_RTKERNELEXP='-Wl,-exported_symbol,_$(SP_GET_DISPATCH_NAME)'
        else # <= Mac OS X 10.4

          { $as_echo "$as_me:${as_lineno-$LINENO}: result: nmedit" >&5
$as_echo "nmedit" >&6; }
                    : ${NMEDIT=nmedit}

          EXPFILE_SYMBOL_PREFIX="_"
          RTKERNEL_EXPFILE=rtkernel.exp

                    RTKERNEL_POST_PROCESS='$(NMEDIT) -s $(filter $(RTKERNEL_EXPFILE),$^) $@'

                    SPLFR_SHLD_POST_PROCESS="$NMEDIT"
          SPLFR_SHLD_POST_PROCESS_EXPFILE_OPT="-s " # note space
          SPLFR_SHLD_POST_PROCESS_LIB_OPT=" " # note space
          SPLFR_SHLD_EXPORT_ARG=""

                    SPLFR_LD_R_POST_PROCESS="$SPLFR_SHLD_POST_PROCESS"
          SPLFR_LD_R_POST_PROCESS_EXPFILE_OPT="$SPLFR_SHLD_POST_PROCESS_EXPFILE_OPT"
          SPLFR_LD_R_POST_PROCESS_LIB_OPT="$SPLFR_SHLD_POST_PROCESS_LIB_OPT" # note space
          SPLFR_LD_EXPORT_ARG=""

          SHLD_RTKERNELEXP=""
        fi

        # [PM] 3.9.1 Never use -native on MacOS X, if supported it is the default anyway.
        : ${JAVA_NATIVE_ARG=""}

        # [PM] 4.1 64-bit Java is in Mac OS 10.5 and newer.
        # [PM] 4.1 Consider separating the Jasper options (which needs
        # -d64) from the PrologBeans options (which ought to use the
        # default, i.e. 32-bit, Java

        if test "${darwin_9_or_newer:-no}" = "yes"; then
           if test $enable_64bit = yes; then
	     : ${java_explicit_data_model=64}
           else
             # [PM] 4.1 be explicit, Java on 10.6 defaults to 64-bit
	     : ${java_explicit_data_model=32}
           fi
        fi



                $as_echo "#define SETITIMER_EARLY 1" >>confdefs.h






        SUITE_EXPECTED_FAILURES="${SUITE_EXPECTED_FAILURES}${SUITE_EXPECTED_FAILURES:+ }posix_wait_test_wnohang"

        case "$PLATFORM" in
          *darwin-9.*)
              # [PM] 4.2.2 odbc_suite crashes with segfault. iODBC is
              # broken in Mac OS X 10.5. See
              # https://issues.apache.org/ooo/show_bug.cgi?format=multiple&id=88823,
              # which seems to describe the same underlying problem.
              SUITE_EXPECTED_FAILURES="${SUITE_EXPECTED_FAILURES}${SUITE_EXPECTED_FAILURES:+ }odbc_suite"
              SUITE_SKIPPED_TESTS="${SUITE_SKIPPED_TESTS}${SUITE_SKIPPED_TESTS:+ }odbc_suite"
          ;;
        esac


                                                        MKDISTR_COMPRESS=gzip
        MKDISTR_COMPRESS_ARGS=-9
        SP_INSTALL_ZCAT=zcat

		DEFAULT_POSIX_PATH=/usr/bin

	;;



    *)
        as_fn_error $? "Unsupported platform: $PLATFORM" "$LINENO" 5
        ;;
esac

CFLAGS="${CFLAGS} ${INCR_CFLAGS}"
INCR_CFLAGS=''




USER_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $CFLAGS_EXTRA_SEMANTICS"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking C compiler flags during configure" >&5
$as_echo_n "checking C compiler flags during configure... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5
$as_echo "$CFLAGS" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking C compiler flags for user code" >&5
$as_echo_n "checking C compiler flags for user code... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_CFLAGS" >&5
$as_echo "$USER_CFLAGS" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking data resource support" >&5
$as_echo_n "checking data resource support... " >&6; }
# [PM] "prefix" (direct .o(-prefix) generation), "win32res", "cc" (generic generate C), see spld.pl.in
: ${RESGEN_TYPE="cc"}
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESGEN_TYPE" >&5
$as_echo "$RESGEN_TYPE" >&6; }



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether multiple SICStus run-times is supported" >&5
$as_echo_n "checking whether multiple SICStus run-times is supported... " >&6; }
# Check whether --enable-multi-sp was given.
if test "${enable_multi_sp+set}" = set; then :
  enableval=$enable_multi_sp; enable_multi_sp_feature=$enableval
fi

if test "${enable_multi_sp_feature:-yes}" = "no"; then
  SP_NO_MULTI_SP_FEATURE=yes
fi

: ${SP_NO_MULTI_SP_FEATURE:="no"}
if test "$SP_NO_MULTI_SP_FEATURE" != "no"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
   $as_echo "#define SP_NO_MULTI_SP_FEATURE 1" >>confdefs.h


   PERSISTENT_CONFIGURE_OPTIONS="$PERSISTENT_CONFIGURE_OPTIONS --disable-multi-sp"
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

   $as_echo "#define SP_NO_MULTI_SP_FEATURE 0" >>confdefs.h


fi

if test "${JIT:-no}" = "yes" ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JIT ABI" >&5
$as_echo_n "checking for JIT ABI... " >&6; }
if test "${SP_JIT_ABI:-unset}" = "unset"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SP_JIT_ABI}" >&5
$as_echo "${SP_JIT_ABI}" >&6; }
fi
fi # JIT = yes
# [PM] 4.3.2+ Ensure that it has a value also if non-JIT (e.g. for jit_abi/1).
: ${SP_JIT_ABI:-none}
cat >>confdefs.h <<_ACEOF
#define SP_JIT_ABI_STRING "${SP_JIT_ABI}"
_ACEOF



if test "${JIT:-no}" = "yes" ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JIT PRELOAD FAIL" >&5
$as_echo_n "checking for JIT PRELOAD FAIL... " >&6; }
if test "${SP_JIT_PRELOAD_FAIL:-unset}" = "unset"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SP_JIT_PRELOAD_FAIL}" >&5
$as_echo "${SP_JIT_PRELOAD_FAIL}" >&6; }
fi
fi # JIT = yes

# [PM] 4.3.2+ Ensure that it has a value also if non-JIT (e.g. for jit_abi/1).
: ${SP_JIT_PRELOAD_FAIL:=none}


# [PM] 4.3.2+ Ensure that these have values also if non-JIT
: ${SP_JIT_USE_LQ_STQ:=no}


: ${LD='bad_default'}
if test "x$LD" = "xbad_default"; then
   as_fn_error $? "LD not set. Do not rely on default value of LD and SHLD, Set them explicitly." "$LINENO" 5
fi
: ${SHLD='bad_default'}
if test "x$SHLD" = "xbad_default"; then
   as_fn_error $? "SHLD not set. Do not rely on default value of LD and SHLD, Set them explicitly." "$LINENO" 5
fi

: ${LD_LIBRARY_PATH_name="bad_default"}
if test "x$LD_LIBRARY_PATH_name" = "xbad_default"; then
   as_fn_error $? "LD_LIBRARY_PATH_name not set. Set it explicitly (possibly to empty if N/A)." "$LINENO" 5
fi




: ${CC_ROPT="bad_default"}
if test "x${CC_ROPT}" = "xbad_default"; then
   as_fn_error $? "CC_ROPT not set. Set it explicitly (possibly to empty if N/A)." "$LINENO" 5
fi



: ${SHLD_ROPT="bad_default"}
if test "x$SHLD_ROPT" = "xbad_default"; then
   as_fn_error $? "SHLD_ROPT not set. Set it explicitly (possibly to empty if N/A)." "$LINENO" 5
fi



: ${SPLD_SHLD_JNILIB_FLAGS=""}



if test -z "$SHLDFLAGS"; then
   # [PM] 3.9.0 SHLD/SHLDFLAGS is not something for which there is a reasonable default
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected SHLDFLAGS to be set in platform dependant way here" >&5
$as_echo "$as_me: WARNING: Expected SHLDFLAGS to be set in platform dependant way here" >&2;}
   : ${SHLDFLAGS='-shared'}
fi

LIBS="${KERNEL_SHLD_LIBS}"







: ${SP_INSTALL_DECRYPT=./spdecrypt}


{ case "${ZCAT:-/}" in /*) ;; *) as_fn_error $? "ZCAT ($ZCAT) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "zcat$EXEEXT", so it can be a program name with args.
set dummy zcat$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ZCAT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ZCAT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ZCAT="$ZCAT" # 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
  test -z "$as_dir" && as_dir=.
    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_ZCAT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ZCAT=$ac_cv_path_ZCAT
if test -n "$ZCAT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZCAT" >&5
$as_echo "$ZCAT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi




: ${SP_INSTALL_ZCAT=zcat}





USE_PAX=yes

PAX_ARCHIVE_FORMAT=cpio

case $PLATFORM in
    *linux*)
	USE_PAX=no
    ;;
esac




if test "${DEFAULT_POSIX_PATH+set}" != set; then
  as_fn_error $? "DEFAULT_POSIX_PATH not set, configure.in error" "$LINENO" 5
fi

{ case "${STDTAR:-/}" in /*) ;; *) as_fn_error $? "STDTAR ($STDTAR) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "tar$EXEEXT", so it can be a program name with args.
set dummy tar$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_STDTAR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $STDTAR in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_STDTAR="$STDTAR" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in ${DEFAULT_POSIX_PATH}
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_STDTAR="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$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_STDTAR" && ac_cv_path_STDTAR="false"
  ;;
esac
fi
STDTAR=$ac_cv_path_STDTAR
if test -n "$STDTAR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STDTAR" >&5
$as_echo "$STDTAR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi





#################################################################
#
# Default values
#
#################################################################

: ${CC='cc'}
: ${ENABLE_STATLIB=yes}
: ${LD='ld'}
: ${HAVE_SYSV_ORIGIN=no}
: ${LD_R='ld -r'}
: ${SHSFX='so'}
: ${RTKERNEL_STSFX="a"}

: ${RTKERNEL_BASENAME_WITH_DSO_SUFFIX="${RTKERNEL_BASENAME_SANS_SUFFIX}.${SHSFX}"}
: ${RTKERNEL_BASENAME_WITH_STAT_SUFFIX="${RTKERNEL_BASENAME_SANS_SUFFIX}.${RTKERNEL_STSFX}"}

: ${FLI_SHSFX="$SHSFX"}
: ${JNI_SHSFX="$SHSFX"}
: ${SHPRE='lib'}

: ${HIGH_RESOLUTION_TIME_CP=no}


: ${SHELL='/bin/sh'}
: ${SOCKETLIB=''}
: ${COMCLIENTLIB=''}
: ${STSFX='s.o'}
: ${OUTPUT_OPT="-o "} # observe space after -o
: ${NOLINK_OUTPUT_OPT="-o "} # Note the space after -o
: ${SHLD_OUTPUT_OPT="-o "} # Note the space after -o
: ${MKDIR="${TOP_SRCDIR}/ensdir"}
: ${NOLINK_OPT="-c"}


: ${DSMAINOBJ="main.$OBJEXT"} # [PM] 3.9 no SPAUXMAINOBJ here
: ${WINMAINOBJ=""}
: ${CHARMAINOBJ="charmain.$OBJEXT intrpt.$OBJEXT $SPAUXMAINOBJ"}
: ${KERNEL_SHLD_GENIMPLIB=""}
: ${SPLFR_SHLD_LASTARG=""}
: ${IMPLIB=""}
: ${QUOTECHAR="\""}
: ${PATHSEP=":"}
: ${RMDUMMY=""}
: ${TCLTK_DEFAULT="/usr/local /usr"}
: ${ULIMIT_DATA=""}
: ${MALLOC_ENV=""}
: ${ULIMIT_CMD="ulimit"}
: ${WIN32="no"}
: ${WIN64="no"}
: ${CC_NOLIBPATH=""}

: ${SPLFR_SHLD=$SHLD}
: ${SPLFR_SHLDFLAGS=$SHLDFLAGS}
: ${SPCDECL=""}

# [PM] 3.9b5 whether SIG_IGN et al are properly prototyped. This is
# false on Solaris 7 but true on most other systems so we default to
# true.
: ${HAVE_PROTOTYPED_SIG_IGN=yes}
# [PM] 3.9b4 now on Win32 as well
: ${TIMEOUT_MODULE=timeout.po}
: ${SPACEOUT_MODULE=''}


: ${BENCH_ITERATIONS_SCALE=100}



if test "x$ENABLE_STATLIB" = "xyes"; then
: ${RTKERNEL_BASENAME_WITH_STAT_SUFFIX="${RTKERNEL_BASENAME_SANS_SUFFIX}.${RTKERNEL_STSFX}"}
fi

if test ! -z "$IMPLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking what name to use for the kernel import library" >&5
$as_echo_n "checking what name to use for the kernel import library... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMPLIB" >&5
$as_echo "$IMPLIB" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what name to use for the kernel static library" >&5
$as_echo_n "checking what name to use for the kernel static library... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RTKERNEL_BASENAME_WITH_STAT_SUFFIX" >&5
$as_echo "$RTKERNEL_BASENAME_WITH_STAT_SUFFIX" >&6; }

: ${KERNEL_SHLD_FLAGS=""}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking special flags when linking runtime kernel" >&5
$as_echo_n "checking special flags when linking runtime kernel... " >&6; }
if test -z "${KERNEL_SHLD_FLAGS}"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KERNEL_SHLD_FLAGS}" >&5
$as_echo "${KERNEL_SHLD_FLAGS}" >&6; }
fi





: ${SP_RTSYS_DIRNAME="${SP_RTSYS_DIRNAME_UNIX}"}



cat >>confdefs.h <<_ACEOF
#define SP_RTSYS_DIRNAME "$SP_RTSYS_DIRNAME"
_ACEOF







: ${SP_EMULATOR_DIRNAME="$SP_DIRNAME"}
cat >>confdefs.h <<_ACEOF
#define SP_EMULATOR_DIRNAME "$SP_EMULATOR_DIRNAME"
_ACEOF






: ${SPLFR_SHLD_EXPORT_ARG=bad_value}
if test "x$SPLFR_SHLD_EXPORT_ARG" = "xbad_value"; then
  as_fn_error $? "SPLFR_SHLD_EXPORT_ARG should be set explicitly (to empty if N/A)" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking splfr shared linker export argument" >&5
$as_echo_n "checking splfr shared linker export argument... " >&6; }
if test -z "$SPLFR_SHLD_EXPORT_ARG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPLFR_SHLD_EXPORT_ARG" >&5
$as_echo "$SPLFR_SHLD_EXPORT_ARG" >&6; }
fi



: ${SPLFR_LD_EXPORT_ARG=bad_value}
if test "x$SPLFR_LD_EXPORT_ARG" = "xbad_value"; then
  as_fn_error $? "SPLFR_LD_EXPORT_ARG should be set explicitly (to empty if N/A)" "$LINENO" 5
fi


: ${SHLD_RTKERNELEXP="bad_value"}
if test "x$SHLD_RTKERNELEXP" = "xbad_value"; then
   as_fn_error $? "SHLD_RTKERNELEXP not set. Set it explicitly (possibly to empty if N/A)." "$LINENO" 5
fi


case $PLATFORM in
   *win32*)
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 special spld flags to SHLD ($SHLD)" >&5
$as_echo_n "checking for Win32 special spld flags to SHLD ($SHLD)... " >&6; }
     if test -z "$WIN32_SPLD_SHLD_SPECIAL"; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
     else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIN32_SPLD_SHLD_SPECIAL" >&5
$as_echo "$WIN32_SPLD_SHLD_SPECIAL" >&6; }
     fi

     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 special spld flags to C-compiler (${CC})" >&5
$as_echo_n "checking for Win32 special spld flags to C-compiler (${CC})... " >&6; }
     if test -z "$WIN32_SPLD_CC_SPECIAL"; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
     else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIN32_CC_SHLD_SPECIAL" >&5
$as_echo "$WIN32_CC_SHLD_SPECIAL" >&6; }
     fi

   ;;
esac





























: ${CHR_MODULE=chr.po}



cat >>confdefs.h <<_ACEOF
#define SPCDECL $SPCDECL
_ACEOF


cat >>confdefs.h <<_ACEOF
#define SHSFX "$SHSFX"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define FLI_SHSFX "$FLI_SHSFX"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define RTKERNEL_BASENAME_WITH_DSO_SUFFIX_STRING "$RTKERNEL_BASENAME_WITH_DSO_SUFFIX"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define SHPRE "$SHPRE"
_ACEOF
 cat >>confdefs.h <<_ACEOF
#define SYSTEM_NAME "$PLATFORM"
_ACEOF


# [PM] 3.9 (roughly "have POSIXLY correct sigaction")
: ${POSIX_SIGNALS=yes}

if test "$POSIX_SIGNALS" = "yes"; then
   $as_echo "#define POSIX_SIGNALS 1" >>confdefs.h

fi



if test ".$shsfx_needs_versions." = ".yes."; then
    SHVER=".$SICSTUS_MAJOR_VERSION.$SICSTUS_MINOR_VERSION"
else
    SHVER=""
fi





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CLPFD" >&5
$as_echo_n "checking CLPFD... " >&6; }
ENABLE_CLPFD=yes


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_CLPFD" >&5
$as_echo "$ENABLE_CLPFD" >&6; }
if test ".$ENABLE_CLPFD" != ".yes"; then
   $as_echo "#define ENABLE_CLPFD 0" >>confdefs.h

else
   $as_echo "#define ENABLE_CLPFD 1" >>confdefs.h

fi






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


# 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.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
$as_echo_n "checking size of void *... " >&6; }
if ${ac_cv_sizeof_void_p+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_void_p" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (void *)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_void_p=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
$as_echo "$ac_cv_sizeof_void_p" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
_ACEOF


# 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.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$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
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF

 cat >>confdefs.h <<_ACEOF
#define SP_SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


# 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.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$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
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF

 cat >>confdefs.h <<_ACEOF
#define SP_SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# 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.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$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
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF

 cat >>confdefs.h <<_ACEOF
#define SP_SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


# 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.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
$as_echo_n "checking size of void *... " >&6; }
if ${ac_cv_sizeof_void_p+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_void_p" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (void *)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_void_p=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
$as_echo "$ac_cv_sizeof_void_p" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
_ACEOF

 cat >>confdefs.h <<_ACEOF
#define SP_SIZEOF_VOID_P $ac_cv_sizeof_void_p
_ACEOF


# The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
$as_echo_n "checking alignment of short... " >&6; }
if ${ac_cv_alignof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ac__type_alignof_;"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute alignment of short
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_alignof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
$as_echo "$ac_cv_alignof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define ALIGNOF_SHORT $ac_cv_alignof_short
_ACEOF


# The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
$as_echo_n "checking alignment of int... " >&6; }
if ${ac_cv_alignof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ac__type_alignof_;"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute alignment of int
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_alignof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
$as_echo "$ac_cv_alignof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define ALIGNOF_INT $ac_cv_alignof_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
$as_echo_n "checking alignment of long... " >&6; }
if ${ac_cv_alignof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ac__type_alignof_;"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute alignment of long
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_alignof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
$as_echo "$ac_cv_alignof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define ALIGNOF_LONG $ac_cv_alignof_long
_ACEOF


# The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long" >&5
$as_echo_n "checking alignment of long long... " >&6; }
if ${ac_cv_alignof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long long y; } ac__type_alignof_;"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute alignment of long long
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_alignof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long" >&5
$as_echo "$ac_cv_alignof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define ALIGNOF_LONG_LONG $ac_cv_alignof_long_long
_ACEOF


# The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of float" >&5
$as_echo_n "checking alignment of float... " >&6; }
if ${ac_cv_alignof_float+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_float"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; float y; } ac__type_alignof_;"; then :

else
  if test "$ac_cv_type_float" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute alignment of float
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_alignof_float=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_float" >&5
$as_echo "$ac_cv_alignof_float" >&6; }



cat >>confdefs.h <<_ACEOF
#define ALIGNOF_FLOAT $ac_cv_alignof_float
_ACEOF


# The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
$as_echo_n "checking alignment of double... " >&6; }
if ${ac_cv_alignof_double+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ac__type_alignof_;"; then :

else
  if test "$ac_cv_type_double" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute alignment of double
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_alignof_double=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
$as_echo "$ac_cv_alignof_double" >&6; }



cat >>confdefs.h <<_ACEOF
#define ALIGNOF_DOUBLE $ac_cv_alignof_double
_ACEOF


# The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
$as_echo_n "checking alignment of void *... " >&6; }
if ${ac_cv_alignof_void_p+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p"        "$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; void * y; } ac__type_alignof_;"; then :

else
  if test "$ac_cv_type_void_p" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute alignment of void *
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_alignof_void_p=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
$as_echo "$ac_cv_alignof_void_p" >&6; }



cat >>confdefs.h <<_ACEOF
#define ALIGNOF_VOID_P $ac_cv_alignof_void_p
_ACEOF



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 sizeof word" >&5
$as_echo_n "checking for log2 sizeof word... " >&6; }
case $ac_cv_sizeof_void_p in
  4)
    $as_echo "#define LogSizeOfWord 2" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2" >&5
$as_echo "2" >&6; }
  ;;
  8)
    $as_echo "#define LogSizeOfWord 3" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
$as_echo "3" >&6; }
  ;;
  *)
    as_fn_error $? "unsupported size ($ac_cv_sizeof_void_p) of void*. Expected sizeof(void*) to be 4 or 8" "$LINENO" 5
esac

# 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.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if ${ac_cv_sizeof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$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
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF

 cat >>confdefs.h <<_ACEOF
#define SP_SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF



# 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.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int128" >&5
$as_echo_n "checking size of __int128... " >&6; }
if ${ac_cv_sizeof___int128+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int128))" "ac_cv_sizeof___int128"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type___int128" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$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
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128" >&5
$as_echo "$ac_cv_sizeof___int128" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF___INT128 $ac_cv_sizeof___int128
_ACEOF

 cat >>confdefs.h <<_ACEOF
#define SP_SIZEOF___INT128 $ac_cv_sizeof___int128
_ACEOF


# 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.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int128_t" >&5
$as_echo_n "checking size of __int128_t... " >&6; }
if ${ac_cv_sizeof___int128_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int128_t))" "ac_cv_sizeof___int128_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type___int128_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$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
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128_t" >&5
$as_echo "$ac_cv_sizeof___int128_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF___INT128_T $ac_cv_sizeof___int128_t
_ACEOF

 cat >>confdefs.h <<_ACEOF
#define SP_SIZEOF___INT128_T $ac_cv_sizeof___int128_t
_ACEOF


# 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.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __uint128_t" >&5
$as_echo_n "checking size of __uint128_t... " >&6; }
if ${ac_cv_sizeof___uint128_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__uint128_t))" "ac_cv_sizeof___uint128_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type___uint128_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$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
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___uint128_t" >&5
$as_echo "$ac_cv_sizeof___uint128_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF___UINT128_T $ac_cv_sizeof___uint128_t
_ACEOF

 cat >>confdefs.h <<_ACEOF
#define SP_SIZEOF___UINT128_T $ac_cv_sizeof___uint128_t
_ACEOF


# 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.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
$as_echo_n "checking size of __int64... " >&6; }
if ${ac_cv_sizeof___int64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type___int64" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$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
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
$as_echo "$ac_cv_sizeof___int64" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF___INT64 $ac_cv_sizeof___int64
_ACEOF

 cat >>confdefs.h <<_ACEOF
#define SP_SIZEOF___INT64 $ac_cv_sizeof___int64
_ACEOF


 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>

int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
		#include <sys/param.h>

int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;

int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)

                 # if true
                 $as_echo "#define SP_BIGENDIAN 1" >>confdefs.h

                 SP_BIGENDIAN=yes

               ;; #(
   no)

                 # if false
                 SP_BIGENDIAN=no

                ;; #(
   universal)

                 # if universal (should not happen, need to set ac_cv_c_bigendian above
                 as_fn_error $? "universal endianness is not supported. Presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5

     ;; #(
   *)

                 # if unknown
                 as_fn_error $? "unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5
                ;;
 esac






{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
$as_echo_n "checking for X... " >&6; }


# Check whether --with-x was given.
if test "${with_x+set}" = set; then :
  withval=$with_x;
fi

# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
else
  case $x_includes,$x_libraries in #(
    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  $as_echo_n "(cached) " >&6
else
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=no ac_x_libraries=no
rm -f -r conftest.dir
if mkdir conftest.dir; then
  cd conftest.dir
  cat >Imakefile <<'_ACEOF'
incroot:
	@echo incroot='${INCROOT}'
usrlibdir:
	@echo usrlibdir='${USRLIBDIR}'
libdir:
	@echo libdir='${LIBDIR}'
_ACEOF
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
    for ac_var in incroot usrlibdir libdir; do
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
    done
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl dylib la dll; do
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
	ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    case $ac_im_incroot in
	/usr/include) ac_x_includes= ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
    esac
    case $ac_im_usrlibdir in
	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
    esac
  fi
  cd ..
  rm -f -r conftest.dir
fi

# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current release.
ac_x_header_dirs='
/usr/X11/include
/usr/X11R7/include
/usr/X11R6/include
/usr/X11R5/include
/usr/X11R4/include

/usr/include/X11
/usr/include/X11R7
/usr/include/X11R6
/usr/include/X11R5
/usr/include/X11R4

/usr/local/X11/include
/usr/local/X11R7/include
/usr/local/X11R6/include
/usr/local/X11R5/include
/usr/local/X11R4/include

/usr/local/include/X11
/usr/local/include/X11R7
/usr/local/include/X11R6
/usr/local/include/X11R5
/usr/local/include/X11R4

/usr/X386/include
/usr/x386/include
/usr/XFree86/include/X11

/usr/include
/usr/local/include
/usr/unsupported/include
/usr/athena/include
/usr/local/x11r5/include
/usr/lpp/Xamples/include

/usr/openwin/include
/usr/openwin/share/include'

if test "$ac_x_includes" = no; then
  # Guess where to find include files, by looking for Xlib.h.
  # First, try using that file with no special directory specified.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <X11/Xlib.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # We can compile using X headers with no special include directory.
ac_x_includes=
else
  for ac_dir in $ac_x_header_dirs; do
  if test -r "$ac_dir/X11/Xlib.h"; then
    ac_x_includes=$ac_dir
    break
  fi
done
fi
rm -f conftest.err conftest.i conftest.$ac_ext
fi # $ac_x_includes = no

if test "$ac_x_libraries" = no; then
  # Check for the libraries.
  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS=$LIBS
  LIBS="-lX11 $LIBS"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <X11/Xlib.h>
int
main ()
{
XrmInitialize ()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=
else
  LIBS=$ac_save_LIBS
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do
  # Don't even attempt the hair of trying to link an X program!
  for ac_extension in a so sl dylib la dll; do
    if test -r "$ac_dir/libX11.$ac_extension"; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi # $ac_x_libraries = no

case $ac_x_includes,$ac_x_libraries in #(
  no,* | *,no | *\'*)
    # Didn't find X, or a directory has "'" in its name.
    ac_cv_have_x="have_x=no";; #(
  *)
    # Record where we found X for the cache.
    ac_cv_have_x="have_x=yes\
	ac_x_includes='$ac_x_includes'\
	ac_x_libraries='$ac_x_libraries'"
esac
fi
;; #(
    *) have_x=yes;;
  esac
  eval "$ac_cv_have_x"
fi # $with_x != no

if test "$have_x" != yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
$as_echo "$have_x" >&6; }
  no_x=yes
else
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes\
	ac_x_includes='$x_includes'\
	ac_x_libraries='$x_libraries'"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
fi

if test "$no_x" = yes; then
  # Not all programs may use this symbol, but it does not hurt to define it.

$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h

  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
else
  if test -n "$x_includes"; then
    X_CFLAGS="$X_CFLAGS -I$x_includes"
  fi

  # It would also be nice to do this for all -L options, not just this one.
  if test -n "$x_libraries"; then
    X_LIBS="$X_LIBS -L$x_libraries"
    # For Solaris; some versions of Sun CC require a space after -R and
    # others require no space.  Words are not sufficient . . . .
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
    ac_xsave_c_werror_flag=$ac_c_werror_flag
    ac_c_werror_flag=yes
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
       X_LIBS="$X_LIBS -R$x_libraries"
else
  LIBS="$ac_xsave_LIBS -R $x_libraries"
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	  X_LIBS="$X_LIBS -R $x_libraries"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
$as_echo "neither works" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    ac_c_werror_flag=$ac_xsave_c_werror_flag
    LIBS=$ac_xsave_LIBS
  fi

  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.

  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn Johnson says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And Karl Berry says
    # the Alpha needs dnet_stub (dnet does not exist).
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
    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.  */
#ifdef __cplusplus
extern "C"
#endif
char XOpenDisplay ();
int
main ()
{
return XOpenDisplay ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet  $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.  */
#ifdef __cplusplus
extern "C"
#endif
char dnet_ntoa ();
int
main ()
{
return dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dnet_dnet_ntoa=yes
else
  ac_cv_lib_dnet_dnet_ntoa=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
fi

    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet_stub  $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.  */
#ifdef __cplusplus
extern "C"
#endif
char dnet_ntoa ();
int
main ()
{
return dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
else
  ac_cv_lib_dnet_stub_dnet_ntoa=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
fi

    fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    LIBS="$ac_xsave_LIBS"

    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
    # to get the SysV transport functions.
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
    # needs -lnsl.
    # The nsl library prevents programs from opening the X display
    # on Irix 5.2, according to T.E. Dickey.
    # The functions gethostbyname, getservbyname, and inet_addr are
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
if test "x$ac_cv_func_gethostbyname" = xyes; then :

fi

    if test $ac_cv_func_gethostbyname = no; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  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.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_nsl_gethostbyname=yes
else
  ac_cv_lib_nsl_gethostbyname=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
fi

      if test $ac_cv_lib_nsl_gethostbyname = no; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $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.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_bsd_gethostbyname=yes
else
  ac_cv_lib_bsd_gethostbyname=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
fi

      fi
    fi

    # lieder@skyler.mavd.honeywell.com says without -lsocket,
    # socket/setsockopt and other routines are undefined under SCO ODT
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
    # on later versions), says Simon Leinen: it contains gethostby*
    # variants that don't use the name server (or something).  -lsocket
    # must be given before -lnsl if both are needed.  We assume that
    # if connect needs -lnsl, so does gethostbyname.
    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
if test "x$ac_cv_func_connect" = xyes; then :

fi

    if test $ac_cv_func_connect = no; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
$as_echo_n "checking for connect in -lsocket... " >&6; }
if ${ac_cv_lib_socket_connect+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $X_EXTRA_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.  */
#ifdef __cplusplus
extern "C"
#endif
char connect ();
int
main ()
{
return connect ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_socket_connect=yes
else
  ac_cv_lib_socket_connect=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
$as_echo "$ac_cv_lib_socket_connect" >&6; }
if test "x$ac_cv_lib_socket_connect" = xyes; then :
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
fi

    fi

    # Guillermo Gomez says -lposix is necessary on A/UX.
    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
if test "x$ac_cv_func_remove" = xyes; then :

fi

    if test $ac_cv_func_remove = no; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
$as_echo_n "checking for remove in -lposix... " >&6; }
if ${ac_cv_lib_posix_remove+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix  $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.  */
#ifdef __cplusplus
extern "C"
#endif
char remove ();
int
main ()
{
return remove ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_posix_remove=yes
else
  ac_cv_lib_posix_remove=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
$as_echo "$ac_cv_lib_posix_remove" >&6; }
if test "x$ac_cv_lib_posix_remove" = xyes; then :
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
fi

    fi

    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
if test "x$ac_cv_func_shmat" = xyes; then :

fi

    if test $ac_cv_func_shmat = no; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
$as_echo_n "checking for shmat in -lipc... " >&6; }
if ${ac_cv_lib_ipc_shmat+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lipc  $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.  */
#ifdef __cplusplus
extern "C"
#endif
char shmat ();
int
main ()
{
return shmat ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ipc_shmat=yes
else
  ac_cv_lib_ipc_shmat=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
fi

    fi
  fi

  # Check for libraries that X11R6 Xt/Xaw programs need.
  ac_save_LDFLAGS=$LDFLAGS
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  # check for ICE first), but we must link in the order -lSM -lICE or
  # we get undefined symbols.  So assume we have SM if we have ICE.
  # These have to be linked with before -lX11, unlike the other
  # libraries we check for below, so use a different variable.
  # John Interrante, Karl Berry
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lICE $X_EXTRA_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.  */
#ifdef __cplusplus
extern "C"
#endif
char IceConnectionNumber ();
int
main ()
{
return IceConnectionNumber ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_ICE_IceConnectionNumber=yes
else
  ac_cv_lib_ICE_IceConnectionNumber=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
fi

  LDFLAGS=$ac_save_LDFLAGS

fi





# Check whether --with-bdbversion was given.
if test "${with_bdbversion+set}" = set; then :
  withval=$with_bdbversion;
fi


# Check whether --with-bdb was given.
if test "${with_bdb+set}" = set; then :
  withval=$with_bdb;
fi


# Check whether --with-libdb was given.
if test "${with_libdb+set}" = set; then :
  withval=$with_libdb;
fi




# strnlen (in UNIX but not ISO C) used by library/odbc.c
for ac_func in strnlen
do :
  ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
if test "x$ac_cv_func_strnlen" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_STRNLEN 1
_ACEOF

fi
done



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ODBC" >&5
$as_echo_n "checking whether to use ODBC... " >&6; }

# Check whether --with-odbc was given.
if test "${with_odbc+set}" = set; then :
  withval=$with_odbc; odbc_path_arg="$withval"
else
  odbc_path_arg=""
fi



# Check whether --with-libodbc was given.
if test "${with_libodbc+set}" = set; then :
  withval=$with_libodbc; LIBODBC_PATH=$withval
fi


if test "${enable_foreign_resources:-yes}" != "no"; then
  odbc_wanted=yes
else
  odbc_wanted=no
fi
odbc_explicit=no

case "${LIBODBC_PATH:-no}" in
  yes)
    as_fn_error $? "--with-libodbc must have an argument" "$LINENO" 5
  ;;
  no) # --without-libodbc
    LIBODBC_PATH='' # ignore --without-libodbcd and --with-libodbc=""
  ;;
  *) # --with-libodbc=PATH
    odbc_explicit=yes
  ;;
esac

case "${odbc_path_arg}" in
  "") # no --with(out)-odbc argument at all
    :
  ;;
  yes) # --with-odbc, --with-odbc=yes
    odbc_explicit=yes
    odbc_path_arg=''
  ;;
  no) # --without-odbc overrides --with-libodbc
    LIBODBC_PATH=''
    odbc_explicit=no
    odbc_wanted=no
  ;;
  *) # --with-odbc=PATH
    odbc_path_arg=${odbc_path_arg%/} # strip trailing /
    odbc_explicit=yes
    as_fn_error $? "Explicit --with-odbc path is currently not supported" "$LINENO" 5
  ;;
esac

## [PM] 4.1.3 Allow to configure without ODBC (--without-odbc)
if test "${odbc_wanted}" = "no"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
   odbc_path_arg=""
elif test "${odbc_explicit:-no}" = "yes"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, if possible" >&5
$as_echo "yes, if possible" >&6; }
fi



if test "${odbc_wanted}" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC support" >&5
$as_echo_n "checking for ODBC support... " >&6; }
case $PLATFORM in
  *darwin-*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -liodbc" >&5
$as_echo_n "checking for SQLAllocHandle in -liodbc... " >&6; }
if ${ac_cv_lib_iodbc_SQLAllocHandle+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-liodbc  $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.  */
#ifdef __cplusplus
extern "C"
#endif
char SQLAllocHandle ();
int
main ()
{
return SQLAllocHandle ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_iodbc_SQLAllocHandle=yes
else
  ac_cv_lib_iodbc_SQLAllocHandle=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLAllocHandle" >&5
$as_echo "$ac_cv_lib_iodbc_SQLAllocHandle" >&6; }
if test "x$ac_cv_lib_iodbc_SQLAllocHandle" = xyes; then :
  has_odbc=yes
else
  has_odbc=no
fi

    ;;
  *win32*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC support" >&5
$as_echo_n "checking for ODBC support... " >&6; }
    # Windows always has ODBC
    has_odbc=yes
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5
$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; }
if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lodbc  $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.  */
#ifdef __cplusplus
extern "C"
#endif
char SQLAllocHandle ();
int
main ()
{
return SQLAllocHandle ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_odbc_SQLAllocHandle=yes
else
  ac_cv_lib_odbc_SQLAllocHandle=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5
$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; }
if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then :
  has_odbc=yes
else
  has_odbc=no
fi

    ;;
esac
fi # odbc_wanted

if test "${has_odbc:-no}" = "yes"; then
   case $PLATFORM in
  *darwin-*)
      ODBCLIB=-liodbc
      ODBC_MODULE=odbc.po
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking For iODBC header folder" >&5
$as_echo_n "checking For iODBC header folder... " >&6; }
      # [PM] 4.3 There is no good way to handle iODBC on OS X. It is a mess and, as of OS X 10.9 Mavericks, no headers are included.
      # Look for separately installed iODBC framework headers (but we never link with the iODBC framework, we always use the plain -liodbc).
      for incdir in /Library/Frameworks/iODBC.framework/Headers; do
        if test -f "$incdir/iodbcunix.h" ; then
	   # [PM] 4.3 Use conditional assignment so it can be overridden from environment, as a fallback.
           : ${ODBCINC="-I$incdir"}
	   break
        fi
      done
      if test -n "${ODBCINC}"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ODBCINC}" >&5
$as_echo "${ODBCINC}" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
      fi

      ;;
  *win32*)
      ODBC_MODULE=odbc.po
      ODBCINC=""
      ;;
  *)
      ODBCLIB=-lodbc
      ODBC_MODULE=odbc.po
      ODBCINC=""
      ;;
  esac
else
    has_odbc='no'
    ODBCLIB=""
    ODBC_MODULE=""
    ODBCINC=""
fi





if test "${ODBC_MODULE:-unset}" = "unset"; then
   INSTALLER_HAS_ODBC=no
else
   INSTALLER_HAS_ODBC=yes
fi












{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java support" >&5
$as_echo_n "checking for Java support... " >&6; }


# Check whether --with-java was given.
if test "${with_java+set}" = set; then :
  withval=$with_java; java_path_="$withval"
else

		:

fi


if test "${WIN32:-no}" = "yes"; then
  case "${java_path_}" in
  xx-quoted-win-path:*)
     java_path_win32="$(echo "${java_path_}" | sed -e 's/^xx-quoted-win-path://' -e 's/%/ /g')"
     java_path=$(cygpath -u $(cygpath -m -s "${java_path_win32}"))
     if test -z "${java_path}"; then
       as_fn_error $? "Could not Unixify path \"${java_path_}\"" "$LINENO" 5
     fi
     ;;
  *)
     java_path="$java_path_"
     ;;
  esac
else # not Windows
  java_path="$java_path_"
fi


java_explicit=no

if test ".$java_path" = ".no"; then # --without-java
   opt_enable_java=no

   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
   java_explicit=no
else
   opt_enable_java=yes

   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
$as_echo "enabled" >&6; }
   if test -z "$java_path"; then
     java_explicit=no
   else
     java_explicit=yes

     if test ".$java_path" = ".yes"; then # --with-java without a path
       java_path=""
     fi
   fi
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SICStus should use Java JNI" >&5
$as_echo_n "checking whether SICStus should use Java JNI... " >&6; }
opt_enable_java_jni_default="$opt_enable_java"

# Check whether --enable-java-jni was given.
if test "${enable_java_jni+set}" = set; then :
  enableval=$enable_java_jni; opt_enable_java_jni="$enableval"
else
  opt_enable_java_jni="$opt_enable_java_jni_default"
fi

if test "${opt_enable_java_jni}" = no; then
  PERSISTENT_CONFIGURE_OPTIONS="${PERSISTENT_CONFIGURE_OPTIONS} --disable-java-jni"
else
    opt_enable_java_jni=yes
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_enable_java_jni" >&5
$as_echo "$opt_enable_java_jni" >&6; }

java_path_arg="$java_path"


# Check whether --enable-jdk-rpath was given.
if test "${enable_jdk_rpath+set}" = set; then :
  enableval=$enable_jdk_rpath; enable_jdk_rpath="$enableval"
else

       case $PLATFORM in
           *win32*)
               # no rpath on Win32
               enable_jdk_rpath=no
               ;;
           *darwin-*)
               # no rpath on MacOS X
               enable_jdk_rpath=no
               ;;
           *)
               enable_jdk_rpath=yes
               ;;
       esac

fi

case "${opt_enable_java_jni:-no}" in
  yes)
     opt_enable_java_jni=yes
     ;;
  *)
     opt_enable_java_jni=no
     ;;
esac


# [PM] 3.9.1 We should set this explicitly for all platforms. Booby trap it.
default_jdk_rpath_set=yes;
# [PM] 3.8.6
case $PLATFORM in
    *linux*)
        # This case should really be 'uses glibc ld.so'
        : ${default_jdk_rpath_in_ds:=yes}
                        : ${default_jdk_rpath_in_jasper:=yes}
        ;;
    *)
        # [PM] do not know what is a reasonable default
        default_jdk_rpath_in_ds=yes
        default_jdk_rpath_in_jasper=no
        default_jdk_rpath_set=no
        ;;
esac

if test "$enable_jdk_rpath" != yes; then
      jdk_rpath_in_ds=no
   jdk_rpath_in_jasper=no
   default_jdk_rpath_set=yes
else
   jdk_rpath_in_ds=$default_jdk_rpath_in_ds
   jdk_rpath_in_jasper=$default_jdk_rpath_in_jasper
fi



ENABLE_JAVA=no

java_done=no
for x in y; do

if test $opt_enable_java = no; then break; fi

# [PM] 4.3.1 make it possible to force non-Apple Java Also on OS X <= 10.7.
# [PM] 4.3.1 Java 6 is long dead (although 1.6.0_65 is still
#      available, in "Java for OS X 2014-001", from Apple at
#      http://support.apple.com/kb/DL1572)
case $PLATFORM in
   *darwin-9.*|*darwin-10.*|*darwin-11.*)
       macosx_jdk_default=yes
       ;;
   *darwin-*) # >= Darwin 12, i.e. >= 10.8
       macosx_jdk_default=no
       ;;
   *)
       macosx_jdk_default=no
       ;;
esac

case $PLATFORM in
   *darwin-*) # Mac OS X
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Apple legacy Java 6" >&5
$as_echo_n "checking whether to use Apple legacy Java 6... " >&6; }
       # Check whether --enable-macosx-java was given.
if test "${enable_macosx_java+set}" = set; then :
  enableval=$enable_macosx_java; macosx_jdk="$enableval"
else
  macosx_jdk="$macosx_jdk_default"
fi

       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $macosx_jdk" >&5
$as_echo "$macosx_jdk" >&6; }
       ;;
   *)
       macosx_jdk=no
       ;;
esac


case $PLATFORM in
   *darwin-*)
              if test "${macosx_jdk}" = yes ; then
                    default_jdk_path=/System/Library/Frameworks/JavaVM.framework
       else # !macosx_jdk
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default macOS Java candidate" >&5
$as_echo_n "checking for default macOS Java candidate... " >&6; }
          # Ask the OS where the default Java is located (works in OS X 10.7 and higher)
          # Note that we may not want to build the release with the
          # default version of Java.

          # [PM] 4.6.0 NOTE: This is the default (typically latest)
          # Java, which is proabably what the user wants. This may be
          # newer than what we build the release with (Java 8 in SP
          # 4.6.0). We should _not_ use java_home -v 1.8 here since
          # that would force an old version upon the installing user.
          need_src_build_java=no

          if test "${need_src_build_java:-no}" = "yes"; then
            # We want Java 8 as the default when building from source
            default_jdk_path_="$(/usr/libexec/java_home -v 1.8)"
          else # Not source build, i.e. user installation
            # We want the default (latest) Java as the default when installing, e.g. from InstallSICStus
            default_jdk_path_="$(/usr/libexec/java_home)"
          fi


          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${default_jdk_path_:-none}" >&5
$as_echo "${default_jdk_path_:-none}" >&6; }
	                      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default macOS Java" >&5
$as_echo_n "checking for default macOS Java... " >&6; }
          if test -d "${default_jdk_path_}" && test -d "${default_jdk_path_}/include" && test -d "${default_jdk_path_}/bin"; then
             # [PM] 4.3 Special trick for OS X with (Oracle) Java 7 or
             #      later. Do not use heuristics, trust /usr/libexec/java_home if it looks sane.
             #      Note that java_home --task BundledApp (or --task
             #      JNI) still replies with Apple legacy Java 6, in
             #      both Orace Java 7 and Oracle Java 8 (1.8.0u25). ([PM] 4.5.0 it gives up with Java 11 in macOS 10.14)
             default_jdk_path="${default_jdk_path_}"
           fi
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${default_jdk_path:-none}" >&5
$as_echo "${default_jdk_path:-none}" >&6; }
       fi
       ;;
esac


if test "${macosx_jdk}" = yes ; then

      if test ! -d "$java_path"; then
      java_path=""
   fi

   if test -z "$java_path"; then
      java_path="$default_jdk_path"
   fi

   # override the JDK standard layout
   java_exec_path="$java_path/Commands"
   jni_h_dir="$java_path/Headers"
   # [PM] 3.9.1 FIXME if nonstandard java_path then perhaps -F$java_path should be used!?
   #            Ignore this issue until JDK 1.4 for MacOS X is releases
   java_inc_flags=" -I$jni_h_dir "
   java_ld_L_flags=" -framework JavaVM "
   JAVALIB="$java_ld_L_flags $JAVA_LDFLAGS"
fi
# [PM] 4.6.0 if no explicit --with-java, prefere the default, if any, over looking in $PATH
if test -z "$java_path"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default path to Java" >&5
$as_echo_n "checking for default path to Java... " >&6; }
  if test -d "${default_jdk_path}"; then
    java_path="${default_jdk_path}"
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${java_path:-none}" >&5
$as_echo "${java_path:-none}" >&6; }
fi

if test -z "$java_path"; then
    # [PM] 3.9.1 We will not get here for MacOS X

    # On NT java.exe will be found in WINNT\system32, instead look
    # for Java development system. Also no risk of finding the
    # jre/bin directory instead of <JDK>/bin
    #
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java in PATH" >&5
$as_echo_n "checking for Java in PATH... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
    # Extract the first word of "javac$EXEEXT", so it can be a program name with args.
set dummy javac$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_java_in_path+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $java_in_path in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_java_in_path="$java_in_path" # 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
  test -z "$as_dir" && as_dir=.
    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_java_in_path="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
java_in_path=$ac_cv_path_java_in_path
if test -n "$java_in_path"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java_in_path" >&5
$as_echo "$java_in_path" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



    if test -f "$java_in_path"; then
	case $PLATFORM in
	    *linux*)
		# Linux-specific heuristics
		if test -z "$java_path"; then
		    # [PM] 4.5.0 OpenJDK on Linux (Ubuntu 18.04) has
		    # /usr/bin/java -> /etc/alternatives/java
		    # /etc/alternatives/java -> /usr/lib/jvm/java-11-openjdk-amd64/bin/java
		    # /usr/lib/jvm/java-11-openjdk-amd64/bin/java
		    # /usr/lib/jvm/default-java -> java-1.11.0-openjdk-amd64
		    # /usr/lib/jvm/java-1.11.0-openjdk-amd64 -> java-11-openjdk-amd64
		    #
		    # realpath(/usr/bin/java)                      ==> /usr/lib/jvm/java-11-openjdk-amd64/bin/java
		    # realpath(/usr/lib/jvm/default-java/bin/java) ==> /usr/lib/jvm/java-11-openjdk-amd64/bin/java
		    #
		    # So, we can reverse engineer this and use
		    # /usr/lib/jvm/default-java/ instead of
		    # /usr/lib/jvm/java-11-openjdk-amd64/
		    #
		    # In CentOS 6.5 There are some other symbolic links we can try in a similar way.
		    # Not clear what is best

                    for d in '/usr/lib/jvm/default-java' '/usr/lib/jvm/java' '/usr/lib/jvm/java-openjdk'; do
		      if test -x "$d/bin/javac"; then
		      	 usr_lib_jvm_default_java_path="$d"
			 break
		      fi
		    done

		    # realpath may not be present except on more recent Linux.
		    java_exec_realpath="`realpath \"$java_in_path\" 2>/dev/null`"
		    if test -z "$java_exec_realpath"; then
		       # older Linux (e.g CentOS 6)
		       java_exec_realpath="`readlink --canonicalize-existing \"$java_in_path\" 2>/dev/null`"
		    fi

		    if test -d "$usr_lib_jvm_default_java_path"; then # may be empty
                      default_java_realpath="`realpath \"$usr_lib_jvm_default_java_path/bin/javac$EXEEXT\" 2>/dev/null`"
                      if test -z "$default_java_realpath"; then
                         # older Linux (e.g CentOS 6)
                         default_java_realpath="`readlink --canonicalize-existing \"$usr_lib_jvm_default_java_path/bin/javac$EXEEXT\" 2>/dev/null`"
                      fi
                    fi

		    if test "${java_exec_realpath:-empty1}" = "${default_java_realpath:-empty2}"; then
			java_path="$usr_lib_jvm_default_java_path"
		    else

			javaexecdir="`dirname \"$java_exec_realpath\"`"
			jdkdir="$javaexecdir/.."
			realdir="`(cd $jdkdir && pwd)`"

			if test -n "$realdir"; then
			  java_path="$realdir"
			fi
		    fi
		fi # test -z java_path

	    ;; # Linux
        esac


	if test -z "$java_path"; then
	    javaexecdir="`dirname \"$java_in_path\"`"
	    jdkdir="$javaexecdir/.."
	    realdir="`(cd $jdkdir && pwd)`"
	    # paranoid, fail if not there
	    if test -n "$realdir"; then
	      java_path="$realdir"
	    fi
        fi
    fi
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to Java" >&5
$as_echo_n "checking for path to Java... " >&6; }
if test -n "$java_path"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java_path" >&5
$as_echo "$java_path" >&6; }
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, giving up" >&5
$as_echo "not found, giving up" >&6; }
   break
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Java installation uses JEP 220 layout (Java 9)" >&5
$as_echo_n "checking whether Java installation uses JEP 220 layout (Java 9)... " >&6; }
if test -n "${java_path}" && test -d "${java_path}/conf"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  java_jep220_layout=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  java_jep220_layout=no
fi



: ${java_exec_path=$java_path/bin}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for java executables" >&5
$as_echo_n "checking for java executables... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in ${java_exec_path=$java_path/bin}" >&5
$as_echo "in ${java_exec_path=$java_path/bin}" >&6; }

java_search_path="$java_exec_path:$PATH"
{ case "${JAVAEXEC:-/}" in /*) ;; *) as_fn_error $? "JAVAEXEC ($JAVAEXEC) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "java$EXEEXT", so it can be a program name with args.
set dummy java$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_JAVAEXEC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $JAVAEXEC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAVAEXEC="$JAVAEXEC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $java_search_path
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_JAVAEXEC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
JAVAEXEC=$ac_cv_path_JAVAEXEC
if test -n "$JAVAEXEC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAEXEC" >&5
$as_echo "$JAVAEXEC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


{ case "${JAVAC:-/}" in /*) ;; *) as_fn_error $? "JAVAC ($JAVAC) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "javac$EXEEXT", so it can be a program name with args.
set dummy javac$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_JAVAC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $JAVAC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $java_search_path
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_JAVAC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
JAVAC=$ac_cv_path_JAVAC
if test -n "$JAVAC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
$as_echo "$JAVAC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


{ case "${JAVAH:-/}" in /*) ;; *) as_fn_error $? "JAVAH ($JAVAH) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "javah$EXEEXT", so it can be a program name with args.
set dummy javah$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_JAVAH+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $JAVAH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $java_search_path
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_JAVAH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
JAVAH=$ac_cv_path_JAVAH
if test -n "$JAVAH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
$as_echo "$JAVAH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


{ case "${JAVADOC:-/}" in /*) ;; *) as_fn_error $? "JAVADOC ($JAVADOC) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "javadoc$EXEEXT", so it can be a program name with args.
set dummy javadoc$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_JAVADOC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $JAVADOC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $java_search_path
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$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_JAVADOC" && ac_cv_path_JAVADOC="false"
  ;;
esac
fi
JAVADOC=$ac_cv_path_JAVADOC
if test -n "$JAVADOC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
$as_echo "$JAVADOC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


{ case "${JAR:-/}" in /*) ;; *) as_fn_error $? "JAR ($JAR) must be an absolute path" "$LINENO" 5; ;; esac; }
# Extract the first word of "jar$EXEEXT", so it can be a program name with args.
set dummy jar$EXEEXT; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_JAR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $JAR in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $java_search_path
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    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_JAR="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$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_JAR" && ac_cv_path_JAR="false"
  ;;
esac
fi
JAR=$ac_cv_path_JAR
if test -n "$JAR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
$as_echo "$JAR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



# JAVAEXEC should really be there once we get to this point
if test -z "$JAVAEXEC"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not find java launcher, giving up" >&5
$as_echo "$as_me: WARNING: Did not find java launcher, giving up" >&2;}
   break
fi

java_source_encoding='ISO-8859-1'



ENABLE_JAVA=yes
done


if test "$ENABLE_JAVA" = yes; then

JAVA_EXECOPTS=''

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking JDK version" >&5
$as_echo_n "checking JDK version... " >&6; }
# [PM] 4.4.1+ "java -version" should not need any special flags, so can use this before JAVA_EXECOPTS is fully known
# Hope that everyone follows the pattern 'VENDOR version "VERSION"'
# Oracle: 'java version "..."'
# OpenJDK: 'openjdk version "..."'
JAVA_VERSION=`$JAVAEXEC -version 2>&1 | head -1 | sed -n -e 's/^.* *version.*"\([^"]*\)".*/\1/p'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_VERSION" >&5
$as_echo "$JAVA_VERSION" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java major version" >&5
$as_echo_n "checking for Java major version... " >&6; }
# JAVA_VERSION is 1.X... for version X <= 8
# JAVA_VERSION is X... for version X >= 9. ("10", "9-Ubuntu", ..., so use first number)
case "${JAVA_VERSION:-none}" in
     none)
        ;;
     1.*) # <= 1.8
	JAVA_MAJOR_VERSION=$(expr "$JAVA_VERSION" : '1\.\([0-9][0-9]*\)\.*')
	;;
     *) # >= 9
	JAVA_MAJOR_VERSION=$(expr "$JAVA_VERSION" : '\([0-9][0-9]*\)')
	;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAVA_MAJOR_VERSION:-none}" >&5
$as_echo "${JAVA_MAJOR_VERSION:-none}" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -d32/-d64 Java flags" >&5
$as_echo_n "checking for -d32/-d64 Java flags... " >&6; }
# java_explicit_data_model is empty, or one of '32', '64'
# [PM] 4.4.1+ -d32/-d64 was deprecated in Java 9, removed in Java 10
if test "${JAVA_MAJOR_VERSION:-0}" -ge 9 ; then
   java_data_model_flag=''
else
   java_data_model_flag="${java_explicit_data_model:+-d${java_explicit_data_model}}"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${java_data_model_flag:-none}" >&5
$as_echo "${java_data_model_flag:-none}" >&6; }
JAVA_EXECOPTS="${java_data_model_flag}${java_data_model_flag:+ }$JAVA_EXECOPTS"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether java supports the -native argument" >&5
$as_echo_n "checking whether java supports the -native argument... " >&6; }
: ${JAVA_NATIVE_ARG=bad_value}

if test "x$JAVA_NATIVE_ARG" = "xbad_value"; then # was not set at all
   if "$JAVAEXEC" -native -version > /dev/null 2>&1; then
      JAVA_NATIVE_ARG="-native"
   else # java -native -version failed
      JAVA_NATIVE_ARG=""
   fi
fi
if test -z "$JAVA_NATIVE_ARG"; then # was explicitly set to empty
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($JAVA_NATIVE_ARG)" >&5
$as_echo "yes ($JAVA_NATIVE_ARG)" >&6; }
fi
JAVA_EXECOPTS="$JAVA_NATIVE_ARG $JAVA_EXECOPTS"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for arguments to $JAVAEXEC" >&5
$as_echo_n "checking for arguments to $JAVAEXEC... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_EXECOPTS" >&5
$as_echo "$JAVA_EXECOPTS" >&6; }



javac_source_arg=''

javac_target_arg=''

JAVACFLAGS="${JAVACFLAGS}${JAVACFLAGS:+ }-encoding ${java_source_encoding}"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking extra options to javac" >&5
$as_echo_n "checking extra options to javac... " >&6; }
if test "${DBGFLAG:-unset}" != "no"; then
   JAVACDBGFLAGS="-g $JAVACDBGFLAGS"
fi

JAVACFLAGS="${javac_source_arg} ${javac_target_arg} ${JAVACFLAGS}"

if test -n "$JAVACFLAGS$JAVACDBGFLAGS"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVACFLAGS $JAVACDBGFLAGS" >&5
$as_echo "$JAVACFLAGS $JAVACDBGFLAGS" >&6; }
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi

fi                              # ENABLE_JAVA


ENABLE_JAVA_JNI=no
for x in y; do
if test ${ENABLE_JAVA} = no; then break; fi

if test ${opt_enable_java_jni} = no; then break; fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for java include directory" >&5
$as_echo_n "checking for java include directory... " >&6; }

# [PM] 3.9.1 MacOS X legacy macosx_jdk overrides jni_h_dir
: ${jni_h_dir=$java_path/include}

jni_h=$jni_h_dir/jni.h
if test -f "$jni_h"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jni_h_dir" >&5
$as_echo "$jni_h_dir" >&6; }
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
   # give up
   break
fi

if test -z "$java_inc_flags"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java OS specific include directory" >&5
$as_echo_n "checking for java OS specific include directory... " >&6; }

               jni_md_h_dir=`find $jni_h_dir/* -follow -type d -prune -print 2>/dev/null | head -n 1`
   jni_md_h=$jni_md_h_dir/jni_md.h
   if test -f "$jni_md_h"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jni_md_h_dir" >&5
$as_echo "$jni_md_h_dir" >&6; }
   else
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found" >&5
$as_echo "none found" >&6; }
   fi

   for dir in "$jni_h_dir" "$jni_md_h_dir"; do
      if test -n "$dir"; then
         native_dir=`$CYGPATH "$dir"`
         java_inc_flags="$java_inc_flags -I$native_dir"
      fi
   done
fi


: ${java_cflags="-D_REENTRANT"}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking JNI version" >&5
$as_echo_n "checking JNI version... " >&6; }
java_tmp=java_tmp$$
cat > $java_tmp.c <<EOF
	#include <jni.h>
	int main(int argc, char **argv) {
	#ifdef JNI_VERSION_1_2
	    return 0;
	#else
	    return 1;
	#endif
	}
EOF
rm -f ./$java_tmp$EXEEXT
"${CC}" $java_cflags $java_inc_flags $java_tmp.c ${OUTPUT_OPT}$java_tmp$EXEEXT >/dev/null 2>&1

if test -f ./$java_tmp$EXEEXT && ./$java_tmp$EXEEXT; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, JNI_VERSION_1_2 or larger" >&5
$as_echo "ok, JNI_VERSION_1_2 or larger" >&6; }
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: your JDK is broken or too old (SICStus/Jasper requires 1.7 or later)" >&5
$as_echo "your JDK is broken or too old (SICStus/Jasper requires 1.7 or later)" >&6; }
   rm -f $java_tmp*
      break
fi
rm -f $java_tmp*


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate JNI headers" >&5
$as_echo_n "checking how to generate JNI headers... " >&6; }

if test "${JAVA_MAJOR_VERSION:-0}" -ge 8 ; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: javac" >&5
$as_echo "javac" >&6; }
   USE_JAVAC_H_FOR_JNI_HEADERS=yes
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: javah" >&5
$as_echo "javah" >&6; }
   USE_JAVAC_H_FOR_JNI_HEADERS=no
fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK shared library directories" >&5
$as_echo_n "checking for JDK shared library directories... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }

jdk_link_flags_done=no


# *** Apple legacy Java SDK
if test "$macosx_jdk" = "yes"; then
   # MacOS X 10.1
   # link with -framework JavaVM

   PUSH_LDFLAGS="$LDFLAGS"
   LDFLAGS="$java_ld_L_flags"
   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.  */
#ifdef __cplusplus
extern "C"
#endif
char JNI_CreateJavaVM ();
int
main ()
{
return JNI_CreateJavaVM ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  java_links=yes
else
  java_links=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
   LDFLAGS="$PUSH_LDFLAGS"

   if test "$java_links" != "yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not link with JavaVM" >&5
$as_echo "$as_me: WARNING: Could not link with JavaVM" >&2;}
      break
   fi
   jdk_link_flags_done=yes
elif test "${darwin:-no}" = "yes";  then # OS X but not Apple legacy Java SDK






   if test "$java_jep220_layout" = "yes"; then # Java 9 (and newer, presumably)
      if test -f "${java_path}/lib/server/libjvm.${SHSFX}"; then
         jre_lib_dir="${java_path}/lib/server"
      else
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not find libjvm.${SHSFX} in the expected JEP 220 location (\"${java_path}/lib/server/libjvm.${SHSFX}\")" >&5
$as_echo "$as_me: WARNING: Did not find libjvm.${SHSFX} in the expected JEP 220 location (\"${java_path}/lib/server/libjvm.${SHSFX}\")" >&2;}
         if test -f "${java_path}/lib/libjvm.${SHSFX}"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: Found libjvm.${SHSFX} in the documented JEP 220 location (\"${java_path}/lib/libjvm.${SHSFX}\")" >&5
$as_echo "$as_me: Found libjvm.${SHSFX} in the documented JEP 220 location (\"${java_path}/lib/libjvm.${SHSFX}\")" >&6;}
	    jre_lib_dir="${java_path}/lib"
	 else
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not find libjvm.${SHSFX} in the documented JEP 220 location (\"${java_path}/lib/libjvm.${SHSFX}\")" >&5
$as_echo "$as_me: WARNING: Did not find libjvm.${SHSFX} in the documented JEP 220 location (\"${java_path}/lib/libjvm.${SHSFX}\")" >&2;}

	    	    jre_lib_dir="${java_path}/lib"
	 fi
      fi
   else	# JDK 1.8 and older

      # java.library.path property is useless on OS X, so we must figure this out manually

      jre_lib_dir="${java_path}/jre/lib/server"
   fi

   java_ld_L_flags="-L${jre_lib_dir}"
   JAVALIB="${java_ld_L_flags} -ljvm"

   PUSH_LDFLAGS="$LDFLAGS"
   LDFLAGS="$JAVALIB"
   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.  */
#ifdef __cplusplus
extern "C"
#endif
char JNI_CreateJavaVM ();
int
main ()
{
return JNI_CreateJavaVM ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  java_links=yes
else
  java_links=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
   LDFLAGS="$PUSH_LDFLAGS"
   JASPER_ENV_ARGS="DYLD_LIBRARY_PATH=${jre_lib_dir}"
   if test "$java_links" != "yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not link with JavaVM" >&5
$as_echo "$as_me: WARNING: Could not link with JavaVM" >&2;}
      break
   fi

   jdk_link_flags_done=yes
fi



if test "${WIN32:-no}" = "yes"; then
   posix_javalib="$java_path/lib/jvm.lib"
   if test ! -f "${posix_javalib}"; then
     as_fn_error $? "Cannot find ${posix_javalib}" "$LINENO" 5
   fi
   JAVALIB="`$CYGPATH "$posix_javalib"`"
   jdk_link_flags_done=yes
fi

# [PM] 4.3 Also needed in non-src build.
GETSYSTEMPROPERTYJAR_BASENAME=GetSystemProperty.jar




# [PM] 4.3 New way to figure out linker -L<DIR> -ljvm for linking with
# Java. The old way, using the system property java.library.path, does
# not work, e.g in Oracle Java 7.

if test "$jdk_link_flags_done" = "no"; then

   # [PM] 4.3 Kludge alert (there is no documented way to ask java about
   # how to link with libjvm.so).
   #### BEGIN new Java -L detection

   GETSYSTEMPROPERTYJAR=$GETSYSTEMPROPERTYJAR_BASENAME
   if test -f "$GETSYSTEMPROPERTYJAR"; then
      :
   else # not present in CWD
      GETSYSTEMPROPERTYJAR=se/sics/sicstus/configure/$GETSYSTEMPROPERTYJAR_BASENAME
   fi

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sun.boot.library.path can be obtained" >&5
$as_echo_n "checking whether sun.boot.library.path can be obtained... " >&6; }
   if test -f "$GETSYSTEMPROPERTYJAR"; then
      if sun_boot_library_path=`"$JAVAEXEC" $JAVA_EXECOPTS -jar "$GETSYSTEMPROPERTYJAR" sun.boot.library.path`; then
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($sun_boot_library_path)" >&5
$as_echo "yes ($sun_boot_library_path)" >&6; }
      else
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
         sun_boot_library_path=''
      fi
   else # GetSystemProperty.jar not present
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GETSYSTEMPROPERTYJAR was not found" >&5
$as_echo "$as_me: WARNING: $GETSYSTEMPROPERTYJAR was not found" >&2;}
      sun_boot_library_path=''
   fi

   found_jvm_dso_full_path=''
   found_jvm_dso_parent_full_path=''
   jvm_dso="libjvm.$SHSFX"
   dummy="$sun_boot_library_path"
   save_ifs="$IFS"; IFS=":"
   for dir in $dummy; do
      tmp_ifs="$IFS"; IFS="$save_ifs";
      {
        { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for $jvm_dso below $dir" >&5
$as_echo "$as_me: Checking for $jvm_dso below $dir" >&6;}
        for vmdir in server j9vm client; do
          jvm_dso_parent="${dir}/${vmdir}"
          jvm_dso_full_path="${jvm_dso_parent}/${jvm_dso}"
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $jvm_dso_full_path exists" >&5
$as_echo_n "checking whether $jvm_dso_full_path exists... " >&6; }
          if test -f "$jvm_dso_full_path"; then
             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
             found_jvm_dso_full_path="$jvm_dso_full_path"
             found_jvm_dso_parent_full_path="$jvm_dso_parent"
             break
          else
             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          fi
        done
        if test -n "$found_jvm_dso_full_path"; then
           break;
        fi
      }
      IFS="$tmp_ifs"
   done
   IFS="$save_ifs"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the folder containing $jvm_dso could be found" >&5
$as_echo_n "checking whether the folder containing $jvm_dso could be found... " >&6; }
   if test -n "$found_jvm_dso_parent_full_path"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($found_jvm_dso_parent_full_path)" >&5
$as_echo "yes ($found_jvm_dso_parent_full_path)" >&6; }
      java_ld_library_path="$found_jvm_dso_parent_full_path"
   else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
   fi


   ## Output:
   ##  java_ld_library_path -- colon separated for finding libjvm.so with
   ##                          ld -L<DIR> or LD_LIBRARY_PATH

   #### END new Java -L detection

fi # "$jdk_link_flags_done" = "no"


if test "$jdk_link_flags_done" = "no"; then

   if test -z "$java_ld_library_path"; then # [PM] 4.3 may be set above by new detection




   debug_prog=./debug_prog$$.sh
      : ${JAVA_LD_LIBRARY_PATH_name="$LD_LIBRARY_PATH_name"}

   cat > $debug_prog <<EOF
   #!/bin/sh

   # Clean up the list of directories
   # Remove "/foo/.."
   # Replace "::" with single colon
   # Remove ":" at start of path
   # Remove ":" at end of path
   CLEAN_LD_LIBRARY_PATH=\`echo "\$$JAVA_LD_LIBRARY_PATH_name" | sed -e 's%/[^/]*/\.\.%%g' -e 's/::/:/g' -e 's/^://' -e 's/:$//'\`
   # Find all the .so files java can find through LD_LIBRARY_PATH
   # find  \`echo "\$CLEAN_LD_LIBRARY_PATH" | sed -e 'y/:/ /'\` -maxdepth 1 -name '*.so'
   echo LD_LIBRARY_PATH=="\$CLEAN_LD_LIBRARY_PATH"
EOF


   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Java shared library locations can be obtained using DEBUG_PROG with wrapper" >&5
$as_echo_n "checking if Java shared library locations can be obtained using DEBUG_PROG with wrapper... " >&6; }
   chmod a+x $debug_prog
   ld_library_path_set=`DEBUG_PROG=$debug_prog $JAVAEXEC $JAVA_EXECOPTS -version 2> /dev/null`
   rm -f $debug_prog
      case "$ld_library_path_set" in
     LD_LIBRARY_PATH==*) # success using DEBUG_PROG hack
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
       ;;
     *)
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

       GETSYSTEMPROPERTYJAR=$GETSYSTEMPROPERTYJAR_BASENAME

       if test ! -f "$GETSYSTEMPROPERTYJAR"; then # not present
          GETSYSTEMPROPERTYJAR=se/sics/sicstus/configure/$GETSYSTEMPROPERTYJAR_BASENAME
       fi

       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether java.library.path can be obtained instead" >&5
$as_echo_n "checking whether java.library.path can be obtained instead... " >&6; }
       if test -f "$GETSYSTEMPROPERTYJAR"; then
          if ld_library_path_set=`"$JAVAEXEC" $JAVA_EXECOPTS -jar "$GETSYSTEMPROPERTYJAR" java.library.path`; then
             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          else
             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
             ld_library_path_set=""
          fi
       else # GetSystemProperty.jar not present
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GETSYSTEMPROPERTYJAR was not found" >&5
$as_echo "$as_me: WARNING: $GETSYSTEMPROPERTYJAR was not found" >&2;}
          ld_library_path_set=""
       fi
       ;;
   esac

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether java shared library locations could be determined" >&5
$as_echo_n "checking whether java shared library locations could be determined... " >&6; }
   if test -z "$ld_library_path_set"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, giving up" >&5
$as_echo "no, giving up" >&6; }
      break
   else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
   fi
               java_ld_library_path=`echo "$ld_library_path_set" | sed -e 's/^java\.library\.path==/LD_LIBRARY_PATH==/' -e 's/^LD_LIBRARY_PATH==\(.*\)/\1/'`

   fi # [PM] 4.3 if test -z "$java_ld_library_path";


   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Java shared library locations" >&5
$as_echo_n "checking Java shared library locations... " >&6; }
   if test -z "$java_ld_library_path"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
      java_library_dirs=""
      prefixed_java_library_path=""
   else # java_ld_library_path != ""


                  : ${sys_L_dirs:='/lib:/lib64:/usr/lib:/usr/lib64'}

                                # [PM] 3.11.3
        java_automount_dir=`( cd ${java_path} && /bin/pwd )` 2>/dev/null
        if test "${java_path}" = "${java_automount_dir}"; then
          java_automount_dir=''
        fi
        save_ifs="$IFS"; IFS=":"
        new_path=""
        elt_prefix=""
        dummy="$java_ld_library_path"
        for dir in $dummy; do
          tmp_ifs="$IFS"; IFS="$save_ifs"; # [PM] 4.1.3 SPRM 11929
          if test -z "$dir"; then
            : # nothing
          else
            # [PM] 3.11.3 try to replace automount specific prefix with $java_path
            if test -n "${java_automount_dir}"; then
              pretty_dir=`echo "${dir}" | sed -n -e "s,^${java_automount_dir}/,${java_path}/,p"`
              if test -d "${pretty_dir}"; then
                dir="${pretty_dir}"
              fi
            fi
            bad_dir=no
            save_ifs2="$IFS"; IFS=":"; # [PM] 4.1.3 SPRM 11929
              for sys_dir in $sys_L_dirs; do
                tmp_ifs2="$IFS"; IFS="$save_ifs2";
                   if test "$sys_dir" = "$dir"; then
                     bad_dir=yes
                     IFS="$save_ifs"
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: removed system dir $dir from java_ld_library_path" >&5
$as_echo "removed system dir $dir from java_ld_library_path" >&6; };
                     IFS=":"
                     break
                   fi
                IFS="$tmp_ifs2"
              done
            IFS="$save_ifs2"

            if test $bad_dir = no; then
              new_path="$new_path$elt_prefix$dir"
              elt_prefix=":"
            fi
          fi
          IFS="$tmp_ifs" # [PM] 4.1.3
        done
        java_ld_library_path="$new_path"
        IFS="$save_ifs"



            ##################################################
            # GENERIC FILTERING CODE BEGIN (KEEP SYNCHRONIZED)
            # Set up input for filtering
            original_dirs="${java_ld_library_path}"
            bad_dirs="${sys_L_dirs}"
            path_title='Java link'
            # BEGIN generic block
            {
              # Input: original_dirs (colon separated)
              # Input: bad_dirs (colon separated)
              # Input: path_title (for messages, e.g. 'Tcl/Tk linker')
              # Output: cleaned_dirs (colon-separated)
              cleaned_dirs=''
              # for-loop over colon separated
              {
                save_ifs="$IFS"; IFS=":"
                for dir in $original_dirs; do
                  tmp_ifs="$IFS"; IFS="$save_ifs"; # [PM] 4.1.3 SPRM 11929
                  # Body is using outer IFS
                  {
                    if test -z "$dir"; then
                      : # nothing
                    else
                      is_bad_dir=no

                      # for-loop over colon separated
                      {
                        save_ifs1="$IFS"; IFS=":"
                        for bad_dir in ${bad_dirs}; do
                          tmp_ifs1="$IFS"; IFS="$save_ifs1";
                          # Body is using outer IFS
                          {
                            if test "$bad_dir" = "$dir"; then
                              is_bad_dir=yes
                              { $as_echo "$as_me:${as_lineno-$LINENO}: result: removed system dir $dir from $path_title path" >&5
$as_echo "removed system dir $dir from $path_title path" >&6; };
                              break
                            fi
                          }
                          # Restore for-loop IFS at end of body
                          IFS="$tmp_ifs1"
                        done
                        # Restore IFS after for-loop
                        IFS="${save_ifs1}"
                      }
                      # pre for-loop IFS has been restored

                      if test "${is_bad_dir}" = no; then
                        cleaned_dirs="$cleaned_dirs$elt_prefix$dir"
                        elt_prefix=":"
                      fi
                    fi
                  }
                  # Restore for-loop IFS at end of body
                  IFS="$tmp_ifs" # [PM] 4.1.3
                done
                # Restore IFS after for-loop
                IFS="$save_ifs"
              }
              # pre for-loop IFS has been restored
            }
            # END generic block
            #
            # Propagate output variables
            candidate_lib_dirs="${cleaned_dirs}"
            # Reset local variables
            original_dirs='can_not_happen'
            bad_dirs='can_not_happen'
            path_title='can_not_happen'
            cleaned_dirs='can_not_happen'
            # GENERIC FILTERING CODE END (KEEP SYNCHRONIZED)
            ##################################################
            java_ld_library_path="${candidate_lib_dirs}"



            java_library_dirs=`echo "$java_ld_library_path" | sed -e 's/:/ /g'`


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java_library_dirs" >&5
$as_echo "$java_library_dirs" >&6; }
      prefixed_java_library_path=":$java_ld_library_path"

      # [PM] 3.12.8 for platforms (like recent?) AIX Java 1.3.1 that
      # need to have its shared libraries pointed out via an
      # environment variable (as opposed to relying on RPATH or
      # similar).
      if test ${jasper_env_args_need_LD_LIBRARY_PATH:-no} = yes; then
         JASPER_ENV_ARGS="${JASPER_ENV_ARGS:+${JASPER_ENV_ARGS} }${LD_LIBRARY_PATH_name}=${java_ld_library_path}"
      fi
   fi # java_ld_library_path != ""


         java_lib_name=jvm

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Java link flags" >&5
$as_echo_n "checking Java link flags... " >&6; }
         if test "${java_ld_L_flags+set}" != "set"; then

     save_ifs="$IFS"; IFS=":"
     java_ld_L_flags=""
     for dir in $java_ld_library_path; do
       tmp_ifs="$IFS"; IFS="$save_ifs"; # [PM] 4.1.3 SPRM 11929
       if test -z "$dir"; then
         : # nothing
       else
         java_ld_L_flags="-L${dir}${java_ld_L_flags:+ }${java_ld_L_flags}"
       fi
       IFS="$tmp_ifs" # [PM] 4.1.3
     done
     IFS="$save_ifs"
   fi
   if test -n "${java_ld_L_flags}"; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${java_ld_L_flags}" >&5
$as_echo "${java_ld_L_flags}" >&6; }
   else
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
   fi


               save_LD_RUN_PATH="$LD_RUN_PATH"
   LD_RUN_PATH="$java_ld_library_path"
   export LD_RUN_PATH

      PUSH_LDFLAGS="$LDFLAGS"
   LDFLAGS="$java_ld_L_flags"
   as_ac_Lib=`$as_echo "ac_cv_lib_$java_lib_name''_JNI_CreateJavaVM" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JNI_CreateJavaVM in -l$java_lib_name" >&5
$as_echo_n "checking for JNI_CreateJavaVM in -l$java_lib_name... " >&6; }
if eval \${$as_ac_Lib+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-l$java_lib_name  $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.  */
#ifdef __cplusplus
extern "C"
#endif
char JNI_CreateJavaVM ();
int
main ()
{
return JNI_CreateJavaVM ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  java_links=yes
else
  java_links=no
fi

   LDFLAGS="$PUSH_LDFLAGS"
   LD_RUN_PATH="$save_LD_RUN_PATH"

   if test ".$java_links" != ".yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not link with JVM" >&5
$as_echo "$as_me: WARNING: Could not link with JVM" >&2;}
      break
   fi
fi # UNIX

ENABLE_JAVA_JNI=yes
done


if test ${ENABLE_JAVA_JNI} = yes; then

            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether JVM shared library need to be pre-loaded" >&5
$as_echo_n "checking whether JVM shared library need to be pre-loaded... " >&6; }
   : ${enable_preload_jvm=no}
   if test "x$enable_preload_jvm" = "xyes"; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          if test -z "$LIBJVM_SO_name"; then
       as_fn_error $? "Internal configure error, LIBJVM_SO_name not set" "$LINENO" 5
     fi
     if test -z "$LD_PRELOAD_name"; then
       as_fn_error $? "Internal configure error, LD_PRELOAD_name not set" "$LINENO" 5
     fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of jvm ($LIBJVM_SO_name)" >&5
$as_echo_n "checking for location of jvm ($LIBJVM_SO_name)... " >&6; }

     jvm_path=""
     save_ifs="$IFS"; IFS=":"
     for dir in $java_ld_library_path; do
        tmp_ifs="$IFS"; IFS="$save_ifs"; # [PM] 4.1.3 SPRM 11929
        if test -f "$dir/$LIBJVM_SO_name"; then
          jvm_path="$dir/$LIBJVM_SO_name"
          break;
        fi
        IFS="$tmp_ifs" # [PM] 4.1.3
     done
     IFS="$save_ifs"
     if test -z "$jvm_path"; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBJVM_SO_name not found" >&5
$as_echo "$as_me: WARNING: $LIBJVM_SO_name not found" >&2;}
     else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jvm_path" >&5
$as_echo "$jvm_path" >&6; }
     fi
     JAVA_PRELOAD="$LD_PRELOAD_name=$jvm_path"
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to pre-load the jvm shared library" >&5
$as_echo_n "checking how to pre-load the jvm shared library... " >&6; }
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_PRELOAD" >&5
$as_echo "$JAVA_PRELOAD" >&6; }
   else
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
   fi
   JASPER_ENV_ARGS="${JASPER_ENV_ARGS} ${JAVA_PRELOAD}"



fi #ENABLE_JAVA_JNI=yes

if test "$ENABLE_JAVA" = "yes"; then


   JDK_PATH=`$CYGPATH "$java_path"`




   if test ${ENABLE_JAVA_JNI} = yes; then
      JASPER_MODULE="jasper.po"
   else
      JASPER_MODULE=""
   fi


   if test ${ENABLE_JAVA_JNI} = yes; then
      java_rtl_path="$java_ld_library_path"

                                          : ${JAVALIB="$java_ld_L_flags -l$java_lib_name $JAVA_LDFLAGS"}


      JAVAINC="$java_inc_flags"

   fi






      INSTALLER_JAVA_VERSION=$JAVA_VERSION


   java_done=yes
fi                              # [PM] 3.11.2 ENABLE_JAVA










if test ".$JASPER_MODULE." != ".."; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking extra JDK related --resources options to spld" >&5
$as_echo_n "checking extra JDK related --resources options to spld... " >&6; }

   if test "$default_jdk_rpath_set" != "yes"; then
               as_fn_error $? "need to explicitly set whether to embed JDK rpath" "$LINENO" 5
   fi


   if test ".$jdk_rpath_in_ds" = ".yes"; then
      resname=jasper

      if test "x$SPLD_DS_RESOURCES" = "x"; then # not yet set
         res_prefix=""
      else # separate with comma
         res_prefix=","
      fi
      SPLD_DS_RESOURCES="${SPLD_DS_RESOURCES}${res_prefix}-${resname}"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SPLD_DS_RESOURCES}" >&5
$as_echo "${SPLD_DS_RESOURCES}" >&6; }
   else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
   fi

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking extra JDK related options to splfr" >&5
$as_echo_n "checking extra JDK related options to splfr... " >&6; }

   if test ".$jdk_rpath_in_jasper" != ".yes"; then
      JASPER_SPLFR_FLAGS=' --no-rpath '
   fi
   if test -n "$JASPER_SPLFR_FLAGS"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JASPER_SPLFR_FLAGS" >&5
$as_echo "$JASPER_SPLFR_FLAGS" >&6; }
   else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
   fi

fi

JDK_RPATH="$java_rtl_path"





: ${JAVADOCFLAGS=''}


if test "$ENABLE_JAVA_JNI" = "yes"; then
   INSTALLER_HAS_JAVA_JNI=yes
else
   INSTALLER_HAS_JAVA_JNI=no
fi





#########
#
# Checking Tcl/Tk version. This is quite hairy.
#



# Check whether --with-tcltkversion was given.
if test "${with_tcltkversion+set}" = set; then :
  withval=$with_tcltkversion;
        case "$withval" in
          no)
            # pointless but ignore it
            :
          ;;
          yes)
            as_fn_error $? "--with-tcltkversion must specify a version" "$LINENO" 5
          ;;
          *)
	    TCLTK_VERSION=$withval
            tcltk_version_explicit=yes
          ;;
        esac

else

      tcltk_version_explicit=no


fi


# Check whether --with-tcltk was given.
if test "${with_tcltk+set}" = set; then :
  withval=$with_tcltk; TCLTK_PATH=$withval
else

            if test "${enable_foreign_resources:-yes}" = "no"; then
              TCLTK_PATH=no
            fi

fi


# Check whether --with-tcl was given.
if test "${with_tcl+set}" = set; then :
  withval=$with_tcl; TCL_PATH=$withval
fi


# Check whether --with-tk was given.
if test "${with_tk+set}" = set; then :
  withval=$with_tk; TK_PATH=$withval
fi



# Check whether --with-libtk was given.
if test "${with_libtk+set}" = set; then :
  withval=$with_libtk; LIBTK_PATH=$withval
fi

# Check whether --enable-tcltk-version-fallback was given.
if test "${enable_tcltk_version_fallback+set}" = set; then :
  enableval=$enable_tcltk_version_fallback;
	       tcltk_version_fallback=yes

else

	       tcltk_version_fallback=no


fi


if test "x$LIBTK_PATH" != "x"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking How to locate Tcl/Tk" >&5
$as_echo_n "checking How to locate Tcl/Tk... " >&6; }
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libtk path ($LIBTK_PATH)" >&5
$as_echo "using libtk path ($LIBTK_PATH)" >&6; }

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tk lib version" >&5
$as_echo_n "checking Tk lib version... " >&6; }
    TCLTK_VERSION=`echo "$LIBTK_PATH" | sed -n -e 's/^.*[a-zA-Z]\([0-9][0-9]*\.[0-9][0-9]*\)\.[a-zA-Z]*$/\1/p'`
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLTK_VERSION" >&5
$as_echo "$TCLTK_VERSION" >&6; }

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tk lib location" >&5
$as_echo_n "checking Tk lib location... " >&6; }
    TCLTK_PATH=`echo "$LIBTK_PATH" | sed -n -e 's@^\(.*\)/[^/]*$@\1@p'`
   case "$TCLTK_PATH" in
     */lib)
              TCLTK_PATH=`echo "$TCLTK_PATH" | sed -n -e 's@^\(.*\)/lib$@\1@p'`
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLTK_PATH" >&5
$as_echo "$TCLTK_PATH" >&6; }
       ;;
     *)
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Tk library ($LIBTK_PATH) must be located in a directory called lib" >&5
$as_echo "$as_me: WARNING: Tk library ($LIBTK_PATH) must be located in a directory called lib" >&2;}
       TCLTK_PATH=''
       ;;
   esac
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl/Tk using Tk lib info ($TCLTK_PATH)" >&5
$as_echo_n "checking Tcl/Tk using Tk lib info ($TCLTK_PATH)... " >&6; }
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
fi

tcltk_explicit=no
if test ".$TCLTK_PATH" = ".yes"; then
   TCLTK_PATH=''
   tcltk_explicit=yes
fi

tcltk_already_configured=no

# Special case for using Tcl/Tk with stubs + source-built Tcl/Tk BEGIN
if test "${tcltk_already_configured:-no}" != "yes" \
   && test "${TCLTK_PATH:-yes}" != "no" ; then

   if test "${USE_TCLTK_SRC_BUILD:-no}" = "yes"; then
     TCLTK_SRC_BUILD_DIR="${TOP_SRCDIR}/tcltk_src_build_dir"

     TCLINC=''
     TCL_LIBRARY=''
     TK_LIBRARY=''

     TCL_PATH="$TCLTK_PATH"
     TK_PATH="$TCLTK_PATH"

                         : "${TCLTK_SRC_BUILD_DIR:="${TOP_SRCDIR}/tcltk_src_build_dir"}"


                         TCLLIB=''

     TCLTK_MODULE="tcltk.po"
     tcltk_already_configured=yes
   else      # Not using source-build of Tcl/Tk. Use the stubs libraries from the "usual place"
          case $host in
       *win32*)
                              TCLLIB='tclstub86.lib tkstub86.lib'
       ;;
       *) # not Windows
          TCLLIB="-ltclstub${TCLTK_VERSION} -ltkstub${TCLTK_VERSION}"
       ;;
     esac

   fi fi                      # test "${TCLTK_PATH:-yes}" != "no"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCLLIB" >&5
$as_echo_n "checking TCLLIB... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLLIB}" >&5
$as_echo "${TCLLIB}" >&6; }
# Special case for using Tcl/Tk with stubs + source-built Tcl/Tk END


if test "${tcltk_already_configured:-no}" != "yes"; then

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl/Tk" >&5
$as_echo_n "checking Tcl/Tk... " >&6; }
if test ".$TCLTK_PATH" = ".no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    : ${TCLLIB=""}
else
    tcl_ok=no

    # [PM] 3.9b2 TCLTK_PATH is a cygwin path here

    # If --with-tcltk is specified, use it unless --with-tcl or --with-tk has been given
    if test -n "$TCLTK_PATH"; then
	: ${TCL_PATH:="${TCLTK_PATH}"}
	: ${TK_PATH:="${TCLTK_PATH}"}
	tcl_ok=yes
        tcltk_explicit=yes
    fi

    # [PM] 3.9b2 TCLTK_PATH, TCL_PATH, TK_PATH are cygwin paths here

    # If they are equal, set TCLTK_PATH to that value.
    if test -n "$TCL_PATH" && test -n "$TK_PATH"; then
	if test "X$TCL_PATH" = "X$TK_PATH"; then
	    TCLTK_PATH=$TCL_PATH
	fi
	tcl_ok=yes
    fi

    # [PM] 3.9b2 TCLTK_PATH, TCL_PATH, TK_PATH are cygwin paths here

    # X_CFLAGS are flags needed to correctly compile C-code with X
    INCPATHFLAGS="$X_CFLAGS"

    if test -n "$TCLTK_PATH"; then
	tcl_ok=yes

        ## [PM] 3.8.6 on TclPro 1.4 (at least) the platform
        ## independent include file is located one level up from the
        ## platform dependent bin and lib directories (SPRM 2008)

        # [PM] 3.9b2 --with-tcltk is now a cygwin path like the other -with-XXX paths.
        tcltk_native_path=`$CYGPATH "$TCLTK_PATH"`
        tcltk_native_include_dir="$tcltk_native_path/include"

        ## [PM] 3.8.6 The -d in the test should be -e (in case of
        ## symbolic links) but /usr/ucb/test on solaris does not
        ## recognize the -e primitive
        if test -d "$TCLTK_PATH/bin" && test -d "$TCLTK_PATH/lib" && test ! -f "$TCLTK_PATH/include/tcl.h"; then
           if test -f "$TCLTK_PATH/../include/tcl.h"; then
              tcltk_native_include_dir=`$CYGPATH "$TCLTK_PATH/../include"`
           fi
        fi

        # [PM] 3.9b2 TCLTK_PATH, TCL_PATH, TK_PATH are cygwin paths here
        #             tcltk_native_include_dir is a Win32 path (on windows)

	INCPATHFLAGS="-I$tcltk_native_include_dir $INCPATHFLAGS"
	tcltk_path_lib_dir="$TCLTK_PATH/lib"

	if test "${msvc_cc}" != yes; then

	    # [PM] 4.1/4.0.8+ Filter out the "usual places".
	    # Was a problem since /usr/lib was added when building on
	    # 64-bit RHEL 5.4 POWER5 where /usr/lib64 is the default,
	    # causing 32-bit libs to be picked up causing failure to
	    # detect Tcl/Tk.
            # [PM] 4.3 this filtering was broken (since 4.1.3 SPRM
            # 11929?) and this affected CentOS 5.10 x86_64 in the same
            # way as RHEL 45.4 POWER5.

	    # [PM] 4.1 set to empty if one of the system dirs
            candidate_lib_dirs="$tcltk_path_lib_dir"

	    	    	    : ${sys_L_dirs:="/lib:/lib64:/usr/lib:/usr/lib64"}

	    cleaned_dirs=""
	    elt_prefix=""

            ##################################################
            # GENERIC FILTERING CODE BEGIN (KEEP SYNCHRONIZED)
            # Set up input for filtering
            original_dirs="${candidate_lib_dirs}"
            bad_dirs="${sys_L_dirs}"
            path_title='Tcl/Tk link'
            # BEGIN generic block
            {
              # Input: original_dirs (colon separated)
              # Input: bad_dirs (colon separated)
              # Input: path_title (for messages, e.g. 'Tcl/Tk linker')
              # Output: cleaned_dirs (colon-separated)
              cleaned_dirs=''
              # for-loop over colon separated
              {
                save_ifs="$IFS"; IFS=":"
                for dir in $original_dirs; do
                  tmp_ifs="$IFS"; IFS="$save_ifs"; # [PM] 4.1.3 SPRM 11929
                  # Body is using outer IFS
                  {
                    if test -z "$dir"; then
                      : # nothing
                    else
                      is_bad_dir=no

                      # for-loop over colon separated
                      {
                        save_ifs1="$IFS"; IFS=":"
                        for bad_dir in ${bad_dirs}; do
                          tmp_ifs1="$IFS"; IFS="$save_ifs1";
                          # Body is using outer IFS
                          {
                            if test "$bad_dir" = "$dir"; then
                              is_bad_dir=yes
                              { $as_echo "$as_me:${as_lineno-$LINENO}: result: removed system dir $dir from $path_title path" >&5
$as_echo "removed system dir $dir from $path_title path" >&6; };
                              break
                            fi
                          }
                          # Restore for-loop IFS at end of body
                          IFS="$tmp_ifs1"
                        done
                        # Restore IFS after for-loop
                        IFS="${save_ifs1}"
                      }
                      # pre for-loop IFS has been restored

                      if test "${is_bad_dir}" = no; then
                        cleaned_dirs="$cleaned_dirs$elt_prefix$dir"
                        elt_prefix=":"
                      fi
                    fi
                  }
                  # Restore for-loop IFS at end of body
                  IFS="$tmp_ifs" # [PM] 4.1.3
                done
                # Restore IFS after for-loop
                IFS="$save_ifs"
              }
              # pre for-loop IFS has been restored
            }
            # END generic block
            #
            # Propagate output variables
            candidate_lib_dirs="${cleaned_dirs}"
            # Reset local variables
            original_dirs='can_not_happen'
            bad_dirs='can_not_happen'
            path_title='can_not_happen'
            cleaned_dirs='can_not_happen'
            # GENERIC FILTERING CODE END (KEEP SYNCHRONIZED)
            ##################################################

	    # We know there is at most one entry on candidate_lib_dirs
            tcltk_path_lib_dir="$candidate_lib_dirs"
	    if test -n "$tcltk_path_lib_dir"; then
              LIBPATHFLAGS="-L$tcltk_path_lib_dir $LIBPATHFLAGS"
            fi
	fi
        # [PM] 3.9b2 TCLTK_PATH, TCL_PATH, TK_PATH are cygwin paths here
        #            tcltk_native_include_dir is native here (a Win32 path on windows)
        #            INCPATHFLAGS is native here

    else # TCLTK_PATH empty
	# This place is only reached if none of the Tcl/Tk path variables
	# are set, or if TCL_PATH and TK_PATH are different.

	# Give them default values if they aren't set. This would not be
	# necessary if your ${CC} and $LD always search /usr/local/lib (or
	# whatever the default path is.  that is often not the case.

	# Check if $TCLTK_DEFAULT seems to have a Tcl/Tk installation.
	# Use the existance of tcl.h as the test.
	tcl_ok=no

        ## ([PM] 3.8.6 No TclPro hack here since TclPro should not be on TCLTK_DEFAULT)
        for dir in $TCLTK_DEFAULT; do # [PM] 3.9b2 TCLTK_DEFAULT is cygwin path on Win32
            # [PM] 4.0.2 On Ubuntu /usr/include/tcl8.5/{tcl,tk}.h is used
            for suffix in ${TCLTK_VERSION:+"/tcl${TCLTK_VERSION}"} ""; do
              includedir="${dir}/include${suffix}"
              if test -f "${includedir}/tcl.h"; then
                  tcldef="$dir"
                  tcl_ok=yes
                  if test -z "${suffix}" && test ${tcltk_version_fallback:-no} = "yes"; then
                      # [PD] 4.0.5 We found tcl.h in an include directory without version number
                      TCLTK_VERSION=""
                  fi
                  : ${TCL_PATH:="$tcldef"}
                  : ${TK_PATH:="$tcldef"}
                  : ${TCLTK_PATH:="$tcldef"}
                  TCLTK_INCLUDE_DIR="${includedir}"
                  tcl_native_include_dir=`$CYGPATH "${TCLTK_INCLUDE_DIR}"`
                  # [PM] 4.0.2+ No longer support separate Tcl and Tk directories
                  # tk_native_include_dir=`$CYGPATH "$TK_PATH/../include"`
                  # INCPATHFLAGS="-I$tcl_native_include_dir -I$tk_native_include_dir $INCPATHFLAGS"
                  INCPATHFLAGS="-I$tcl_native_include_dir $INCPATHFLAGS"

                  # [PM] 3.9b2 TCLTK_PATH, TCL_PATH, TK_PATH are cygwin paths here
                  #            tcltk_native_include_dir is native here (a Win32 path on windows)
                  #            INCPATHFLAGS is native here


                  # Under Windows, we specify the tcltk libs with a full
                  # path. Therefore no -L<dir> are needed on windows to
                  # find the tcltk libs.
                  if test "${msvc_cc}" != yes; then

                    # [PM] 4.1/4.0.8+ Filter out the "usual places".
                    # Was a problem since /usr/lib was added when building on
                    # 64-bit RHEL 5.4 POWER5 where /usr/lib64 is the default,
                    # causing 32-bit libs to be picked up causing failure to
                    # detect Tcl/Tk.

                    if test "$TCL_PATH" = "$TK_PATH"; then
                      tcltk_path_lib_dirs="$TCL_PATH/lib"
                    else
                      tcltk_path_lib_dirs="$TCL_PATH/lib:$TK_PATH/lib"
                    fi

                    # [PM] 4.1 entries are removed if one of the system dirs
                    candidate_lib_dirs="$tcltk_path_lib_dirs"
                                        : ${sys_L_dirs:="/lib:/lib64:/usr/lib:/usr/lib64"}


            ##################################################
            # GENERIC FILTERING CODE BEGIN (KEEP SYNCHRONIZED)
            # Set up input for filtering
            original_dirs="${candidate_lib_dirs}"
            bad_dirs="${sys_L_dirs}"
            path_title='Tcl/Tk link'
            # BEGIN generic block
            {
              # Input: original_dirs (colon separated)
              # Input: bad_dirs (colon separated)
              # Input: path_title (for messages, e.g. 'Tcl/Tk linker')
              # Output: cleaned_dirs (colon-separated)
              cleaned_dirs=''
              # for-loop over colon separated
              {
                save_ifs="$IFS"; IFS=":"
                for dir in $original_dirs; do
                  tmp_ifs="$IFS"; IFS="$save_ifs"; # [PM] 4.1.3 SPRM 11929
                  # Body is using outer IFS
                  {
                    if test -z "$dir"; then
                      : # nothing
                    else
                      is_bad_dir=no

                      # for-loop over colon separated
                      {
                        save_ifs1="$IFS"; IFS=":"
                        for bad_dir in ${bad_dirs}; do
                          tmp_ifs1="$IFS"; IFS="$save_ifs1";
                          # Body is using outer IFS
                          {
                            if test "$bad_dir" = "$dir"; then
                              is_bad_dir=yes
                              { $as_echo "$as_me:${as_lineno-$LINENO}: result: removed system dir $dir from $path_title path" >&5
$as_echo "removed system dir $dir from $path_title path" >&6; };
                              break
                            fi
                          }
                          # Restore for-loop IFS at end of body
                          IFS="$tmp_ifs1"
                        done
                        # Restore IFS after for-loop
                        IFS="${save_ifs1}"
                      }
                      # pre for-loop IFS has been restored

                      if test "${is_bad_dir}" = no; then
                        cleaned_dirs="$cleaned_dirs$elt_prefix$dir"
                        elt_prefix=":"
                      fi
                    fi
                  }
                  # Restore for-loop IFS at end of body
                  IFS="$tmp_ifs" # [PM] 4.1.3
                done
                # Restore IFS after for-loop
                IFS="$save_ifs"
              }
              # pre for-loop IFS has been restored
            }
            # END generic block
            #
            # Propagate output variables
            candidate_lib_dirs="${cleaned_dirs}"
            # Reset local variables
            original_dirs='can_not_happen'
            bad_dirs='can_not_happen'
            path_title='can_not_happen'
            cleaned_dirs='can_not_happen'
            # GENERIC FILTERING CODE END (KEEP SYNCHRONIZED)
            ##################################################

                    tcltk_path_lib_dirs="$candidate_lib_dirs"

                    save_ifs="$IFS"; IFS=":"
                    for dir in $tcltk_path_lib_dirs; do
                      tmp_ifs="$IFS"; IFS="$save_ifs"; # [PM] 4.1.3 SPRM 11929
                      if test -n "$dir"; then
                        LIBPATHFLAGS="-L$dir $LIBPATHFLAGS"
                      fi
                      IFS="$tmp_ifs" # [PM] 4.1.3
                    done
                    IFS="$save_ifs"
                    break
                fi # !msvc
              fi
          done # for suffix
          # [PD] 4.0.5 Don't keep on looping if we found tcl.h
          if test "${tcl_ok:-no}" = "yes"; then
              break
          fi
        done # for dir
    fi

    # [PM] 3.9b2 TCLTK_PATH, TCL_PATH, TK_PATH are cygwin paths here
    #            tcltk_native_include_dir is native here (a Win32 path on windows)
    #            INCPATHFLAGS is native here
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl/Tk install directories" >&5
$as_echo_n "checking Tcl/Tk install directories... " >&6; }
    if test $tcl_ok = no; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    else
	if test "$TCL_PATH" != "$TK_PATH"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($TCL_PATH and $TK_PATH)" >&5
$as_echo "yes ($TCL_PATH and $TK_PATH)" >&6; }
	else
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($TCLTK_PATH)" >&5
$as_echo "yes ($TCLTK_PATH)" >&6; }
	fi

	if test "$x_includes" && test "$x_includes" != "NONE"; then
	    : ${TCLINC="$INCPATHFLAGS -I$x_includes $X_CFLAGS"}
	else
	    : ${TCLINC="$INCPATHFLAGS $X_CFLAGS"}
	fi

        # [PM] 3.9b2 TCLTK_PATH, TCL_PATH, TK_PATH are cygwin paths here
        #            tcltk_native_include_dir is native here (a Win32 path on windows)
        #            INCPATHFLAGS is native here
        #            TCLINC is native here

	PUSH_CPPFLAGS="$CPPFLAGS"
	CPPFLAGS="$CPPFLAGS $TCLINC"

	ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
if test "x$ac_cv_header_tcl_h" = xyes; then :
  tcltk_inc_found=yes
else
  tcltk_inc_found=no
fi


        if test "$tcltk_inc_found" = "yes"; then
           ac_fn_c_check_header_mongrel "$LINENO" "tk.h" "ac_cv_header_tk_h" "$ac_includes_default"
if test "x$ac_cv_header_tk_h" = xyes; then :
  tcltk_inc_found=yes
else
  tcltk_inc_found=no
fi


        fi

	CPPFLAGS="$PUSH_CPPFLAGS"

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl/Tk version" >&5
$as_echo_n "checking Tcl/Tk version... " >&6; }

                	if test "${TCLTK_VERSION:+set}" = "set"; then
            if test -z "$TCLTK_VERSION"; then
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified" >&5
$as_echo "not specified" >&6; }
            else
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLTK_VERSION" >&5
$as_echo "$TCLTK_VERSION" >&6; }
            fi
	else
	    # Try to compile a small program to find the Tcl/Tk version.
	    cat > tcltk_tmp.c <<EOF
#include <tcl.h>
#include <tk.h>
#include <string.h> /* [PM] 3.8.6 strcmp */
#include <stdio.h>  /* [PM] 3.8.6 printf */
int main(int argc, char **argv) {
  char *tcl_ver = TCL_VERSION;
  char *tk_ver = TK_VERSION;
  if (strcmp(tcl_ver,tk_ver))
    printf(TCL_VERSION "/" TK_VERSION);
  else printf(TCL_VERSION);
  return 1;
}
EOF
	    if test $tcltk_inc_found = "yes" && \
		${CC} ${TCLINC} tcltk_tmp.c -o tcltk_tmp >/dev/null 2>&1; then
		TCLTK_VERSION=`./tcltk_tmp`
	    else
		TCLTK_VERSION="8.0"
	    fi
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLTK_VERSION" >&5
$as_echo "$TCLTK_VERSION" >&6; }
	    rm -f tcltk_tmp*
	fi

	# If on the form x.y/x.y, extract version numbers
	if test "`echo $TCLTK_VERSION | sed 's/^\(.*\)\/\(.*\)$/match/'`" = "match"; then
	    TCL_VERSION=`echo $TCLTK_VERSION | sed 's/\/\(.*\)$//'`
	    TK_VERSION=`echo $TCLTK_VERSION | sed 's/^\(.*\)\///'`
	else
	    TCL_VERSION=$TCLTK_VERSION
	    TK_VERSION=$TCLTK_VERSION
	fi

	# No X for Tcl/Tk under Win32 (FIXME: what about Mac OS X/Aqua?)
	if test "${WIN32:-no}" != "yes"; then
	    tcltk_xflags="${X_LIBS} ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS}"
	fi

	if test "${msvc_cc}" != yes; then
	    if test $no_dots_in_libnames; then
		TCL_LIBSFX="`echo ${TCL_VERSION} | tr -d .`"
		TK_LIBSFX="`echo ${TK_VERSION} | tr -d .`"
	    else
		TCL_LIBSFX="$TCL_VERSION"
		TK_LIBSFX="$TK_VERSION"
	    fi
	    : ${TCLTK_LIBS="$LIBPATHFLAGS -ltk$TK_LIBSFX -ltcl$TCL_LIBSFX"}
	    : ${TCLLIB="$TCLTK_LIBS $tcltk_xflags $tcltk_extra_libs"}

	    PUSH_LIBS="$LIBS"
	    LIBS="$TCLLIB $LIBS"

                                    PUSH_LDFLAGS="$LDFLAGS"

                                                LDFLAGS="$LIBPATHFLAGS $LDFLAGS"

	    as_ac_Lib=`$as_echo "ac_cv_lib_tcl$TCL_LIBSFX''_Tcl_Init" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Init in -ltcl$TCL_LIBSFX" >&5
$as_echo_n "checking for Tcl_Init in -ltcl$TCL_LIBSFX... " >&6; }
if eval \${$as_ac_Lib+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltcl$TCL_LIBSFX $tcltk_xflags $tcltk_extra_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.  */
#ifdef __cplusplus
extern "C"
#endif
char Tcl_Init ();
int
main ()
{
return Tcl_Init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  tcltk_lib_found=yes
else
  tcltk_lib_found=no
fi

	    as_ac_Lib=`$as_echo "ac_cv_lib_tk$TK_LIBSFX''_Tk_Init" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk_Init in -ltk$TK_LIBSFX" >&5
$as_echo_n "checking for Tk_Init in -ltk$TK_LIBSFX... " >&6; }
if eval \${$as_ac_Lib+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltk$TK_LIBSFX $tcltk_xflags $tcltk_extra_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.  */
#ifdef __cplusplus
extern "C"
#endif
char Tk_Init ();
int
main ()
{
return Tk_Init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$as_ac_Lib=yes"
else
  eval "$as_ac_Lib=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
eval ac_res=\$$as_ac_Lib
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  tcltk_lib_found=yes
else
  tcltk_lib_found=no
fi


            LDFLAGS="$PUSH_LDFLAGS"
	    LIBS="$PUSH_LIBS"

	    if test $tcltk_lib_found = no; then
		tcl_ok=no;
	    fi

	else # "${msvc_cc}" = yes (Win32)

            # [PM] 3.9b2 TCLTK_PATH, TCL_PATH, TK_PATH are cygwin paths here
            #            tcltk_native_include_dir is native here (a Win32 path on windows)
            #            INCPATHFLAGS is native here
            #            TCLINC is native here
            tcl_native_dir=`$CYGPATH "$TCLTK_PATH"`
            tk_native_dir=`$CYGPATH "$TK_PATH"`

	    # [PM] 4.4.0 Tcl/Tk 8.6 has "t", e.g. tcl86t.lib to denote "threaded" libs.
	    for TCLTK_THREADED_LIB_MARKER in '' 't'; do
	      { $as_echo "$as_me:${as_lineno-$LINENO}: Trying with TCLTK_THREADED_LIB_MARKER=${TCLTK_THREADED_LIB_MARKER}" >&5
$as_echo "$as_me: Trying with TCLTK_THREADED_LIB_MARKER=${TCLTK_THREADED_LIB_MARKER}" >&6;}
	      TCL_LIBNAME=tcl`echo ${TCL_VERSION} | tr -d .`${TCLTK_THREADED_LIB_MARKER}.lib
	      TK_LIBNAME=tk`echo ${TK_VERSION} | tr -d .`${TCLTK_THREADED_LIB_MARKER}.lib

	      { $as_echo "$as_me:${as_lineno-$LINENO}: Trying whether \"${tcl_native_dir}/lib/${TCL_LIBNAME}\" exists" >&5
$as_echo "$as_me: Trying whether \"${tcl_native_dir}/lib/${TCL_LIBNAME}\" exists" >&6;}
	      if test -f "${tcl_native_dir}/lib/${TCL_LIBNAME}"; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: Yes, \"${tcl_native_dir}/lib/${TCL_LIBNAME}\" exists" >&5
$as_echo "$as_me: Yes, \"${tcl_native_dir}/lib/${TCL_LIBNAME}\" exists" >&6;}
		break;
	      else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: No, \"${tcl_native_dir}/lib/${TCL_LIBNAME}\" does not exist" >&5
$as_echo "$as_me: No, \"${tcl_native_dir}/lib/${TCL_LIBNAME}\" does not exist" >&6;}
	      fi
	    done
	    { $as_echo "$as_me:${as_lineno-$LINENO}: Continuing with TCLTK_THREADED_LIB_MARKER=${TCLTK_THREADED_LIB_MARKER}" >&5
$as_echo "$as_me: Continuing with TCLTK_THREADED_LIB_MARKER=${TCLTK_THREADED_LIB_MARKER}" >&6;}

	    : ${TCLTK_LIBS="$tcl_native_dir/lib/$TCL_LIBNAME $tk_native_dir/lib/$TK_LIBNAME"}
	    : ${TCLLIB="$TCLTK_LIBS $tcltk_xflags $tcltk_extra_libs"}

            # [PM] 3.9b2 TCLTK_PATH, TCL_PATH, TK_PATH are cygwin paths here
            #            tcltk_native_include_dir is native here (a Win32 path on windows)
            #            INCPATHFLAGS is native here
            #            TCLINC is native here
            #            TCLTK_LIBS, TCLLIB are native here

	    PUSH_LIBS="$LIBS"
	    LIBS="$TCLLIB $LIBS"

	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Init() in $TCL_LIBNAME" >&5
$as_echo_n "checking for Tcl_Init() in $TCL_LIBNAME... " >&6; }
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
Tcl_Init()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  TCLINIT_FOUND=yes
else
  TCLINIT_FOUND=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLINIT_FOUND" >&5
$as_echo "$TCLINIT_FOUND" >&6; }

	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk_Init() in $TK_LIBNAME" >&5
$as_echo_n "checking for Tk_Init() in $TK_LIBNAME... " >&6; }
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
Tk_Init()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  TKINIT_FOUND=yes
else
  TKINIT_FOUND=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TKINIT_FOUND" >&5
$as_echo "$TKINIT_FOUND" >&6; }

	    LIBS="$PUSH_LIBS"

	    if test $TCLINIT_FOUND = no || test $TKINIT_FOUND = no; then
		tcl_ok=no
	    fi
	fi
        # [PM] 3.9b2 TCLTK_PATH, TCL_PATH, TK_PATH are cygwin paths here
        #            INCPATHFLAGS is native here
        #            TCLINC is native here
        #            TCLTK_LIBS, TCLLIB are native here

        # [PM] 3.8.7 mainly for MacOS X (wrapper sets TCL/TK_LIBRARY)
        if test $tcl_ok = yes; then
           TCL_LIBRARY="$TCL_PATH/lib/tcl$TCL_VERSION"
           TK_LIBRARY="$TK_PATH/lib/tk$TK_VERSION"
        fi

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl/Tk configuration results" >&5
$as_echo_n "checking Tcl/Tk configuration results... " >&6; }
	if test $user_tcltk_config = yes || test $tcl_ok = yes; then
	    : ${TCLTK_MODULE="tcltk.po"}
	    # If we come here without successful Tcl/Tk link, it means that the
	    # user has specified his/her own TCLLIB and TCLINC. We let them continue,
	    # but warn them first.
	    if test $tcl_ok = no; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: User-defined values for TCLLIB and TCLINC did not work" >&5
$as_echo "$as_me: WARNING: User-defined values for TCLLIB and TCLINC did not work" >&2;}
	    else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
	    fi
	else
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
	fi
    fi
fi
fi


# [PM] 3.9b2 TCLTK_PATH, TCL_PATH, TK_PATH are cygwin paths
#            here. They need to be made native before AC_SUBST.
#            The rest are already native:
#            INCPATHFLAGS is native here
#            TCLINC is native here
#            TCLTK_LIBS, TCLLIB are native here

tcltk_native_path=`$CYGPATH "$TCLTK_PATH"`
tcl_native_path=`$CYGPATH "$TCL_PATH"`
tk_native_path=`$CYGPATH "$TK_PATH"`

TCLTK_PATH=$tcltk_native_path
TCL_PATH=$tcl_native_path
TK_PATH=$tk_native_path









INSTALLER_TCLTK_VERSION=$TCLTK_VERSION



if test "x$TCLTK_MODULE" = "x"; then
   INSTALLER_HAS_TCLTK=no
else
   INSTALLER_HAS_TCLTK=yes
fi


##############################
#
# [PM] 3.9.1 Tru64 port
# If dlopen of foreign resources ignored the RPATH of the .so file but
# does use the RPATH in the exe then we should embed paths to
# third-party libraries into the executable
#
#############################

: ${DLOPEN_ONLY_USES_RPATH_IN_EXE=no}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if paths to third-party libraries should be embedded in the sicstus development system" >&5
$as_echo_n "checking if paths to third-party libraries should be embedded in the sicstus development system... " >&6; }

# Check whether --enable-tp-rpaths was given.
if test "${enable_tp_rpaths+set}" = set; then :
  enableval=$enable_tp_rpaths; enable_tp_rpath="$enableval"
else
  enable_tp_rpath="$DLOPEN_ONLY_USES_RPATH_IN_EXE"
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tp_rpath" >&5
$as_echo "$enable_tp_rpath" >&6; }

if test ".$TCLTK_MODULE." != ..; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if paths to Tcl/Tk libraries should be embedded" >&5
$as_echo_n "checking if paths to Tcl/Tk libraries should be embedded... " >&6; }
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tp_rpath" >&5
$as_echo "$enable_tp_rpath" >&6; }
   resname=tcltk

   if test "$enable_tp_rpath" = yes; then
      if test "x$SPLD_DS_RESOURCES" = "x"; then # not yet set
         res_prefix=""
      else # separate with comma
         res_prefix=","
      fi
      SPLD_DS_RESOURCES="${SPLD_DS_RESOURCES}${res_prefix}-${resname}"
   fi
fi

if test "x${SPLD_DS_RESOURCES}" != "x"; then
   SPLD_DSFLAGS="$SPLD_DSFLAGS --resources=$SPLD_DS_RESOURCES"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra spld flags for SICStus development system" >&5
$as_echo_n "checking for extra spld flags for SICStus development system... " >&6; }
if test "x${SPLD_DSFLAGS}" != "x"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SPLD_DSFLAGS}" >&5
$as_echo "${SPLD_DSFLAGS}" >&6; }
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi


# [PM] 4.2 We always used this for all platforms that support
# pre-built but it did not use to be the default.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spld --moveable should be the default" >&5
$as_echo_n "checking whether spld --moveable should be the default... " >&6; }
: ${enable_moveable_default:=no}
# Check whether --enable-spld-moveable was given.
if test "${enable_spld_moveable+set}" = set; then :
  enableval=$enable_spld_moveable; enable_moveable"$enableval"
else
  enable_moveable="$enable_moveable_default"
fi

case "${enable_moveable}" in
   no)
      SPLD_OPT_MOVEABLE_DEFAULT='no'
   ;;
   yes)
      SPLD_OPT_MOVEABLE_DEFAULT='yes'
   ;;
   *)
      as_fn_error $? "invalid --enable-spld-moveable option ($enable_moveable)" "$LINENO" 5
   ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPLD_OPT_MOVEABLE_DEFAULT" >&5
$as_echo "$SPLD_OPT_MOVEABLE_DEFAULT" >&6; }


: ${SPLD_OPT_WRAPPER_DEFAULT="no"}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if spld should generate wrapper script by default" >&5
$as_echo_n "checking if spld should generate wrapper script by default... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPLD_OPT_WRAPPER_DEFAULT" >&5
$as_echo "$SPLD_OPT_WRAPPER_DEFAULT" >&6; }

# [PM] 3.9.1 For platforms that lack SysV ORIGIN or something similar, see spld.pl.in
: ${SPLD_OPT_MOVEABLE_NEEDS_WRAPPER="no"}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if spld --moveable implies --wrapper" >&5
$as_echo_n "checking if spld --moveable implies --wrapper... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPLD_OPT_MOVEABLE_NEEDS_WRAPPER" >&5
$as_echo "$SPLD_OPT_MOVEABLE_NEEDS_WRAPPER" >&6; }

# [PM] 4.3 Whether spld-generated main() should set process locale from environment.
# (Ignored on Windows)
# See spld and spaux.c
SPLD_OPT_USE_LOCALE_DEFAULT=yes

# empty means let OS determine locale from environment
SPLD_OPT_LOCALE_NAME_DEFAULT=''



: ${SPLD_TOOLFLAGS=""}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking special spld flags for SICStus tools" >&5
$as_echo_n "checking special spld flags for SICStus tools... " >&6; }
if test -n "${SPLD_TOOLFLAGS}"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SPLD_TOOLFLAGS}" >&5
$as_echo "${SPLD_TOOLFLAGS}" >&6; }
fi


: ${cc_Werror=''}
: ${cc_Wno_error=''}
: ${cc_Wno_conversion_option=''}
: ${cc_Wno_implicit_fallthrough_option=''}
: ${cc_Wno_stringop_overflow=''}


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler warnings should be fatal" >&5
$as_echo_n "checking whether C compiler warnings should be fatal... " >&6; }
if test "x$cc_warnings_are_errors" = "xyes"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
   CFLAGS_EXTRA="$cc_Werror $CFLAGS_EXTRA"
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether implicit conversion to smaller type should generate warning" >&5
$as_echo_n "checking whether implicit conversion to smaller type should generate warning... " >&6; }
if test "${cc_w_conversion:-no}" = "yes"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($cc_Wconversion_option)" >&5
$as_echo "yes ($cc_Wconversion_option)" >&6; }
   CFLAGS_EXTRA="$cc_Wconversion_option $CFLAGS_EXTRA"
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

: ${EXPECT_WARNINGS_MULTI_SP_C=no}

CC_WERROR="$cc_Werror"

CC_WNO_ERROR="$cc_Wno_error"

CC_WNO_CONVERSION_OPTION="$cc_Wno_conversion_option"

CC_WNO_IMPLICIT_FALLTHROUGH_OPTION="$cc_Wno_implicit_fallthrough_option"

CC_WNO_STRINGOP_OVERFLOW_OPTION="$cc_Wno_stringop_overflow"




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spld/splfr should use a special C compiler" >&5
$as_echo_n "checking whether spld/splfr should use a special C compiler... " >&6; }
# Check whether --enable-spld-cc was given.
if test "${enable_spld_cc+set}" = set; then :
  enableval=$enable_spld_cc;
        case "$enableval" in
        yes) # plain --enable-spld-cc
	    as_fn_error $? "--enable-spld-cc requires an argument" "$LINENO" 5
            ;;
        *) # compiler name/path or --disable-spld-cc
	    SPLD_CC="$enableval"
            ;;
        esac

else
   : ${SPLD_CC:=no}
fi


if test "${SPLD_CC}" = "no"; then
    SPLD_CC="${CC}"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${SPLD_CC})" >&5
$as_echo "no (${SPLD_CC})" >&6; }
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, (${SPLD_CC})" >&5
$as_echo "yes, (${SPLD_CC})" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spld/splfr should use a special C++ compiler" >&5
$as_echo_n "checking whether spld/splfr should use a special C++ compiler... " >&6; }
# Check whether --enable-spld-cxx was given.
if test "${enable_spld_cxx+set}" = set; then :
  enableval=$enable_spld_cxx;
        case "$enableval" in
        yes) # plain --enable-spld-cxx
	    as_fn_error $? "--enable-spld-cxx requires an argument" "$LINENO" 5
            ;;
        *) # compiler name/path or --disable-spld-cxx
	    SPLD_CXX="$enableval"
            ;;
        esac

else
   : ${SPLD_CXX:=no}
fi

if test "${SPLD_CXX}" = "no"; then
    SPLD_CXX="${CXX}"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${SPLD_CXX})" >&5
$as_echo "no (${SPLD_CXX})" >&6; }
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, (${SPLD_CXX})" >&5
$as_echo "yes, (${SPLD_CXX})" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking C compiler flags for spld/splfr" >&5
$as_echo_n "checking C compiler flags for spld/splfr... " >&6; }

if test "${SICSTUS_RELEASE_BUILD}" != "yes"; then
  SPLD_CONFIG_CFLAGS="$USER_CFLAGS $CFLAGS_EXTRA"
else
  SPLD_CONFIG_CFLAGS="$USER_CFLAGS"
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPLD_CONFIG_CFLAGS" >&5
$as_echo "$SPLD_CONFIG_CFLAGS" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking C compiler flags" >&5
$as_echo_n "checking C compiler flags... " >&6; }
CFLAGS="$CFLAGS $CFLAGS_EXTRA"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5
$as_echo "$CFLAGS" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking extra C compiler flags for wam.c" >&5
$as_echo_n "checking extra C compiler flags for wam.c... " >&6; }
if test -n "${WAM_O_CFLAGS_EXTRA}"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAM_O_CFLAGS_EXTRA" >&5
$as_echo "$WAM_O_CFLAGS_EXTRA" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking C compiler flags for dynamic linking" >&5
$as_echo_n "checking C compiler flags for dynamic linking... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INCR_CFLAGS" >&5
$as_echo "$INCR_CFLAGS" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker flags" >&5
$as_echo_n "checking linker flags... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDFLAGS" >&5
$as_echo "$LDFLAGS" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDFLAGS for spld generated executables" >&5
$as_echo_n "checking LDFLAGS for spld generated executables... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPLD_EXE_LDFLAGS" >&5
$as_echo "$SPLD_EXE_LDFLAGS" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBS for spld generated executables" >&5
$as_echo_n "checking LIBS for spld generated executables... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPLD_EXE_LIBS" >&5
$as_echo "$SPLD_EXE_LIBS" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBS for spld generated JNI lib" >&5
$as_echo_n "checking LIBS for spld generated JNI lib... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPLD_JNI_LIBS" >&5
$as_echo "$SPLD_JNI_LIBS" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker" >&5
$as_echo_n "checking dynamic linker... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLD" >&5
$as_echo "$SHLD" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker flags" >&5
$as_echo_n "checking dynamic linker flags... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLDFLAGS" >&5
$as_echo "$SHLDFLAGS" >&6; }




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking tests to skip" >&5
$as_echo_n "checking tests to skip... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SUITE_SKIPPED_TESTS:-none}" >&5
$as_echo "${SUITE_SKIPPED_TESTS:-none}" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking tests expected to fail" >&5
$as_echo_n "checking tests expected to fail... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SUITE_EXPECTED_FAILURES:-none}" >&5
$as_echo "${SUITE_EXPECTED_FAILURES:-none}" >&6; }



: ${EXPFILE_SYMBOL_PREFIX=''}


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking splfr SHLD post-processing" >&5
$as_echo_n "checking splfr SHLD post-processing... " >&6; }
: ${SPLFR_SHLD_POST_PROCESS=''}
: ${SPLFR_SHLD_POST_PROCESS_EXPFILE_OPT=''}
: ${SPLFR_SHLD_POST_PROCESS_LIB_OPT=''}



if test "x$SPLFR_SHLD_POST_PROCESS" = "x"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SPLFR_SHLD_POST_PROCESS} ${SPLFR_SHLD_POST_PROCESS_EXPFILE_OPT}<EXPFILE> ${SPLFR_SHLD_POST_PROCESS_LIB_OPT}<RESOURCE>" >&5
$as_echo "${SPLFR_SHLD_POST_PROCESS} ${SPLFR_SHLD_POST_PROCESS_EXPFILE_OPT}<EXPFILE> ${SPLFR_SHLD_POST_PROCESS_LIB_OPT}<RESOURCE>" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking splfr --static post-processing" >&5
$as_echo_n "checking splfr --static post-processing... " >&6; }
: ${SPLFR_LD_R_POST_PROCESS=''}
: ${SPLFR_LD_R_POST_PROCESS_EXPFILE_OPT=''}
: ${SPLFR_LD_R_POST_PROCESS_LIB_OPT=''}



if test "x$SPLFR_LD_R_POST_PROCESS" = "x"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SPLFR_LD_R_POST_PROCESS} ${SPLFR_LD_R_POST_PROCESS_EXPFILE_OPT}<EXPFILE> ${SPLFR_LD_R_POST_PROCESS_LIB_OPT}<RESOURCE>" >&5
$as_echo "${SPLFR_LD_R_POST_PROCESS} ${SPLFR_LD_R_POST_PROCESS_EXPFILE_OPT}<EXPFILE> ${SPLFR_LD_R_POST_PROCESS_LIB_OPT}<RESOURCE>" >&6; }
fi




# Variables to substitute.



: ${CSCFLAGS=''}


: ${DT_CFLAGS=""}

: ${DT_ENV_INCLUDE=''}

: ${DT_ENV_LIB=''}

: ${DT_OUTPUT_OPT=''}

: ${DT_CC=''}

: ${DT_CC_PATH=''}

: ${DT_CPPFLAGS=''}

: ${DT_LIBS=''}






: ${SPLD_EXE_EXTRA_RPATH=''}

: ${SPLD_CC:="${CC}"}

: ${SPLD_CXX:="${CXX}"}




: ${SPLFR_LD_r_FLAGS=""}






: ${RTKERNEL_EXPFILE=""}








: ${ARFLAGS=""}




































ac_config_files="$ac_config_files Common"

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_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$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+set}" = set || &/
     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
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$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
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$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}'

# Transform confdefs.h into DEFS.
# Protect against shell expansion while executing Makefile rules.
# Protect against Makefile macro expansion.
#
# If the first sed substitution is executed (which looks for macros that
# take arguments), then branch to the quote section.  Otherwise,
# look for a macro that doesn't take arguments.
ac_script='
:mline
/\\$/{
 N
 s,\\\n,,
 b mline
}
t clear
:clear
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
t quote
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
t quote
b any
:quote
s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
s/\[/\\&/g
s/\]/\\&/g
s/\$/$$/g
H
:any
${
	g
	s/^\n//
	s/\n/ /g
	p
}
'
DEFS=`sed -n "$ac_script" confdefs.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=`$as_echo "$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"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$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 -n "${ZSH_VERSION+set}" && (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 `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; 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


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# 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
  test -z "$as_dir" && as_dir=.
    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
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# 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
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$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
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
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
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
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 ||
$as_echo 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

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

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=`$as_echo "$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 ||
$as_echo 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_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

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


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.69.  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



cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"

_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

Configuration files:
$config_files

Report bugs to the package provider."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.69,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2012 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'
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 )
    $as_echo "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h |  --help | --hel | -h )
    $as_echo "$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
  \$as_echo "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
  $as_echo "$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
    "Common") CONFIG_FILES="$CONFIG_FILES Common" ;;

  *) 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+set}" = set || CONFIG_FILES=$config_files
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


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


{
  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 = ""

}
{
  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
  }

  print line
}

_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"


eval set X "  :F $CONFIG_FILES      "
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=`$as_echo "$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 '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$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 ||
$as_echo 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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$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
  #

_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@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$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
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  >$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"; } &&
  { $as_echo "$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
$as_echo "$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
 ;;



  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
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi


