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

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



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

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

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

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

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

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

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


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

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


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

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

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

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

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


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

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

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


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

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

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

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


} # as_fn_mkdir_p

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

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


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

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

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

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

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

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


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

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

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

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

as_test_x='test -x'
as_executable_p=as_fn_executable_p

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

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


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

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

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_CONFIG_STATUS=
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="mmakefile"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stddef.h>
#ifdef HAVE_STDIO_H
# include <stdio.h>
#endif
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_header_c_list=
ac_func_c_list=
ac_subst_vars='LTLIBOBJS
aros_collect32_target
aros_config_unittests
mmake_ignore_dirs
config_prefs_set
aros_usb30_code
aros_host_sdl_libs
aros_host_sdl_cflags
aros_host_x11_ldflags
aros_host_x11_cflags
DO_VIDMODE_SUPPORT
DO_XSHM_SUPPORT
ENABLE_X11
KERNEL_DBUS_INCLUDES
KERNEL_DBUS_KOBJ
DBUS_LIBFLAGS
DBUS_CFLAGS
jpegxl_toolchainsupport
rust_target
java_target
objc_target
llvm_target_cpu
target_binutils_version
gcc_target_cpu
ignore_undefined_symbols
aros_modules_debug
aros_stack_debug
aros_mungwall_debug
aros_debug
aros_android_antapk
aros_android_level
aros_ios_sdk
aros_ios_version
aros_ios_platform
aros_palm_debug_hack
gcc_default_mode
gcc_default_float_abi
gcc_default_fpu
gcc_default_cpu_tune
gcc_default_cpu
CLASSIC_VARIANT_DEFINE
aros_nesting_supervisor
have_nasm
have_mtools
have_xorriso
host_has_libelf
host_has_lzma
target_grub2_version
aros_enable_mmu
PLATFORM_EXECWXSEG
ENABLE_EXECSMP
PLATFORM_EXECSMP
aros_serial_debug
with_log_resource
aros_nominal_depth
aros_nominal_height
aros_nominal_width
pci_hidd_target
use_libatomic
crosstools_cxx_target
crosstools_target
aros_target_nostartup_objects
target_link_extra
target_isa_extra
aros_isa_flags
aros_isa_extra
aros_kernel_isa_flags
aros_optimization_cflags
aros_config_coverage
aros_config_lto
aros_config_wchar32
aros_target_strip_flags
aros_target_genmap
aros_debug_ldflags
aros_debug_aflags
aros_debug_cxxflags
aros_debug_cflags
aros_debug_cppflags
kernel_optimization_cflags
aros_kernel_ldflags
aros_kernel_objcflags
aros_kernel_includes
aros_kernel_cflags
aros_kernel_cppflags
aros_kernel_sysroot
aros_config_ldflags
aros_config_aflags
aros_config_cxxflags
aros_config_cflags
aros_config_cppflags
aros_target_cflags
aros_nowarn_flags
aros_warn_flags
aros_shared_ldflags
aros_shared_aflags
aros_shared_cflags
aros_cxx_libs
aros_cxx_ldflags
aros_c_libs
spec_obj_format
aros_object_format
aros_shared_ld
aros_shared_default
aros_target_nm
aros_target_strip
aros_target_objcopy
aros_target_objdump
aros_target_cc_path
aros_target_cc_includes
toolchain_ld_fmtbinary
aros_target_ld
aros_target_as
aros_target_cpp
aros_target_cxx
aros_target_cc
orig_target_cxx_flags
orig_target_c_flags
aros_plain_ar
aros_plain_nm
aros_target_ranlib
aros_target_ar
aros_target_extra
aros_target_suffix
aros_target_variant
aros_target_platform
aros_target_meson_endian
aros_target_meson_cpu_family
aros_target_cpu_mode
aros_target_cpu32
aros_target_cpu
aros_target_family
aros_target_arch
aros_target_bootloader
aros_target_iconset
aros_target_guitheme
aros_target_options
target_extra_cfg
make_extra_targetcfg
make_extra_commands
aros_elf_translate
host_header_syssyscall
host_header_syscall
aros_tools_dir
aros_host_lib_suffix
aros_host_exe_suffix
aros_host_mkargs
aros_host_mkdep
aros_host_debug
aros_host_ldflags
gnu89_inline
aros_host_cxxflags
aros_host_cflags
aros_host_cppflags
aros_host_make
aros_host_ar
aros_host_cxx
aros_host_cc
aros_host_def_cc
aros_host_cpp
aros_host_cpu
aros_host_arch
aros_cc_pre
host_extra_cfg
ax_cv_flex_version
host_stat_h__unused_used
HOST_TOOLCHAIN_FAMILY
aros_amigaos_compliance
AROS_PORTSSRCDIR
AROS_CROSSTOOLSDIR
SRCDIR
AROS_BUILDDIR_UNIX
AROS_BUILDDIR
aros_build_host
aros_toolchain_ld
aros_target_toolchain
aros_flavour_uc
aros_flavour
aros_target_cpu_extra
aros_target_cpu_type
aros_cpu
aros_arch
SDL_LIBS
SDL_CFLAGS
SDL_CONFIG
XMKMF
ALSA_LIBS
ALSA_CFLAGS
kernel_cflags_iquote_end
kernel_cflags_iquote
host_cflags_iquote_end
host_cflags_iquote
aros_kernel_toolchain
aros_toolchain
aros_target_nostdlib_ldflags
aros_target_detach_ldflags
aros_target_nix_ldflags
aros_target_nostartup_ldflags
aros_target_nostdinc_cflags
aros_kernel_rescomp
orig_target_objdump
orig_target_objcopy
orig_target_strip
orig_target_nm
orig_target_ranlib
orig_target_ar
orig_target_as
orig_target_ld
orig_target_cxx
orig_target_cc
orig_target_cpp
aros_kernel_objdump
aros_kernel_objcopy
aros_kernel_strip
aros_kernel_nm
aros_kernel_ranlib
aros_kernel_ar
aros_kernel_as
aros_kernel_ld
aros_kernel_cxx
aros_kernel_cc
aros_kernel_cpp
target_llvm_version
gcc_float_cpu
gcc_soft_cpu
HARDVAR
SOFTVAR
target_gcc_version
MTOOLS
XORRISO
LZMA_LIBS
LZMA_CFLAGS
grub2_splash
NASM
GZIP
ant
android_tool
CCACHE
DISTCC
LIBOBJS
EGREP
GREP
CMP
TEST
IF
FOR
libpng_incdir
libpng_libextra
libpng
arosconfig_use_libpngconfig
pkgpyexecdir
pyexecdir
pkgpythondir
pythondir
PYTHON_EXEC_PREFIX
PYTHON_PREFIX
PYTHON_PLATFORM
PYTHON_VERSION
PYTHON
PATCH
CHMOD
SED
PPMTOILBM
PNGTOPNM
FLEX
BISON
CAT
NOP
UNIQ
SORT
TOUCH
MKDIR
ECHO
MV
CP
RM
aros_host_strip
aros_host_ranlib
RANLIB_BASE
aros_host_plain_ar
AR_BASE
aros_host_automake
aros_host_autoheader
aros_host_autoconf
aros_host_aclocal
aros_host_ld
LD_BASE
base_lld_name
NINJA
MESON
CMAKE
MMAKE
AWK
PKG_CONFIG_LIBDIR
PKG_CONFIG_PATH
PKG_CONFIG
CPP
ac_ct_CC
CFLAGS
CC
OBJEXT
EXEEXT
ac_ct_CXX
CPPFLAGS
LDFLAGS
CXXFLAGS
CXX
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
ECHO_T
ECHO_N
ECHO_C
target_alias
host_alias
build_alias
LIBS
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
with_c_compiler
with_cxx_compiler
with_python_sys_prefix
with_python_prefix
with_python_exec_prefix
enable_libpng_config
with_aros_prefs
with_toolchain
enable_lto
enable_coverage
enable_wchar32
enable_build_type
enable_debug
with_logresource
enable_distcc
enable_ccache
with_kernel_gcc_version
with_optimization
with_paranoia
enable_target_variant
with_xcode
with_sdk_version
with_sdk
with_ndk
with_ndk_version
with_apk_version
enable_ebf_packed_exes
enable_amigaos_compliance
with_kernel_toolchain_prefix
with_elf_toolchain_prefix
with_aros_toolchain
with_grub2_version
with_grub2_splash
enable_lzma
enable_crosstools
with_aros_toolchain_install
with_binutils_version
with_gcc_version
with_llvm_version
enable_objc
enable_java
enable_rust
with_cpu
with_fpu
with_float
with_portssources
with_bootloader
with_iconset
with_theme
with_mesagl
enable_includes
with_resolution
with_serial_debug
enable_palm_debug_hack
enable_usb30_code
enable_nesting_supervisor
enable_mmu
enable_alsa
enable_x11_hidd
with_x
enable_x11_shm
enable_x11_vidmode
enable_sdl_hidd
with_sdl_prefix
with_sdl_exec_prefix
enable_sdltest
enable_dbus
enable_unit_tests
'
      ac_precious_vars='build_alias
host_alias
target_alias
CXX
CXXFLAGS
LDFLAGS
LIBS
CPPFLAGS
CCC
CC
CFLAGS
CPP
PKG_CONFIG
PKG_CONFIG_PATH
PKG_CONFIG_LIBDIR
PYTHON
LZMA_CFLAGS
LZMA_LIBS
ALSA_CFLAGS
ALSA_LIBS
XMKMF'


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  esac
done

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

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

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

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

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

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

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


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


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

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

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

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

Defaults for the options are specified in brackets.

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

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

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

For better control, use the options below.

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

  cat <<\_ACEOF

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]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_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]
--disable-libpng-config    disable libpng-config test and configuration
  --enable-lto=yes|no     Enable link time optimizations if the target
                          compiler supports them (default=no)
  --enable-coverage=yes|no
                          Enable coverage instrumentation if the target
                          compiler supports it (default=no)
  --enable-wchar32=yes|no Enable uint32 WCHAR support in the compiler/AROS
                          (default=no)
  --enable-build-type=TYPE
                          Select the build type. Available types are:
                          personal, nightly, snapshot, milestone, release. Do
                          NOT use this option unless you know what you are
                          doing! (default=personal)
  --enable-debug=list     Enable different types of debug. Commas or
                          whitespaces can be used to separate the items in the
                          list. Available types of debug are: all, none,
                          messages, stack, mungwall, modules, symbols. If no
                          list is provided then "all" is assumed.
                          (default=none)
  --enable-distcc         Use distcc as a front end to the compiler
                          (default=no).
  --enable-ccache         Use ccache as a front end to the compiler
                          (default=no).
  --enable-target-variant=NAME
                          Enable a specific target variant (default=none)
  --enable-ebf-packed-exes
                          Create self extracting compressed exes on the
                          Emergency Boot Floppy
  --enable-amigaos-compliance=VERSION
                          Enforce userspace AmigaOS compliance to a specific
                          KickStart version (default=none).
  --disable-lzma          Disable optional liblzma support
  --disable-crosstools    Do not build cross-compiler toolchain
  --enable-objc           Enable Objectve-C support (default=no)
  --enable-java           Enable Java support (default=no)
  --enable-rust           Enable Rust support (default=no)
  --enable-includes=dir   Alternative system include directory
  --enable-palm-debug-hack
                          Enable palm debug output hack in palm native
                          (default=no)
  --enable-usb30-code     Enable usb3.0 code (default=no)
  --enable-nesting-supervisor
                          Enable nesting supervisor support in unix
                          (default=no)
  --disable-mmu           Disable MMU support (default=enabled)
  --enable-alsa           Enable ALSA support [default=yes]
  --enable-x11-hidd       build X11 hidd for hosted (default=auto)
  --enable-x11-shm        use X11 shared memory (default=auto)
  --enable-x11-vidmode    use X11 vidmode extension (default=auto)
  --enable-sdl-hidd       build SDL hidd for hosted (default=auto)
  --disable-sdltest       Do not try to compile and run a test SDL program
  --enable-dbus           Enable DBUS support via dbus.library (default=no)
  --enable-unit-tests=yes|no
                          Build the developer unit tests (default=no)

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-c-compiler=VERSION
                          Use specified c compiler for building AROS
  --with-cxx-compiler=VERSION
                          Use specified c++ compiler building AROS
  --with-python-sys-prefix
                          use Python's sys.prefix and sys.exec_prefix values
  --with-python_prefix    override the default PYTHON_PREFIX
  --with-python_exec_prefix
                          override the default PYTHON_EXEC_PREFIX
  --with-aros-prefs=PREFSSET
                          Use the preferences from the set PREFSSET. Defaults
                          to the standard AROS look, or 'classic' on
                          m68k-amiga, which is better suited to weaker
                          systems.
  --with-toolchain=family Which toolchain family to crosscompile with
                          (defaults to gnu)
  --with-logresource=...  Specify code should use log.resource to output
                          debug, etc
  --with-kernel-gcc-version=VERSION
                          Use gcc-VERSION for building bootstrap
  --with-optimization=FLAGS
                          Use optimization flags FLAGS (e.g
                          --with-optimization=-O2).
  --with-paranoia=(yes|no|FLAGS)
                          Specific compiler warning FLAGS to enable for
                          paranoia builds (default=-Wall -Werror)
  --with-xcode=PATH       Specify XCode path for iOS targets
                          (default=/Developer).
  --with-sdk-version=VERSION
                          Use iOS SDK version VERSION (default=4.1).
  --with-sdk=PATH         Specify Android SDK path
                          (default=$default_android_sdk).
  --with-ndk=PATH         Specify Android NDK path (default=none).
  --with-sdk-version=LEVEL
                          Use Android SDK for API LEVEL (default=12).
  --with-ndk-version=LEVEL
                          Use Android NDK for API LEVEL (default=9).
  --with-apk-version=(release|debug)
                          Which version of AROSBootstrap.apk to compile.
                          Release version needs key for signing, debug version
                          will only run in emulator. (default=release)
  --with-kernel-toolchain-prefix=...
                          Specify crosscompile toolchain prefix for kernel
                          objects
  --with-elf-toolchain-prefix=...
                          Specify crosscompile toolchain prefix to wrap for
                          AROS objects
  --with-aros-toolchain=PREFIX
                          Specify prebuilt AROS toolchain. Use yes for default
                          name
  --with-grub2-version=VERSION
                          Use Grub2-VERSION for building AROS
  --with-grub2-splash=... Specify the splash image to use for grub2 (defaults
                          to 'orig')
  --with-aros-toolchain-install=DIR
                          Where to install or search for cross tools binaries
  --with-binutils-version=VERSION
                          Use binutils-VERSION for building AROS
  --with-gcc-version=VERSION
                          Compile gcc-VERSION for AROS
  --with-llvm-version=VERSION
                          Compile llvm-VERSION for AROS
  --with-cpu=<spec>       Specify minumum CPU (default=$gcc_default_cpu).
  --with-fpu=<spec>       Specify minumum FPU (default=$gcc_float_fpu).
  --with-float=<spec>     Specify floating point ABI
                          (default=$gcc_default_float_abi).
  --with-portssources=DIR Where to download sourcecode for external ports
  --with-bootloader=NAME  Use a specific bootloader
  --with-iconset=NAME     Use a specific Icon-set (default=Gorilla).
  --with-theme=NAME       Use a specific GUI Theme
  --with-mesagl=family    Which version of MesaGL to build (defaults to
                          20.0.8)
  --with-resolution=XRESxYRESxDEPTH
                          Default resolution of the initial WorkbenchScreen
  --with-serial-debug     Enable serial debug output in native (default=no)
  --with-x                use the X Window System
  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)

Some influential environment variables:
  CXX         C++ compiler command
  CXXFLAGS    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>
  CC          C compiler command
  CFLAGS      C compiler flags
  CPP         C preprocessor
  PKG_CONFIG  path to pkg-config utility
  PKG_CONFIG_PATH
              directories to add to pkg-config's search path
  PKG_CONFIG_LIBDIR
              path overriding pkg-config's built-in search path
  PYTHON      the Python interpreter
  LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
  LZMA_LIBS   linker flags for LZMA, overriding pkg-config
  ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
  ALSA_LIBS   linker flags for ALSA, overriding pkg-config
  XMKMF       Path to xmkmf, Makefile generator for X Window System

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

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

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

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

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

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

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

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

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

} # ac_fn_cxx_try_compile

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

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

} # ac_fn_c_try_compile

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

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

} # ac_fn_c_try_cpp

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

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

} # ac_fn_py_try_run

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

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

} # ac_fn_c_try_link

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

} # ac_fn_c_check_header_compile

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

} # ac_fn_c_check_member

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

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

} # ac_fn_check_decl

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

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

} # ac_fn_c_check_type

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

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

#include <limits.h>
#undef $2

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

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

} # ac_fn_c_check_func

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

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

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

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

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

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

  $ $0$ac_configure_args_raw

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

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

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

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

_ASUNAME

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

} >&5

cat >&5 <<_ACEOF


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

_ACEOF


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

# Dump the cache to stdout.  It can be in a pipe (this is a requirement).
ac_cache_dump ()
{
  # The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # 'set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # 'set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
}

# Print debugging info to stdout.
ac_dump_debugging_info ()
{
  echo

  printf '%s\n' "## ---------------- ##
## Cache variables. ##
## ---------------- ##"
  echo
  ac_cache_dump
  echo

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

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

  if test -s confdefs.h; then
    printf '%s\n' "## ----------- ##
## confdefs.h. ##
## ----------- ##"
    echo
    cat confdefs.h
    echo
  fi
  test "$ac_signal" != 0 &&
    printf '%s\n' "$as_me: caught signal $ac_signal"
  printf '%s\n' "$as_me: exit $exit_status"
}

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.
ac_exit_trap ()
{
  exit_status=
  # Sanitize IFS.
  IFS=" ""	$as_nl"
  # Save into config.log some information that might help in debugging.
  ac_dump_debugging_info >&5
  eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
}

trap 'ac_exit_trap $?' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

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

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

# Predefined preprocessor variables.

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

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

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

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

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

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


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

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

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

# Test code for whether the C compiler supports C23 (global declarations)
ac_c_conftest_c23_globals='
/* Does the compiler advertise conformance to C17 or earlier?
   Although GCC 14 does not do that, even with -std=gnu23,
   it is close enough, and defines __STDC_VERSION == 202000L.  */
#if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
# error "Compiler advertises conformance to C17 or earlier"
#endif

// Check alignas.
char alignas (double) c23_aligned_as_double;
char alignas (0) c23_no_special_alignment;
extern char c23_aligned_as_int;
char alignas (0) alignas (int) c23_aligned_as_int;

// Check alignof.
enum
{
  c23_int_alignment = alignof (int),
  c23_int_array_alignment = alignof (int[100]),
  c23_char_alignment = alignof (char)
};
static_assert (0 < -alignof (int), "alignof is signed");

int function_with_unnamed_parameter (int) { return 0; }

void c23_noreturn ();

/* Test parsing of string and char UTF-8 literals (including hex escapes).
   The parens pacify GCC 15.  */
bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');

bool check_that_bool_works = true | false | !nullptr;
#if !true
# error "true does not work in #if"
#endif
#if false
#elifdef __STDC_VERSION__
#else
# error "#elifdef does not work"
#endif

#ifndef __has_c_attribute
# error "__has_c_attribute not defined"
#endif

#ifndef __has_include
# error "__has_include not defined"
#endif

#define LPAREN() (
#define FORTY_TWO(x) 42
#define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);

static_assert (0b101010 == 42);
static_assert (0B101010 == 42);
static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
static_assert (0.500'\''000'\''000 == 0.5);

enum unsignedish : unsigned int { uione = 1 };
static_assert (0 < -uione);

#include <stddef.h>
constexpr nullptr_t null_pointer = nullptr;

static typeof (1 + 1L) two () { return 2; }
static long int three () { return 3; }
'

# Test code for whether the C compiler supports C23 (body of main).
ac_c_conftest_c23_main='
  {
    label_before_declaration:
      int arr[10] = {};
      if (arr[0])
        goto label_before_declaration;
      if (!arr[0])
        goto label_at_end_of_block;
    label_at_end_of_block:
  }
  ok |= !null_pointer;
  ok |= two != three;
'

# Test code for whether the C compiler supports C23 (complete).
ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}

int
main (int, char **)
{
  int ok = 0;
  ${ac_c_conftest_c23_main}
  return ok;
}
"

# Test code for whether the C compiler supports C89 (global declarations)
ac_c_conftest_c89_globals='
/* Do not test the value of __STDC__, because some compilers define it to 0
   or do not define it, while otherwise adequately conforming.  */

#include <stddef.h>
#include <stdarg.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
struct buf { int x; };
struct buf * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (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;
}

/* C89 style stringification. */
#define noexpand_stringify(a) #a
const char *stringified = noexpand_stringify(arbitrary+token=sequence);

/* C89 style token pasting.  Exercises some of the corner cases that
   e.g. old MSVC gets wrong, but not very hard. */
#define noexpand_concat(a,b) a##b
#define expand_concat(a,b) noexpand_concat(a,b)
extern int vA;
extern int vbee;
#define aye A
#define bee B
int *pvA = &expand_concat(v,aye);
int *pvbee = &noexpand_concat(v,bee);

/* 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 do not provoke an error unfortunately, instead are silently treated
   as an "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 is necessary to write \x00 == 0 to get something
   that is 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 **, int *(*)(struct buf *, struct stat *, int),
               int, int);'

# Test code for whether the C compiler supports C89 (body of main).
ac_c_conftest_c89_main='
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
'

# Test code for whether the C compiler supports C99 (global declarations)
ac_c_conftest_c99_globals='
/* Does the compiler advertise C99 conformance? */
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
# error "Compiler does not advertise C99 conformance"
#endif

// See if C++-style comments work.

#include <stdbool.h>
extern int puts (const char *);
extern int printf (const char *, ...);
extern int dprintf (int, const char *, ...);
extern void *malloc (size_t);
extern void free (void *);

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
// dprintf is used instead of fprintf to avoid needing to declare
// FILE and stderr, and "aND" is used instead of "and" to work around
// GCC bug 40564 which is irrelevant here.
#define debug(...) dprintf (2, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, aND third items.);
  report (x>y, "x is %d but y is %d", x, y);
}

// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  #error "your preprocessor is broken"
#endif
#if BIG_OK
#else
  #error "your preprocessor is broken"
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;

struct incomplete_array
{
  int datasize;
  double data[];
};

struct named_init {
  int number;
  const wchar_t *name;
  double average;
};

typedef const char *ccp;

static inline int
test_restrict (ccp restrict text)
{
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static bool
test_varargs (const char *format, ...)
{
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);

  const char *str = "";
  int number = 0;
  float fnumber = 0;

  while (*format)
    {
      switch (*format++)
	{
	case '\''s'\'': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case '\''d'\'': // int
	  number = va_arg (args_copy, int);
	  break;
	case '\''f'\'': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);

  return *str && number && fnumber;
}
'

# Test code for whether the C compiler supports C99 (body of main).
ac_c_conftest_c99_main='
  // Check bool.
  _Bool success = false;
  success |= (argc != 0);

  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  const char *restrict newvar = "Another string";

  // Check varargs.
  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  static struct incomplete_array *volatile incomplete_array_pointer;
  struct incomplete_array *ia = incomplete_array_pointer;
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;
  // Work around memory leak warnings.
  free (ia);

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  // Do not test for VLAs, as some otherwise-conforming compilers lack them.
  // C code should instead use __STDC_NO_VLA__; see Autoconf manual.

  // work around unused variable warnings
  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
	 || ni.number != 58);
'

# Test code for whether the C compiler supports C11 (global declarations)
ac_c_conftest_c11_globals='
/* Does the compiler advertise C11 conformance? */
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
# error "Compiler does not advertise C11 conformance"
#endif

// Check _Alignas.
char _Alignas (double) aligned_as_double;
char _Alignas (0) no_special_alignment;
extern char aligned_as_int;
char _Alignas (0) _Alignas (int) aligned_as_int;

// Check _Alignof.
enum
{
  int_alignment = _Alignof (int),
  int_array_alignment = _Alignof (int[100]),
  char_alignment = _Alignof (char)
};
_Static_assert (0 < -_Alignof (int), "_Alignof is signed");

// Check _Noreturn.
int _Noreturn does_not_return (void) { for (;;) continue; }

// Check _Static_assert.
struct test_static_assert
{
  int x;
  _Static_assert (sizeof (int) <= sizeof (long int),
                  "_Static_assert does not work in struct");
  long int y;
};

// Check UTF-8 literals.
#define u8 syntax error!
char const utf8_literal[] = u8"happens to be ASCII" "another string";

// Check duplicate typedefs.
typedef long *long_ptr;
typedef long int *long_ptr;
typedef long_ptr long_ptr;

// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
struct anonymous
{
  union {
    struct { int i; int j; };
    struct { int k; long int l; } w;
  };
  int m;
} v1;
'

# Test code for whether the C compiler supports C11 (body of main).
ac_c_conftest_c11_main='
  _Static_assert ((offsetof (struct anonymous, i)
		   == offsetof (struct anonymous, w.k)),
		  "Anonymous union alignment botch");
  v1.i = 2;
  v1.w.k = 5;
  ok |= v1.i != 5;
'

# Test code for whether the C compiler supports C11 (complete).
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}
${ac_c_conftest_c11_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  ${ac_c_conftest_c99_main}
  ${ac_c_conftest_c11_main}
  return ok;
}
"

# Test code for whether the C compiler supports C99 (complete).
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  ${ac_c_conftest_c99_main}
  return ok;
}
"

# Test code for whether the C compiler supports C89 (complete).
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  return ok;
}
"

as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"

# Auxiliary files required by this configure script.
ac_aux_files="config.guess config.sub"

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

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

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

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

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


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

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


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

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







export_newline="
"

CONFIG_WARNINGS=""

CONFIG_DT=`date -u "+%d/%m/%Y %T"`
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: date/time (UTC)... $CONFIG_DT" >&5
printf '%s\n' "$as_me: date/time (UTC)... $CONFIG_DT" >&6;}

# Check what host we are running on.
# If a target is not suggested, we use this one.
# Note that what we call a target, Autoconf calls a host.



  # 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

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
printf %s "checking build system type... " >&6; }
if test ${ac_cv_build+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
 ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
printf '%s\n' "$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=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac


{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
printf %s "checking host system type... " >&6; }
if test ${ac_cv_host+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
fi
 ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
printf '%s\n' "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac



# Default versions for the gnu tools we build
default_toolchain_family=`cat ${srcdir}/config/toolchain_def`
exp_gcc_version=`cat ${srcdir}/config/gcc_exp`
default_llvm_version=`cat ${srcdir}/config/llvm_def`
exp_binutils_version=`cat ${srcdir}/config/binutils_exp`
default_grub2_version=`cat ${srcdir}/arch/all-pc/boot/grub2_def`

# The AROS target is slightly different to the normal GNU style
# format. We don't have the middle part, and we reverse the order
# of the $(CPU) and $(OS) bits.
#
# Don't strip the version of the target yet, it might be
# useful on some systems.

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
printf %s "checking for AROS style target... " >&6; }

stripped_host_os=$host_os
case "$host_os" in
    darwin*)
        stripped_host_os="darwin"
        ;;
esac

if test "$target" = "NONE" ; then
    target=$stripped_host_os-$host_cpu
else
    if test "$target" = "" ; then
        target=$stripped_host_os-$host_cpu
    fi
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $target" >&5
printf '%s\n' "$target" >&6; }

if test "$host_os" = "mingw32" ; then
    PWDCMD="pwd -W"
fi

# Don't know where else to put this...
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
printf %s "checking building AROS in... " >&6; }
AROS_BUILDDIR=`${PWDCMD-pwd}`
AROS_BUILDDIR_UNIX=${PWD}
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
printf '%s\n' "$AROS_BUILDDIR" >&6; }

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
printf %s "checking AROS source in... " >&6; }
srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
SRCDIR=${srcpwd}
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
printf '%s\n' "$SRCDIR" >&6; }

IS_INSUBDIR=`echo $AROS_BUILDDIR | sed "s|$SRCDIR||"`
if test "x$IS_INSUBDIR" != "x$AROS_BUILDDIR" ; then
    if test "x$IS_INSUBDIR" != "x" ; then
        ignore_dir=`echo $AROS_BUILDDIR | sed "s|$SRCDIR/||"`
        mmake_ignore_dirs="$export_newline""ignoredir $ignore_dir"
    else
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Detected build inside the source tree - consider building in a separate dir" >&5
printf '%s\n' "$as_me: WARNING: Detected build inside the source tree - consider building in a separate dir" >&2;}
    fi
fi

# Parse the target field into something useful.

target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`


# Some debug output, to be removed again.
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
printf %s "checking for target system (debug output)... " >&6; }
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
printf '%s\n' "$target_os" >&6; }
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
printf %s "checking for target cpu (debug output)... " >&6; }
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
printf '%s\n' "$target_cpu" >&6; }


HOST_WANTS_X11=
HOST_WANTS_GLX=
HOST_WANTS_SDL=
HOST_WANTS_DBUS=
HOST_WANTS_DLOPEN=

default_c_compilers="gcc clang cc"

# Check whether --with-c-compiler was given.
if test ${with_c_compiler+y}
then :
  withval=$with_c_compiler; use_c_compiler="$withval"
else case e in #(
  e) use_c_compiler="" ;;
esac
fi

if test "$use_c_compiler" = ""; then
    host_c_compilers="$default_c_compilers"
else
    host_c_compilers="$use_c_compiler"
    CC=$use_c_compiler
fi

default_cxx_compilers="g++ clang++ c++"

# Check whether --with-cxx-compiler was given.
if test ${with_cxx_compiler+y}
then :
  withval=$with_cxx_compiler; use_cxx_compiler="$withval"
else case e in #(
  e) use_cxx_compiler="" ;;
esac
fi

if test "$use_cxx_compiler" = ""; then
        host_cxx_compilers="$default_cxx_compilers"
else
    host_cxx_compilers="$use_cxx_compiler"
    CXX=$use_cxx_compiler
fi

# The first step is to find the host binaries.
# Check for a compiler.
# Due to a bug in autoconf check for c++ compiler first.
# For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
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 ${host_cxx_compilers}
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CXX+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


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

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


  test -n "$ac_ct_CXX" && break
done

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

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

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

int
main (void)
{

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

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

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

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

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

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

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

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

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

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

int
main (void)
{

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

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

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

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

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

int
main (void)
{

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

int
main (void)
{

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

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"
then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
printf '%s\n' "$ac_cv_prog_cxx_g" >&6; }
if test $ac_test_CXXFLAGS; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

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

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














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

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


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

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


  test -n "$ac_ct_CC" && break
done

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


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

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

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

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

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

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

int
main (void)
{

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

int
main (void)
{

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

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
if test $ac_test_CFLAGS; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
ac_prog_cc_stdc=no
if test x$ac_prog_cc_stdc = xno
then :
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
printf %s "checking for $CC option to enable C23 features... " >&6; }
if test ${ac_cv_prog_cc_c23+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_cv_prog_cc_c23=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c23_program
_ACEOF
for ac_arg in '' -std=gnu23
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c23=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c23" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC ;;
esac
fi

if test "x$ac_cv_prog_cc_c23" = xno
then :
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf '%s\n' "unsupported" >&6; }
else case e in #(
  e) if test "x$ac_cv_prog_cc_c23" = x
then :
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf '%s\n' "none needed" >&6; }
else case e in #(
  e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
     CC="$CC $ac_cv_prog_cc_c23" ;;
esac
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
  ac_prog_cc_stdc=c23 ;;
esac
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
printf %s "checking for $CC option to enable C11 features... " >&6; }
if test ${ac_cv_prog_cc_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_cv_prog_cc_c11=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c11_program
_ACEOF
for ac_arg in '' -std=gnu11 -std:c11
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c11=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c11" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC ;;
esac
fi

if test "x$ac_cv_prog_cc_c11" = xno
then :
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf '%s\n' "unsupported" >&6; }
else case e in #(
  e) if test "x$ac_cv_prog_cc_c11" = x
then :
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf '%s\n' "none needed" >&6; }
else case e in #(
  e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
     CC="$CC $ac_cv_prog_cc_c11" ;;
esac
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  ac_prog_cc_stdc=c11 ;;
esac
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
printf %s "checking for $CC option to enable C99 features... " >&6; }
if test ${ac_cv_prog_cc_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c99_program
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC ;;
esac
fi

if test "x$ac_cv_prog_cc_c99" = xno
then :
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf '%s\n' "unsupported" >&6; }
else case e in #(
  e) if test "x$ac_cv_prog_cc_c99" = x
then :
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf '%s\n' "none needed" >&6; }
else case e in #(
  e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
     CC="$CC $ac_cv_prog_cc_c99" ;;
esac
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  ac_prog_cc_stdc=c99 ;;
esac
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
printf %s "checking for $CC option to enable C89 features... " >&6; }
if test ${ac_cv_prog_cc_c89+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c89_program
_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 conftest.beam
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC ;;
esac
fi

if test "x$ac_cv_prog_cc_c89" = xno
then :
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf '%s\n' "unsupported" >&6; }
else case e in #(
  e) if test "x$ac_cv_prog_cc_c89" = x
then :
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf '%s\n' "none needed" >&6; }
else case e in #(
  e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
     CC="$CC $ac_cv_prog_cc_c89" ;;
esac
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  ac_prog_cc_stdc=c89 ;;
esac
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

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

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

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

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

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

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

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

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

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

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

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

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


aros_host_def_cc="$CC"

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

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

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

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

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

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

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

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

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

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









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

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


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

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

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

fi
if test -n "$PKG_CONFIG"; then
	_pkg_min_version=0.9.0
	{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
		{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf '%s\n' "yes" >&6; }
	else
		{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf '%s\n' "no" >&6; }
		PKG_CONFIG=""
	fi
fi

# detect the compiler version
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which toolchain family ${CC_BASE} belongs to" >&5
printf %s "checking which toolchain family ${CC_BASE} belongs to... " >&6; }
HOST_COMPILER_VERSION=`"$CC" --version 2>/dev/null`
if test x"$HOST_COMPILER_VERSION" = "x"; then
    HOST_COMPILER_VERSION=`"$CC" --qversion 2>/dev/null`
fi
if test x"$HOST_COMPILER_VERSION" = "x"; then
    HOST_COMPILER_VERSION=`"$CC" -V 2>/dev/null`
fi

IS_SUN_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'Sun C\+\+'`
if test "$IS_SUN_COMPILER" -ne "0"; then
    HOST_TOOLCHAIN_CC=cc
    HOST_TOOLCHAIN_CXX=c++
    HOST_TOOLCHAIN_PREFIX=
    HOST_TOOLCHAIN_SUFFIX=
    HOST_TOOLCHAIN_FAMILY=sun
fi
IS_LLVM_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'LLVM|clang'`
if test "$IS_LLVM_COMPILER" -ne "0"; then
    if test "$CC_BASE" != "gcc"; then
        HOST_TOOLCHAIN_CC=clang
        HOST_TOOLCHAIN_CXX=clang++
        HOST_TOOLCHAIN_PREFIX=llvm-
        HOST_TOOLCHAIN_SUFFIX="`echo $CC_BASE | sed -e \"s|clang||g\"`"
        HOST_TOOLCHAIN_FAMILY=llvm
    else
        IS_GNU_COMPILER=1
    fi
fi
if test "x$IS_GNU_COMPILER" = "x"; then
    IS_GNU_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'gcc'`
fi
if test "$IS_GNU_COMPILER" -ne "0"; then
    HOST_TOOLCHAIN_CC=gcc
    HOST_TOOLCHAIN_CXX=g++
    HOST_TOOLCHAIN_PREFIX=
    HOST_TOOLCHAIN_SUFFIX=
    HOST_TOOLCHAIN_FAMILY=gnu
fi
if test x"$HOST_TOOLCHAIN_FAMILY" = "x"; then
    HOST_TOOLCHAIN_FAMILY=unknown
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $HOST_TOOLCHAIN_FAMILY" >&5
printf '%s\n' "$HOST_TOOLCHAIN_FAMILY" >&6; }

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

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


  test -n "$AWK" && break
done

req_avail=yes
if test "$AWK" = ""; then
    req_avail=no
fi
if test "$AWK" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "mmake", so it can be a program name with args.
set dummy mmake; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_MMAKE+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$MMAKE"; then
  ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_MMAKE="mmake "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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



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

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


if test "x$CMAKE" = "x"; then
    CONFIG_WARNINGS="${CONFIG_WARNINGS}  * cmake not found - target components built with the CMake build system (e.g. AVIF support in heic.datatype) will not be built
"
fi

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

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


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

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


if test "x$MESON" != "x" -a "x$NINJA" = "x"; then
    CONFIG_WARNINGS="${CONFIG_WARNINGS}  * ninja not found - components built with the Meson build system will not be built
"
fi

# Perform some default variable assignments. Note all of these will be
# Regenerated from the script, so there is no need to cache them.

aros_build_host=$host
aros_host_cpp="$CPP"
aros_host_cc="$CC"
aros_host_cxx="$CXX"
base_ld_name=${HOST_TOOLCHAIN_PREFIX}ld${HOST_TOOLCHAIN_SUFFIX}
if test "$HOST_TOOLCHAIN_FAMILY" = "llvm"; then
    for ac_prog in $base_ld_name ld.lld${HOST_TOOLCHAIN_SUFFIX} ld64.lld${HOST_TOOLCHAIN_SUFFIX} ld-link${HOST_TOOLCHAIN_SUFFIX}.exe ld${HOST_TOOLCHAIN_SUFFIX}
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_base_lld_name+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$base_lld_name"; then
  ac_cv_prog_base_lld_name="$base_lld_name" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_base_lld_name="$ac_prog"
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


  test -n "$base_lld_name" && break
done

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

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


fi

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

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


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

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


  test -n "$aros_host_ld" && break
done

fi

req_avail=yes
if test "$aros_host_ld" = ""; then
    req_avail=no
fi
if test "$aros_host_ld" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
aros_host_make="make"
aros_host_cflags="$CFLAGS"
aros_host_cxxflags="$CXXFLAGS"
aros_host_cppflags="$CPPFLAGS"
aros_host_baseldflags="$LDFLAGS"
aros_host_ldflags="$aros_host_baseldflags"
aros_host_debug="-g -O0"
aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
aros_host_mkargs="--no-print-directory"
aros_host_exe_suffix="$EXEEXT"
aros_host_lib_suffix=""

# Ignore all compliance, AROS ROMs = 0
# KickStart v1.0 = 30
# KickStart v1.3 = 34
# KickStart v2.0 = 37
# KickStart v3.0 = 39
# KickStart v3.1 = 40
# AmigaOS   v3.5 = 44
aros_amigaos_compliance=0

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

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


  test -n "$aros_host_aclocal" && break
done

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

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


  test -n "$aros_host_autoconf" && break
done

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

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


  test -n "$aros_host_autoheader" && break
done

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

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


  test -n "$aros_host_automake" && break
done


req_avail=yes
if test "$aros_host_aclocal" = ""; then
    req_avail=no
fi
if test "$aros_host_aclocal" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
req_avail=yes
if test "$aros_host_automake" = ""; then
    req_avail=no
fi
if test "$aros_host_automake" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

case "$aros_host_cc" in
    *clang*)
        aros_host_cc_pipe=""
        ;;
    *gcc*)
        aros_host_cc_pipe="-pipe"
        ;;
    icc)
        aros_host_cc_pipe=""
        ;;
    *)
        aros_host_cc_pipe=""
        ;;
esac

aros_kernel_cc_includes=""
aros_target_cc_includes=""
host_cc_elf=yes

# ----------------------------------------------------------------------------------------
# Host-specific defaults
#
# This is the main host configuration section. It is where the host
# can change the values of any variables it needs to change. We do
# not look at anything that compiles to the target yet, we'll get
# to that later.

case "$host_os" in
    aros*)
        aros_host_arch="aros"
        aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
        case "$host_cpu" in
            *aarch64*)
                aros_host_cpu="aarch64"
                ;;
            *arm*)
                aros_host_cpu="arm"
                ;;
            *i?86*)
                aros_host_cpu="i386"
                ;;
            *m68k*)
                aros_host_cpu="m68k"
                ;;
            *powerpc*)
                aros_host_cpu="ppc"
                ;;
            *riscv64*)
                aros_host_cpu="riscv64"
                ;;
            *riscv*)
                aros_host_cpu="riscv"
                ;;
            *x86_64*)
                aros_host_cpu="x86_64"
                ;;
            *)
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
printf '%s\n' "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
                aros_host_cpu="$host_cpu"
                ;;
        esac
        ;;

    linux*)
        aros_host_arch="linux"
        aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"

        if test "$aros_target_variant" = "android"; then
            android_build_os="linux-x86"
            android_tool="android"
            default_android_sdk="/opt/android-sdk-linux_x86"
        fi
        case "$host_cpu" in
            *aarch64*)
                aros_host_cpu="aarch64"
                ;;
            *arm*)
                aros_host_cpu="arm"
                ;;
            *i?86*)
                aros_host_cpu="i386"
                ;;
            *m68k*)
                aros_host_cpu="m68k"
                ;;
            *powerpc*)
                aros_host_cpu="ppc"
                ;;
            *riscv64*)
                aros_host_cpu="riscv64"
                ;;
            *riscv*)
                aros_host_cpu="riscv"
                ;;
            *x86_64*)
                aros_host_cpu="x86_64"
                ;;
            *)
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
printf '%s\n' "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
                aros_host_cpu="$host_cpu"
                ;;
        esac
        ;;

    freebsd*)
        aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
        aros_host_make="gmake"
        aros_host_arch="freebsd"
        aros_host_cpu="i386"

        aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"

                        case $host_os in
            freebsd[234]*)
                aros_object_format="elf_i386"
                ;;

            *)
                aros_object_format="elf_i386_fbsd"
                ;;
        esac

        ;;

    darwin*)
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
printf %s "checking for macOS SDK files... " >&6; }
        LOC=$( xcode-select -p )
        if  test $? != 0
then :
  as_fn_error $? "XCode incorrectly configured!
please run 'xcode-select --install' before
re-running configure" "$LINENO" 5
fi
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
printf '%s\n' "$LOC" >&6; }
        aros_host_arch="darwin"
        host_cc_elf=no
        if [ -z ${SED+x} ]; then
            SED="gsed";
        fi
        if test "$aros_target_variant" = "android"; then
            android_build_os="darwin-x86"
            android_tool="android"
            default_android_sdk="/android-sdk-mac_x86"
        fi
        case "$host_cpu" in
            *aarch64*|*arm64*)
                aros_host_cpu="aarch64"
                ;;
            *i?86*)
                aros_host_cpu="i386"
                ;;
            *x86_64*)
                aros_host_cpu="x86_64"
                ;;
            *powerpc*)
                aros_host_cpu="ppc"
                ;;
            *)
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
printf '%s\n' "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
                aros_host_cpu="$host_cpu"
                ;;
        esac

                aros_host_cflags="`echo "$aros_host_cflags" | sed 's|-I/usr/local/include/||g'`"
        aros_host_cflags="`echo "$aros_host_cflags" | sed 's|-I/usr/local/include||g'`"
        aros_host_cflags="`echo "$aros_host_cflags" | sed 's|-I/opt/local/include/||g'`"
        aros_host_cflags="`echo "$aros_host_cflags" | sed 's|-I/opt/local/include||g'`"
        aros_host_cflags="`echo "$aros_host_cflags" | sed 's|-I/opt/pkg/include/||g'`"
        aros_host_cflags="`echo "$aros_host_cflags" | sed 's|-I/opt/pkg/include||g'`"
        aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"

                aros_host_ldflags="`echo "$aros_host_ldflags" | sed 's|-L/usr/local/lib/||g'`"
        aros_host_ldflags="`echo "$aros_host_ldflags" | sed 's|-L/usr/local/lib||g'`"
        aros_host_ldflags="`echo "$aros_host_ldflags" | sed 's|-L/opt/local/lib/||g'`"
        aros_host_ldflags="`echo "$aros_host_ldflags" | sed 's|-L/opt/local/lib||g'`"
        aros_host_ldflags="`echo "$aros_host_ldflags" | sed 's|-L/opt/pkg/lib/||g'`"
        aros_host_ldflags="`echo "$aros_host_ldflags" | sed 's|-L/opt/pkg/lib||g'`"

        aros_host_ldflags="$aros_host_ldflags -liconv"
        ;;

    dragonfly*)
        aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
        aros_host_make="gmake"
        aros_host_arch="dragonfly"
        case $host_cpu in
            *i?86*)
                aros_host_cpu="i386"
                ;;
            *amd64*)
                aros_host_cpu="x86_64"
                ;;
            *)
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
printf '%s\n' "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
                aros_host_cpu="$host_cpu"
                ;;
        esac
        ;;

    netbsd*)
        aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
        aros_host_make="gmake"
        aros_host_arch="netbsd"
        case "$host_cpu" in
            *i?86*)
                aros_host_cpu="i386"
                ;;
            *m68k*)
                aros_host_cpu="m68k"
                ;;
            *)
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
printf '%s\n' "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
                aros_host_cpu="$host_cpu"
                ;;
        esac
        aros_host_lib_suffix=".0.0"
        ;;

    openbsd*)
        aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
        aros_host_make="gmake"
        aros_host_arch="openbsd"
        case "$host_cpu" in
            *i?86*)
                aros_host_cpu="i386"
                ;;
            *)
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
printf '%s\n' "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
                aros_host_cpu="$host_cpu"
                ;;
        esac
        ;;

    solaris*)
        aros_host_arch="solaris"
        aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
        case "$host_cpu" in
            *i?86*)
                aros_host_cpu="i386"
                ;;
            *sparc*)
                aros_host_cpu="sparc"
                ;;
            *)
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
printf '%s\n' "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
                aros_host_cpu="$host_cpu"
                ;;
        esac
        ;;

    morphos*)
        aros_host_arch="morphos"
        aros_host_cpu="ppc"
        host_cc_elf=no
        ;;

    amiga*)
        aros_host_arch="amiga"
        host_cc_elf=no
        SORT="/gg/bin/sort"
        TEST="/gg/bin/test"
        UNIQ="/gg/bin/uniq"
        FOR="for"
        TOUCH="/gg/bin/touch"
        case "$host_cpu" in
            *m68k*)
                aros_host_cpu="m68k"
                ;;
            *powerpc*)
                aros_host_cpu="ppc"
                ;;
            *)
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
printf '%s\n' "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
                aros_host_cpu="$host_cpu"
                ;;
        esac
        ;;

    cygwin*)
        aros_host_arch="cygwin"
        aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
        host_cc_elf=no
        if test "$aros_target_variant" = "android"; then
            android_build_os="windows"
            android_tool="android.bat"
            default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
        fi

        case "$host_cpu" in
            *i?86*)
                aros_host_cpu="i386"
                ;;
            *)
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
printf '%s\n' "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
                aros_host_cpu="$host_cpu"
                ;;
        esac
        ;;

    mingw32*)
        aros_host_arch="mingw32"
        aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
        host_cc_elf=no
        if test "$aros_target_variant" = "android"; then
            android_build_os="windows"
            android_tool="android.bat"
            default_android_sdk="/c/android-sdk-windows-1.6_r1"
        fi

        libpng_libextra="-lws2_32"

        case "$host_cpu" in
            *i?86*)

                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
printf %s "checking for Windows native gcc target... " >&6; }
                host_cpu=`gcc -dumpmachine`
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
printf '%s\n' "$host_cpu" >&6; }
                ;;

        esac

        case "$host_cpu" in
            *i?86*)
                aros_host_cpu="i386"
                ;;

            mingw32*)
                                aros_host_cpu="i386"
                ;;

            *x86_64*)
                aros_host_cpu="x86_64"
                                                aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
                ;;

            *)
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
printf '%s\n' "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
                aros_host_cpu="$host_cpu"
                ;;
        esac
        ;;
    *)
        as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
        ;;
esac

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

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


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

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


aros_host_ar=`echo $aros_host_cmd_ar | sed -e "s|$base_ar_name|$aros_host_plain_ar|g"`
req_avail=yes
if test "$aros_host_ar" = ""; then
    req_avail=no
fi
if test "$aros_host_ar" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
base_ranlib_name=${HOST_TOOLCHAIN_PREFIX}ranlib${HOST_TOOLCHAIN_SUFFIX}
# Extract the first word of "$base_ranlib_name", so it can be a program name with args.
set dummy $base_ranlib_name; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_RANLIB_BASE+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$RANLIB_BASE"; then
  ac_cv_prog_RANLIB_BASE="$RANLIB_BASE" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_RANLIB_BASE="$base_ranlib_name "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


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

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


req_avail=yes
if test "$aros_host_ranlib" = ""; then
    req_avail=no
fi
if test "$aros_host_ranlib" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_aros_host_strip+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$aros_host_strip"; then
  ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_aros_host_strip="strip "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$aros_host_strip" = ""; then
    req_avail=no
fi
if test "$aros_host_strip" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

# Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_RM+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_RM="rm -rf"
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$RM" = ""; then
    req_avail=no
fi
if test "$RM" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "cp", so it can be a program name with args.
set dummy cp; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CP+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CP="cp "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$CP" = ""; then
    req_avail=no
fi
if test "$CP" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "mv", so it can be a program name with args.
set dummy mv; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_MV+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_MV="mv "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$MV" = ""; then
    req_avail=no
fi
if test "$MV" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "echo", so it can be a program name with args.
set dummy echo; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ECHO+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$ECHO"; then
  ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_ECHO="echo "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$ECHO" = ""; then
    req_avail=no
fi
if test "$ECHO" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "mkdir", so it can be a program name with args.
set dummy mkdir; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_MKDIR+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$MKDIR"; then
  ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_MKDIR="mkdir -p"
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$MKDIR" = ""; then
    req_avail=no
fi
if test "$MKDIR" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "touch", so it can be a program name with args.
set dummy touch; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_TOUCH+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$TOUCH"; then
  ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_TOUCH="touch "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$TOUCH" = ""; then
    req_avail=no
fi
if test "$TOUCH" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "sort", so it can be a program name with args.
set dummy sort; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_SORT+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$SORT"; then
  ac_cv_prog_SORT="$SORT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_SORT="sort "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$SORT" = ""; then
    req_avail=no
fi
if test "$SORT" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "uniq", so it can be a program name with args.
set dummy uniq; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_UNIQ+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$UNIQ"; then
  ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_UNIQ="uniq "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$UNIQ" = ""; then
    req_avail=no
fi
if test "$UNIQ" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "true", so it can be a program name with args.
set dummy true; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_NOP+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$NOP"; then
  ac_cv_prog_NOP="$NOP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_NOP="true "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$NOP" = ""; then
    req_avail=no
fi
if test "$NOP" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "cat", so it can be a program name with args.
set dummy cat; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CAT+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$CAT"; then
  ac_cv_prog_CAT="$CAT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CAT="cat "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$CAT" = ""; then
    req_avail=no
fi
if test "$CAT" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "bison", so it can be a program name with args.
set dummy bison; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_BISON+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$BISON"; then
  ac_cv_prog_BISON="$BISON" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_BISON="bison "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$BISON" = ""; then
    req_avail=no
fi
if test "$BISON" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "flex", so it can be a program name with args.
set dummy flex; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_FLEX+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$FLEX"; then
  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_FLEX="flex "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$FLEX" = ""; then
    req_avail=no
fi
if test "$FLEX" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
printf %s "checking version of $FLEX... " >&6; }
ax_cv_flex_version="`$FLEX --version | cut -d\" \" -f2`"
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
printf '%s\n' "$ax_cv_flex_version" >&6; }
# Extract the first word of "pngtopnm", so it can be a program name with args.
set dummy pngtopnm; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_PNGTOPNM+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$PNGTOPNM"; then
  ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_PNGTOPNM="pngtopnm "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$PNGTOPNM" = ""; then
    req_avail=no
fi
if test "$PNGTOPNM" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "ppmtoilbm", so it can be a program name with args.
set dummy ppmtoilbm; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_PPMTOILBM+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$PPMTOILBM"; then
  ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_PPMTOILBM="ppmtoilbm "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$PPMTOILBM" = ""; then
    req_avail=no
fi
if test "$PPMTOILBM" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "sed", so it can be a program name with args.
set dummy sed; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_SED+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$SED"; then
  ac_cv_prog_SED="$SED" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_SED="sed "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$SED" = ""; then
    req_avail=no
fi
if test "$SED" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "chmod", so it can be a program name with args.
set dummy chmod; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CHMOD+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_CHMOD="chmod "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$CHMOD" = ""; then
    req_avail=no
fi
if test "$CHMOD" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
# Extract the first word of "patch", so it can be a program name with args.
set dummy patch; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_PATCH+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test -n "$PATCH"; then
  ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_PATCH="patch "
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


req_avail=yes
if test "$PATCH" = ""; then
    req_avail=no
fi
if test "$PATCH" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
fi







        if test -n "$PYTHON"; then
      # If the user set $PYTHON, use it and don't search something else.
      { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.0" >&5
printf %s "checking whether $PYTHON version is >= 3.0... " >&6; }
      prog="import sys
# split strings by '.' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
# map returns an iterator in Python 3.0 and a list in 2.x
minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
minverhex = 0
# xrange is not present in Python 3.0 and range returns an iterator
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.hexversion < minverhex)"
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
   ($PYTHON -c "$prog") >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }
then :
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf '%s\n' "yes" >&6; }
else case e in #(
  e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf '%s\n' "no" >&6; }
			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;;
esac
fi
      am_display_PYTHON=$PYTHON
    else
      # Otherwise, try each interpreter until we find one that satisfies
      # VERSION.
      { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.0" >&5
printf %s "checking for a Python interpreter with version >= 3.0... " >&6; }
if test ${am_cv_pathless_PYTHON+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
	for am_cv_pathless_PYTHON in python python2 python3  python3.11 python3.10  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
	  test "$am_cv_pathless_PYTHON" = none && break
	  prog="import sys
# split strings by '.' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
# map returns an iterator in Python 3.0 and a list in 2.x
minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
minverhex = 0
# xrange is not present in Python 3.0 and range returns an iterator
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.hexversion < minverhex)"
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }
then :
  break
fi
	done ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
printf '%s\n' "$am_cv_pathless_PYTHON" >&6; }
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
      if test "$am_cv_pathless_PYTHON" = none; then
	PYTHON=:
      else
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
set dummy $am_cv_pathless_PYTHON; ac_word=$2
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PYTHON+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) case $PYTHON in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
    printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


      fi
      am_display_PYTHON=$am_cv_pathless_PYTHON
    fi


  if test "$PYTHON" = :; then
        as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
  else

              { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
printf %s "checking for $am_display_PYTHON version... " >&6; }
if test ${am_cv_python_version+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
printf '%s\n' "$am_cv_python_version" >&6; }
  PYTHON_VERSION=$am_cv_python_version


        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
printf %s "checking for $am_display_PYTHON platform... " >&6; }
if test ${am_cv_python_platform+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
printf '%s\n' "$am_cv_python_platform" >&6; }
  PYTHON_PLATFORM=$am_cv_python_platform


                            if test "x$prefix" = xNONE; then
    am__usable_prefix=$ac_default_prefix
  else
    am__usable_prefix=$prefix
  fi

  # Allow user to request using sys.* values from Python,
  # instead of the GNU $prefix values.

# Check whether --with-python-sys-prefix was given.
if test ${with_python_sys_prefix+y}
then :
  withval=$with_python_sys_prefix; am_use_python_sys=:
else case e in #(
  e) am_use_python_sys=false ;;
esac
fi


  # Allow user to override whatever the default Python prefix is.

# Check whether --with-python_prefix was given.
if test ${with_python_prefix+y}
then :
  withval=$with_python_prefix; am_python_prefix_subst=$withval
   am_cv_python_prefix=$withval
   { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
   { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
printf '%s\n' "$am_cv_python_prefix" >&6; }
else case e in #(
  e)
   if $am_use_python_sys; then
     # using python sys.prefix value, not GNU
     { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
if test ${am_cv_python_prefix+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
printf '%s\n' "$am_cv_python_prefix" >&6; }

               case $am_cv_python_prefix in
     $am__usable_prefix*)
       am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
       am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
       ;;
     *)
       am_python_prefix_subst=$am_cv_python_prefix
       ;;
     esac
   else # using GNU prefix value, not python sys.prefix
     am_python_prefix_subst='${prefix}'
     am_python_prefix=$am_python_prefix_subst
     { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
     { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
printf '%s\n' "$am_python_prefix" >&6; }
   fi ;;
esac
fi

  # Substituting python_prefix_subst value.
  PYTHON_PREFIX=$am_python_prefix_subst


  # emacs-page Now do it all over again for Python exec_prefix, but with yet
  # another conditional: fall back to regular prefix if that was specified.

# Check whether --with-python_exec_prefix was given.
if test ${with_python_exec_prefix+y}
then :
  withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
   am_cv_python_exec_prefix=$withval
   { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
   { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
printf '%s\n' "$am_cv_python_exec_prefix" >&6; }
else case e in #(
  e)
   # no explicit --with-python_exec_prefix, but if
   # --with-python_prefix was given, use its value for python_exec_prefix too.
   if test -n "$with_python_prefix"
then :
  am_python_exec_prefix_subst=$with_python_prefix
    am_cv_python_exec_prefix=$with_python_prefix
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
printf '%s\n' "$am_cv_python_exec_prefix" >&6; }
else case e in #(
  e)
    # Set am__usable_exec_prefix whether using GNU or Python values,
    # since we use that variable for pyexecdir.
    if test "x$exec_prefix" = xNONE; then
      am__usable_exec_prefix=$am__usable_prefix
    else
      am__usable_exec_prefix=$exec_prefix
    fi
    #
    if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
      { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
if test ${am_cv_python_exec_prefix+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
printf '%s\n' "$am_cv_python_exec_prefix" >&6; }
                        case $am_cv_python_exec_prefix in
      $am__usable_exec_prefix*)
        am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
        am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
        ;;
      *)
        am_python_exec_prefix_subst=$am_cv_python_exec_prefix
        ;;
     esac
   else # using GNU $exec_prefix, not python sys.exec_prefix
     am_python_exec_prefix_subst='${exec_prefix}'
     am_python_exec_prefix=$am_python_exec_prefix_subst
     { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
     { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
printf '%s\n' "$am_python_exec_prefix" >&6; }
   fi ;;
esac
fi ;;
esac
fi

  # Substituting python_exec_prefix_subst.
  PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst


  # Factor out some code duplication into this shell variable.
  am_python_setup_sysconfig="\
import sys
# Prefer sysconfig over distutils.sysconfig, for better compatibility
# with python 3.x.  See automake bug#10227.
try:
    import sysconfig
except ImportError:
    can_use_sysconfig = 0
else:
    can_use_sysconfig = 1
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
# <https://github.com/pypa/virtualenv/issues/118>
try:
    from platform import python_implementation
    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
        can_use_sysconfig = 0
except ImportError:
    pass"


              { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
if test ${am_cv_python_pythondir+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test "x$am_cv_python_prefix" = x; then
     am_py_prefix=$am__usable_prefix
   else
     am_py_prefix=$am_cv_python_prefix
   fi
   am_cv_python_pythondir=`$PYTHON -c "
$am_python_setup_sysconfig
if can_use_sysconfig:
  if hasattr(sysconfig, 'get_default_scheme'):
    scheme = sysconfig.get_default_scheme()
  else:
    scheme = sysconfig._get_default_scheme()
  if scheme == 'posix_local':
    # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
    scheme = 'posix_prefix'
  sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
else:
  from distutils import sysconfig
  sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
sys.stdout.write(sitedir)"`
   #
   case $am_cv_python_pythondir in
   $am_py_prefix*)
     am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
     am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
     ;;
   *)
     case $am_py_prefix in
       /usr|/System*) ;;
       *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
          ;;
     esac
     ;;
   esac
   ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
printf '%s\n' "$am_cv_python_pythondir" >&6; }
  pythondir=$am_cv_python_pythondir


          pkgpythondir=\${pythondir}/$PACKAGE


          { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
if test ${am_cv_python_pyexecdir+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test "x$am_cv_python_exec_prefix" = x; then
     am_py_exec_prefix=$am__usable_exec_prefix
   else
     am_py_exec_prefix=$am_cv_python_exec_prefix
   fi
   am_cv_python_pyexecdir=`$PYTHON -c "
$am_python_setup_sysconfig
if can_use_sysconfig:
  if hasattr(sysconfig, 'get_default_scheme'):
    scheme = sysconfig.get_default_scheme()
  else:
    scheme = sysconfig._get_default_scheme()
  if scheme == 'posix_local':
    # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
    scheme = 'posix_prefix'
  sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
else:
  from distutils import sysconfig
  sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
sys.stdout.write(sitedir)"`
   #
   case $am_cv_python_pyexecdir in
   $am_py_exec_prefix*)
     am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
     am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
     ;;
   *)
     case $am_py_exec_prefix in
       /usr|/System*) ;;
       *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
          ;;
     esac
     ;;
   esac
   ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
printf '%s\n' "$am_cv_python_pyexecdir" >&6; }
  pyexecdir=$am_cv_python_pyexecdir


      pkgpyexecdir=\${pyexecdir}/$PACKAGE



  fi


{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if Python's mako templates are installed" >&5
printf %s "checking if Python's mako templates are installed... " >&6; }




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

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


  test -n "$PYTHON" && break
done




{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for Python 'mako' library" >&5
printf %s "checking for Python 'mako' library... " >&6; }
if test ${pc_cv_python_module_mako+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_ext=py
ac_compile='chmod +x conftest.$ac_ext >&5'
ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
     if test "$cross_compiling" = yes
then :
  { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See 'config.log' for more details" "$LINENO" 5; }
else case e in #(
  e) cat > conftest.$ac_ext <<_ACEOF
#!$PYTHON
import sys
try:
    import mako
except:
    sys.exit(1)
else:
    sys.exit(0)


_ACEOF
if ac_fn_py_try_run "$LINENO"
then :
  pc_cv_python_module_mako="yes"
else case e in #(
  e) pc_cv_python_module_mako="no" ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

     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
     ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_module_mako" >&5
printf '%s\n' "$pc_cv_python_module_mako" >&6; }
if test "$pc_cv_python_module_mako" = "no"
then :
  { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "failed to detect mako templates
See 'config.log' for more details" "$LINENO" 5; }
fi


# Check whether --enable-libpng-config was given.
if test ${enable_libpng_config+y}
then :
  enableval=$enable_libpng_config;
fi

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

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


fi
if test "$arosconfig_use_libpngconfig" = "yes"; then
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
printf %s "checking libpng-config library... " >&6; }
    libpng_incdir="`libpng-config --cflags`"
    libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
    libpng="`libpng-config --libs`"
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
printf '%s\n' "$libpng" >&6; }
else

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
printf %s "checking for png_read_png in -lpng... " >&6; }
if test ${ac_cv_lib_png_png_read_png+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lpng  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char png_read_png (void);
int
main (void)
{
return png_read_png ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_png_png_read_png=yes
else case e in #(
  e) ac_cv_lib_png_png_read_png=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
printf '%s\n' "$ac_cv_lib_png_png_read_png" >&6; }
if test "x$ac_cv_lib_png_png_read_png" = xyes
then :
  libpng="-lpng"
else case e in #(
  e) libpng="no" ;;
esac
fi

    if test "$libpng_libextra" != ""; then
        if test "$libpng" != "no"; then
            libpng_libextra="$libpng_libextra $libpng"
        fi
    fi
fi
req_avail=yes
if test "$libpng" = ""; then
    req_avail=no
fi
if test "$libpng" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
fi




FOR=for

IF=if

TEST=test

CMP=cmp



# Check for some includes for the X11 HIDD and the kernel
ac_header= ac_cache=
for ac_item in $ac_header_c_list
do
  if test $ac_cache; then
    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
      printf '%s\n' "#define $ac_item 1" >> confdefs.h
    fi
    ac_header= ac_cache=
  elif test $ac_header; then
    ac_cache=$ac_item
  else
    ac_header=$ac_item
  fi
done








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

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

fi
ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ipc_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYS_IPC_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_shm_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYS_SHM_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/mmap.h" "ac_cv_header_sys_mmap_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mmap_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYS_MMAP_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mman_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYS_MMAN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
if test "x$ac_cv_header_sysexits_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYSEXITS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_statfs_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYS_STATFS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_statvfs_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_vfs_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYS_VFS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_param_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYS_PARAM_H 1" >>confdefs.h

fi


ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
"
if test "x$ac_cv_header_sys_mount_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h

fi

       for ac_header in GL/glx.h
do :
  ac_fn_c_check_header_compile "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
if test "x$ac_cv_header_GL_glx_h" = xyes
then :
  printf '%s\n' "#define HAVE_GL_GLX_H 1" >>confdefs.h
 host_feature_glx=yes
else case e in #(
  e) host_feature_glx=no ;;
esac
fi

done

       for ac_header in syscall.h
do :
  ac_fn_c_check_header_compile "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
if test "x$ac_cv_header_syscall_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYSCALL_H 1" >>confdefs.h
 host_header_syscall=yes
else case e in #(
  e) host_header_syscall=no ;;
esac
fi

done
       for ac_header in sys/syscall.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_syscall_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
 host_header_syssyscall=yes
else case e in #(
  e) host_header_syssyscall=no ;;
esac
fi

done

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
printf %s "checking if __unused conflicts with sys/stat.h... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

     #define __unused __attribute__((unused))
     #include <sys/stat.h>

int
main (void)
{

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

ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`printf '%s\n' "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
printf %s "checking for $ac_hdr that defines DIR... " >&6; }
if eval test \${$as_ac_Header+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <$ac_hdr>

int
main (void)
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "$as_ac_Header=yes"
else case e in #(
  e) eval "$as_ac_Header=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
eval ac_res=\$$as_ac_Header
	       { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf '%s\n' "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
  cat >>confdefs.h <<_ACEOF
#define `printf '%s\n' "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
_ACEOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
printf %s "checking for library containing opendir... " >&6; }
if test ${ac_cv_search_opendir+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

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

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

fi

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

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

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

fi

fi

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
printf %s "checking whether stat file-mode macros are broken... " >&6; }
if test ${ac_cv_header_stat_broken+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/stat.h>

#if defined S_ISBLK && defined S_IFDIR
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
#endif

#if defined S_ISBLK && defined S_IFCHR
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
#endif

#if defined S_ISLNK && defined S_IFREG
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
#endif

#if defined S_ISSOCK && defined S_IFREG
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
#endif

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

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

fi

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

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


# Autoupdate added the next two lines to ensure that your configure
# script's behavior did not change.  They are probably safe to remove.

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

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

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

         EGREP_TRADITIONAL=$EGREP
 ac_cv_path_EGREP_TRADITIONAL=$EGREP


{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
if test ${ac_cv_header_sys_wait_h+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/wait.h>
#ifndef WEXITSTATUS
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
#endif
#ifndef WIFEXITED
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif

int
main (void)
{
  int s;
  wait (&s);
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_header_sys_wait_h=yes
else case e in #(
  e) ac_cv_header_sys_wait_h=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
printf '%s\n' "$ac_cv_header_sys_wait_h" >&6; }
if test $ac_cv_header_sys_wait_h = yes; then

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

fi



# Obsolete code to be removed.
if test $ac_cv_header_sys_time_h = yes; then

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

fi
# End of obsolete code.

ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
then :

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


fi

ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
then :

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


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

else case e in #(
  e) case " $LIBOBJS " in
  *" fileblocks.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
 ;;
esac
 ;;
esac
fi


ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
then :

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


fi

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if test ${ac_cv_struct_tm+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>

int
main (void)
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_struct_tm=time.h
else case e in #(
  e) ac_cv_struct_tm=sys/time.h ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
printf '%s\n' "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then

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

fi

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5
printf %s "checking for $CC options to detect undeclared functions... " >&6; }
if test ${ac_cv_c_undeclared_builtin_options+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_save_CFLAGS=$CFLAGS
   ac_cv_c_undeclared_builtin_options='cannot detect'
   for ac_arg in '' -fno-builtin; do
     CFLAGS="$ac_save_CFLAGS $ac_arg"
     # This test program should *not* compile successfully.
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
(void) strchr;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else case e in #(
  e) # This test program should compile successfully.
        # No library function is consistently available on
        # freestanding implementations, so test against a dummy
        # declaration.  Include always-available headers on the
        # off chance that they somehow elicit warnings.
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <float.h>
#include <limits.h>
#include <stdarg.h>
#include <stddef.h>
extern void ac_decl (int, char *);

int
main (void)
{
(void) ac_decl (0, (char *) 0);
  (void) ac_decl;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  if test x"$ac_arg" = x
then :
  ac_cv_c_undeclared_builtin_options='none needed'
else case e in #(
  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
esac
fi
          break
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    done
    CFLAGS=$ac_save_CFLAGS
   ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }
  case $ac_cv_c_undeclared_builtin_options in #(
  'cannot detect') :
    { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "cannot make $CC report undeclared builtins
See 'config.log' for more details" "$LINENO" 5; } ;; #(
  'none needed') :
    ac_c_undeclared_builtin_options='' ;; #(
  *) :
    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
esac

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5
printf %s "checking for $CC options to ignore future-version functions... " >&6; }
if test ${ac_cv_c_future_darwin_options+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)       ac_compile_saved="$ac_compile"
   ac_compile="$ac_compile -Werror=unguarded-availability-new"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if ! (defined __APPLE__ && defined __MACH__)
	   #error "-Werror=unguarded-availability-new not needed here"
	  #endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'
else case e in #(
  e) ac_cv_c_future_darwin_options='none needed' ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ac_compile="$ac_compile_saved"
   ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5
printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }
 case $ac_cv_c_future_darwin_options in #(
  'none needed') :
    ac_c_future_darwin_options='' ;; #(
  *) :
    ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;
esac

ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
#include <$ac_cv_struct_tm>

"
if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
then :

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


fi

if test "$ac_cv_member_struct_tm_tm_zone" = yes; then

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

else
  ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
if test "x$ac_cv_have_decl_tzname" = xyes
then :
  ac_have_decl=1
else case e in #(
  e) ac_have_decl=0 ;;
esac
fi
printf '%s\n' "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h

  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
printf %s "checking for tzname... " >&6; }
if test ${ac_cv_var_tzname+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <time.h>
#if !HAVE_DECL_TZNAME
extern char *tzname[];
#endif

int
main (void)
{
return tzname[0][0];
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_var_tzname=yes
else case e in #(
  e) ac_cv_var_tzname=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
printf '%s\n' "$ac_cv_var_tzname" >&6; }
  if test $ac_cv_var_tzname = yes; then

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

  fi
fi

ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
if test "x$ac_cv_type_off_t" = xyes
then :

else case e in #(
  e)
printf '%s\n' "#define off_t long int" >>confdefs.h
 ;;
esac
fi


  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
"
if test "x$ac_cv_type_pid_t" = xyes
then :

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

          #if defined _WIN64 && !defined __CYGWIN__
          LLP64
          #endif

int
main (void)
{

  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_pid_type='int'
else case e in #(
  e) ac_pid_type='__int64' ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

printf '%s\n' "#define pid_t $ac_pid_type" >>confdefs.h

     ;;
esac
fi


ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes
then :

else case e in #(
  e)
printf '%s\n' "#define size_t unsigned int" >>confdefs.h
 ;;
esac
fi

ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
if test "x$ac_cv_type_uid_t" = xyes
then :

else case e in #(
  e)
printf '%s\n' "#define uid_t int" >>confdefs.h
 ;;
esac
fi

ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
if test "x$ac_cv_type_gid_t" = xyes
then :

else case e in #(
  e)
printf '%s\n' "#define gid_t int" >>confdefs.h
 ;;
esac
fi


ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
then :

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


fi


# Look for some functions
ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
if test "x$ac_cv_func_getpagesize" = xyes
then :
  printf '%s\n' "#define HAVE_GETPAGESIZE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
if test "x$ac_cv_func_kqueue" = xyes
then :
  printf '%s\n' "#define HAVE_KQUEUE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
if test "x$ac_cv_func_statfs" = xyes
then :
  printf '%s\n' "#define HAVE_STATFS 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
if test "x$ac_cv_func_statvfs" = xyes
then :
  printf '%s\n' "#define HAVE_STATVFS 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "clone" "ac_cv_func_clone"
if test "x$ac_cv_func_clone" = xyes
then :
  printf '%s\n' "#define HAVE_CLONE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "kse_create" "ac_cv_func_kse_create"
if test "x$ac_cv_func_kse_create" = xyes
then :
  printf '%s\n' "#define HAVE_KSE_CREATE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "rfork_thread" "ac_cv_func_rfork_thread"
if test "x$ac_cv_func_rfork_thread" = xyes
then :
  printf '%s\n' "#define HAVE_RFORK_THREAD 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "thr_create" "ac_cv_func_thr_create"
if test "x$ac_cv_func_thr_create" = xyes
then :
  printf '%s\n' "#define HAVE_THR_CREATE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sa_register" "ac_cv_func_sa_register"
if test "x$ac_cv_func_sa_register" = xyes
then :
  printf '%s\n' "#define HAVE_SA_REGISTER 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getcontext" "ac_cv_func_getcontext"
if test "x$ac_cv_func_getcontext" = xyes
then :
  printf '%s\n' "#define HAVE_GETCONTEXT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "makecontext" "ac_cv_func_makecontext"
if test "x$ac_cv_func_makecontext" = xyes
then :
  printf '%s\n' "#define HAVE_MAKECONTEXT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "setcontext" "ac_cv_func_setcontext"
if test "x$ac_cv_func_setcontext" = xyes
then :
  printf '%s\n' "#define HAVE_SETCONTEXT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
if test "x$ac_cv_func_sigaltstack" = xyes
then :
  printf '%s\n' "#define HAVE_SIGALTSTACK 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "swapcontext" "ac_cv_func_swapcontext"
if test "x$ac_cv_func_swapcontext" = xyes
then :
  printf '%s\n' "#define HAVE_SWAPCONTEXT 1" >>confdefs.h

fi



ac_func=
for ac_item in $ac_func_c_list
do
  if test $ac_func; then
    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
      echo "#define $ac_item 1" >> confdefs.h
    fi
    ac_func=
  else
    ac_func=$ac_item
  fi
done


{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
printf %s "checking for working mmap... " >&6; }
if test ${ac_cv_func_mmap_fixed_mapped+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test "$cross_compiling" = yes
then :
  case "$host_os" in # ((
			  # Guess yes on platforms where we know the result.
		  linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
			  # If we don't know, assume the worst.
		  *)      ac_cv_func_mmap_fixed_mapped=no ;;
		esac
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propagated back to all the places they're supposed to be.  */

#include <fcntl.h>
#include <sys/mman.h>

#ifndef getpagesize
/* Prefer sysconf to the legacy getpagesize function, as getpagesize has
   been removed from POSIX and is limited to page sizes that fit in 'int'.  */
# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf (_SC_PAGESIZE)
# elif defined _SC_PAGE_SIZE
#  define getpagesize() sysconf (_SC_PAGE_SIZE)
# elif HAVE_GETPAGESIZE
int getpagesize ();
# else
#  ifdef HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif
#endif

int
main (void)
{
  char *data, *data2, *data3;
  const char *cdata2;
  long i, pagesize;
  int fd, fd2;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    return 1;
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftest.mmap", 0600);
  if (fd < 0)
    return 2;
  if (write (fd, data, pagesize) != pagesize)
    return 3;
  close (fd);

  /* Next, check that the tail of a page is zero-filled.  File must have
     non-zero length, otherwise we risk SIGBUS for entire page.  */
  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  if (fd2 < 0)
    return 4;
  cdata2 = "";
  if (write (fd2, cdata2, 1) != 1)
    return 5;
  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  if (data2 == MAP_FAILED)
    return 6;
  for (i = 0; i < pagesize; ++i)
    if (*(data2 + i))
      return 7;
  close (fd2);
  /* 'return 8;' not currently used.  */

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    return 9;
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    return 10;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      return 11;

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    return 12;
  if (read (fd, data3, pagesize) != pagesize)
    return 13;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      return 14;
  close (fd);
  free (data);
  free (data3);
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  ac_cv_func_mmap_fixed_mapped=yes
else case e in #(
  e) ac_cv_func_mmap_fixed_mapped=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
 ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
printf '%s\n' "$ac_cv_func_mmap_fixed_mapped" >&6; }
if test $ac_cv_func_mmap_fixed_mapped = yes; then

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

fi
rm -f conftest.mmap conftest.txt


#
# Disable common symbols
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fno-common" >&5
printf %s "checking whether ${CC_BASE} accepts -fno-common... " >&6; }
save_cflags="$CFLAGS"
CFLAGS="$CFLAGS -fno-common"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

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


#-----------------------------------------------------------------------------

#
# GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
# it switched on by default, and we use the host compiler, so it compiles AROS
# code with this enabled resulting in link failures as we don't have support
# for it.
#
# We use two methods to disable it. For the host compiler (used to compile
# some hosted modules), we test to see if the compiler supports stack
# protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
# work on all platforms.
#

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fno-stack-protector" >&5
printf %s "checking whether ${CC_BASE} accepts -fno-stack-protector... " >&6; }
save_cflags="$CFLAGS"
CFLAGS="$CFLAGS -fno-stack-protector"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

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

#-----------------------------------------------------------------------------

# Disable pointer-signedness warnings if the compiler recognises the option
# (this only works for the host compiler at the moment)

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -Wno-pointer-sign" >&5
printf %s "checking whether ${CC_BASE} accepts -Wno-pointer-sign... " >&6; }
save_cflags="$CFLAGS"
CFLAGS="$CFLAGS -Wno-pointer-sign"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

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

#-----------------------------------------------------------------------------

# Check if host compiler supports -fgnu89-inline, can be needed for crosstools.

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fgnu89-inline" >&5
printf %s "checking whether ${CC_BASE} accepts -fgnu89-inline... " >&6; }
save_cflags="$CFLAGS"
CFLAGS="$CFLAGS -fgnu89-inline"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

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

#
# For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
# On GCC >= 4.0 -iquote should be used
#
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -iquote" >&5
printf %s "checking whether ${CC_BASE} accepts -iquote... " >&6; }
CFLAGS="$CFLAGS -iquote."
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

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

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
printf '%s\n' "$as_me: Performing target configuration..." >&6;}


#-----------------------------------------------------------------------------
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which prefs set to use" >&5
printf %s "checking which prefs set to use... " >&6; }

# Check whether --with-aros-prefs was given.
if test ${with_aros_prefs+y}
then :
  withval=$with_aros_prefs; config_prefs_set="$withval"
else case e in #(
  e) config_prefs_set="" ;;
esac
fi

if test "$config_prefs_set" != "" ; then
    msg_result=$config_prefs_set
else
    msg_result="default"
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
printf '%s\n' "$msg_result" >&6; }

aros_nominal_width=800
aros_nominal_height=600
aros_nominal_depth=4


test_kernel_cc=no

aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"

aros_elf_translate=
aros_warn_flags=
aros_isa_extra=
aros_isa_flags=
aros_kernel_isa_flags=
aros_kernel_isa_extra=
aros_config_cppflags=
aros_config_cflags=
aros_config_cxxflags=
aros_config_ldflags=""

aros_shared_default=yes

aros_shared_cflags="-fPIC"
aros_shared_aflags=""
aros_shared_ldflags="-Wl,-rpath,./lib -shared"
aros_kernel_ldflags="-Wl,-rpath,./lib"

aros_kernel_ar_flags="cr"
aros_target_ar_flags="cr"
aros_target_nm_flags="--demangle --undefined-only"
aros_target_strip_flags="--strip-unneeded -R.comment"

aros_c_libs=
aros_cxx_libs=

aros_target_genmap="-Wl,-Map -Xlinker"

# Native flavour stuff
aros_serial_debug="0"

# Palm native flavour stuff
aros_palm_debug_hack="0"

# Unix flavour stuff
aros_nesting_supervisor="0"

# Collect-aros stuff: "-ius" to ignore undefined symbols
ignore_undefined_symbols=""

# Check for X11 by default
need_x11="auto"

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which toolchain family to use ..." >&5
printf %s "checking which toolchain family to use ...... " >&6; }

# Check whether --with-toolchain was given.
if test ${with_toolchain+y}
then :
  withval=$with_toolchain; aros_toolchain="$withval"
else case e in #(
  e) aros_toolchain="$default_toolchain_family" ;;
esac
fi

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


{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
printf %s "checking if we should enable link time optimizations (LTO)... " >&6; }
# Check whether --enable-lto was given.
if test ${enable_lto+y}
then :
  enableval=$enable_lto; aros_config_lto="$enableval"
else case e in #(
  e) aros_config_lto="no" ;;
esac
fi

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

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
printf %s "checking if we should enable coverage instrumentation... " >&6; }
# Check whether --enable-coverage was given.
if test ${enable_coverage+y}
then :
  enableval=$enable_coverage; aros_config_coverage="$enableval"
else case e in #(
  e) aros_config_coverage="no" ;;
esac
fi

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

use_ld_wrapper=yes

case "$aros_toolchain" in
    *llvm*)
        aros_c_libs="-L$""(CROSSTOOLSDIR)/lib/clang/$""(TARGET_LLVM_VER)/lib/aros -lclang_rt.builtins-$""(AROS_TARGET_CPU)"
        toolchain_c_compiler="clang"
        toolchain_cxx_compiler="clang++"
        toolchain_cpp_preprocessor="clang"
        toolchain_cpp_opts=" -E"
        toolchain_ld="ld.lld"
        aros_ld="ld"
        toolchain_as="llvm-as"
        toolchain_ar="llvm-ar"
        toolchain_ranlib="llvm-ranlib"
        toolchain_nm="llvm-nm"
        toolchain_strip="llvm-strip"
        toolchain_objcopy="llvm-objcopy"
        toolchain_objdump="llvm-objdump"
                        use_libatomic=yes
        toolchain_def_opt_lvl="-O2"
        toolchain_debug_opt_lvl="-O0"
        toolchain_size_opt_lvl="-Os"
        aros_cxx_ldflags="-L$""(CROSSTOOLSDIR)/lib -stdlib=libc++ -static-libstdc++"
                                aros_target_cflags=""
        aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
        toolchain_ld_fmtbinary="--oformat binary"
        aros_nowarn_flags="$aros_nowarn_flags NOWARN_IGNORED_OPTIMIZATION_ARGUMENT"
        ;;
    *gnu*)
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if we should enable unit32 WCHAR suport" >&5
printf %s "checking if we should enable unit32 WCHAR suport... " >&6; }
        # Check whether --enable-wchar32 was given.
if test ${enable_wchar32+y}
then :
  enableval=$enable_wchar32; aros_config_wchar32="$enableval"
else case e in #(
  e) aros_config_wchar32="no" ;;
esac
fi

        if test "$aros_config_wchar32" != "no"; then
            aros_config_wchar32="yes"
        fi
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_config_wchar32" >&5
printf '%s\n' "$aros_config_wchar32" >&6; }
        toolchain_c_compiler="gcc"
        toolchain_cxx_compiler="g++"
        toolchain_cpp_preprocessor="gcc"
        toolchain_cpp_opts=" -E"
        toolchain_as="as"
        aros_ld="ld"
        if test "$aros_config_lto" != "yes"; then
            toolchain_ld="ld"
            toolchain_ar="ar"
            toolchain_ranlib="ranlib"
            toolchain_nm="nm"
        else
            gcc_ltoplugin="$""(CROSSTOOLSDIR)/libexec/gcc/$""(AROS_TARGET_CPU)-aros/$""(TARGET_GCC_VER)/liblto_plugin.so"
            toolchain_ld="ld.bfd"
            toolchain_ar="gcc-ar"
            aros_target_ar_flags="--plugin $gcc_ltoplugin $aros_target_ar_flags"
            toolchain_ranlib="gcc-ranlib"
            toolchain_nm="gcc-nm"
        fi
        aros_target_nm_flags="$aros_target_nm_flags --line-numbers"
        toolchain_strip="strip"
        toolchain_objcopy="objcopy"
        toolchain_objdump="objdump"
        use_libatomic=yes
        toolchain_def_opt_lvl="-O2"
        toolchain_debug_opt_lvl="-O0"
        toolchain_size_opt_lvl="-Os"
        aros_cxx_ldflags="-static-libstdc++"
        aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
        toolchain_ld_fmtbinary="--oformat=binary"
        ;;
    *)
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
printf '%s\n' "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
        toolchain_c_compiler="cc"
        toolchain_cxx_compiler="c++"
        toolchain_cpp_preprocessor="cpp"
        toolchain_cpp_opts=
        toolchain_ld="ld"
        aros_ld="ld"
        toolchain_as="as"
        toolchain_ar="ar"
        toolchain_ranlib="ranlib"
        toolchain_nm="nm"
        toolchain_strip="strip"
        toolchain_objcopy="objcopy"
        toolchain_objdump="objdump"
        ;;
esac

#-----------------------------------------------------------------------------

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
printf %s "checking which type of build to do... " >&6; }
# Check whether --enable-build_type was given.
if test ${enable_build_type+y}
then :
  enableval=$enable_build_type; build_type=$enableval
else case e in #(
  e) build_type="personal" ;;
esac
fi


if test "$build_type" = "nightly"; then
    build_type_string="NIGHTLY"
elif test "$build_type" = "snapshot"; then
    build_type_string="SNAPSHOT"
elif test "$build_type" = "milestone"; then
    build_type_string="MILESTONE"
elif test "$build_type" = "release"; then
    build_type_string="RELEASE"
else
    build_type_string="PERSONAL"
    build_type="personal"
fi

aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"

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

#-----------------------------------------------------------------------------
all_debug_types="messages stack modules mungwall symbols"

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
printf %s "checking which debug types to enable... " >&6; }
# Check whether --enable-debug was given.
if test ${enable_debug+y}
then :
  enableval=$enable_debug; debug="$enableval"
else case e in #(
  e) debug="" ;;
esac
fi


if test "$debug" = "" -o "$debug" = "no"; then
    debug="none"
elif test "$debug" = "yes"; then
    debug="all"
fi

if test "$debug" = "all" ; then
    debug="messages stack modules symbols"
    for d in $all_debug_types; do
        export aros_${d}_debug="1"
    done
else
    for d in $all_debug_types; do
        export aros_${d}_debug="0"
    done
fi

if test "$debug" != "none"; then
    debug=`echo $debug | sed s/,/\ /g`
    for d in $debug; do
        found="0"
        for d2 in $all_debug_types; do
            if test "$d2" = "$d"; then
                found="1"
                break
            fi
        done
        if test "$found" = "0"; then
            as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
        fi
        export aros_${d}_debug="1"
    done
    aros_debug="yes"
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
printf '%s\n' "$debug" >&6; }

if test "$aros_messages_debug" = "1"; then
    aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
else
    aros_messages_debug=""
fi
if test "$aros_symbols_debug" = "1"; then
    aros_symbols_debug="-g"
else
    aros_symbols_debug=""
fi

# Pre-check if the logresource option was passed...

# Check whether --with-logresource was given.
if test ${with_logresource+y}
then :
  withval=$with_logresource; with_log_resource="$withval"
else case e in #(
  e) with_log_resource="no" ;;
esac
fi


# These are the flags to pass when compiling debugged programs
aros_debug_cppflags="$aros_messages_debug"
aros_debug_cflags="$aros_symbols_debug"
aros_debug_cxxflags="$aros_symbols_debug"
aros_debug_aflags=""
aros_debug_ldflags="$aros_symbols_debug"

#-----------------------------------------------------------------------------
#   Checking for distcc and ccache.
#
#   Always apply the transforms in this particular order. Basically you should
#   always run 'ccache distcc compiler' in that order for the best performance.
#
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
printf %s "checking whether to enable distcc... " >&6; }
# Check whether --enable-distcc was given.
if test ${enable_distcc+y}
then :
  enableval=$enable_distcc; distcc="$enableval"
else case e in #(
  e) distcc="no" ;;
esac
fi

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

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


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

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
printf %s "checking whether to enable ccache... " >&6; }
# Check whether --enable-ccache was given.
if test ${enable_ccache+y}
then :
  enableval=$enable_ccache; ccache="$enableval"
else case e in #(
  e) ccache="no" ;;
esac
fi

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

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


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

#-----------------------------------------------------------------------------
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
printf %s "checking what specific host gcc version to use... " >&6; }

# Check whether --with-kernel-gcc-version was given.
if test ${with_kernel_gcc_version+y}
then :
  withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
else case e in #(
  e) kernel_tool_version="" ;;
esac
fi

if test "$kernel_tool_version" != "" ; then
    msg_result=$kernel_tool_version
else
    msg_result="default"
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
printf '%s\n' "$msg_result" >&6; }

#-----------------------------------------------------------------------------
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
printf %s "checking what optimization flags to use... " >&6; }

# Check whether --with-optimization was given.
if test ${with_optimization+y}
then :
  withval=$with_optimization; optimization_level="$withval"
else case e in #(
  e) optimization_level="unknown" ;;
esac
fi

if test "$optimization_level" = "unknown"; then
        optimization="default"
    if test "$debug" != "none"; then
        optimization_level=$toolchain_debug_opt_lvl
    else
        optimization_level=$toolchain_def_opt_lvl
    fi
else
    optimization="$optimization_level"
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
printf '%s\n' "$optimization" >&6; }

paranoia_default=yes
#-----------------------------------------------------------------------------
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
printf %s "checking which paranoia flags to use... " >&6; }

# Check whether --with-paranoia was given.
if test ${with_paranoia+y}
then :
  withval=$with_paranoia; paranoia_flags="$withval"
else case e in #(
  e) paranoia_flags="$paranoia_default" ;;
esac
fi

if test "$paranoia_flags" = "no"; then
        paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
        msg_result="none"
else
    if test "$paranoia_flags" = "yes"; then
        paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
    fi
    msg_result="$paranoia_flags"
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
printf '%s\n' "$msg_result" >&6; }
aros_warn_flags="$aros_warn_flags $paranoia_flags"

#-----------------------------------------------------------------------------
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
printf %s "checking what target variant to enable... " >&6; }
# Check whether --enable-target_variant was given.
if test ${enable_target_variant+y}
then :
  enableval=$enable_target_variant; target_variant=$enableval
else case e in #(
  e) target_variant="" ;;
esac
fi

if test "$target_variant" = ""; then
    aros_target_variant=""
    aros_target_suffix=""
    enableval="none"
else
    aros_target_variant="$target_variant"
    aros_target_suffix="-$target_variant"
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
printf '%s\n' "$enableval" >&6; }

# Target variant "classic" implies aros-prefs "classic" if it is not set.
if test "$target_variant" = "classic" -a "$config_prefs_set" = ""; then
    config_prefs_set="classic"
fi

# So does the m68k Amiga, whichever variant it is built as: the AROS set asks
# more of the display than those machines have to give.
if test "$target_os" = "amiga" -a "$target_cpu" = "m68k" -a "$config_prefs_set" = ""; then
    config_prefs_set="classic"
fi

#-----------------------------------------------------------------------------
# Target-specific defaults. You can override then on a per-target basis.
#
# Bootloader name. Currently used by PC target.
target_bootloader="none"
PLATFORM_EXECSMP=
ENABLE_EXECSMP=
PLATFORM_EXECWXSEG=

#-----------------------------------------------------------------------------
# Classic variant is possible for Amiga target.
CLASSIC_VARIANT_DEFINE=

#-----------------------------------------------------------------------------
# Additional options for some specific targets

case "$aros_target_variant" in
ios)
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
printf %s "checking XCode path... " >&6; }

# Check whether --with-xcode was given.
if test ${with_xcode+y}
then :
  withval=$with_xcode; aros_xcode_path="$withval"
else case e in #(
  e) aros_xcode_path="/Developer" ;;
esac
fi

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

    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
printf %s "checking what iOS SDK version to use... " >&6; }

# Check whether --with-sdk-version was given.
if test ${with_sdk_version+y}
then :
  withval=$with_sdk_version; aros_sdk_version="$withval"
else case e in #(
  e) aros_sdk_version="4.1" ;;
esac
fi

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

    ;;

"android")
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
printf %s "checking Android SDK path... " >&6; }

# Check whether --with-sdk was given.
if test ${with_sdk+y}
then :
  withval=$with_sdk; aros_android_sdk="$withval"
else case e in #(
  e) aros_android_sdk=$default_android_sdk ;;
esac
fi

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

    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
printf %s "checking Android NDK path... " >&6; }

# Check whether --with-ndk was given.
if test ${with_ndk+y}
then :
  withval=$with_ndk; aros_android_ndk="$withval"
else case e in #(
  e) aros_android_ndk="none" ;;
esac
fi

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

    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
printf %s "checking what Android SDK version to use... " >&6; }

# Check whether --with-sdk-version was given.
if test ${with_sdk_version+y}
then :
  withval=$with_sdk_version; aros_sdk_version="$withval"
else case e in #(
  e) aros_sdk_version="12" ;;
esac
fi

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

    aros_android_level=android-$aros_sdk_version
    if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
        echo "Platform $aros_android_level is not installed in your SDK"
        echo "Use --with-sdk-version=<API level number> to select another platform version"
        echo "You can check what plaform versions are installed in your SDK"
        echo "by examining contents of $aros_android_sdk/platforms directory"
        as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
    fi

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

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


    req_avail=yes
if test "$android_tool" = ""; then
    req_avail=no
fi
if test "$android_tool" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

    if test "$aros_android_ndk" != "none"; then
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
printf %s "checking what Android NDK version to use... " >&6; }

# Check whether --with-ndk-version was given.
if test ${with_ndk_version+y}
then :
  withval=$with_ndk_version; aros_ndk_version="$withval"
else case e in #(
  e) aros_ndk_version="9" ;;
esac
fi

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

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

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


    if test "$ant" = ""; then
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
printf '%s\n' "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
    fi

    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
printf %s "checking Build debug or release apk... " >&6; }

# Check whether --with-apk-version was given.
if test ${with_apk_version+y}
then :
  withval=$with_apk_version; aros_android_antapk=$withval
else case e in #(
  e) aros_android_antapk=release ;;
esac
fi

    if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
        as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
    fi
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
printf '%s\n' "$aros_android_antapk" >&6; }

    target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK           := $aros_android_antapk$export_newline"
    host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID                       := $android_tool$export_newline""ANT		                      := $ant$export_newline"
    aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX           := yes$export_newline"

        if test "$host_os" = "mingw32"; then
        android_tool="cmd //c $android_tool"
    fi

    need_dlopen="no"

    ;;
"be")
    case "$target_cpu" in
        *arm*)
            aros_flavour="standcompat"
            aros_object_format="armelfb_aros"
            gcc_default_endian="big-endian"
            ;;
        *)
            ;;
    esac
    ;;
esac

#-----------------------------------------------------------------------------
# External toolchains
kernel_tool_prefix="none"
aros_tool_prefix="none"
elf_tool_prefix="${target_cpu}-elf-"

# Base target cpu ISA configuration switch.
case "$target_cpu" in
    *aarch64* | *arm64*)
        aarch64_isa_extra="ISA_AARCH64_FLAGS             = "
        case "$aros_toolchain" in
            *llvm*)
                aarch64_isa_extra+="--target=aarch64-unknown-aros -fno-pic -fno-pie "
            ;;
        esac
        aarch64_isa_extra+="-mcmodel=large"
        ;;
    *armhf*)
        if test "$gcc_default_endian" = ""; then
            gcc_default_endian="little-endian"
        fi
        arm_isa_extra="ISA_ARM_FLAGS                 = -marm -mfloat-abi=$""(GCC_CONFIG_FLOAT_ABI) -m"$gcc_default_endian
        gcc_soft_abi=hard
        gcc_float_abi=hard
        ;;
    *arm*)
        if test "$gcc_default_endian" = ""; then
            gcc_default_endian="little-endian"
        fi
        arm_isa_extra="ISA_ARM_FLAGS                 = -marm -mfloat-abi=$""(GCC_CONFIG_FLOAT_ABI) -m"$gcc_default_endian
        gcc_soft_abi=soft
        gcc_float_abi=softfp
        ;;
    *m68k*)
        target_extra_cfg+="$export_newline""AROSROM_MODULE_CFLAGS          = $""(CFLAGS_NO_BUILTIN)$export_newline"
        m68k_isa_extra="ISA_FLOAT_FLAGS               = -msoft-float""$export_newline""ISA_MC68000_FLAGS             = -march=68000 $""(ISA_FLOAT_FLAGS)"
        m68k_020_isa_extra="ISA_MC68020_FLAGS             = -march=68020 $""(ISA_FLOAT_FLAGS)"
        m68k_030_isa_extra="ISA_MC68030_FLAGS             = -march=68030 $""(ISA_FLOAT_FLAGS)"
        m68k_040_isa_extra="ISA_MC68040_FLAGS             = -march=68040 $""(ISA_FLOAT_FLAGS)"
        m68k_060_isa_extra="ISA_MC68060_FLAGS             = -march=68060 $""(ISA_FLOAT_FLAGS)"
        m68k_ac080_isa_extra="ISA_AC68080_FLAGS             = -march=68040 $""(ISA_FLOAT_FLAGS)"
        m68k_020_ext="ISA_MC68020_EXT               :=020"
        m68k_030_ext="ISA_MC68030_EXT               :=030"
        m68k_040_ext="ISA_MC68040_EXT               :=040"
        m68k_060_ext="ISA_MC68060_EXT               :=060"
        m68k_020_cflags="ISA_MC68020_CFLAGS            ="
        m68k_030_cflags="ISA_MC68030_CFLAGS            ="
        m68k_040_cflags="ISA_MC68040_CFLAGS            ="
        m68k_060_cflags="ISA_MC68060_CFLAGS            ="
        m68k_020_cppflags="ISA_MC68020_CPPFLAGS          ="
        m68k_030_cppflags="ISA_MC68030_CPPFLAGS          ="
        m68k_040_cppflags="ISA_MC68040_CPPFLAGS          ="
        m68k_060_cppflags="ISA_MC68060_CPPFLAGS          ="
        m68k_020_ldflags="ISA_MC68020_LDFLAGS           ="
        m68k_030_ldflags="ISA_MC68030_LDFLAGS           ="
        m68k_040_ldflags="ISA_MC68040_LDFLAGS           ="
        m68k_060_ldflags="ISA_MC68060_LDFLAGS           ="
        ;;
    *x86_64* | *i?86*)
        x86_isa_extra="ISA_X86_FLAGS                 = "
        x86_64_isa_extra="ISA_X8664_FLAGS               = "
        case "$aros_toolchain" in
            *llvm*)
                x86_isa_extra+="--target=i386-unknown-aros "
                x86_64_isa_extra+="--target=x86_64-unknown-aros "
                if test "$target_cpu" = "x86_64"; then
                    target_needs_collect32=yes
                    aros_target_cpu32=i386
                fi
            ;;
            *)
                x86_isa_extra+="-m32 "
                x86_64_isa_extra+="-m64 "
            ;;
        esac
        x86_isa_extra+="-march=i486"
        x86_64_isa_extra+="-mcmodel=large"
        ;;
    *powerpc*)
        ;;
    *riscv64*)
                        if test "$gcc_default_cpu" = ""; then
            gcc_default_cpu="rva22u64"
        fi
        if test "$gcc_default_mode" = ""; then
            gcc_default_mode="lp64d"
        fi
                        riscv_isa_extra="ISA_RISCV_FLAGS                 = -march=$""(GCC_DEFAULT_CPU) -mabi=$""(GCC_DEFAULT_MODE) -mcmodel=medany"
        ;;
    *riscv*)
                if test "$gcc_default_cpu" = ""; then
            gcc_default_cpu="rv32imafdc"
        fi
        if test "$gcc_default_mode" = ""; then
            gcc_default_mode="ilp32d"
        fi
        riscv_isa_extra="ISA_RISCV_FLAGS                 = -march=$""(GCC_DEFAULT_CPU) -mabi=$""(GCC_DEFAULT_MODE) -mcmodel=medany"
        ;;
esac

# This is the target configuration switch.
case "$target_os" in
    linux*)
        HOST_WANTS_X11=yes
        HOST_WANTS_GLX=yes
        HOST_WANTS_SDL=yes
        HOST_WANTS_DBUS=yes
        HOST_WANTS_DLOPEN=yes
        aros_kernel_toolchain=$HOST_TOOLCHAIN_FAMILY
        kernel_toolchain_c_compiler=$HOST_TOOLCHAIN_CC
        kernel_toolchain_cxx_compiler=$HOST_TOOLCHAIN_CXX
        aros_target_arch="linux"
        aros_target_family="unix"
        case "$target_cpu" in
            *m68k*)
                aros_target_cpu="m68k"
                aros_object_format="m68kelf"
                aros_flavour="emulcompat"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
                aros_isa_flags="$""(ISA_MC68000_FLAGS)"
                aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
                aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
                gcc_target_cpu="m68000"
                llvm_target_cpu="M68k"
                ;;
            *i?86*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_target_cpu="i386"
                aros_object_format="elf_i386"
                aros_flavour="emulation"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
                aros_isa_flags="$""(ISA_X86_FLAGS)"
                aros_kernel_isa_flags="-m32 -march=i486"
                x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
                aros_kernel_ldflags="-Wl,-melf_i386"
                aros_nominal_depth=8
                gcc_target_cpu="i386"
                pci_hidd_target="hidd-pci-linux"
                android_tool_dir_prefix="x86"
                android_tool_prefix="i686-android-linux"
                android_ndk_arch="x86"
                case "$aros_toolchain" in
                    *llvm*)
                        orig_target_c_flags="--target=$aros_target_cpu-pc-linux-gnu"
                        orig_target_cxx_flags="--target=$aros_target_cpu-pc-linux-gnu"
                        ;;
                esac
                llvm_target_cpu="X86"
                ;;
            *x86_64*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_target_cpu="x86_64"
                aros_object_format="elf_x86_64"
                aros_flavour="emulation"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
                aros_isa_flags="$""(ISA_X8664_FLAGS))$export_newline""ISA_32_FLAGS                  = $""(strip $""(ISA_X86_FLAGS)"
                case "$aros_toolchain" in
                    *llvm*)
                        orig_target_c_flags="--target=$aros_target_cpu-pc-linux-gnu"
                        orig_target_cxx_flags="--target=$aros_target_cpu-pc-linux-gnu"
                        ;;
                    *)
                        aros_kernel_isa_extra="$""(CFLAGS_GENERAL_REGS_ONLY)"
                        ;;
                esac
                x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
                aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
                aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
                aros_nominal_depth=8
                pci_hidd_target="hidd-pci-linux"
                llvm_target_cpu="X86"

                # export flags/options needed to build 32bit
                # components
                aros_target_cpu32="i386"
                target_isa_extra="TARGET_ISA_32_CFLAGS          = $""(ISA_32_FLAGS)$export_newline""TARGET_ISA_32_CXXFLAGS        = $""(ISA_32_FLAGS)$export_newline""TARGET_ISA_32_OBJCFLAGS       = $""(TARGET_ISA_32_CFLAGS)$export_newline""TARGET_ISA_32_AFLAGS          = $""(ISA_32_FLAGS)$export_newline""TARGET_ISA_32_LDFLAGS         = $""(ISA_32_FLAGS)$export_newline"
                case "$aros_toolchain" in
                    *llvm*)
                        target_link_extra="TARGET_32_C_LIBS              = $""(strip -L$""(CROSSTOOLSDIR)/lib/clang/$""(TARGET_LLVM_VER)/lib/aros -lclang_rt.builtins-$""(AROS_TARGET_CPU32))$export_newline"
                        ;;
                esac
                ;;
            *powerpc*)
                aros_target_cpu="ppc"
                aros_object_format="elf32ppc"
                aros_flavour="emulation"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
                aros_nominal_depth=8
                gcc_target_cpu="ppc"
                llvm_target_cpu="PowerPC"
                ;;
# TODO
# Same as powerpc, but I need this for the nightly build to work again.
# Actually, the nightly should be made working with powerpc target.
# That just was too much work for the moment, another week or two.
            *ppc*)
                aros_target_cpu="ppc"
                aros_object_format="elf32ppc"
                aros_flavour="emulation"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
                aros_nominal_depth=8
                gcc_target_cpu="ppc"
                llvm_target_cpu="PowerPC"
                ;;
            *aarch64*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_target_cpu="aarch64"
                target_cpu="aarch64"
                aros_object_format="aarch64elf_aros"
                aros_flavour="emulation"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
                gcc_target_cpu="aarch64"
                aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
                aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
                aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
                aros_c_libs="$aros_c_libs -laeabi"
                gcc_default_float_abi="hard"
                kernel_tool_prefix="aarch64-linux-gnueabihf-"
                llvm_target_cpu="AArch64"
                ;;
            *armhf*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                # we intentionaly leave
                # gcc_default_cpu empty here
                # so the correct value is loaded
                # later.
                aros_target_cpu="arm"
                target_cpu="armhf"
                aros_object_format="armelf_aros"
                aros_flavour="emulation"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
                gcc_target_cpu="arm"
                aros_isa_flags="$""(ISA_ARM_FLAGS)"
                aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
                aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
                aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
                aros_c_libs="$aros_c_libs -laeabi"
                android_tool_dir_prefix="arm-linux-androideabi"
                android_tool_prefix="arm-linux-androideabi"
                android_ndk_arch="arm"
                kernel_tool_prefix="arm-linux-gnueabihf-"
                llvm_target_cpu="ARM"
                ;;
            *arm*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                # we intentionaly leave
                # gcc_default_cpu empty here
                # so the correct value is loaded
                # later.
                aros_target_cpu="arm"
                aros_object_format="armelf_aros"
                aros_flavour="emulation"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
                gcc_target_cpu="arm"
                aros_isa_flags="$""(ISA_ARM_FLAGS)"
                aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
                aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
                aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
                aros_c_libs="$aros_c_libs -laeabi -lsoftfloat"
                android_tool_dir_prefix="arm-linux-androideabi"
                android_tool_prefix="arm-linux-androideabi"
                android_ndk_arch="arm"
                kernel_tool_prefix="arm-linux-gnueabi-"
                llvm_target_cpu="ARM"
                ;;
            *)
                as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
                ;;
        esac
        case "$aros_target_variant" in
            android)

                                if test "$android_ndk_arch" = ""; then
                    as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
                fi

                aros_nominal_width=320
                aros_nominal_height=480
                if test "$aros_android_ndk" = "none"; then
                                        aros_kernel_cflags="-mandroid"
                    aros_kernel_ldflags="-mandroid"
                    CFLAGS="-mandroid"
                else
                                                            export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
                    kernel_tool_version=""
                    aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
                    aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
                    aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
                    CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
                    aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
                fi
                need_x11=no
                # Disable implicit PIC mode
                aros_config_cflags="$aros_config_cflags -fno-pic"
                kernel_tool_prefix="$android_tool_prefix-"
            ;;
        esac
    ;;

    pc)
        aros_target_arch="pc"
        aros_shared_default="no"
        target_bootloader="grub2gfx"
        aros_kernel_toolchain=$aros_toolchain
        kernel_toolchain_c_compiler=$toolchain_c_compiler
        kernel_toolchain_cxx_compiler=$toolchain_cxx_compiler
        if test "$aros_kernel_toolchain" = "llvm"; then
            aros_kernel_llvmwrapper=yes
        fi
        case "$target_cpu" in
            *i?86*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_target_cpu="i386"


                if test "$aros_object_format" = "" ; then
                    aros_object_format="elf_i386"
                fi
                aros_flavour="standalone"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
                aros_isa_flags="$""(ISA_X86_FLAGS)"
                x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
                aros_kernel_ldflags="-Wl,-melf_i386"
                aros_nominal_width=640
                aros_nominal_height=480
                gcc_target_cpu="i386"
                llvm_target_cpu="X86"
                ;;
            *x86_64*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                with_log_resource="yes"
                aros_target_cpu="x86_64"
                if test "$aros_object_format" = "" ; then
                    aros_object_format="elf_$""(AROS_TARGET_CPU)"
                fi
                aros_flavour="standalone"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
                aros_isa_flags="$""(ISA_X8664_FLAGS))$export_newline""ISA_32_FLAGS                  = $""(strip $""(ISA_X86_FLAGS)"
                                                                aros_kernel_isa_extra="$""(CFLAGS_GENERAL_REGS_ONLY)"
                x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
                aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
                aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
                aros_kernel_ldflags=""
                aros_nominal_width=640
                aros_nominal_height=480
                case "$aros_target_variant" in
                    smp)
                        ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
                    ;;
                esac
                llvm_target_cpu="X86"

                # export flags/options needed to build 32bit
                # components
                aros_target_cpu32="i386"
                target_isa_extra="TARGET_ISA_32_CFLAGS          = $""(ISA_32_FLAGS)$export_newline""TARGET_ISA_32_CXXFLAGS        = $""(ISA_32_FLAGS)$export_newline""TARGET_ISA_32_OBJCFLAGS       = $""(TARGET_ISA_32_CFLAGS)$export_newline""TARGET_ISA_32_AFLAGS          = $""(ISA_32_FLAGS)$export_newline""TARGET_ISA_32_LDFLAGS         = $""(ISA_32_FLAGS)$export_newline"
                case "$aros_toolchain" in
                    *llvm*)
                        target_link_extra="TARGET_32_C_LIBS              = $""(strip -L$""(CROSSTOOLSDIR)/lib/clang/$""(TARGET_LLVM_VER)/lib/aros -lclang_rt.builtins-$""(AROS_TARGET_CPU32))$export_newline"
                        ;;
                esac
                ;;
            *)
                as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
                ;;
        esac
        ;;

    prep)
        aros_target_arch="prep"
        aros_shared_default="no"
        aros_target_cpu="ppc"
        aros_object_format="elf32ppc"
        aros_flavour="ppcnative"
        aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
        aros_kernel_ldflags=""
        aros_nominal_width=640
        aros_nominal_height=480
        gcc_target_cpu="ppc"
        llvm_target_cpu="PowerPC"
        ;;

    freebsd*)
        PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
        HOST_WANTS_X11=yes
        HOST_WANTS_GLX=yes
        HOST_WANTS_SDL=yes
        HOST_WANTS_DBUS=yes
        HOST_WANTS_DLOPEN=yes
        aros_target_arch="freebsd"
        aros_target_family="unix"
        aros_target_cpu="i386"
        aros_flavour="emulation"
        aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
        gcc_target_cpu="i386"
        llvm_target_cpu="X86"

        aros_target_strip_flags="-x"
        ;;

    darwin*)
        HOST_WANTS_X11=yes
        HOST_WANTS_GLX=yes
        HOST_WANTS_SDL=yes
        HOST_WANTS_DBUS=yes
        HOST_WANTS_DLOPEN=yes
        aros_target_arch="darwin"
        aros_target_family="unix"
        aros_flavour="emulation"
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking Where to find the Darwin SDK" >&5
printf %s "checking Where to find the Darwin SDK... " >&6; }
        darwin_sdk_path=`xcrun --show-sdk-path`
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $darwin_sdk_path" >&5
printf '%s\n' "$darwin_sdk_path" >&6; }
        aros_kernel_includes="-isystem $darwin_sdk_path/usr/include"
        case "$target_cpu" in
            *i?86*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_ios_platform="iPhoneSimulator"
                aros_target_cpu="i386"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
                aros_isa_flags="$""(ISA_X86_FLAGS)"
                aros_kernel_isa_flags="-m32"
                aros_kernel_ldflags=""
                aros_macosx_version="10.4"
                aros_nominal_depth=8
                gcc_target_cpu="i386"
                aros_object_format="elf_i386"
                aros_kernel_ar_flags="-cr"
                aros_target_strip_flags="-x"
                kernel_tool_flags=""
                llvm_target_cpu="X86"
                ;;
            *x86_64*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_target_cpu="x86_64"
                aros_object_format="elf_x86_64"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
                aros_isa_flags="$""(ISA_X8664_FLAGS))$export_newline""ISA_32_FLAGS                  = $""(strip $""(ISA_X86_FLAGS)"
                aros_macosx_version="10.6"
                aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
                aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
                if test "$aros_host_cpu" = "aarch64" ; then
                    aros_kernel_isa_flags="-arch x86_64"
                    aros_kernel_ldflags="-arch x86_64"
                else
                    aros_kernel_isa_flags="-m64"
                    aros_kernel_ldflags="-m64"
                fi
                aros_nominal_depth=8
                aros_kernel_rs="$toolchain_ar"
                aros_kernel_ar_flags="-cr"
                aros_kernel_ld="$toolchain_ld"
                aros_kernel_as="$toolchain_as"
                aros_kernel_ranlib="ranlib"
                aros_kernel_nm="nm"
                aros_kernel_strip="strip"
                kernel_tool_prefix="i686-apple-darwin10-"
                llvm_target_cpu="X86"
                aros_target_cpu32="i386"
                target_isa_extra="TARGET_ISA_32_CFLAGS          = $""(ISA_32_FLAGS)$export_newline""TARGET_ISA_32_CXXFLAGS        = $""(ISA_32_FLAGS)$export_newline""TARGET_ISA_32_OBJCFLAGS       = $""(TARGET_ISA_32_CFLAGS)$export_newline""TARGET_ISA_32_AFLAGS          = $""(ISA_32_FLAGS)$export_newline""TARGET_ISA_32_LDFLAGS         = $""(ISA_32_FLAGS)$export_newline"
                case "$aros_toolchain" in
                    *llvm*)
                        target_link_extra="TARGET_32_C_LIBS              = $""(strip -L$""(CROSSTOOLSDIR)/lib/clang/$""(TARGET_LLVM_VER)/lib/aros -lclang_rt.builtins-$""(AROS_TARGET_CPU32))$export_newline"
                        ;;
                esac
                ;;
            *ppc*)
                aros_target_cpu="ppc"
                aros_object_format="elf32ppc"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
                aros_kernel_ldflags=""
                aros_macosx_version="10.0"
                aros_nominal_depth=8
                gcc_target_cpu="ppc"
                aros_kernel_rs="$toolchain_ar"
                aros_kernel_ar_flags="-cr"
                aros_kernel_ld="$toolchain_ld -arch ppc"
                aros_kernel_as="$toolchain_as -arch ppc"
                aros_kernel_ranlib="ranlib -arch ppc"
                aros_kernel_nm="nm -arch ppc"
                aros_kernel_strip="strip -arch ppc"
                kernel_tool_prefix="powerpc-apple-darwin10-"
                llvm_target_cpu="PowerPC"
                ;;
            *aarch64* | *arm64*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                                                PLATFORM_EXECWXSEG="#define __AROSPLATFORM_WXSEG__"
                aros_target_cpu="aarch64"
                aros_object_format="aarch64elf"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Daarch64"
                aros_isa_flags="$""(ISA_AARCH64_FLAGS)"
                aros_macosx_version="11.0"
                                                aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP) -D__arm64__"
                aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP) -D__arm64__"
                                                                                aros_config_ldflags="$aros_config_ldflags -lstdc.static"
                default_llvm_version="20.1.0"
                aros_kernel_isa_flags="-arch arm64"
                aros_kernel_ldflags="-arch arm64"
                aros_nominal_depth=8
                aros_kernel_rs="$toolchain_ar"
                aros_kernel_ar_flags="-cr"
                aros_kernel_ld="$toolchain_ld -arch arm64"
                aros_kernel_as="$toolchain_as -arch arm64"
                aros_kernel_ranlib="ranlib"
                aros_kernel_nm="nm"
                aros_kernel_strip="strip"
                kernel_tool_prefix=""
                llvm_target_cpu="AArch64"
                ;;
            *arm*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_ios_platform="iPhoneOS"
                aros_target_cpu="arm"
                aros_object_format="armelf_aros"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
                aros_c_libs="$aros_c_libs -laeabi"
                aros_nominal_depth=8
                gcc_target_cpu="arm"
                aros_kernel_rs="$toolchain_ar"
                aros_kernel_ar_flags="-cr"
                aros_kernel_ld="$toolchain_ld -arch arm"
                aros_kernel_ranlib="ranlib -arch arm"
                kernel_tool_prefix="arm-apple-darwin10-"
                export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
                llvm_target_cpu="ARM"
                ;;
            *)
                as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
                ;;
        esac
        case "$aros_target_variant" in
            ios)
                make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS  := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
                aros_ios_version="3.0"
                aros_nominal_width=320
                aros_nominal_height=480
                aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
                target_extra_cfg+="$export_newline""# Apple iOS specific$export_newline""IOS_PLATFORM            := $aros_ios_platform$export_newline""IOS_OS_VERSION          := $aros_ios_version$export_newline""IOS_SDK_PATH            := $aros_ios_sdk$export_newline"
                kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
                aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
                need_x11=no
                # This is here because it may depend on iOS or SDK version
                aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
                aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
                aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
            ;;
            *)
                case "$host_os" in
                    darwin*)
                        aros_kernel_ldflags="$aros_host_baseldflags $aros_kernel_ldflags"
                    ;;
                esac
                aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
                aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
            ;;
        esac
        ;;

    dragonfly*)
        HOST_WANTS_X11=yes
        HOST_WANTS_GLX=yes
        HOST_WANTS_SDL=yes
        HOST_WANTS_DBUS=yes
        HOST_WANTS_DLOPEN=yes
        aros_target_arch="dragonfly"
        aros_target_family="unix"
        aros_flavour="emulation"
        case "$target_cpu" in
            *i?86*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_target_cpu="i386"
                aros_object_format="elf_i386"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
                aros_isa_flags="$""(ISA_X86_FLAGS)"
                llvm_target_cpu="X86"
                ;;
            *x86_64*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
                aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
                aros_target_cpu="x86_64"
                aros_object_format="elf_x86_64"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
                aros_isa_flags="$""(ISA_X8664_FLAGS)"
                llvm_target_cpu="X86"
                ;;
            *)
                as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
                ;;
        esac
        ;;

    netbsd*)
        HOST_WANTS_X11=yes
        HOST_WANTS_GLX=yes
        HOST_WANTS_SDL=yes
        HOST_WANTS_DBUS=yes
        HOST_WANTS_DLOPEN=yes
        aros_target_arch="netbsd"
        aros_target_family="unix"
        case "$target_cpu" in
            *m68k*)
                aros_target_cpu="m68k"
                aros_object_format="m68kelf"
                aros_flavour="emulcompat"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
                aros_isa_flags="$""(ISA_MC68000_FLAGS)"
                gcc_target_cpu="m68000"
                llvm_target_cpu="M68k"
                ;;
            *i?86*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_target_cpu="i386"
                aros_object_format="elf_i386"
                aros_flavour="emulation"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
                aros_isa_flags="$""(ISA_X86_FLAGS)"
                aros_nominal_depth=8
                gcc_target_cpu="i386"
                llvm_target_cpu="X86"
                ;;
            *)
                as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
                ;;
        esac
        aros_target_genmap="-Wl,-M -Xlinker >"
        aros_flavour="emulation"
        aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
        ;;

    openbsd*)
        HOST_WANTS_X11=yes
        HOST_WANTS_GLX=yes
        HOST_WANTS_SDL=yes
        HOST_WANTS_DBUS=yes
        HOST_WANTS_DLOPEN=yes
        aros_target_arch="openbsd"
        aros_target_family="unix"
        case "$target_cpu" in
            *i?86*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_target_cpu="i386"
                aros_object_format="elf_i386"
                aros_flavour="emulation"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
                aros_isa_flags="$""(ISA_X86_FLAGS)"
                gcc_target_cpu="i386"
                llvm_target_cpu="X86"
                ;;
            *)
                as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
                ;;
        esac
        aros_target_genmap="-Wl,-M -Xlinker >"
        aros_target_nm_flags="-u"
        aros_flavour="emulation"
        ;;

    solaris*)
        aros_target_arch="solaris"
        aros_target_family="unix"
        case "$target_cpu" in
           *i?86*)
               PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
               aros_target_cpu="i386"
               aros_object_format="elf_i386"
               aros_flavour="emulation"
               aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
               aros_isa_flags="$""(ISA_X86_FLAGS)"
               aros_nominal_depth=8
               gcc_target_cpu="i386"
                llvm_target_cpu="X86"
               ;;
            *sparc*)
                aros_target_cpu="sparc"
                aros_object_format="elf_sparc"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
                gcc_target_cpu="sparc"
                llvm_target_cpu="SPARC"
                ;;
            *)
                as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
                ;;
        esac
        aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
        aros_flavour="emulation"
        ;;

    morphos*)
        aros_target_arch="morphos"
        aros_shared_default="no"
        aros_target_cpu="ppc"
        aros_object_format="elf_ppc"
        aros_flavour="nativecompat"
        aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
        gcc_target_cpu="ppc"
        llvm_target_cpu="PowerPC"
        ;;

    sam440)
        aros_target_arch="sam440"
        aros_shared_default="no"
        aros_target_cpu="ppc"
        aros_object_format="elf32ppc"
        aros_flavour="ppcnative"
        aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
        aros_kernel_ldflags=""
        aros_nominal_width=1024
        aros_nominal_height=768
        aros_nominal_depth=24
        aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
        aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
        aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
        gcc_target_cpu="powerpc"
        llvm_target_cpu="PowerPC"
        ;;

    efika)
        aros_target_arch="efika"
        aros_shared_default="no"
        aros_target_cpu="arm"
        aros_object_format="armelf_aros"
        aros_flavour="standalone"
        aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
        aros_kernel_ldflags=""
        aros_nominal_width=1024
        aros_nominal_height=600
        aros_c_libs="$aros_c_libs -laeabi"
        aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
        aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
        aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
        aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
        if test "$optimization" = "default"; then
            optimization_level=$toolchain_size_opt_lvl
        fi
        case "$target_cpu" in
            *armhf*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                gcc_default_float_abi="hard"
                gcc_float_fpu="vfpv3"
                gcc_soft_fpu=$gcc_float_fpu
                gcc_default_fpu="$""(GCC_FLOAT_FPU)"

                target_cpu=arm
                aros_target_cpu=arm
                llvm_target_cpu="ARM"
                ;;
            *arm*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                gcc_default_float_abi="soft"
                gcc_float_fpu="vfpv3"
                gcc_soft_fpu=
                gcc_default_fpu=
                llvm_target_cpu="ARM"
                ;;
            *)
                as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
                ;;
        esac
        ;;

    chrp)
        aros_target_arch="chrp"
        aros_shared_default="no"
        aros_target_cpu="ppc"
        aros_object_format="elf32ppc"
        aros_flavour="ppcnative"
        aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
        aros_kernel_ldflags=""
        aros_nominal_width=640
        aros_nominal_height=480
        aros_isa_flags="$aros_isa_flags -mno-toc"
        aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
        aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
        gcc_target_cpu="powerpc"
        llvm_target_cpu="PowerPC"
        case "$aros_target_variant" in
            efika)
                aros_isa_flags="$aros_isa_flags -mcpu=603e"
                aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
            ;;
        esac
        ;;

    r*pi)
        PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
        aros_flavour="standalone"
        aros_target_arch="raspi"

        aros_shared_default="no"

        aros_target_mkdep="$aros_target_mkdep -D__GNUC__"

        aros_kernel_toolchain=$aros_toolchain
        kernel_toolchain_c_compiler=$toolchain_c_compiler
        kernel_toolchain_cxx_compiler=$toolchain_cxx_compiler
        if test "$aros_kernel_toolchain" = "llvm"; then
            aros_kernel_llvmwrapper=yes
        fi

        case "$target_cpu" in
            *aarch64*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_target_cpu="aarch64"
                gcc_default_cpu="armv8-a+crc+simd"
                gcc_default_cpu_tune="cortex-a53"
                gcc_default_fpu="neon-fp-armv8"
                aros_object_format="aarch64elf_aros"
                llvm_target_cpu="AArch64"
                aros_isa_flags="$""(ISA_AARCH64_FLAGS)"
                ;;
            *armhf*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                if test "$aros_object_format" = "" ; then
                    aros_object_format="armelf_aros"
                fi
                aros_target_cpu="arm"
                target_cpu="armhf"

                gcc_float_fpu="neon-vfpv4"
                gcc_soft_fpu=$gcc_float_fpu
                gcc_default_fpu="$""(GCC_FLOAT_FPU)"
                llvm_target_cpu="ARM"

                aros_isa_flags="$""(ISA_ARM_FLAGS)"
                aros_config_cflags="$aros_config_cflags"
                aros_config_cxxflags="$aros_config_cxxflags"
                aros_config_aflags="$aros_config_aflags"
                aros_kernel_cflags="$aros_kernel_cflags"
                aros_target_mkdep="$aros_target_mkdep -Darm"
                aros_c_libs="$aros_c_libs -laeabi"
                ;;
            *arm*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                # we intentionaly leave
                # gcc_default_cpu empty here
                # so the correct value is loaded
                # later.
                if test "$aros_object_format" = "" ; then
                    aros_object_format="armelf_aros"
                fi
                aros_target_cpu="arm"

                gcc_float_fpu="neon-vfpv4"
                gcc_soft_fpu=""
                gcc_default_fpu=
                llvm_target_cpu="ARM"

                aros_isa_flags="$""(ISA_ARM_FLAGS)"
                aros_config_cflags="$aros_config_cflags"
                aros_config_cxxflags="$aros_config_cxxflags"
                aros_config_aflags="$aros_config_aflags"
                aros_kernel_cflags="$aros_kernel_cflags"
                aros_target_mkdep="$aros_target_mkdep -Darm"
                aros_c_libs="$aros_c_libs -laeabi -lsoftfloat"
                ;;
            *)
                as_fn_error $? "\"Unsupported CPU for RasPi $target_cpu\"" "$LINENO" 5
                ;;
        esac

        aros_config_cflags="$aros_config_cflags"
        aros_config_cxxflags="$aros_config_cxxflags"
        aros_config_aflags="$aros_config_aflags"
        aros_kernel_cflags="$aros_kernel_cflags"

        case "$aros_target_variant" in
            smp)
                ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
            ;;
        esac
        ;;

    opensbi)
        aros_flavour="standalone"
        aros_target_arch="opensbi"
        aros_isa_flags="$""(ISA_RISCV_FLAGS)"
        aros_shared_default="no"
        llvm_target_cpu="RISCV"
        aros_kernel_toolchain=$aros_toolchain
        kernel_toolchain_c_compiler=$toolchain_c_compiler
        kernel_toolchain_cxx_compiler=$toolchain_cxx_compiler
        if test "$aros_kernel_toolchain" = "llvm"; then
            aros_kernel_llvmwrapper=yes
        fi
        case "$target_cpu" in
                                    *riscv64*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_target_cpu="riscv64"
                aros_object_format="riscv64elf_aros"
                ;;
            *riscv*)
                aros_target_cpu="riscv"
                aros_object_format="riscvelf_aros"
                ;;
            *)
                as_fn_error $? "\"Unsupported CPU '$target_cpu' for OpenSBI\"" "$LINENO" 5
                ;;
        esac
        ;;

    stm32f7_discovery)
        aros_flavour="standalone"
        aros_target_arch="stm32f7_discovery"
        aros_target_cpu="arm"
        aros_target_cpu_mode="thumb2"
        aros_object_format="armelf_aros"
        aros_shared_default="no"

        gcc_default_cpu="armv7e-m"
        gcc_default_cpu_tune="cortex-m7"

        gcc_default_float_abi="hard"
        gcc_float_fpu="fpv5-sp-d16"
        gcc_soft_fpu=$gcc_float_fpu
        gcc_default_fpu="$""(GCC_FLOAT_FPU)"
        llvm_target_cpu="ARM"

        aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
        ;;

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

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


        host_extra_cfg+="$export_newline""GZIP                          := $GZIP"
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if we should compress EBF executables" >&5
printf %s "checking if we should compress EBF executables... " >&6; }
        # Check whether --enable-ebf-packed-exes was given.
if test ${enable_ebf_packed_exes+y}
then :
  enableval=$enable_ebf_packed_exes; aros_pack_exes=$enableval
else case e in #(
  e) aros_pack_exes="no" ;;
esac
fi

        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_pack_exes" >&5
printf '%s\n' "$aros_pack_exes" >&6; }
        if test "$aros_pack_exes" = "yes" ; then
                          { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if Python's crcmod is installed" >&5
printf %s "checking if Python's crcmod is installed... " >&6; }

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for Python 'crcmod' library" >&5
printf %s "checking for Python 'crcmod' library... " >&6; }
if test ${pc_cv_python_module_crcmod+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_ext=py
ac_compile='chmod +x conftest.$ac_ext >&5'
ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
     if test "$cross_compiling" = yes
then :
  { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See 'config.log' for more details" "$LINENO" 5; }
else case e in #(
  e) cat > conftest.$ac_ext <<_ACEOF
#!$PYTHON
import sys
try:
    import crcmod
except:
    sys.exit(1)
else:
    sys.exit(0)


_ACEOF
if ac_fn_py_try_run "$LINENO"
then :
  pc_cv_python_module_crcmod="yes"
else case e in #(
  e) pc_cv_python_module_crcmod="no" ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

     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
     ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_module_crcmod" >&5
printf '%s\n' "$pc_cv_python_module_crcmod" >&6; }
if test "$pc_cv_python_module_crcmod" = "no"
then :
  { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "failed to detect crcmod
See 'config.log' for more details" "$LINENO" 5; }
fi

             aros_target_options="$aros_target_options$export_newline""EBFPACKEDEXES                 := yes$export_newline"
        fi
        aros_elf_translate="$""(ELF2HUNK)"
        make_extra_commands="$make_extra_commands$export_newline""ELF2HUNK	:= $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
        aros_target_arch="amiga"
        aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
        aros_shared_default="no"
        if test "$aros_target_variant" = "classic" ; then
            CLASSIC_VARIANT_DEFINE="#define AROS_VARIANT_CLASSIC"
        fi

        case "$target_cpu" in
            *m68k*)
                # Check whether --enable-amigaos_compliance was given.
if test ${enable_amigaos_compliance+y}
then :
  enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
fi

                aros_enable_mmu=no
                aros_target_cpu="m68k"
                aros_object_format="m68kelf"
                aros_flavour="standcompat"
                gcc_target_cpu="m68000"
                aros_isa_flags="$""(ISA_MC"$aros_gcc_cpu"_FLAGS)"
                aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
                aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
                aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
                # C++ code is userspace (ports using libstdc++), which needs a hosted
                # environment - newer libstdc++ omits malloc/free/etc. from <cstdlib>
                # under -ffreestanding. Keep -ffreestanding for C (OS core) only.
                aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
                if test "$optimization" = "default"; then
                    optimization_level=$toolchain_size_opt_lvl
                fi
                aros_config_aflags="$aros_config_aflags"
                aros_target_strip_flags="-R.comment --strip-debug"
                aros_nominal_width=640
                aros_nominal_height=256
                aros_nominal_depth=2
                llvm_target_cpu="M68k"
                ;;
            *ppc*)
                aros_cpu="ppc"
                aros_flavour="native"
                gcc_target_cpu="ppc"
                llvm_target_cpu="PowerPC"
                ;;
            *)
                as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
                ;;
        esac
        ;;

    mingw*)
        aros_target_arch="mingw32"
        aros_shared_default="no"
        aros_flavour="emulation"
        aros_shared_cflags=""
        need_crosstools="yes"
        need_dlopen="no"
        rescomp="windres"
        case "$target_cpu" in
            *i?86*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_target_cpu="i386"
                aros_object_format="elf_i386"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
                aros_isa_flags="$""(ISA_X86_FLAGS)"
                aros_nominal_depth=8
                gcc_target_cpu="i386"
                llvm_target_cpu="X86"

                kernel_tool_prefix="i686-w64-mingw32-"
                ;;
            *x86_64*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_target_cpu="x86_64"
                aros_object_format="elf_x86_64"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
                aros_isa_flags="$""(ISA_X8664_FLAGS)"
                aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
                aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
                aros_nominal_depth=8
                kernel_tool_prefix="x86_64-w64-mingw32-"
                llvm_target_cpu="X86"
                ;;
            *arm*)
                PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
                aros_target_cpu="arm"
                aros_object_format="armelf_aros"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
                aros_c_libs="$aros_c_libs -laeabi -lsoftfloat"
                aros_nominal_depth=8
                gcc_target_cpu="arm"
                gcc_default_float_abi="soft"
                kernel_tool_prefix="arm-mingw32ce-"
                aros_nominal_width=160
                aros_nominal_height=160
                llvm_target_cpu="ARM"
                ;;
            *)
                as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
                ;;
        esac
        if test $host_os = "cygwin"; then
                aros_kernel_cflags="-mno-cygwin"
        fi
    ;;
    pp*)
        aros_target_arch="pp"
        aros_shared_default="no"
        case "$target_cpu" in
            *m68k*)
                aros_target_cpu="m68k"
                aros_object_format="m68kelf"
                aros_flavour="palmnative"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
                aros_isa_flags="$""(ISA_MC68000_FLAGS)"
                aros_nominal_width=160
                aros_nominal_height=160
                aros_nominal_depth=1
                aros_target_ar_flags="$aros_target_ar_flags""u"
                aros_c_libs="$aros_c_libs -lgcc1"
                aros_shared_default=no
                aros_shared_cflags="-fpic"
                aros_shared_aflags=""
                aros_shared_ldflags="-Wl,-rpath,./lib -shared"
                aros_kernel_ldflags="-Wl,-rpath,./lib"
                aros_debug_cppflags="$aros_messages_debug"
                aros_debug_cflags="$aros_symbols_debug"
                aros_debug_aflags=""
                aros_debug_ldflags="$aros_symbols_debug"
                aros_mungwall_debug="0"
                aros_modules_debug="0"
                gcc_target_cpu="m68000"
                llvm_target_cpu="M68k"
                ignore_undefined_symbols="-ius"
                ;;
           *)
                as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
                ;;
        esac
        ;;

    mac*)
        aros_target_arch="mac"
        aros_shared_default="no"
        case "$target_cpu" in
            *m68k*)
                aros_target_cpu="m68k"
                aros_object_format="m68kelf"
                aros_flavour="mac68knative"
                aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
                aros_isa_flags="$""(ISA_MC68000_FLAGS)"
                aros_nominal_width=512
                aros_nominal_height=384
                aros_nominal_depth=8
                aros_target_ar_flags="$aros_target_ar_flags""u"
                aros_c_libs="$aros_c_libs -lgcc1"
                aros_shared_default=no
                aros_shared_cflags="-fpic"
                aros_shared_aflags=""
                aros_shared_ldflags="-Wl,-rpath,./lib -shared"
                aros_kernel_ldflags="-Wl,-rpath,./lib"
                aros_debug_cppflags="$aros_messages_debug"
                aros_debug_cflags="$aros_symbols_debug"
                aros_debug_aflags=""
                aros_debug_ldflags="$aros_symbols_debug"
                aros_mungwall_debug="0"
                aros_modules_debug="0"
                gcc_target_cpu="m68000"
                llvm_target_cpu="M68k"
                ignore_undefined_symbols="-ius"
                ;;
           *)
                as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
                ;;
        esac
        ;;

    *)
        as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
        ;;
esac

#-----------------------------------------------------------------------------
crosstools_guess="yes"
aros_target_toolchain="no"
aros_kernel_sysroot=""

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain family" >&5
printf %s "checking Kernel toolchain family... " >&6; }
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_toolchain" >&5
printf '%s\n' "$aros_kernel_toolchain" >&6; }
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
printf %s "checking Kernel toolchain prefix... " >&6; }

# Check whether --with-kernel-toolchain-prefix was given.
if test ${with_kernel_toolchain_prefix+y}
then :
  withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
fi

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

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
printf %s "checking ELF toolchain prefix... " >&6; }

# Check whether --with-elf-toolchain-prefix was given.
if test ${with_elf_toolchain_prefix+y}
then :
  withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
                                                 crosstools_guess="no"
fi

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

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
printf %s "checking AROS toolchain prefix... " >&6; }

# Check whether --with-aros-toolchain was given.
if test ${with_aros_toolchain+y}
then :
  withval=$with_aros_toolchain; aros_tool_prefix="$withval"
                crosstools_guess="no"
fi

if test "$aros_tool_prefix" = "yes" ; then
    if test "$aros_toolchain" = "gnu" ; then
        aros_tool_prefix=$aros_target_cpu-aros-
    else
        if test "$aros_toolchain" = "llvm" ; then
            aros_tool_prefix="none"
        fi
    fi
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
printf '%s\n' "$aros_tool_prefix" >&6; }

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

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


if test "$NASM" != "no"; then
    have_nasm=yes
else
    NASM=
    have_nasm=no
                case "$aros_target_cpu" in
        i386|x86_64)
            CONFIG_WARNINGS="${CONFIG_WARNINGS}  * nasm not found - AVIF decoding in heic.datatype will not be SIMD accelerated
"
            ;;
    esac
fi

case "$target_bootloader" in
    grub2*)
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which version of grub2 to build" >&5
printf %s "checking which version of grub2 to build... " >&6; }

# Check whether --with-grub2-version was given.
if test ${with_grub2_version+y}
then :
  withval=$with_grub2_version; use_grub2_version="$withval"
else case e in #(
  e) use_grub2_version="" ;;
esac
fi

        if test "$use_grub2_version" = ""; then
                target_grub2_version="$default_grub2_version"
        else
            target_grub2_version="$use_grub2_version"
        fi
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $target_grub2_version" >&5
printf '%s\n' "$target_grub2_version" >&6; }
        if test "$target_bootloader" = "grub2gfx"; then
            { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which grub2 splash screen to use" >&5
printf %s "checking which grub2 splash screen to use... " >&6; }

# Check whether --with-grub2-splash was given.
if test ${with_grub2_splash+y}
then :
  withval=$with_grub2_splash; grub2_splash="$withval"
else case e in #(
  e) grub2_splash="" ;;
esac
fi

            if test "x$grub2_splash" = "x"; then
                grub2_splash="orig"
            fi
            { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $grub2_splash" >&5
printf '%s\n' "$grub2_splash" >&6; }

        fi

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

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

pkg_failed=no
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
printf %s "checking for liblzma... " >&6; }

if test -n "$LZMA_CFLAGS"; then
    pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
  ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
  ac_status=$?
  printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$LZMA_LIBS"; then
    pkg_cv_LZMA_LIBS="$LZMA_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
  ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
  ac_status=$?
  printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



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

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
                LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
        else
                LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
        fi
        # Put the nasty error message in config.log where it belongs
        echo "$LZMA_PKG_ERRORS" >&5


            have_lzma=no
            CONFIG_WARNINGS="${CONFIG_WARNINGS}  * liblzma not found - the grub2 boot image will not be LZMA compressed
"

elif test $pkg_failed = untried; then
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf '%s\n' "no" >&6; }

            have_lzma=no
            CONFIG_WARNINGS="${CONFIG_WARNINGS}  * liblzma not found - the grub2 boot image will not be LZMA compressed
"

else
        LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
        LZMA_LIBS=$pkg_cv_LZMA_LIBS
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf '%s\n' "yes" >&6; }

            have_lzma=yes

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


fi
        else
          have_lzma=no
        fi

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

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


        if test "$XORRISO" != "no"; then
            have_xorriso=yes
        else
            XORRISO=
        fi

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

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


        if test "$MTOOLS" != "no"; then
            have_mtools=yes
        else
            MTOOLS=
        fi

        if test "x-$have_xorriso" != "x-yes" -o "x-$have_mtools" != "x-yes" ; then
            CONFIG_WARNINGS="${CONFIG_WARNINGS}  * xorriso and/or mtools not found - the boot ISO will not have EFI boot support
"
        fi

               for ac_header in libelf.h
do :
  ac_fn_c_check_header_compile "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
if test "x$ac_cv_header_libelf_h" = xyes
then :
  printf '%s\n' "#define HAVE_LIBELF_H 1" >>confdefs.h
 have_libelf_h=yes
else case e in #(
  e) have_libelf_h=no ;;
esac
fi

done

        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for elf_version in -lelf" >&5
printf %s "checking for elf_version in -lelf... " >&6; }
if test ${ac_cv_lib_elf_elf_version+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lelf  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char elf_version (void);
int
main (void)
{
return elf_version ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_elf_elf_version=yes
else case e in #(
  e) ac_cv_lib_elf_elf_version=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_version" >&5
printf '%s\n' "$ac_cv_lib_elf_elf_version" >&6; }
if test "x$ac_cv_lib_elf_elf_version" = xyes
then :
  have_libelf_lib=yes
else case e in #(
  e) have_libelf_lib=no ;;
esac
fi


        if test "x-$have_libelf_h" = "x-yes" -a "x-$have_libelf_lib" = "x-yes" ; then
            have_libelf=yes
        else
            CONFIG_WARNINGS="${CONFIG_WARNINGS}  * libelf not found - EFI shim (secure boot) support will not be built for grub2
"
        fi
        ;;

    *)
        have_libelf=no
        have_lzma=no
        ;;
esac


#-----------------------------------------------------------------------------
#   Checking if we should build crosstools..
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
printf %s "checking whether to build crosstools... " >&6; }
# Check whether --enable-crosstools was given.
if test ${enable_crosstools+y}
then :
  enableval=$enable_crosstools; crosstools="$enableval"
else case e in #(
  e) crosstools="$crosstools_guess" ;;
esac
fi

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

if test "${crosstools}" = "yes"; then
    if test "${crosstools_guess}" = "no"; then
        as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
    fi
fi

if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
    aros_target_toolchain="yes"
fi

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
printf %s "checking where to install the crosstools binaries... " >&6; }

# Check whether --with-aros-toolchain-install was given.
if test ${with_aros_toolchain_install+y}
then :
  withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
fi

if test "x$aros_toolchain_install" = "x"; then
    AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
else
    AROS_CROSSTOOLSDIR="$aros_toolchain_install"
    PATH="$AROS_CROSSTOOLSDIR:$PATH"
    if test "$crosstools_guess" = "no" ; then
        if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
            aros_kernel_sysroot="$""(TARGET_SYSROOT)"
        fi
    fi
fi
if test "$aros_toolchain" = "gnu" ; then
    aros_toolchain_dir=$AROS_CROSSTOOLSDIR
else
    if test "$aros_toolchain" = "llvm" ; then
        aros_toolchain_dir=$AROS_CROSSTOOLSDIR/bin/
    fi
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
printf '%s\n' "$AROS_CROSSTOOLSDIR" >&6; }

#-----------------------------------------------------------------------------
if test "$aros_toolchain" = "gnu" ; then
    if test -f "${srcdir}/arch/${aros_target_cpu}-all/binutils_def"; then
        default_binutils_version=$(cat "${srcdir}/arch/${aros_target_cpu}-all/binutils_def")
    else
        default_binutils_version=$(cat "${srcdir}/config/binutils_def")
    fi
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
printf %s "checking what specific target binutils version to use... " >&6; }
fi

# Check whether --with-binutils-version was given.
if test ${with_binutils_version+y}
then :
  withval=$with_binutils_version; use_binutils_version="$withval"
else case e in #(
  e) use_binutils_version="" ;;
esac
fi

if test "$use_binutils_version" = ""; then
        target_binutils_version="$default_binutils_version"
else
    target_binutils_version="$use_binutils_version"
fi
riscv_min_gcc="16.2.0"
riscv_min_binutils="2.47"
case "$aros_target_cpu" in
    riscv*)
        if test "$(printf '%s\n' "$riscv_min_binutils" "$target_binutils_version" | sort -V | head -n1)" != "$riscv_min_binutils" ; then
            { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $aros_target_cpu needs binutils $riscv_min_binutils, raising it from $target_binutils_version" >&5
printf '%s\n' "$as_me: $aros_target_cpu needs binutils $riscv_min_binutils, raising it from $target_binutils_version" >&6;}
            target_binutils_version="$riscv_min_binutils"
        fi
        ;;
esac

if test "$aros_toolchain" = "gnu" ; then
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
printf '%s\n' "$target_binutils_version" >&6; }
fi


# Helper to identify gcc version


#-----------------------------------------------------------------------------
if test "$aros_toolchain" = "gnu" ; then
    if test -f "${srcdir}/arch/${aros_target_cpu}-all/gcc_def"; then
        default_gcc_version=$(cat "${srcdir}/arch/${aros_target_cpu}-all/gcc_def")
    else
        default_gcc_version=$(cat "${srcdir}/config/gcc_def")
    fi
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
printf %s "checking what specific target gcc version to use... " >&6; }
fi

# Check whether --with-gcc-version was given.
if test ${with_gcc_version+y}
then :
  withval=$with_gcc_version; use_gcc_version="$withval"
else case e in #(
  e) use_gcc_version="" ;;
esac
fi

if test "$use_gcc_version" = ""; then
    if test "${crosstools}" = "no" -a "$aros_toolchain" = "gnu"; then
      if test "x$aros_toolchain_install" != "x"; then

  target_gcc_version=""
  if test "$aros_tool_prefix" = "none"; then
    cross_gcc_prefix=
  else
    cross_gcc_prefix=$aros_tool_prefix
  fi
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
printf %s "checking gcc version... " >&6; }
if test ${ax_cv_gcc_version+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    ax_cv_gcc_version="`$aros_toolchain_dir/${cross_gcc_prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts} -dumpversion`"
    if test "x$ax_cv_gcc_version" = "x"
then :

      ax_cv_gcc_version=""

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


      fi
    fi
    if test "$use_gcc_version" = ""; then
        target_gcc_version="$default_gcc_version"
    fi
else
    target_gcc_version="$use_gcc_version"
fi
case "$aros_target_cpu" in
    riscv*)
        if test "$(printf '%s\n' "$riscv_min_gcc" "$target_gcc_version" | sort -V | head -n1)" != "$riscv_min_gcc" ; then
            { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $aros_target_cpu needs gcc $riscv_min_gcc, raising it from $target_gcc_version" >&5
printf '%s\n' "$as_me: $aros_target_cpu needs gcc $riscv_min_gcc, raising it from $target_gcc_version" >&6;}
            target_gcc_version="$riscv_min_gcc"
        fi
        ;;
esac

jpegxl_toolchainsupport=""
if test "$aros_toolchain" = "gnu" ; then
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
printf '%s\n' "$target_gcc_version" >&6; }

    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
printf %s "checking version string style... " >&6; }
    if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
printf '%s\n' "snapshot" >&6; }
        GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'-' -f1)
        GCC_VERSION_MINOR=-1
        GCC_VERSION_PATCH=-1
    else
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: release" >&5
printf '%s\n' "release" >&6; }
        GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
        GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
        GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
    fi

    # libjxl (used by jpegxl.datatype) requires gcc >= 8
    if test "$GCC_VERSION_MAJOR" -lt "8" ; then
        jpegxl_toolchainsupport="no"
    fi

    gcc_fix_bitfields="false"
    if test "$GCC_VERSION_MAJOR" -gt "4" ; then
        gcc_fix_bitfields="true"
    else
        if test "$GCC_VERSION_MAJOR" -gt "3" ; then
            if test "$GCC_VERSION_MINOR" -gt "6" ; then
                gcc_fix_bitfields="true"
            fi
        fi
    fi

    if test "$GCC_VERSION_MAJOR" -lt "10" ; then
        aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_COMMON)"
    fi

    case "$aros_target_cpu" in
    *arm*)
        # from gcc 8, <arm arch><features> (e.g. armv7-a+fp) is used to specify
        # hard-float, etc.
        if test "$gcc_default_cpu" = ""; then
            default_arm_cpu=armv7-a
        else
            default_arm_cpu=$gcc_default_cpu
        fi









  if test "$GCC_VERSION_MAJOR" -lt "10"; then
    if test "$GCC_VERSION_MAJOR" -lt "8"; then
      gcc_soft_cpu="$default_arm_cpu"
      gcc_float_cpu="$default_arm_cpu"
    else
      gcc_soft_cpu="$default_arm_cpu+nofp"
      gcc_float_cpu="$default_arm_cpu+fp"
    fi
    aros_config_cflags="$aros_config_cflags ${CFLAGS_NO_COMMON}"
  else
    gcc_soft_cpu="$default_arm_cpu+nofp"
    gcc_float_cpu="$default_arm_cpu+fp"
  fi








        ;;
    *x86_64* | *i?86*)
        if test "$gcc_fix_bitfields" = "true" ; then
            x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
            x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
        fi
        ;;
    esac
elif test "$aros_toolchain" = "llvm" ; then
    case "$aros_target_cpu" in
    *arm*)
        # clang accepts the modern <arm arch><features> form (armv7-a+fp/+nofp)
        if test "$gcc_default_cpu" = ""; then
            default_arm_cpu=armv7-a
        else
            default_arm_cpu=$gcc_default_cpu
        fi
        gcc_soft_cpu="$default_arm_cpu+nofp"
        gcc_float_cpu="$default_arm_cpu+fp"


        ;;
    esac
fi

# Helper to identify llvm version


if test "$aros_toolchain" = "llvm" ; then
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking specific target llvm version to use" >&5
printf %s "checking specific target llvm version to use... " >&6; }
fi

# Check whether --with-llvm-version was given.
if test ${with_llvm_version+y}
then :
  withval=$with_llvm_version; use_llvm_version="$withval"
else case e in #(
  e) use_llvm_version="" ;;
esac
fi

if test "$use_llvm_version" = ""; then
    if test "${crosstools}" = "no"; then
      if test "x$aros_toolchain_install" != "x"; then

  target_llvm_version=""
  if test "$aros_tool_prefix" = "none"; then
    cross_llvm_prefix=
  else
    cross_llvm_prefix=$aros_tool_prefix
  fi
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking llvm version" >&5
printf %s "checking llvm version... " >&6; }
if test ${ax_cv_llvm_version+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    ax_cv_llvm_version="`$aros_toolchain_dir/${cross_llvm_prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts} -dumpversion`"
    if test "x$ax_cv_llvm_version" = "x"
then :

      ax_cv_llvm_version=""

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


      fi
    fi
    if test "$use_llvm_version" = ""; then
        target_llvm_version="$default_llvm_version"
    fi
else
    target_llvm_version="$use_llvm_version"
fi
if test "$aros_toolchain" = "llvm" ; then
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $target_llvm_version" >&5
printf '%s\n' "$target_llvm_version" >&6; }
    aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_COMMON)"
fi

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
printf %s "checking whether to enable Objective-C suppport... " >&6; }
# Check whether --enable-objc was given.
if test ${enable_objc+y}
then :
  enableval=$enable_objc; objc="$enableval"
else case e in #(
  e) objc="no" ;;
esac
fi

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
printf '%s\n' "$objc" >&6; }
if test "x$objc" = "xyes"; then
    objc_target="$objc"
else
    objc_target="no-objc"
fi

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
printf %s "checking whether to enable Java suppport... " >&6; }
# Check whether --enable-java was given.
if test ${enable_java+y}
then :
  enableval=$enable_java; java="$enableval"
else case e in #(
  e) java="no" ;;
esac
fi

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

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to enable Rust suppport" >&5
printf %s "checking whether to enable Rust suppport... " >&6; }
# Check whether --enable-rust was given.
if test ${enable_rust+y}
then :
  enableval=$enable_rust; rust="$enableval"
else case e in #(
  e) rust="no" ;;
esac
fi

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

spec_obj_format="-m $aros_object_format"
# Now process extra architecture-specific options.
# Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
# as well as floating-point ABI.
case "$aros_target_cpu" in
    *m68k*)
        gcc_default_cpu="68000"
        aros_isa_targets="M68K_ISA_TARGETS              :=MC68020 MC68040"
        aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
        aros_isa_extra="$aros_isa_extra$m68k_isa_extra$export_newline$m68k_020_isa_extra$export_newline$m68k_030_isa_extra$export_newline$m68k_040_isa_extra$export_newline$m68k_060_isa_extra$export_newline$m68k_ac080_isa_extra$export_newline"
        aros_isa_extra="$aros_isa_extra$m68k_020_cppflags$export_newline$m68k_030_cppflags$export_newline$m68k_040_cppflags$export_newline$m68k_060_cppflags$export_newline"
        aros_isa_extra="$aros_isa_extra$m68k_020_cflags$export_newline$m68k_030_cflags$export_newline$m68k_040_cflags$export_newline$m68k_060_cflags$export_newline"
        aros_isa_extra="$aros_isa_extra$m68k_020_ldflags$export_newline$m68k_030_ldflags$export_newline$m68k_040_ldflags$export_newline$m68k_060_ldflags$export_newline"
        aros_isa_extra="$aros_isa_extra$m68k_020_ext$export_newline$m68k_030_ext$export_newline$m68k_040_ext$export_newline$m68k_060_ext$export_newline"

        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which minimum CPU to use" >&5
printf %s "checking which minimum CPU to use... " >&6; }

# Check whether --with-cpu was given.
if test ${with_cpu+y}
then :
  withval=$with_cpu; aros_gcc_cpu="$withval"
else case e in #(
  e) aros_gcc_cpu= ;;
esac
fi

        if test "$aros_gcc_cpu" = ""; then
            case "$gcc_default_cpu" in
                \$\(*)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: default" >&5
printf '%s\n' "default" >&6; }
                    ;;
                *)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gcc_default_cpu" >&5
printf '%s\n' "$gcc_default_cpu" >&6; }
                    ;;
            esac
            aros_gcc_cpu="$""(GCC_DEFAULT_CPU)"
        else
            case "$aros_gcc_cpu" in
                \$\(*)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: default" >&5
printf '%s\n' "default" >&6; }
                    ;;
                *)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
printf '%s\n' "$aros_gcc_cpu" >&6; }
                    ;;
            esac
        fi

        if test "$gcc_default_cpu" != "$aros_gcc_cpu"; then
            aros_target_cpu_type=$aros_gcc_cpu
            gcc_target_cpu=mc$aros_gcc_cpu
        fi
        aros_isa_flags="$""(ISA_MC"$aros_gcc_cpu"_FLAGS)"
        ;;
    *x86_64*)
        aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
                spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
        ;;
    aarch64*)
        aros_isa_extra="$export_newline$aarch64_isa_extra$export_newline"
        ;;
    arm*)
                aros_isa_extra="$export_newline$arm_isa_extra"

        if test "$gcc_default_float_abi" = ""; then
            if test "$target_cpu" = "armhf"; then
                gcc_default_float_abi="hard"
                if test "$gcc_default_fpu" = ""; then
                    gcc_float_fpu="vfpv3"
                    gcc_soft_fpu=$gcc_float_fpu
                    gcc_default_fpu="$""(GCC_FLOAT_FPU)"
                fi
            else
                gcc_float_fpu="vfpv3"
                gcc_soft_fpu=
                gcc_default_fpu=

                gcc_default_float_abi="soft"
            fi
        fi

        if test "$gcc_default_cpu" = ""; then
            if test "$gcc_default_float_abi" = "hard"; then
                gcc_default_cpu="$""(GCC_FLOAT_CPU)"
            else
                gcc_default_cpu="$""(GCC_SOFT_CPU)"
            fi
        fi

        aros_target_nostartup_objects="$""(AROS_LIB)/arm-exidx-unwind.o"

        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which minimum CPU to use" >&5
printf %s "checking which minimum CPU to use... " >&6; }

# Check whether --with-cpu was given.
if test ${with_cpu+y}
then :
  withval=$with_cpu; aros_gcc_cpu="$withval"
else case e in #(
  e) aros_gcc_cpu= ;;
esac
fi

        if test "$aros_gcc_cpu" = ""; then
            case "$gcc_default_cpu" in
                \$\(GCC_FLOAT*)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gcc_float_cpu" >&5
printf '%s\n' "$gcc_float_cpu" >&6; }
                    ;;
                \$\(GCC_SOFT*)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gcc_soft_cpu" >&5
printf '%s\n' "$gcc_soft_cpu" >&6; }
                    ;;
                \$\(*)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: default" >&5
printf '%s\n' "default" >&6; }
                    ;;
                *)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gcc_default_cpu" >&5
printf '%s\n' "$gcc_default_cpu" >&6; }
                    ;;
            esac
            aros_gcc_cpu="$""(GCC_DEFAULT_CPU)"
        else
            case "$aros_gcc_cpu" in
                \$\(GCC_FLOAT*)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gcc_float_cpu" >&5
printf '%s\n' "$gcc_float_cpu" >&6; }
                    ;;
                \$\(GCC_SOFT*)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gcc_soft_cpu" >&5
printf '%s\n' "$gcc_soft_cpu" >&6; }
                    ;;
                \$\(*)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: default" >&5
printf '%s\n' "default" >&6; }
                    ;;
                *)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
printf '%s\n' "$aros_gcc_cpu" >&6; }
                    ;;
            esac
        fi

        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which minimum FPU to use" >&5
printf %s "checking which minimum FPU to use... " >&6; }

# Check whether --with-fpu was given.
if test ${with_fpu+y}
then :
  withval=$with_fpu; aros_gcc_fpu="$withval"
else case e in #(
  e) aros_gcc_fpu= ;;
esac
fi

        if test "$aros_gcc_fpu" = ""; then
            case "$gcc_float_fpu" in
                \$\(*)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: default" >&5
printf '%s\n' "default" >&6; }
                    ;;
                *)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gcc_float_fpu" >&5
printf '%s\n' "$gcc_float_fpu" >&6; }
                    ;;
            esac
            # aros_gcc_fpu="$""(GCC_DEFAULT_FPU)"
        else
            case "$aros_gcc_fpu" in
                \$\(*)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: default" >&5
printf '%s\n' "default" >&6; }
                    ;;
                *)
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
printf '%s\n' "$aros_gcc_fpu" >&6; }
                    ;;
            esac
        fi

        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which floating point ABI to use" >&5
printf %s "checking which floating point ABI to use... " >&6; }

# Check whether --with-float was given.
if test ${with_float+y}
then :
  withval=$with_float; aros_gcc_float_abi="$withval"
else case e in #(
  e) aros_gcc_float_abi=$gcc_default_float_abi ;;
esac
fi

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

        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which ARM mode to use" >&5
printf %s "checking which ARM mode to use... " >&6; }
        if test "$aros_target_cpu_mode" = ""; then
            aros_target_cpu_mode="arm32"
            { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
printf '%s\n' "Defaulting to $aros_target_cpu_mode" >&6; }
        else
            { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
printf '%s\n' "$aros_target_cpu_mode" >&6; }
        fi

        case "$aros_target_cpu_mode" in
        arm32)
            gcc_default_mode="arm"
            aros_isa_extra="$aros_isa_extra -march=$""(GCC_CONFIG_CPU)"
        ;;
        arm64)
            as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
        ;;
        thumb)
            as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
        ;;
        thumb1)
            as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
        ;;
        thumb2)
            gcc_default_mode="thumb"
            # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
            aros_isa_extra="$aros_isa_extra -march=$""(GCC_CONFIG_CPU)"
        ;;
        *)
            as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
        ;;
        esac

        aros_isa_extra="$export_newline""ISA_ARM_FLOAT_FLAGS           = -mfpu=$gcc_float_fpu$aros_isa_extra"
        if test "$gcc_default_fpu" != ""; then
            aros_isa_extra="$aros_isa_extra $""(ISA_ARM_FLOAT_FLAGS)$export_newline"
        else
            aros_isa_extra="$aros_isa_extra$export_newline"
        fi

        aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_UNWIND_TABLES) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
        aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_UNWIND_TABLES) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
        aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_UNWIND_TABLES) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
        aros_kernel_cflags="$aros_kernel_cflags"
        aros_kernel_export_cflags="$aros_kernel_export_cflags $""(CFLAGS_NO_UNWIND_TABLES) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
        ;;
    i386)
        aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
        aros_kernel_ldflags="$aros_kernel_ldflags -m32"
        ;;
    riscv*)
        aros_isa_extra="$riscv_isa_extra$export_newline"
        ;;
esac

# Some architectures may need custom ELF specs.
if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
    elf_specs_in=config/${aros_object_format}-specs.in
else
    elf_specs_in=config/elf-specs.in
fi

# Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
# Since we override specs, we may need to put these defines there
if test "$gcc_target_cpu" != ""; then
    gcc_target_cpu="-D__${gcc_target_cpu}__"
fi

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
printf %s "checking where to download sourcecode for external ports... " >&6; }

# Check whether --with-portssources was given.
if test ${with_portssources+y}
then :
  withval=$with_portssources; with_portssrcdir=$withval
else case e in #(
  e) with_portssrcdir="default" ;;
esac
fi

if test "$with_portssrcdir" = "default"; then
    AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
else
    AROS_PORTSSRCDIR="$with_portssrcdir"
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
printf '%s\n' "$AROS_PORTSSRCDIR" >&6; }

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
printf %s "checking which bootloader to use... " >&6; }

# Check whether --with-bootloader was given.
if test ${with_bootloader+y}
then :
  withval=$with_bootloader; target_bootloader=$withval
else case e in #(
  e) target_bootloader=$target_bootloader ;;
esac
fi

if test "$target_bootloader" = "none"; then
    aros_target_bootloader=""
else
    aros_target_bootloader="$target_bootloader"
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
printf '%s\n' "$target_bootloader" >&6; }

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
printf %s "checking which icon-set to use... " >&6; }

# Check whether --with-iconset was given.
if test ${with_iconset+y}
then :
  withval=$with_iconset; target_iconset=$withval
else case e in #(
  e) target_iconset="default" ;;
esac
fi

if test "$target_iconset" = "default"; then
    aros_target_iconset="Gorilla"
    target_iconset="default (Gorilla)"
else
    aros_target_iconset="$target_iconset"
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
printf '%s\n' "$target_iconset" >&6; }

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
printf %s "checking which GUI Theme to use... " >&6; }

# Check whether --with-theme was given.
if test ${with_theme+y}
then :
  withval=$with_theme; target_guitheme=$withval
else case e in #(
  e) target_guitheme="default" ;;
esac
fi

if test "$target_guitheme" = "default"; then
    aros_target_guitheme="Ice"
else
    aros_target_guitheme="$target_guitheme"
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
printf '%s\n' "$aros_target_guitheme" >&6; }

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which version of mesa to build ..." >&5
printf %s "checking which version of mesa to build ...... " >&6; }

# Check whether --with-mesagl was given.
if test ${with_mesagl+y}
then :
  withval=$with_mesagl; aros_mesagl="$withval"
else case e in #(
  e) aros_mesagl="20.0.8" ;;
esac
fi

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_mesagl" >&5
printf '%s\n' "$aros_mesagl" >&6; }
aros_target_options+="$export_newline""# Enable MesaGL$export_newline""OPT_MESAGL                    := $aros_mesagl$export_newline"

# Find out if we are cross-compiling (i.e. if we can't use the host compiler
# for target code)
cross_compiling=no

if test "$aros_host_cpu" != "$aros_target_cpu" ; then
    cross_compiling=yes
fi

if test "$aros_host_cpu" == "x86_64" ; then
    if test "$aros_target_cpu" == "i386" ; then
        cross_compiling=no
    fi
fi

if test "$aros_host_cpu" == "aarch64" ; then
    if test "$aros_target_cpu" == "x86_64" ; then
        if test "$aros_host_arch" == "darwin" ; then
            cross_compiling=no
        fi
    fi
fi

if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then

    if test "$aros_host_arch" != "$aros_target_arch" ; then
        cross_compiling=yes
    fi
    ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
if test "x$ac_cv_header_ucontext_h" = xyes
then :
  printf '%s\n' "#define HAVE_UCONTEXT_H 1" >>confdefs.h

fi

    ac_fn_c_check_header_compile "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "#include <signal.h>
"
if test "x$ac_cv_header_sys_ucontext_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYS_UCONTEXT_H 1" >>confdefs.h

fi

else
                    cross_compiling=yes
    fi

if test "$cross_compiling" = "no" ; then
    kernel_tool_prefix=""
    if test "$host_cc_elf" = "yes" ; then
        elf_tool_prefix=""
    fi
fi

if test "$kernel_tool_version" != ""; then
    kernel_tool_version="-$kernel_tool_version"
fi

#######################################################################
## Compute what toolchains to use, and their paths                   ##
#######################################################################
#
# This takes, as input:
#   crosstools             {yes,no}
#   kernel_tool_version    {"",[version]}
#   target_tool_version    {"",[version]}
#   kernel_tool_prefix     {none,[some-arch-os-]}
#   gnu-toolchain -:
#     target_tool_prefix     ${aros_target_cpu}-aros-
#     aros_tool_prefix       ${aros_target_cpu}-aros-
#
# The output is
#   aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
#        Where the 'kernel' binaries are located
#   orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
#        Where the 'target' binaries are located
#        (not the symlink farm - that is aros_target_*!)
#
# The rules are:
#   if crosstools then
#      if kernel_tools_prefix = "no-kernel-prefix-"
#          aros_kernel_* = crosstools cc paths
#          aros_kernel_cc = elf cc wrapper around crosstools cc
#      else
#          VALIDATE(${kernel_tools_prefix}*)
#          aros_kernel_* = ${kernel_tools_prefix}*
#          if ${kernel_tools_prefix}cc is an AROS gcc
#              aros_kernel_cc = ${kernel_tools_prefix}cc
#          else
#              aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
#          fi
#      fi
#
#      orig_target_* = aros built crosstools
#      orig_target_cc = elf cc wrapper around crosstools cc
#   else
#      VALIDATE(${kernel_tools_prefix}*)
#
#      orig_target_* = aros_kernel_*
#      if aros_kernel_cc is an AROS gcc
#          orig_target_cc = aros_kernel_cc
#      else
#          orig_target_cc = aros cc wrapper around aros_kernel_cc
#      fi
#   fi
#
if test "$aros_toolchain" = "gnu" ; then
    target_tool_prefix="${aros_target_cpu}-aros-"
elif test "$aros_toolchain" = "llvm" ; then
    target_tool_prefix=""
fi

if test "$kernel_tool_prefix" != "" ; then
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
printf %s "checking which kernel tools... " >&6; }
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
printf '%s\n' "$kernel_tool_prefix" >&6; };
fi

if test "$kernel_tool_prefix" = "none" ; then
        if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
        as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
    fi
else
    if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
        # Kernel tools required - find them
        # Note that 'normally', aros_kernel_* overrides will be
        # empty, unless specified in the per-arch sections above.

        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: Checking kernel tools" >&5
printf '%s\n' "$as_me: Checking kernel tools" >&6;}

        test_kernel_cc=yes
        if test "x$aros_kernel_cpp" = "x"; then
            aros_kernel_cpp=${kernel_tool_prefix}${CPP_BASE}
        fi
        if test "${kernel_tool_version}" != ""; then
    if test "$aros_kernel_cpp" != ""; then
        ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
        ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
        aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
    fi
fi

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

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


    else

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

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


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

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


  test -n "$aros_kernel_cpp" && break
done

fi

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

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


    aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
fi

        req_avail=yes
if test "$aros_kernel_cpp" = ""; then
    req_avail=no
fi
if test "$aros_kernel_cpp" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

        if test "x$aros_kernel_cc" = "x"; then
            aros_kernel_cc=${kernel_tool_prefix}${CC_BASE}
        fi
        if test "${kernel_tool_version}" != ""; then
    if test "$aros_kernel_cc" != ""; then
        ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
        ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
        aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
    fi
fi

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

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


    else

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

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


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

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


  test -n "$aros_kernel_cc" && break
done

fi

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

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


    aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
fi


        req_avail=yes
if test "$aros_kernel_cc" = ""; then
    req_avail=no
fi
if test "$aros_kernel_cc" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

        if test "x$aros_kernel_cxx" = "x"; then
            aros_kernel_cxx=${kernel_tool_prefix}${CXX_BASE}
        fi
        if test "${kernel_tool_version}" != ""; then
    if test "$aros_kernel_cxx" != ""; then
        ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
        ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
        aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
    fi
fi

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

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


    else

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

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


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

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


  test -n "$aros_kernel_cxx" && break
done

fi

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

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


    aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
fi

        # If it's set, make sure it's really there
        if test "x$aros_kernel_cxx" != "x" ; then
            req_avail=yes
if test "$aros_kernel_cxx" = ""; then
    req_avail=no
fi
if test "$aros_kernel_cxx" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
        fi

        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking kernel c++ compiler" >&5
printf %s "checking kernel c++ compiler... " >&6; }
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
printf '%s\n' "$aros_kernel_cxx" >&6; };

        if test "x$aros_kernel_ld" = "x"; then
            aros_kernel_ld=${kernel_tool_prefix}${LD_BASE}
        fi

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

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


    else

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

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


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

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


  test -n "$aros_kernel_ld" && break
done

fi

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

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


    aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
fi

        req_avail=yes
if test "$aros_kernel_ld" = ""; then
    req_avail=no
fi
if test "$aros_kernel_ld" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
        if test "x$aros_kernel_as" = "x"; then
            aros_kernel_as=$aros_host_as
            if test "x$aros_kernel_as" = "x"; then
                aros_kernel_as=${HOST_TOOLCHAIN_PREFIX}as${HOST_TOOLCHAIN_SUFFIX}
            fi
        fi

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

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


    else

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

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


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

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


  test -n "$aros_kernel_as" && break
done

fi

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

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


    aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
fi

        req_avail=yes
if test "$aros_kernel_as" = ""; then
    req_avail=no
fi
if test "$aros_kernel_as" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

        if test "x$aros_kernel_ar" = "x"; then
            aros_kernel_ar="${kernel_tool_prefix}${AR_BASE}"
        fi
        if test "${kernel_tool_version}" != ""; then
    if test "$aros_kernel_ar" != ""; then
        ac_prog_args=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
        ac_prog_cmd=`expr "X$aros_kernel_ar" : '^\S*'`
        aros_kernel_ar="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
    fi
fi

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

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


    else

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

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


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

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


  test -n "$aros_kernel_ar" && break
done

fi

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

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


    aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
fi

        req_avail=yes
if test "$aros_kernel_ar" = ""; then
    req_avail=no
fi
if test "$aros_kernel_ar" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
        if test "x$aros_kernel_ranlib" = "x"; then
            aros_kernel_ranlib=${kernel_tool_prefix}${RANLIB_BASE}
        fi
        if test "${kernel_tool_version}" != ""; then
    if test "$aros_kernel_ranlib" != ""; then
        ac_prog_args=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
        ac_prog_cmd=`expr "X$aros_kernel_ranlib" : '^\S*'`
        aros_kernel_ranlib="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
    fi
fi

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

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


    else

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

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


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

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


  test -n "$aros_kernel_ranlib" && break
done

fi

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

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


    aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
fi

        req_avail=yes
if test "$aros_kernel_ranlib" = ""; then
    req_avail=no
fi
if test "$aros_kernel_ranlib" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
        if test "x$aros_kernel_nm" = "x"; then
            aros_kernel_nm=$aros_host_nm
            if test "x$aros_kernel_nm" = "x"; then
                aros_kernel_nm=${HOST_TOOLCHAIN_PREFIX}nm${HOST_TOOLCHAIN_SUFFIX}
            fi
        fi

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

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


    else

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

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


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

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


  test -n "$aros_kernel_nm" && break
done

fi

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

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


    aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
fi

        req_avail=yes
if test "$aros_kernel_nm" = ""; then
    req_avail=no
fi
if test "$aros_kernel_nm" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

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

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


    else

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

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


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

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


  test -n "$aros_kernel_strip" && break
done

fi

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

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


    aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
fi

        req_avail=yes
if test "$aros_kernel_strip" = ""; then
    req_avail=no
fi
if test "$aros_kernel_strip" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

        # Objcopy and objdump are not required for the kernel
        # toolchain on many architectures.
        # So we'll look for them, but not make them strictly required.
        if test "x$aros_kernel_objcopy" = "x"; then
            aros_kernel_objcopy=$aros_host_objcopy
            if test "x$aros_kernel_objcopy" = "x"; then
                aros_kernel_objcopy=${HOST_TOOLCHAIN_PREFIX}objcopy${HOST_TOOLCHAIN_SUFFIX}
            fi
        fi

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

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


    else

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

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


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

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


  test -n "$aros_kernel_objcopy" && break
done

fi

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

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


    aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
fi

        if test "x$aros_kernel_objdump" = "x"; then
            aros_kernel_objdump=$aros_host_objdump
            if test "x$aros_kernel_objdump" = "x"; then
                aros_kernel_objdump=${HOST_TOOLCHAIN_PREFIX}objdump${HOST_TOOLCHAIN_SUFFIX}
            fi
        fi

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

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


    else

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

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


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

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


  test -n "$aros_kernel_objdump" && break
done

fi

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

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


    aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
fi

        if test "x${crosstools}" != "xyes" ; then
            req_avail=yes
if test "$aros_kernel_objcopy" = ""; then
    req_avail=no
fi
if test "$aros_kernel_objcopy" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
            req_avail=yes
if test "$aros_kernel_objdump" = ""; then
    req_avail=no
fi
if test "$aros_kernel_objdump" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
        fi
    fi
fi

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
printf %s "checking which target tools to use... " >&6; }
if test "$aros_target_toolchain" = "yes"; then
    if test "$aros_toolchain" = "llvm" ; then
        msg_result="llvm"
    else
        msg_result=$target_tool_prefix
    fi
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
printf '%s\n' "$msg_result" >&6; }
    # We are building AROS crosstools
    tmp_tool_prefix="$aros_toolchain_dir/${target_tool_prefix}"
    orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
    orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
    orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
    orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
    orig_target_as="${tmp_tool_prefix}${toolchain_as}"
    orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
    orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
    orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
    if ! test "$toolchain_strip" = "${NOP}"; then
        orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
    else
        orig_target_strip="${toolchain_strip}"
    fi
    orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
    orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
else
    # Determine whether AROS or ELF tools should be used
    if test "$aros_tool_prefix" = "none"; then
        aros_tool_prefix="${elf_tool_prefix}"
    fi

    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
printf '%s\n' "$aros_tool_prefix" >&6; }
    # We are *not* building AROS crosstools - use the AROS or ELF tools

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

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


    else

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

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


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

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


  test -n "$orig_target_cpp" && break
done

fi

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

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


    orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
fi

    req_avail=yes
if test "$orig_target_cpp" = ""; then
    req_avail=no
fi
if test "$orig_target_cpp" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

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

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


    else

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

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


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

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


  test -n "$orig_target_cc" && break
done

fi

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

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


    orig_target_cc="$orig_target_cc $ac_tool_optarg"
fi

    req_avail=yes
if test "$orig_target_cc" = ""; then
    req_avail=no
fi
if test "$orig_target_cc" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

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

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


    else

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

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


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

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


  test -n "$orig_target_cxx" && break
done

fi

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

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


    orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
fi

    req_avail=yes
if test "$orig_target_cxx" = ""; then
    req_avail=no
fi
if test "$orig_target_cxx" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

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

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


    else

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

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


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

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


  test -n "$orig_target_ld" && break
done

fi

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

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


    orig_target_ld="$orig_target_ld $ac_tool_optarg"
fi

    req_avail=yes
if test "$orig_target_ld" = ""; then
    req_avail=no
fi
if test "$orig_target_ld" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

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

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


    else

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

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


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

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


  test -n "$orig_target_as" && break
done

fi

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

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


    orig_target_as="$orig_target_as $ac_tool_optarg"
fi

    req_avail=yes
if test "$orig_target_as" = ""; then
    req_avail=no
fi
if test "$orig_target_as" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

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

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


    else

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

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


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

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


  test -n "$orig_target_ar" && break
done

fi

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

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


    orig_target_ar="$orig_target_ar $ac_tool_optarg"
fi

    req_avail=yes
if test "$orig_target_ar" = ""; then
    req_avail=no
fi
if test "$orig_target_ar" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

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

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


    else

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

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


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

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


  test -n "$orig_target_ranlib" && break
done

fi

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

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


    orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
fi

    req_avail=yes
if test "$orig_target_ranlib" = ""; then
    req_avail=no
fi
if test "$orig_target_ranlib" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

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

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


    else

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

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


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

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


  test -n "$orig_target_nm" && break
done

fi

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

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


    orig_target_nm="$orig_target_nm $ac_tool_optarg"
fi

    req_avail=yes
if test "$orig_target_nm" = ""; then
    req_avail=no
fi
if test "$orig_target_nm" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
    if ! test "$toolchain_strip" = "${NOP}"; then

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

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


    else

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

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


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

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


  test -n "$orig_target_strip" && break
done

fi

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

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


    orig_target_strip="$orig_target_strip $ac_tool_optarg"
fi

            req_avail=yes
if test "$orig_target_strip" = ""; then
    req_avail=no
fi
if test "$orig_target_strip" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
    else
        orig_target_strip="${toolchain_strip}"
    fi

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

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


    else

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

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


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

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


  test -n "$orig_target_objcopy" && break
done

fi

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

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


    orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
fi

    req_avail=yes
if test "$orig_target_objcopy" = ""; then
    req_avail=no
fi
if test "$orig_target_objcopy" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
fi

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

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


    else

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

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


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

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


  test -n "$orig_target_objdump" && break
done

fi

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

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


    orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
fi

    req_avail=yes
if test "$orig_target_objdump" = ""; then
    req_avail=no
fi
if test "$orig_target_objdump" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
fi

if test "$kernel_tool_prefix" = "none" ; then
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: Using AROS tools with ELF wrapper(s) for Kernel" >&5
printf '%s\n' "$as_me: Using AROS tools with ELF wrapper(s) for Kernel" >&6;}
    # No kernel tools specified
    # Assume kernel tools == target tools with ELF wrapper
    aros_kernel_cc=$orig_target_cc
    aros_kernel_cxx=$orig_target_cxx
    aros_kernel_cpp="$orig_target_cpp"
    aros_kernel_ld=$orig_target_ld
    aros_kernel_as=$orig_target_as
    aros_kernel_ar=$orig_target_ar
    aros_kernel_ranlib=$orig_target_ranlib
    aros_kernel_nm=$orig_target_nm
    aros_kernel_strip=$orig_target_strip
    aros_kernel_objcopy=$orig_target_objcopy
    aros_kernel_objdump=$orig_target_objdump
    aros_kernel_isa_flags="$""(ISA_FLAGS) $aros_kernel_isa_extra"
    if ! test "$aros_kernel_llvmwrapper" = "yes"; then
        use_kernel_cc_wrapper=yes
    fi
fi

# At this point, all aros_kernel_* and aros_target_*
# tools should be set up correctly

CC="$aros_kernel_cc $kernel_tool_flags"
CPP="$aros_kernel_cpp"

#-----------------------------------------------------------------------------

# Find all the tools we need to compile. This could be cross-compiling
# though! If that is the case we use the GNU form of the target and
# simply add this to the front of the binary name. This is rather simple,
# but it should work under most circumstances.
#
# The default tools are to use the same as the host, but only if the
# host and target CPU are the same. With GCC this is normally enough.
#

aros_cc_pre=""
aros_shared_ld="$aros_host_ld"

aros_target_mkdep="$aros_host_mkdep"

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

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


    req_avail=yes
if test "$aros_kernel_rescomp" = ""; then
    req_avail=no
fi
if test "$aros_kernel_rescomp" = "no"; then
    req_avail=no
fi
if test "$req_avail" = "no"; then
    as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
fi
fi

# Set up the sources for the symlink farm
if test "$crosstools" = "yes"; then
    crosstools_target=tools-crosstools
fi

aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"

aros_host_gendir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host"
aros_hostcfg_dir="${aros_host_gendir}/config"
aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
aros_targetcfg_dir="${aros_gendir}/config"
aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
aros_geninc_dir="${aros_gendir}/include/aros"
aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"

# aros_cc_pre is a variable that is added to the front of the compiler name
# in the generated aros-gcc shell script. We need this to enable the cache
# to work across cleaned builds. Also, support DISTCC using the correct
# environment variable.
#

if test "x${DISTCC}" != "x" ; then
    if test "x${CCACHE}" != "x" ; then
        aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
    else
        aros_cc_pre="${DISTCC} "
    fi
else
    if test "x${CCACHE}" != "x" ; then
        aros_cc_pre="${CCACHE} "
    fi
fi

aros_target_nostdinc_cflags=-nostdinc

aros_target_nostartup_ldflags=-nostartfiles

aros_target_nix_ldflags=-nix

aros_target_detach_ldflags=-detach

aros_target_nostdlib_ldflags=-nostdlib


aros_target_cc_path=

# Target tools


if test "$aros_target_toolchain" != "yes"; then
    prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
    if test "$GCC" = "yes"; then
        aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
    fi
else
    # We do not know which c compiler version we are going to build and what we need to know
    # here is different for different versions so this will be set later during the
    # build of crosstools.
    if test "$aros_toolchain" = "gnu" ; then
        prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
    elif test "$aros_toolchain" = "llvm" ; then
        prefix="$AROS_CROSSTOOLSDIR/bin/"
    fi
    aros_target_cc_path=@aros_target_cc_path@
fi
aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
aros_target_cc="${prefix}${toolchain_c_compiler}"
aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
aros_target_as="${prefix}${toolchain_as}"
if test "${use_ld_wrapper}" = "yes"; then
    aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
else
    aros_target_ld="${prefix}${toolchain_ld}"
fi
aros_toolchain_ld="${prefix}${toolchain_ld}"

aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
aros_target_objcopy="${prefix}${toolchain_objcopy}"
aros_target_objdump="${prefix}${toolchain_objdump}"
aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
if ! test "$toolchain_strip" = "${NOP}"; then
    aros_target_strip="${prefix}${toolchain_strip}"
else
    aros_target_strip="${toolchain_strip}"
fi
aros_plain_nm="${prefix}${toolchain_nm}"
aros_plain_ar="${prefix}${toolchain_ar}"

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


if test "x$aros_target_incl" = "xno"; then
    if test "x$test_kernel_cc" != "xno"; then
        aros_target_incl=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
    else
        aros_target_incl=
    fi
fi

if test "x$aros_kernel_includes" = "x"; then
    if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
        if test "x$aros_target_incl" != "x"; then
            aros_kernel_includes="-isystem $aros_target_incl"
        fi
    fi
fi

if test "x$test_kernel_cc" != "xno"; then
    if test "$aros_kernel_includes" != "" ; then
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
printf %s "checking for the kernel compiler's include path... " >&6; }
        if test "$aros_kernel_cc_includes" = "" ; then
            # Try to guess where the directory is.
            aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
            if test -d $aros_kernel_cc_includes; then
                # Check if there is also an include-fixed directory and add it
                # to kernel compiler's include path as it may contain some of
                # the headers we need.
                if test -d "$aros_kernel_cc_includes"-fixed; then
                    aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
                fi
                case "$target_os" in
                    linux*)
                        # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
                        targetabi=gnu
                        kernelcpu=$target_cpu
                        case "$kernelcpu" in
                            i*86)
                                kernelcpu=i686
                                ;;
                            *armhf*)
                                targetabi=gnueabihf
                                kernelcpu=$aros_target_cpu
                                ;;
                            *arm*)
                                targetabi=gnueabi
                                ;;
                        esac
                        if test -d "/usr/include/${kernelcpu}-linux-${targetabi}"; then
                            aros_kernel_cc_includes+=" -isystem /usr/include/${kernelcpu}-linux-${targetabi}"
                        else
                            if test -d "/usr/${kernelcpu}-linux-${targetabi}/include"; then
                                aros_kernel_cc_includes+=" -isystem /usr/${kernelcpu}-linux-${targetabi}/include"
                            fi
                        fi
                    ;;
                esac
            else
                # The directory doesn't exist, we need to do some more work.
                aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include

                # These are the headers we're looking for.
                headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
                         stddef.h xmmintrin.h iso646.h stdarg.h unwind.h   \
                         zutil.h stdint.h"

                dirs=
                for h in $headers; do
                    # Which other headers are needed by each of the above?
                    deps=$(echo "#include <$h>" | \
                           $aros_kernel_cc -E -M - 2>/dev/null | \
                           sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')

                    # Copy all the needed headers to a directory beneath gendir.
                    for d in $deps; do
                        h=$(basename $d)
                        dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
                                                sed -n "s,^.*/include\(/.*\),\1,p")
                        ! test -d $dir && mkdir -p $dir
                        ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
                    done
                done
            fi
        fi
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
printf '%s\n' "$aros_kernel_cc_includes" >&6; }
        # Adding -nostdinc to kernel includes as they are always used together.
        aros_kernel_includes="$aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes $aros_kernel_includes"
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for the kernel linker's search paths" >&5
printf %s "checking for the kernel linker's search paths... " >&6; }
        LD_DIRS="$(${aros_kernel_ld} --verbose 2>/dev/null | \
          grep 'SEARCH_DIR' | \
          awk -F'"' '{ for (i=2; i<=NF; i+=2) { gsub(/^=/, "", $i); printf "-L%s ", $i } }')"
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LD_DIRS" >&5
printf '%s\n' "$LD_DIRS" >&6; }
        aros_kernel_ldflags="$aros_kernel_ldflags $LD_DIRS"
    fi
fi

if test "$crosstools" != "yes"; then
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
printf %s "checking for the target compiler's include path... " >&6; }
    if test "$aros_target_cc_includes" = "" ; then
        #try to guess where the directory is
        aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
        if ! test -d $aros_target_cc_includes; then
            #the directory doesn't exist, we need to do some more work
            aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include

            #these are the headers we're looking for
            headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
                    stddef.h xmmintrin.h iso646.h stdarg.h unwind.h   \
                    zutil.h"

            dirs=
            for h in $headers; do
                #which other headers each of the above headers needs?
                deps=$(echo "#include <$h>" | \
                    $orig_target_cc -E -M - 2>/dev/null | \
                    sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')

                #copy all the needed headers to a directory beneath gendir
                for d in $deps; do
                    h=$(basename $d)
                    dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
                                                sed -n "s,^.*/include\(/.*\),\1,p")
                    ! test -d $dir && mkdir -p $dir
                    ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
                done
            done
        fi
    fi
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
printf '%s\n' "$aros_target_cc_includes" >&6; }
else
    # We do not know which c compiler version we are going to build and what we need to know
    # here is different for different versions so this will be set later during the
    # build of crosstools.
    aros_target_cc_includes=@aros_target_cc_includes@
fi

#
# For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
# On GCC >= 4.0 -iquote should be used
#

save_cc="$CC"
save_cflags="$CFLAGS"
if test "x$test_kernel_cc" != "xno"; then
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: Testing kernel compiler..." >&5
printf '%s\n' "$as_me: Testing kernel compiler..." >&6;}
    CFLAGS="-iquote."
    kernel_cflags_iquote=$host_cflags_iquote
    kernel_cflags_iquote_end=$host_cflags_iquote_end
    if test "x-$cross_compiling" = "x-yes"; then
        CC="$aros_kernel_cc"
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
printf %s "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
        if test "x-$crosstools" != "x-yes"; then
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  use_no_stack_protector="yes"
else case e in #(
  e) use_no_stack_protector="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
        else
            # we do know it is supported for the smallest version of gcc we are going to build
            # we assume it's also supported by later versions
            use_no_stack_protector=yes
        fi
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
printf '%s\n' "$use_no_stack_protector" >&6; }
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
printf %s "checking whether ${CC} accepts -iquote... " >&6; }
        if test "x-$crosstools" != "x-yes"; then
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  has_iquote="yes"
else case e in #(
  e) has_iquote="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
        else
            # we do know it is supported for the smallest version of gcc we are going to build
            # we assume it's also supported by later versions
            has_iquote=yes
        fi
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
printf '%s\n' "$has_iquote" >&6; }
        if test "x-$has_iquote" = "x-yes" ; then
            kernel_cflags_iquote=-iquote
            kernel_cflags_iquote_end=
        else
            kernel_cflags_iquote=-I
            kernel_cflags_iquote_end=-I-
        fi
    fi
    if test "x-$use_no_common" = "x-yes" ; then
        aros_kernel_cflags="$aros_kernel_cflags -fno-common"
    fi
    if test "x-$use_no_stack_protector" = "x-yes" ; then
        aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
    fi

    #-----------------------------------------------------------------------------

    # Check if we can explicitly choose older version of symbol hashing

    CFLAGS="$save_cflags -Wl,--hash-style=sysv"
    CC="$aros_kernel_cc"
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
printf %s "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  use_hash_style="yes"
else case e in #(
  e) use_hash_style="no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
printf '%s\n' "$use_hash_style" >&6; }
    if test "x-$use_hash_style" = "x-yes" ; then
        aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
    fi
else
    kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
    kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
fi
CC="$save_cc"
CFLAGS="$save_cflags"







{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
printf %s "checking for default resolution of WBScreen... " >&6; }

# Check whether --with-resolution was given.
if test ${with_resolution+y}
then :
  withval=$with_resolution; resolution=$withval
else case e in #(
  e) resolution=none ;;
esac
fi

# We require an argument, so map --with/--without ("yes"/"no") to "none" specified
if test "$resolution" = "yes" ; then
    resolution="none"
fi
if test "$resolution" = "no" ; then
    resolution="none"
fi
if test "$resolution" != "none" ; then
    aros_nominal_width=`echo $resolution | cut -d'x' -f1`
    aros_nominal_height=`echo $resolution | cut -d'x' -f2`
    aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
printf '%s\n' "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
aros_cv_nominal_width=$aros_nominal_width
aros_cv_nominal_height=$aros_nominal_height
aros_cv_nominal_depth=$aros_nominal_depth

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
printf %s "checking whether serial debug is enabled... " >&6; }

# Check whether --with-serial-debug was given.
if test ${with_serial_debug+y}
then :
  withval=$with_serial_debug; serial_debug=$withval
else case e in #(
  e) serial_debug=none ;;
esac
fi

if test "$aros_serial_debug" = 0 ; then
    serial_debug_forced=""
    if test "$serial_debug" = "yes" ; then
        serial_debug="1"
    fi
    if test "$serial_debug" = "no" ; then
        serial_debug="none"
    fi
else
    serial_debug_forced="(forced)"
    serial_debug=$aros_serial_debug
fi
if test "$serial_debug" != "none" ; then
    aros_serial_debug=$serial_debug
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
printf '%s\n' "$serial_debug_forced on port $serial_debug" >&6; }
else
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf '%s\n' "no" >&6; }
fi

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
printf %s "checking whether palm debug hack is enabled... " >&6; }
# Check whether --enable-palm_debug_hack was given.
if test ${enable_palm_debug_hack+y}
then :
  enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
else case e in #(
  e) palm_debug_hack="no" ;;
esac
fi

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

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking use log.resource" >&5
printf %s "checking use log.resource... " >&6; }
if test "$with_log_resource" != "no"; then
    with_log_resource="yes"
fi
if test "$with_log_resource" == "yes"; then
    aros_config_cppflags="$aros_config_cppflags -DAROS_USE_LOGRES"
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_log_resource" >&5
printf '%s\n' "$with_log_resource" >&6; }

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
printf %s "checking whether usb3.0 code is enabled... " >&6; }
# Check whether --enable-usb30_code was given.
if test ${enable_usb30_code+y}
then :
  enableval=$enable_usb30_code; usb30_code="yes"
else case e in #(
  e) usb30_code="no" ;;
esac
fi

if test "$usb30_code" = "yes" ; then
    aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
    aros_kernel_cppflags="$aros_kernel_cppflags -DAROS_USB30_CODE"
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
printf '%s\n' "$usb30_code" >&6; }

{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
printf %s "checking whether nesting supervisor support is enabled... " >&6; }
# Check whether --enable-nesting_supervisor was given.
if test ${enable_nesting_supervisor+y}
then :
  enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
else case e in #(
  e) nesting_supervisor="no" ;;
esac
fi

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

if test "$aros_enable_mmu" = "" ; then
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
printf %s "checking whether MMU support is enabled... " >&6; }
        # Check whether --enable-mmu was given.
if test ${enable_mmu+y}
then :
  enableval=$enable_mmu; aros_enable_mmu=$enableval
else case e in #(
  e) aros_enable_mmu="yes" ;;
esac
fi

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


if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then

    if test "x-$need_dlopen" != "x-no" ; then
      save_libs="$LIBS"
      LIBS=""
            ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = xyes
then :
  have_dl="yes"
else case e in #(
  e) have_dl="no" ;;
esac
fi

      if test "x-$have_dl" = "x-no" ; then
          { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
printf %s "checking for dlopen in -ldl... " >&6; }
if test ${ac_cv_lib_dl_dlopen+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen (void);
int
main (void)
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_dl_dlopen=yes
else case e in #(
  e) ac_cv_lib_dl_dlopen=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes
then :
  have_dl="yes"
                                    aros_host_ldflags="$aros_host_ldflags -ldl"
else case e in #(
  e) have_dl="no" ;;
esac
fi

      fi
      if test "x-$have_dl" = "x-no" ; then
          as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
      fi
      LIBS="$save_libs"
    fi

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


    if test "x$enable_alsa" = "xyes"
then :


pkg_failed=no
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for alsa >= 1.0.0" >&5
printf %s "checking for alsa >= 1.0.0... " >&6; }

if test -n "$ALSA_CFLAGS"; then
    pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.0") 2>&5
  ac_status=$?
  printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 1.0.0" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$ALSA_LIBS"; then
    pkg_cv_ALSA_LIBS="$ALSA_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.0") 2>&5
  ac_status=$?
  printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 1.0.0" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



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

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
                ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa >= 1.0.0" 2>&1`
        else
                ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa >= 1.0.0" 2>&1`
        fi
        # Put the nasty error message in config.log where it belongs
        echo "$ALSA_PKG_ERRORS" >&5

        have_alsa=no
         CONFIG_WARNINGS="${CONFIG_WARNINGS}  * ALSA development files not found - the hosted ALSA audio driver will not be built
"
elif test $pkg_failed = untried; then
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf '%s\n' "no" >&6; }
        have_alsa=no
         CONFIG_WARNINGS="${CONFIG_WARNINGS}  * ALSA development files not found - the hosted ALSA audio driver will not be built
"
else
        ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
        ALSA_LIBS=$pkg_cv_ALSA_LIBS
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf '%s\n' "yes" >&6; }

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

         have_alsa=yes
fi

fi

    if test "x-$have_alsa" = "x-yes" ; then
        aros_target_options+="$export_newline""# Enable ALSA Audio Driver$export_newline""OPT_HOST_ALSA               := yes$export_newline"
    fi

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

    case "x-$x11_hidd" in
        x-yes|x-no|x-auto)                 ;;
        *)                 x11_hidd="$need_x11" ;;
    esac

    ENABLE_X11=0

        if test "x-$x11_hidd" != "x-no" ; then


{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for X" >&5
printf %s "checking for X... " >&6; }


# Check whether --with-x was given.
if test ${with_x+y}
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 test ${ac_cv_have_x+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) # One or both of the vars are not set, and there is no cached value.
ac_x_includes=no
ac_x_libraries=no
# Do we need to do anything special at all?
ac_save_LIBS=$LIBS
LIBS="-lX11 $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <X11/Xlib.h>
int
main (void)
{
XrmInitialize ()
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  # We can compile and link X programs with no special options.
  ac_x_includes=
  ac_x_libraries=
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS="$ac_save_LIBS"
# If that didn't work, only try xmkmf and file system searches
# for native compilation.
if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
then :
  rm -f -r conftest.dir
if mkdir conftest.dir; then
  cd conftest.dir
  cat >Imakefile <<'_ACEOF'
incroot:
	@printf '%s\n' incroot='${INCROOT}'
usrlibdir:
	@printf '%s\n' usrlibdir='${USRLIBDIR}'
libdir:
	@printf '%s\n' 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

/opt/X11/include

/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 case e in #(
  e) 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 ;;
esac
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 (void)
{
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 case e in #(
  e) LIBS=$ac_save_LIBS
for ac_dir in `printf '%s\n' "$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 ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
fi # $ac_x_libraries = no

fi
# Record the results.
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 ;;
esac
fi
;; #(
    *) have_x=yes;;
  esac
  eval "$ac_cv_have_x"
fi # $with_x != no

if test "$have_x" != yes; then
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
printf '%s\n' "$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'"
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
printf '%s\n' "libraries $x_libraries, headers $x_includes" >&6; }
fi


        if test "x-$no_x" = "x-yes" ; then

                        if test "x-$x11_hidd" != "x-auto" ; then
                                as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
            fi
                        CONFIG_WARNINGS="${CONFIG_WARNINGS}  * X11 libraries/headers not found - the hosted X11 graphics driver will not be built
"

        else
                        aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX               := yes$export_newline"
            if test "x-$host_feature_glx" != "x-no" ; then
                aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL           := yes$export_newline"
            else
                CONFIG_WARNINGS="${CONFIG_WARNINGS}  * GL/glx.h not found - 3D passthrough (HostGL) will not be available in the hosted X11 driver
"
            fi
            ENABLE_X11=1

            case "$host_os" in
                darwin*)
                    if test -z "$x_includes"; then
                        x_includes="/usr/X11/include"
                    fi
                    if test -z "$x_libraries"; then
                        x_libraries="/usr/X11/lib"
                    fi
                ;;
            esac

            if test -n "$x_includes"; then
                X_CFLAGS="$X_CFLAGS -I$x_includes"
            fi

            if test -n "$x_libraries"; then
                X_LIBS="$X_LIBS -L$x_libraries"
            fi

            aros_host_x11_cflags="$X_CFLAGS"
            aros_host_x11_ldflags="$X_LIBS  -lX11"

                        # Check whether --enable-x11_shm was given.
if test ${enable_x11_shm+y}
then :
  enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
else case e in #(
  e) x11_hidd_shm="auto" ;;
esac
fi

            case "x-$x11_hidd_shm" in
                x-yes|x-no|x-auto)                     ;;
                *)                 x11_hidd_shm="auto" ;;
            esac

            have_xshm=no

                        if test "x-$x11_hidd_shm" != "x-no" ; then

                                ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ipc_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYS_IPC_H 1" >>confdefs.h

fi

                ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_shm_h" = xyes
then :
  printf '%s\n' "#define HAVE_SYS_SHM_H 1" >>confdefs.h

fi


                                if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then

                                        save_cflags="$CFLAGS"
                    save_ldflags="$LDFLAGS"
                    CFLAGS="$CFLAGS $X_CFLAGS"
                    LDFLAGS="$LDFLAGS $X_LIBS"
                    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
printf %s "checking for XShmQueryExtension in -lXext... " >&6; }
if test ${ac_cv_lib_Xext_XShmQueryExtension+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lXext  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char XShmQueryExtension (void);
int
main (void)
{
return XShmQueryExtension ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_Xext_XShmQueryExtension=yes
else case e in #(
  e) ac_cv_lib_Xext_XShmQueryExtension=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
printf '%s\n' "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
then :
  have_xshm=yes
fi

                    CFLAGS="$save_cflags"
                    LDFLAGS="$save_ldflags"
                fi
            fi

                        if test "x-$have_xshm" = "x-yes" ; then
                                DO_XSHM_SUPPORT="1"
            elif test "x-$x11_hidd_shm" = "x-yes" ; then
                                as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
            else
                                DO_XSHM_SUPPORT="0"
                if test "x-$x11_hidd_shm" != "x-no" ; then
                    CONFIG_WARNINGS="${CONFIG_WARNINGS}  * X11 MIT-SHM extension not available - the hosted X11 driver will use slower screen transfers
"
                fi
            fi


                        # Check whether --enable-x11_vidmode was given.
if test ${enable_x11_vidmode+y}
then :
  enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
else case e in #(
  e) x11_hidd_vidmode="auto" ;;
esac
fi

            case "x-$x11_hidd_vidmode" in
                x-yes|x-no|x-auto)                         ;;
                *)                 x11_hidd_vidmode="auto" ;;
            esac

            have_vidmode=no

                        if test "x-$x11_hidd_vidmode" != "x-no" ; then

                                save_cflags="$CFLAGS"
                save_ldflags="$LDFLAGS"
                CFLAGS="$CFLAGS $X_CFLAGS"
                LDFLAGS="$LDFLAGS $X_LIBS"
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
printf %s "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
if test ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lXxf86vm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char XF86VidModeQueryExtension (void);
int
main (void)
{
return XF86VidModeQueryExtension ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
else case e in #(
  e) ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
printf '%s\n' "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
then :
  have_vidmode=yes
fi

                CFLAGS="$save_cflags"
                LDFLAGS="$save_ldflags"
            fi

                        if test "x-$have_vidmode" = "x-yes" ; then
                                DO_VIDMODE_SUPPORT="1"
            elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
                                as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
            else
                                DO_VIDMODE_SUPPORT="0"
                if test "x-$x11_hidd_vidmode" != "x-no" ; then
                    CONFIG_WARNINGS="${CONFIG_WARNINGS}  * X11 VidMode extension not available - fullscreen mode will not be available in the hosted X11 driver
"
                fi
            fi
        fi
    fi

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

    case "x-$sdl_hidd" in
        x-yes|x-no|x-auto)                 ;;
        *)                 sdl_hidd="auto" ;;
    esac

        if test "x-$sdl_hidd" != "x-no" ; then

                SDL_VERSION=1.2.5

# Check whether --with-sdl-prefix was given.
if test ${with_sdl_prefix+y}
then :
  withval=$with_sdl_prefix; sdl_prefix="$withval"
else case e in #(
  e) sdl_prefix="" ;;
esac
fi


# Check whether --with-sdl-exec-prefix was given.
if test ${with_sdl_exec_prefix+y}
then :
  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
else case e in #(
  e) sdl_exec_prefix="" ;;
esac
fi

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


  if test x$sdl_exec_prefix != x ; then
    sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
    if test x${SDL_CONFIG+set} != xset ; then
      SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
    fi
  fi
  if test x$sdl_prefix != x ; then
    sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
    if test x${SDL_CONFIG+set} != xset ; then
      SDL_CONFIG=$sdl_prefix/bin/sdl-config
    fi
  fi

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

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


  PATH="$as_save_PATH"
  min_sdl_version=$SDL_VERSION
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
printf %s "checking for SDL - version >= $min_sdl_version... " >&6; }
  no_sdl=""
  if test "$SDL_CONFIG" = "no" ; then
    no_sdl=yes
  else
    SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
    SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`

    sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
    sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
    if test "x$enable_sdltest" = "xyes" ; then
      ac_save_CFLAGS="$CFLAGS"
      ac_save_CXXFLAGS="$CXXFLAGS"
      ac_save_LIBS="$LIBS"
      CFLAGS="$CFLAGS $SDL_CFLAGS"
      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
      LIBS="$LIBS $SDL_LIBS"
      rm -f conf.sdltest
      if test "$cross_compiling" = yes
then :
  echo $ac_n "cross compiling; assumed OK... $ac_c"
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "SDL.h"

char*
my_strdup (char *str)
{
  char *new_str;

  if (str)
    {
      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
      strcpy (new_str, str);
    }
  else
    new_str = NULL;

  return new_str;
}

int main (int argc, char *argv[])
{
  int major, minor, micro;
  char *tmp_version;

  /* This hangs on some systems (?)
  system ("touch conf.sdltest");
  */
  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }

  /* HP/UX 9 (%@#!) writes to sscanf strings */
  tmp_version = my_strdup("$min_sdl_version");
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
     printf("%s, bad version string\n", "$min_sdl_version");
     exit(1);
   }

   if (($sdl_major_version > major) ||
      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
    {
      return 0;
    }
  else
    {
      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
      printf("*** best to upgrade to the required version.\n");
      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
      printf("*** config.cache before re-running configure\n");
      return 1;
    }
}


_ACEOF
if ac_fn_c_try_run "$LINENO"
then :

else case e in #(
  e) no_sdl=yes ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

       CFLAGS="$ac_save_CFLAGS"
       CXXFLAGS="$ac_save_CXXFLAGS"
       LIBS="$ac_save_LIBS"
     fi
  fi
  if test "x$no_sdl" = x ; then
     { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf '%s\n' "yes" >&6; }
     have_sdl="yes"
  else
     { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf '%s\n' "no" >&6; }
     if test "$SDL_CONFIG" = "no" ; then
       echo "*** The sdl-config script installed by SDL could not be found"
       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
       echo "*** your path, or set the SDL_CONFIG environment variable to the"
       echo "*** full path to sdl-config."
     else
       if test -f conf.sdltest ; then
        :
       else
          echo "*** Could not run SDL test program, checking why..."
          CFLAGS="$CFLAGS $SDL_CFLAGS"
          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
          LIBS="$LIBS $SDL_LIBS"
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include "SDL.h"

int main(int argc, char *argv[])
{ return 0; }
#undef  main
#define main K_and_R_C_main

int
main (void)
{
 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
   echo "*** The test program compiled, but did not run. This usually means"
          echo "*** that the run-time linker is not finding SDL or finding the wrong"
          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
          echo "*** is required on your system"
	  echo "***"
          echo "*** If you have an old version installed, it is best to remove it, although"
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
else case e in #(
  e)  echo "*** The test program failed to compile or link. See the file config.log for the"
          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
          CFLAGS="$ac_save_CFLAGS"
          CXXFLAGS="$ac_save_CXXFLAGS"
          LIBS="$ac_save_LIBS"
       fi
     fi
     SDL_CFLAGS=""
     SDL_LIBS=""
     have_sdl="no"
  fi


  rm -f conf.sdltest


        if test "x-$have_sdl" != "x-yes" ; then

                        if test "x-$sdl_hidd" != "x-auto" ; then
                                as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
            fi
                        CONFIG_WARNINGS="${CONFIG_WARNINGS}  * SDL libraries/headers not found - the hosted SDL graphics driver will not be built
"

        else
                        aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX               := yes$export_newline"
            aros_host_sdl_cflags=$SDL_CFLAGS
            aros_host_sdl_libs=$SDL_LIBS
        fi
    fi

    if test "x-$HOST_WANTS_DBUS" = "x-yes" ; then
                { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
printf %s "checking whether building of dbus.library is enabled... " >&6; }
        # Check whether --enable-dbus was given.
if test ${enable_dbus+y}
then :
  enableval=$enable_dbus; dbus="yes"
else case e in #(
  e) dbus="no" ;;
esac
fi

        if test "$dbus" = "yes" ; then
            DBUS_CFLAGS=`pkg-config --cflags dbus-1`
            DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
            KERNEL_DBUS_KOBJ=kernel-dbus-kobj
            KERNEL_DBUS_INCLUDES=kernel-dbus-includes
            aros_target_options+="$export_newline""# Enable DBUS Support$export_newline""OPT_HOST_DBUS              := yes$export_newline"
        fi
        { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
printf '%s\n' "$dbus" >&6; }
    fi
fi

if test "$use_kernel_cc_wrapper" = "yes" || test "$aros_kernel_llvmwrapper" = "yes" ; then
    aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
    aros_kernel_cxx="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_cxx_compiler}"
fi

aros_kernel_cppflags=$aros_config_cppflags
aros_optimization_cflags="$optimization_level"
if test "$optimization" = "default"; then
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
printf %s "checking default optimization level to use... " >&6; }
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
printf '%s\n' "$optimization_level" >&6; }
fi


{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking kernel optimization level to conserve space" >&5
printf %s "checking kernel optimization level to conserve space... " >&6; }
if test "$kernel_optimization_level" = ""; then
    kernel_optimization_level=$optimization_level
fi
kernel_optimization_cflags="$kernel_optimization_level"
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $kernel_optimization_level" >&5
printf '%s\n' "$kernel_optimization_level" >&6; }


{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if we should enable unit tests" >&5
printf %s "checking if we should enable unit tests... " >&6; }
# Check whether --enable-unit-tests was given.
if test ${enable_unit_tests+y}
then :
  enableval=$enable_unit_tests; aros_config_unittests="$enableval"
else case e in #(
  e) aros_config_unittests="no" ;;
esac
fi

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


case "$aros_target_cpu" in
    riscv*)
        export_target_gcccpu="yes"
        ;;
    arm)
        export_target_gcccpu="yes"
        ;;
    m68k)
        export_target_gcccpu="yes"
        ;;
    *)
        ;;
esac

if test "$export_target_gcccpu" = "yes" ; then
    export_firstextraline="$export_newline# GCC CPU Config$export_newline"
    if ! test "$aros_gcc_cpu" = "" ; then
        target_extra_cfg+="$export_firstextraline""GCC_CONFIG_CPU                = $aros_gcc_cpu$export_newline"
        export_firstextraline=""
    else
        target_extra_cfg+="$export_firstextraline""GCC_CONFIG_CPU                = $""(GCC_DEFAULT_CPU)$export_newline"
        export_firstextraline=""
    fi
    if ! test "$gcc_soft_cpu" = "" ; then
        target_extra_cfg+="$export_firstextraline""GCC_SOFT_CPU                  := $gcc_soft_cpu$export_newline"
        export_firstextraline=""
    fi
    if ! test "$gcc_float_cpu" = "" ; then
        target_extra_cfg+="$export_firstextraline""GCC_FLOAT_CPU                 := $gcc_float_cpu$export_newline"
        export_firstextraline=""
    fi
    if ! test "$gcc_default_cpu" = "" ; then
        target_extra_cfg+="$export_firstextraline""GCC_DEFAULT_CPU               := $gcc_default_cpu$export_newline"
        export_firstextraline=""
    else
        if test "$gcc_config_float_abi" = "hard" ; then
            target_extra_cfg+="$export_firstextraline""GCC_DEFAULT_CPU               := $""(GCC_FLOAT_CPU)$export_newline"
        else
            target_extra_cfg+="$export_firstextraline""GCC_DEFAULT_CPU               := $""(GCC_SOFT_CPU)$export_newline"
        fi
        export_firstextraline=""
    fi

    if ! test "$gcc_config_fpu" = "" ; then
        target_extra_cfg+="$export_firstextraline""GCC_CONFIG_FPU               = $gcc_config_fpu$export_newline"
        export_firstextraline=""
    else
        target_extra_cfg+="$export_firstextraline""GCC_CONFIG_FPU                = $""(GCC_DEFAULT_FPU)$export_newline"
        export_firstextraline=""
    fi
    if ! test "$gcc_soft_fpu" = "" ; then
        target_extra_cfg+="$export_firstextraline""GCC_SOFT_FPU                  := $gcc_soft_fpu$export_newline"
        export_firstextraline=""
    fi
    if ! test "$gcc_float_fpu" = "" ; then
        target_extra_cfg+="$export_firstextraline""GCC_FLOAT_FPU                 := $gcc_float_fpu$export_newline"
        export_firstextraline=""
    fi
    if ! test "$gcc_default_fpu" = "" ; then
        target_extra_cfg+="$export_firstextraline""GCC_DEFAULT_FPU               := $gcc_default_fpu$export_newline"
        export_firstextraline=""
    else
        if test "$gcc_config_float_abi" = "hard" ; then
            target_extra_cfg+="$export_firstextraline""GCC_DEFAULT_FPU               := $""(GCC_FLOAT_FPU)$export_newline"
        else
            target_extra_cfg+="$export_firstextraline""GCC_DEFAULT_FPU               := $""(GCC_SOFT_FPU)$export_newline"
        fi
        export_firstextraline=""
    fi

    if ! test "$gcc_config_float_abi" = "" ; then
        target_extra_cfg+="$export_firstextraline""GCC_CONFIG_FLOAT_ABI          = $gcc_config_float_abi$export_newline"
        export_firstextraline=""
    else
        target_extra_cfg+="$export_firstextraline""GCC_CONFIG_FLOAT_ABI          = $""(GCC_DEFAULT_FLOAT_ABI)$export_newline"
        export_firstextraline=""
    fi
    if ! test "$gcc_soft_abi" = "" ; then
        target_extra_cfg+="$export_firstextraline""GCC_SOFT_ABI                  := $gcc_soft_abi$export_newline"
        export_firstextraline=""
    fi
    if ! test "$gcc_float_abi" = "" ; then
        target_extra_cfg+="$export_firstextraline""GCC_FLOAT_ABI                 := $gcc_float_abi$export_newline"
        export_firstextraline=""
    fi
    if ! test "$gcc_default_float_abi" = "" ; then
        if test "$gcc_default_float_abi" = "hard" ; then
            target_extra_cfg+="$export_firstextraline""GCC_DEFAULT_FLOAT_ABI         := $""(GCC_FLOAT_ABI)$export_newline"
        else
            target_extra_cfg+="$export_firstextraline""GCC_DEFAULT_FLOAT_ABI         := $""(GCC_SOFT_ABI)$export_newline"
        fi
        export_firstextraline=""
    fi

    if ! test "$gcc_default_mode" = "" ; then
        target_extra_cfg+="$export_firstextraline""GCC_DEFAULT_MODE              := $gcc_default_mode$export_newline"
        export_firstextraline=""
    fi
fi

if test "$use_libatomic" = "yes" ; then
    aros_cxx_libs="$aros_cxx_libs  -latomic"
fi


make_extra_commands="$make_extra_commands$export_newline""GENCTBL	:= $""(TOOLDIR)/genctbl$""(HOST_EXE_SUFFIX)$export_newline"

aros_kernel_cflags="$aros_kernel_cflags $aros_kernel_export_cflags"

if test "$aros_target_variant" = ""; then
    aros_target_platform="$aros_target_arch-$aros_target_cpu"
else
    case "$target_os" in
        pc)
            aros_target_platform="$aros_target_arch-$aros_target_cpu"
            ;;
        *)
            aros_target_platform="$aros_target_variant-$aros_target_cpu"
            ;;
    esac
fi

if ! test "$aros_target_cpu32" = "" ; then
aros_target_cpu_extra="$export_newline""AROS_TARGET_CPU32       ?= $aros_target_cpu32$export_newline"
fi

CC=$CC
CFLAGS=$CFLAGS
CHMOD=$CHMOD
CP=$CP
ECHO=$ECHO
FLEX=$FLEX
MV=$MV
NOP=$NOP
PATCH=$PATCH
PNGTOPNM=$PNGTOPNM
PPMTOILBM=$PPMTOILBM
SED=$SED
SORT=$SORT
TOUCH=$TOUCH
UNIQ=$UNIQ

aros_config_cflags=$aros_config_cflags
aros_config_cppflags=$aros_config_cppflags
aros_config_cxxflags=$aros_config_cxxflags

aros_c_libs=$aros_c_libs
aros_cxx_libs=$aros_cxx_libs

aros_host_ldflags=$aros_host_ldflags
aros_host_strip=$aros_host_strip
aros_host_x11_ldflags=$aros_host_x11_ldflags

aros_kernel_ar=$aros_kernel_ar
aros_kernel_as=$aros_kernel_as
aros_kernel_cc=$aros_kernel_cc
aros_kernel_cflags=$aros_kernel_cflags
aros_kernel_cppflags=$aros_kernel_cppflags
aros_kernel_cxx=$aros_kernel_cxx
aros_kernel_nm=$aros_kernel_nm
aros_kernel_objcopy=$aros_kernel_objcopy
aros_kernel_objdump=$aros_kernel_objdump
aros_kernel_ranlib=$aros_kernel_ranlib

# Values used to generate the meson cross file (config/conf.meson.in).
# Meson has its own well known set of cpu_family names, so map the AROS
# target cpu to the matching meson name.
case "$aros_target_cpu" in
    i386)
        aros_target_meson_cpu_family="x86"
        ;;
    riscv)
        aros_target_meson_cpu_family="riscv32"
        ;;
    *)
        aros_target_meson_cpu_family="$aros_target_cpu"
        ;;
esac
if test "$gcc_default_endian" = "big-endian"; then
    aros_target_meson_endian="big"
else
    case "$aros_target_cpu" in
        m68k|ppc|sparc)
            aros_target_meson_endian="big"
            ;;
        *)
            aros_target_meson_endian="little"
            ;;
    esac
fi

# Generic















# Compatability with other Amiga-like operating systems


# Host Related ###########################


































# Target Related #########################















































































































# Native version related





# MMU related


# Bootloader related

host_has_lzma=$have_lzma

host_has_libelf=$have_libelf






# Unix/Hosted version related


# Define set if classic variant is chosen


# ARM default GCC target related






# Palm native version related


# Apple iOS related




# Android related





# Debug related





# Collect-aros stuff: "-ius" to ignore undefined symbols


# C compiler related






#ObjC compiler related


#Java related


#Rust related


# jpegxl.datatype toolchain support (libjxl requires gcc >= 8)


# DBUS related





#ALSA



#X11 related







#SDL related



# USB3.0 code


# The preference set option(s)...


# Additional directories metamake needs to ignore...




case "$aros_flavour" in
emulation)      aros_flavour_uc="AROS_FLAVOUR_EMULATION"
                aros_flavour="emulation" ;;
emulcompat)     aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
                aros_flavour="emulation" ;;
standalone)     aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
                aros_flavour="standalone";;
standcompat)    aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
                aros_flavour="standalone";;
native)         aros_flavour_uc="AROS_FLAVOUR_NATIVE"
                aros_flavour="native" ;;
nativecompat)   aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
                aros_flavour="native" ;;
linklib)        aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
                aros_flavour="linklib" ;;
palmnative)     aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
                aros_flavour="palmnative" ;;
mac68knative)   aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
                aros_flavour="mac68knative" ;;
ppcnative)      aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
                aros_flavour="ppcnative" ;;
esac

if test ! -d ${aros_inc_dir} ; then
    ${MKDIR} ${aros_inc_dir}
fi
if test ! -d ${aros_geninc_dir} ; then
    ${MKDIR} ${aros_geninc_dir}
fi
if test ! -d ${aros_hostcfg_dir} ; then
    ${MKDIR} ${aros_hostcfg_dir}
fi
if test ! -d ${aros_targetcfg_dir} ; then
    ${MKDIR} ${aros_targetcfg_dir}
fi
if test ! -d ${aros_tools_dir} ; then
    ${MKDIR} ${aros_tools_dir}
fi
if test ! -d ${aros_scripts_dir} ; then
    ${MKDIR} ${aros_scripts_dir}
fi

ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"


# Generic build tools (metamake, etc)
ac_config_commands="$ac_config_commands genmf-executable-support"

ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/geninc.cfg:compiler/include/geninc.cfg.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in ${aros_host_gendir}/tools/collect-aros/env.h:tools/collect-aros/env.h.in ${aros_gendir}/tools/collect-aros/env.h:tools/collect-aros/env.h.in"


if test "x$target_needs_collect32" = "xyes"; then
  ac_config_files="$ac_config_files ${aros_host_gendir}/tools/collect-aros32/env.h:tools/collect-aros/env.h.in"


    ac_config_commands="$ac_config_commands collect-aros32"


   aros_collect32_target="$""(COLLECT-AROS32)"

fi

# Binutils
ac_config_commands="$ac_config_commands binutils-support"

if test "${use_ld_wrapper}" = "yes"; then
    ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in"

fi
# Bare Elf support script and spec
if test "${use_kernel_cc_wrapper}" = "yes"; then
    ac_config_commands="$ac_config_commands elf-compiler-support"

    ac_config_files="$ac_config_files ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in"

fi

# Host compiler support scripts and spec
if test "${aros_target_toolchain}" = "no"; then
    ac_config_commands="$ac_config_commands host-compiler-wrapper-support"

    ac_config_files="$ac_config_files ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in"

fi

if test "${aros_kernel_llvmwrapper}" = "yes"; then
    ac_config_commands="$ac_config_commands clang-kernel-compiler-wrapper-support"

    ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in"

fi

if test -n "$PKG_CONFIG"; then
    ac_config_commands="$ac_config_commands pkg-config-support"

    ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-aros-pkg-config:scripts/pkg-config.in"

fi

# Android support
if test "$aros_target_variant" == "android"; then
    ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"

fi

# cmake helper
ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"


# meson cross file
ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.meson:config/conf.meson.in"


# Record any optional features that will be missing so they can be shown to
# the user once configuration has completed. Only create the file when there
# is something to report.
rm -f config.warnings
if test "x$CONFIG_WARNINGS" != "x"; then
    {
        echo "The following optional features will NOT be available in this build,"
        echo "because the host components they depend on were not found:"
        echo ""
        printf "%s" "$CONFIG_WARNINGS"
        echo ""
        echo "Install the missing components listed above and re-run configure to"
        echo "enable these features."
    } > config.warnings
fi

# At the end, add a final message
ac_config_commands="$ac_config_commands postmsg"


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

ac_cache_dump |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs



: "${CONFIG_STATUS=./config.status}"
case $CONFIG_STATUS in #(
  -*) :
    CONFIG_STATUS=./$CONFIG_STATUS ;; #(
  */*) :
     ;; #(
  *) :
    CONFIG_STATUS=./$CONFIG_STATUS ;;
esac

ac_write_fail=0
ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

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



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

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

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

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

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

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

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


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

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



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


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

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

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

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

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


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

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

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

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

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

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


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

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


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


# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p

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

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


exec 6>&1
## ------------------------------------- ##
## Main body of "$CONFIG_STATUS" script. ##
## ------------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1

cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by $as_me, which was
generated by GNU Autoconf 2.73.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
'$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to the package provider."

_ACEOF
ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.73,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2026 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 '' </dev/null ||
    as_fn_error \$? "try installing gawk"
  AWK=awk
}
_ACEOF

cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=?*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  --*=)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    printf '%s\n' "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    printf '%s\n' "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error $? "ambiguous option: '$1'
Try '$0 --help' for more information.";;
  --help | --hel | -h )
    printf '%s\n' "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error $? "unrecognized option: '$1'
Try '$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  printf '%s\n' "$ac_log"
} >&5

_ACEOF
cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#

        AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
        aros_tools_dir=${aros_tools_dir}


AROS_TARGET32_CPU=$aros_target_cpu32
   AROS_HOST_GENDIR=$aros_host_gendir

        aros_host_exe_suffix=${aros_host_exe_suffix}
        aros_tools_dir=${aros_tools_dir}
        aros_target_cpu=${aros_target_cpu}
        aros_target_arch=${aros_target_arch}
        aros_target_suffix=${aros_target_suffix}
        orig_target_nm=${orig_target_nm}
        orig_target_as=${orig_target_as}
        orig_target_ar=${orig_target_ar}
        orig_target_ranlib=${orig_target_ranlib}
        orig_target_objdump=${orig_target_objdump}
        orig_target_objcopy=${orig_target_objcopy}
        orig_target_strip=${orig_target_strip}
        aros_kernel_ld=${aros_kernel_ld}



            aros_host_exe_suffix=${aros_host_exe_suffix}
            aros_tools_dir=${aros_tools_dir}
            aros_target_cpu=${aros_target_cpu}
            aros_target_arch=${aros_target_arch}
            aros_target_suffix=${aros_target_suffix}
            aros_kernel_ld=${aros_kernel_ld}



            aros_host_exe_suffix=${aros_host_exe_suffix}
            aros_tools_dir=${aros_tools_dir}
            aros_target_cpu=${aros_target_cpu}
            aros_target_arch=${aros_target_arch}
            aros_target_suffix=${aros_target_suffix}



            aros_tools_dir=${aros_tools_dir}
            aros_target_cpu=${aros_target_cpu}
            aros_target_arch=${aros_target_arch}
            aros_target_suffix=${aros_target_suffix}
            toolchain_c_compiler=${toolchain_c_compiler}
            toolchain_cxx_compiler=${toolchain_cxx_compiler}



            aros_tools_dir=${aros_tools_dir}
            aros_target_cpu=${aros_target_cpu}



_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
    "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
    "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
    "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
    "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
    "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
    "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
    "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
    "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
    "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
    "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
    "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
    "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
    "${aros_host_gendir}/tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES ${aros_host_gendir}/tools/collect-aros/env.h:tools/collect-aros/env.h.in" ;;
    "${aros_gendir}/tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES ${aros_gendir}/tools/collect-aros/env.h:tools/collect-aros/env.h.in" ;;
    "${aros_host_gendir}/tools/collect-aros32/env.h") CONFIG_FILES="$CONFIG_FILES ${aros_host_gendir}/tools/collect-aros32/env.h:tools/collect-aros/env.h.in" ;;
    "collect-aros32") CONFIG_COMMANDS="$CONFIG_COMMANDS collect-aros32" ;;
    "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
    "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in" ;;
    "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
    "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
    "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in" ;;
    "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
    "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
    "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in" ;;
    "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in" ;;
    "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in" ;;
    "clang-kernel-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS clang-kernel-compiler-wrapper-support" ;;
    "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in" ;;
    "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_cxx_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in" ;;
    "pkg-config-support") CONFIG_COMMANDS="$CONFIG_COMMANDS pkg-config-support" ;;
    "${aros_tools_dir}/${aros_target_cpu}-aros-pkg-config") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-aros-pkg-config:scripts/pkg-config.in" ;;
    "${aros_gendir}/arch/all-android/bootstrap/app/default.properties") CONFIG_FILES="$CONFIG_FILES ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in" ;;
    "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
    "${aros_targetcfg_dir}/conf.meson") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.meson:config/conf.meson.in" ;;
    "postmsg") CONFIG_COMMANDS="$CONFIG_COMMANDS postmsg" ;;

  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to '$tmp'.
$debug ||
{
  tmp= ac_tmp=
  trap 'exit_status=$?
  : "${ac_tmp:=$tmp}"
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with './config.status config.h'.
if test -n "$CONFIG_FILES"; then


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" | sed -n '$='`
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 | sed -n '$='`
  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"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with './config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script 'defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_tt"; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>"$CONFIG_STATUS" || ac_write_fail=1

cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    suffix = P[macro] D[macro]
    while (suffix ~ /[\t ]$/) {
      suffix = substr(suffix, 1, length(suffix) - 1)
    }
    # Preserve the white space surrounding the "#".
    print prefix "define", macro suffix
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$ac_tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain ':'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is 'configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
printf '%s\n' "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`printf '%s\n' "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
printf '%s\n' X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

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

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


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

_ACEOF

cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when '$srcdir' = '.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
$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"; } &&
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
which seems to be undefined.  Please make sure it is defined" >&5
printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
which seems to be undefined.  Please make sure it is defined" >&2;}

  rm -f "$ac_tmp/stdin"
  case $ac_file in
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  esac \
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      printf '%s\n' "/* $configure_input  */" >&1 \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    } >"$ac_tmp/config.h" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
      { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$ac_tmp/config.h" "$ac_file" \
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
    fi
  else
    printf '%s\n' "/* $configure_input  */" >&1 \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error $? "could not create -" "$LINENO" 5
  fi
 ;;

  :C)  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "genmf-executable-support":C)
        chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
        chmod a+x ${aros_tools_dir}/genmf.py
     ;;
    "collect-aros32":C)
    echo "Patching collect-aros32/env.h with 32-bit target CPU: $AROS_TARGET32_CPU"
    sed -i.bak "s/^#define TARGET_CPU_.*/#define TARGET_CPU_$AROS_TARGET32_CPU/" "$AROS_HOST_GENDIR/tools/collect-aros32/env.h"
    rm -f "$AROS_GENDIR/tools/collect-aros32/env.h.bak"
   ;;
    "binutils-support":C)
        prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
        mkdir -p $prefix
        prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros

        chmod a+x ${prefix2}-ld

        ln -sf $orig_target_as$aros_host_exe_suffix      ${prefix2}-as$aros_host_exe_suffix
        ln -sf $orig_target_nm$aros_host_exe_suffix      ${prefix2}-nm$aros_host_exe_suffix
        ln -sf $orig_target_ar$aros_host_exe_suffix      ${prefix2}-ar$aros_host_exe_suffix
        ln -sf $orig_target_ranlib$aros_host_exe_suffix  ${prefix2}-ranlib$aros_host_exe_suffix
        ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
        ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
        ln -sf $orig_target_strip$aros_host_exe_suffix   ${prefix2}-strip$aros_host_exe_suffix
     ;;
    "elf-compiler-support":C)
            prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
            mkdir -p $prefix
            prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf

            chmod a+x ${prefix2}-gcc

            ln -sf $aros_kernel_ld$aros_host_exe_suffix         ${prefix2}-ld$aros_host_exe_suffix
         ;;
    "host-compiler-wrapper-support":C)
            prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
            mkdir -p $prefix
            prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros

            chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
         ;;
    "clang-kernel-compiler-wrapper-support":C)
            prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf

            chmod a+x ${prefix}-${toolchain_c_compiler} ${prefix}-${toolchain_cxx_compiler}
         ;;
    "pkg-config-support":C)
            prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}

            chmod a+x ${prefix}-aros-pkg-config
         ;;
    "postmsg":C)
  echo ""
  echo "Configuration complete!"
  if test -f config.warnings; then
    echo ""
    echo "------------------------------------------------------------------------"
    cat config.warnings
    echo "------------------------------------------------------------------------"
    rm -f config.warnings
  fi
  echo ""
  echo "Now run 'make' to build the project."
  echo ""
 ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_CONFIG_STATUS=

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=:
  case $CONFIG_STATUS in #(
  -*) :
    ac_no_opts=-- ;; #(
  *) :
    ac_no_opts= ;;
esac
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $ac_no_opts "$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
  { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi




#XXX compatability...
aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"

if test -n "$aros_shared_cflags" ; then
    echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
    echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg
fi

