2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars
='LTLIBOBJS
627 aros_host_x11_ldflags
639 target_binutils_version
641 ignore_undefined_symbols
653 gcc_default_float_abi
657 aros_nesting_supervisor
668 crosstools_cxx_target
672 aros_kernel_isa_flags
673 aros_optimization_cflags
676 aros_target_strip_flags
684 aros_kernel_objcflags
710 aros_target_cc_includes
726 aros_target_bootloader
756 host_stat_h__unused_used
757 aros_amigaos_compliance
765 aros_target_toolchain
774 kernel_cflags_iquote_end
776 host_cflags_iquote_end
779 aros_target_nostdlib_ldflags
780 aros_target_detach_ldflags
781 aros_target_nix_ldflags
782 aros_target_nostartup_ldflags
783 aros_target_nostdinc_cflags
823 arosconfig_use_libpngconfig
911 program_transform_name
924 enable_option_checking
935 with_kernel_gcc_version
938 enable_target_variant
945 enable_amigaos_compliance
946 with_kernel_toolchain_prefix
947 with_elf_toolchain_prefix
950 with_aros_toolchain_install
951 with_binutils_version
966 enable_palm_debug_hack
968 enable_nesting_supervisor
980 ac_precious_vars
='build_alias
996 # Initialize some variables set by options.
998 ac_init_version
=false
999 ac_unrecognized_opts
=
1000 ac_unrecognized_sep
=
1001 # The variables have the same names as the options, with
1002 # dashes changed to underlines.
1003 cache_file
=/dev
/null
1010 program_transform_name
=s
,x
,x
,
1018 # Installation directory options.
1019 # These are left unexpanded so users can "make install exec_prefix=/foo"
1020 # and all the variables that are supposed to be based on exec_prefix
1021 # by default will actually change.
1022 # Use braces instead of parens because sh, perl, etc. also accept them.
1023 # (The list follows the same order as the GNU Coding Standards.)
1024 bindir
='${exec_prefix}/bin'
1025 sbindir
='${exec_prefix}/sbin'
1026 libexecdir
='${exec_prefix}/libexec'
1027 datarootdir
='${prefix}/share'
1028 datadir
='${datarootdir}'
1029 sysconfdir
='${prefix}/etc'
1030 sharedstatedir
='${prefix}/com'
1031 localstatedir
='${prefix}/var'
1032 runstatedir
='${localstatedir}/run'
1033 includedir
='${prefix}/include'
1034 oldincludedir
='/usr/include'
1035 docdir
='${datarootdir}/doc/${PACKAGE}'
1036 infodir
='${datarootdir}/info'
1041 libdir
='${exec_prefix}/lib'
1042 localedir
='${datarootdir}/locale'
1043 mandir
='${datarootdir}/man'
1049 # If the previous option needs an argument, assign it.
1050 if test -n "$ac_prev"; then
1051 eval $ac_prev=\
$ac_option
1057 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1062 # Accept the important Cygnus configure options, so we can diagnose typos.
1064 case $ac_dashdash$ac_option in
1068 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1070 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1071 bindir
=$ac_optarg ;;
1073 -build |
--build |
--buil |
--bui |
--bu)
1074 ac_prev
=build_alias
;;
1075 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1076 build_alias
=$ac_optarg ;;
1078 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1079 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1080 ac_prev
=cache_file
;;
1081 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1082 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1083 cache_file
=$ac_optarg ;;
1085 --config-cache |
-C)
1086 cache_file
=config.cache
;;
1088 -datadir |
--datadir |
--datadi |
--datad)
1090 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1091 datadir
=$ac_optarg ;;
1093 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1094 |
--dataroo |
--dataro |
--datar)
1095 ac_prev
=datarootdir
;;
1096 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1097 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1098 datarootdir
=$ac_optarg ;;
1100 -disable-* |
--disable-*)
1101 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1104 as_fn_error $?
"invalid feature name: $ac_useropt"
1105 ac_useropt_orig
=$ac_useropt
1106 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "enable_
$ac_useropt"
1111 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1112 ac_unrecognized_sep
=', ';;
1114 eval enable_
$ac_useropt=no
;;
1116 -docdir |
--docdir |
--docdi |
--doc |
--do)
1118 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1119 docdir
=$ac_optarg ;;
1121 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1123 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1124 dvidir
=$ac_optarg ;;
1126 -enable-* |
--enable-*)
1127 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1130 as_fn_error $?
"invalid feature name: $ac_useropt"
1131 ac_useropt_orig
=$ac_useropt
1132 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1135 "enable_
$ac_useropt"
1137 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1138 ac_unrecognized_sep
=', ';;
1140 eval enable_
$ac_useropt=\
$ac_optarg ;;
1142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1144 |
--exec |
--exe |
--ex)
1145 ac_prev
=exec_prefix
;;
1146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1148 |
--exec=* |
--exe=* |
--ex=*)
1149 exec_prefix
=$ac_optarg ;;
1151 -gas |
--gas |
--ga |
--g)
1152 # Obsolete; use --with-gas.
1155 -help |
--help |
--hel |
--he |
-h)
1156 ac_init_help
=long
;;
1157 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1158 ac_init_help
=recursive
;;
1159 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1160 ac_init_help
=short
;;
1162 -host |
--host |
--hos |
--ho)
1163 ac_prev
=host_alias
;;
1164 -host=* |
--host=* |
--hos=* |
--ho=*)
1165 host_alias
=$ac_optarg ;;
1167 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1169 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1171 htmldir
=$ac_optarg ;;
1173 -includedir |
--includedir |
--includedi |
--included |
--include \
1174 |
--includ |
--inclu |
--incl |
--inc)
1175 ac_prev
=includedir
;;
1176 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1177 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1178 includedir
=$ac_optarg ;;
1180 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1182 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1183 infodir
=$ac_optarg ;;
1185 -libdir |
--libdir |
--libdi |
--libd)
1187 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1188 libdir
=$ac_optarg ;;
1190 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1191 |
--libexe |
--libex |
--libe)
1192 ac_prev
=libexecdir
;;
1193 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1194 |
--libexe=* |
--libex=* |
--libe=*)
1195 libexecdir
=$ac_optarg ;;
1197 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1198 ac_prev
=localedir
;;
1199 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1200 localedir
=$ac_optarg ;;
1202 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1203 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1204 ac_prev
=localstatedir
;;
1205 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1206 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1207 localstatedir
=$ac_optarg ;;
1209 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1211 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1212 mandir
=$ac_optarg ;;
1214 -nfp |
--nfp |
--nf)
1215 # Obsolete; use --without-fp.
1218 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1219 |
--no-cr |
--no-c |
-n)
1222 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1223 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1226 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1227 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1228 |
--oldin |
--oldi |
--old |
--ol |
--o)
1229 ac_prev
=oldincludedir
;;
1230 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1231 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1232 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1233 oldincludedir
=$ac_optarg ;;
1235 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1237 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1238 prefix
=$ac_optarg ;;
1240 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1241 |
--program-pre |
--program-pr |
--program-p)
1242 ac_prev
=program_prefix
;;
1243 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1244 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1245 program_prefix
=$ac_optarg ;;
1247 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1248 |
--program-suf |
--program-su |
--program-s)
1249 ac_prev
=program_suffix
;;
1250 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1251 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1252 program_suffix
=$ac_optarg ;;
1254 -program-transform-name |
--program-transform-name \
1255 |
--program-transform-nam |
--program-transform-na \
1256 |
--program-transform-n |
--program-transform- \
1257 |
--program-transform |
--program-transfor \
1258 |
--program-transfo |
--program-transf \
1259 |
--program-trans |
--program-tran \
1260 |
--progr-tra |
--program-tr |
--program-t)
1261 ac_prev
=program_transform_name
;;
1262 -program-transform-name=* |
--program-transform-name=* \
1263 |
--program-transform-nam=* |
--program-transform-na=* \
1264 |
--program-transform-n=* |
--program-transform-=* \
1265 |
--program-transform=* |
--program-transfor=* \
1266 |
--program-transfo=* |
--program-transf=* \
1267 |
--program-trans=* |
--program-tran=* \
1268 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1269 program_transform_name
=$ac_optarg ;;
1271 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1273 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1274 pdfdir
=$ac_optarg ;;
1276 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1278 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1281 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1282 |
-silent |
--silent |
--silen |
--sile |
--sil)
1285 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1286 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1287 |
--run |
--ru |
--r)
1288 ac_prev
=runstatedir
;;
1289 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1290 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1291 |
--run=* |
--ru=* |
--r=*)
1292 runstatedir
=$ac_optarg ;;
1294 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1296 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1298 sbindir
=$ac_optarg ;;
1300 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1301 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1302 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1304 ac_prev
=sharedstatedir
;;
1305 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1306 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1307 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1309 sharedstatedir
=$ac_optarg ;;
1311 -site |
--site |
--sit)
1313 -site=* |
--site=* |
--sit=*)
1316 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1318 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1319 srcdir
=$ac_optarg ;;
1321 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1322 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1323 ac_prev
=sysconfdir
;;
1324 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1325 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1326 sysconfdir
=$ac_optarg ;;
1328 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1329 ac_prev
=target_alias
;;
1330 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1331 target_alias
=$ac_optarg ;;
1333 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1336 -version |
--version |
--versio |
--versi |
--vers |
-V)
1337 ac_init_version
=: ;;
1340 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1343 as_fn_error $?
"invalid package name: $ac_useropt"
1344 ac_useropt_orig
=$ac_useropt
1345 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1346 case $ac_user_opts in
1350 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1351 ac_unrecognized_sep
=', ';;
1353 eval with_
$ac_useropt=\
$ac_optarg ;;
1355 -without-* |
--without-*)
1356 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1359 as_fn_error $?
"invalid package name: $ac_useropt"
1360 ac_useropt_orig
=$ac_useropt
1361 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1366 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1367 ac_unrecognized_sep
=', ';;
1369 eval with_
$ac_useropt=no
;;
1372 # Obsolete; use --with-x.
1375 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1376 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1377 ac_prev
=x_includes
;;
1378 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1379 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1380 x_includes
=$ac_optarg ;;
1382 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1383 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1384 ac_prev
=x_libraries
;;
1385 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1386 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1387 x_libraries
=$ac_optarg ;;
1389 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1390 Try \`$0 --help' for more information"
1394 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1395 # Reject names that are not valid shell variable names.
1396 case $ac_envvar in #(
1397 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1398 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1400 eval $ac_envvar=\
$ac_optarg
1401 export $ac_envvar ;;
1404 # FIXME: should be removed in autoconf 3.0.
1405 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1406 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1407 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1408 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1414 if test -n "$ac_prev"; then
1415 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1416 as_fn_error $?
"missing argument to $ac_option"
1419 if test -n "$ac_unrecognized_opts"; then
1420 case $enable_option_checking in
1422 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1423 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1427 # Check all directory arguments for consistency.
1428 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1429 datadir sysconfdir sharedstatedir localstatedir includedir \
1430 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1431 libdir localedir mandir runstatedir
1433 eval ac_val
=\$
$ac_var
1434 # Remove trailing slashes.
1437 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1438 eval $ac_var=\
$ac_val;;
1440 # Be sure to have absolute directory names.
1442 [\\/$
]* | ?
:[\\/]* ) continue;;
1443 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1445 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1448 # There might be people who depend on the old broken behavior: `$host'
1449 # used to hold the argument of --host etc.
1450 # FIXME: To remove some day.
1453 target
=$target_alias
1455 # FIXME: To remove some day.
1456 if test "x$host_alias" != x
; then
1457 if test "x$build_alias" = x
; then
1458 cross_compiling
=maybe
1459 elif test "x$build_alias" != "x$host_alias"; then
1465 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1467 test "$silent" = yes && exec 6>/dev
/null
1470 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1471 ac_ls_di
=`ls -di .` &&
1472 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1473 as_fn_error $?
"working directory cannot be determined"
1474 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1475 as_fn_error $?
"pwd does not report name of working directory"
1478 # Find the source files, if location was not specified.
1479 if test -z "$srcdir"; then
1480 ac_srcdir_defaulted
=yes
1481 # Try the directory containing this script, then the parent directory.
1482 ac_confdir
=`$as_dirname -- "$as_myself" ||
1483 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1484 X"$as_myself" : 'X\(//\)[^/]' \| \
1485 X"$as_myself" : 'X\(//\)$' \| \
1486 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1487 $as_echo X"$as_myself" |
1488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1506 if test ! -r "$srcdir/$ac_unique_file"; then
1510 ac_srcdir_defaulted
=no
1512 if test ! -r "$srcdir/$ac_unique_file"; then
1513 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1514 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1516 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1518 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1520 # When building in place, set srcdir=.
1521 if test "$ac_abs_confdir" = "$ac_pwd"; then
1524 # Remove unnecessary trailing slashes from srcdir.
1525 # Double slashes in file names in object file debugging info
1526 # mess up M-x gdb in Emacs.
1528 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1530 for ac_var
in $ac_precious_vars; do
1531 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1532 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1533 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1534 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1538 # Report the --help message.
1540 if test "$ac_init_help" = "long"; then
1541 # Omit some internal or obsolete options to make the list less imposing.
1542 # This message is too long to be a string in the A/UX 3.1 sh.
1544 \`configure' configures this package to adapt to many kinds of systems.
1546 Usage: $0 [OPTION]... [VAR=VALUE]...
1548 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1549 VAR=VALUE. See below for descriptions of some of the useful variables.
1551 Defaults for the options are specified in brackets.
1554 -h, --help display this help and exit
1555 --help=short display options specific to this package
1556 --help=recursive display the short help of all the included packages
1557 -V, --version display version information and exit
1558 -q, --quiet, --silent do not print \`checking ...' messages
1559 --cache-file=FILE cache test results in FILE [disabled]
1560 -C, --config-cache alias for \`--cache-file=config.cache'
1561 -n, --no-create do not create output files
1562 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1564 Installation directories:
1565 --prefix=PREFIX install architecture-independent files in PREFIX
1566 [$ac_default_prefix]
1567 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1570 By default, \`make install' will install all the files in
1571 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1572 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1573 for instance \`--prefix=\$HOME'.
1575 For better control, use the options below.
1577 Fine tuning of the installation directories:
1578 --bindir=DIR user executables [EPREFIX/bin]
1579 --sbindir=DIR system admin executables [EPREFIX/sbin]
1580 --libexecdir=DIR program executables [EPREFIX/libexec]
1581 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1582 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1583 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1584 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1585 --libdir=DIR object code libraries [EPREFIX/lib]
1586 --includedir=DIR C header files [PREFIX/include]
1587 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1588 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1589 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1590 --infodir=DIR info documentation [DATAROOTDIR/info]
1591 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1592 --mandir=DIR man documentation [DATAROOTDIR/man]
1593 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1594 --htmldir=DIR html documentation [DOCDIR]
1595 --dvidir=DIR dvi documentation [DOCDIR]
1596 --pdfdir=DIR pdf documentation [DOCDIR]
1597 --psdir=DIR ps documentation [DOCDIR]
1603 --x-includes=DIR X include files are
in DIR
1604 --x-libraries=DIR X library files are
in DIR
1607 --build=BUILD configure
for building on BUILD
[guessed
]
1608 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1612 if test -n "$ac_init_help"; then
1617 --disable-option-checking ignore unrecognized
--enable/--with options
1618 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1619 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1620 --disable-libpng-config disable libpng-config
test and configuration
1621 --enable-lto=yes|no Enable link
time optimizations
if the target
1622 compiler supports them
(default
=no
)
1623 --enable-coverage=yes|no
1624 Enable coverage instrumentation
if the target
1625 compiler supports it
(default
=no
)
1626 --enable-build-type=TYPE
1627 Select the build
type. Available types are
:
1628 personal
, nightly
, snapshot
, milestone
, release. Do
1629 NOT use this option unless you know what you are
1630 doing
! (default
=personal
)
1631 --enable-debug=list Enable different types of debug. Commas or
1632 whitespaces can be used to separate the items
in the
1633 list. Available types of debug are
: all
, none
,
1634 messages
, stack
, mungwall
, modules
, symbols. If no
1635 list is provided
then "all" is assumed.
1637 --enable-distcc Use distcc as a front end to the compiler
1639 --enable-ccache Use ccache as a front end to the compiler
1641 --enable-target-variant=NAME
1642 Enable a specific target variant
(default
=none
)
1643 --enable-amigaos-compliance=VERSION
1644 Enforce userspace AmigaOS compliance to a specific
1645 KickStart version
(default
=none
).
1646 --disable-crosstools Do not build cross-compiler toolchain
1647 --enable-objc Enable Objectve-C support
(default
=no
)
1648 --enable-java Enable Java support
(default
=no
)
1649 --enable-includes=dir Alternative system include directory
1650 --enable-palm-debug-hack
1651 Enable palm debug output hack
in palm native
1653 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1654 --enable-nesting-supervisor
1655 Enable nesting supervisor support
in unix
1657 --disable-mmu Disable MMU support
(default
=enabled
)
1658 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1659 --enable-x11-shm use X11 shared memory
(default
=auto
)
1660 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1661 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1662 --disable-sdltest Do not try to compile and run a
test SDL program
1663 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1666 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1667 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1668 --with-c-compiler=VERSION
1669 Use specified c compiler
for building AROS
1670 --with-cxx-compiler=VERSION
1671 Use specified c
++ compiler building AROS
1672 --with-toolchain=family Which toolchain family to crosscompile with
1674 --with-kernel-gcc-version=VERSION
1675 Use gcc-VERSION
for building bootstrap
1676 --with-optimization=FLAGS
1677 Use optimization flags FLAGS
(e.g
1678 --with-optimization=-O2).
1679 --with-paranoia=(yes|no|FLAGS
)
1680 Specific compiler warning FLAGS to
enable for
1681 paranoia builds
(default
=-Wall -Werror)
1682 --with-xcode=PATH Specify XCode path
for iOS targets
1683 (default
=/Developer
).
1684 --with-sdk-version=VERSION
1685 Use iOS SDK version VERSION
(default
=4.1).
1686 --with-sdk=PATH Specify Android SDK path
1687 (default
=$default_android_sdk).
1688 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1689 --with-sdk-version=LEVEL
1690 Use Android SDK
for API LEVEL
(default
=12).
1691 --with-ndk-version=LEVEL
1692 Use Android NDK
for API LEVEL
(default
=9).
1693 --with-apk-version=(release|debug
)
1694 Which version of AROSBootstrap.apk to compile.
1695 Release version needs key
for signing
, debug version
1696 will only run
in emulator.
(default
=release
)
1697 --with-kernel-toolchain-prefix=...
1698 Specify crosscompile toolchain prefix
for kernel
1700 --with-elf-toolchain-prefix=...
1701 Specify crosscompile toolchain prefix to wrap
for
1703 --with-aros-toolchain=PREFIX
1704 Specify prebuilt AROS toolchain. Use
yes for default
1706 --with-aros-toolchain-install=DIR
1707 Where to
install or search
for cross tools binaries
1708 --with-binutils-version=VERSION
1709 Use binutils-VERSION
for building AROS
1710 --with-gcc-version=VERSION
1711 Compile gcc-VERSION
for AROS
1712 --with-llvm-version=VERSION
1713 Compile llvm-VERSION
for AROS
1714 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1715 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1716 --with-float=<spec
> Specify floating point ABI
1717 (default
=$gcc_default_float_abi).
1718 --with-portssources=DIR Where to download sourcecode
for external ports
1719 --with-bootloader=NAME Use a specific bootloader
1720 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1721 --with-theme=NAME Use a specific GUI Theme
1722 --with-resolution=XRESxYRESxDEPTH
1723 Default resolution of the initial WorkbenchScreen
1724 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1725 --with-x use the X Window System
1726 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1727 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1729 Some influential environment variables
:
1730 CXX C
++ compiler
command
1731 CXXFLAGS C
++ compiler flags
1732 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1733 nonstandard directory
<lib dir
>
1734 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1735 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1736 you have headers
in a nonstandard directory
<include dir
>
1737 CC C compiler
command
1738 CFLAGS C compiler flags
1740 PYTHON the Python interpreter
1741 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1743 Use these variables to override the choices made by
`configure' or to help
1744 it to find libraries and programs with nonstandard names/locations.
1746 Report bugs to the package provider.
1751 if test "$ac_init_help" = "recursive"; then
1752 # If there are subdirs, report their specific --help.
1753 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1754 test -d "$ac_dir" ||
1755 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1762 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1763 # A ".." for each directory in $ac_dir_suffix.
1764 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1765 case $ac_top_builddir_sub in
1766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1770 ac_abs_top_builddir=$ac_pwd
1771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1772 # for backward compatibility:
1773 ac_top_builddir=$ac_top_build_prefix
1776 .) # We are building in place.
1778 ac_top_srcdir=$ac_top_builddir_sub
1779 ac_abs_top_srcdir=$ac_pwd ;;
1780 [\\/]* | ?:[\\/]* ) # Absolute name.
1781 ac_srcdir=$srcdir$ac_dir_suffix;
1782 ac_top_srcdir=$srcdir
1783 ac_abs_top_srcdir=$srcdir ;;
1785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1786 ac_top_srcdir=$ac_top_build_prefix$srcdir
1787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1791 cd "$ac_dir" || { ac_status=$?; continue; }
1792 # Check for guested configure.
1793 if test -f "$ac_srcdir/configure.gnu"; then
1795 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1796 elif test -f "$ac_srcdir/configure"; then
1798 $SHELL "$ac_srcdir/configure" --help=recursive
1800 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1802 cd "$ac_pwd" || { ac_status=$?; break; }
1806 test -n "$ac_init_help" && exit $ac_status
1807 if $ac_init_version; then
1810 generated by GNU Autoconf 2.69
1812 Copyright (C) 2012 Free Software Foundation, Inc.
1813 This configure script is free software; the Free Software Foundation
1814 gives unlimited permission to copy, distribute and modify it.
1819 ## ------------------------ ##
1820 ## Autoconf initialization. ##
1821 ## ------------------------ ##
1823 # ac_fn_cxx_try_compile LINENO
1824 # ----------------------------
1825 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_cxx_try_compile ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 rm -f conftest.$ac_objext
1830 if { { ac_try="$ac_compile"
1832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1833 *) ac_try_echo
=$ac_try;;
1835 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_compile") 2>conftest.err
1839 if test -s conftest.err
; then
1840 grep -v '^ *+' conftest.err
>conftest.er1
1841 cat conftest.er1
>&5
1842 mv -f conftest.er1 conftest.err
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && {
1846 test -z "$ac_cxx_werror_flag" ||
1847 test ! -s conftest.err
1848 } && test -s conftest.
$ac_objext; then :
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.
$ac_ext >&5
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status
$ac_retval
1859 } # ac_fn_cxx_try_compile
1861 # ac_fn_c_try_compile LINENO
1862 # --------------------------
1863 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_c_try_compile
()
1866 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1867 rm -f conftest.
$ac_objext
1868 if { { ac_try
="$ac_compile"
1870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_compile") 2>conftest.err
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_c_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest.$ac_objext; then :
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1897 } # ac_fn_c_try_compile
1899 # ac_fn_c_try_cpp LINENO
1900 # ----------------------
1901 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 if { { ac_try="$ac_cpp conftest.$ac_ext"
1907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1908 *) ac_try_echo
=$ac_try;;
1910 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1914 if test -s conftest.err
; then
1915 grep -v '^ *+' conftest.err
>conftest.er1
1916 cat conftest.er1
>&5
1917 mv -f conftest.er1 conftest.err
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } > conftest.i
&& {
1921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1922 test ! -s conftest.err
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.
$ac_ext >&5
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status
$ac_retval
1936 # ac_fn_c_try_link LINENO
1937 # -----------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded.
1941 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1942 rm -f conftest.
$ac_objext conftest
$ac_exeext
1943 if { { ac_try
="$ac_link"
1945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>conftest.err
1952 if test -s conftest.err; then
1953 grep -v '^ *+' conftest.err >conftest.er1
1954 cat conftest.er1 >&5
1955 mv -f conftest.er1 conftest.err
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && {
1959 test -z "$ac_c_werror_flag" ||
1960 test ! -s conftest.err
1961 } && test -s conftest$ac_exeext && {
1962 test "$cross_compiling" = yes ||
1963 test -x conftest$ac_exeext
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1972 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1973 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1974 # interfere with the next link command; also delete a directory that is
1975 # left behind by Apple's compiler. We do this before executing the actions.
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1980 } # ac_fn_c_try_link
1982 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1983 # -------------------------------------------------------
1984 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1985 # the include files in INCLUDES and setting the cache variable VAR
1987 ac_fn_c_check_header_mongrel ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if eval \${$3+:} false; then :
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
2000 # Is the header compilable?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2002 $as_echo_n "checking $2 usability... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 ac_header_compiler=yes
2011 ac_header_compiler=no
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2015 $as_echo "$ac_header_compiler" >&6; }
2017 # Is the header present?
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2019 $as_echo_n "checking $2 presence... " >&6; }
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2024 if ac_fn_c_try_cpp "$LINENO"; then :
2025 ac_header_preproc=yes
2027 ac_header_preproc=no
2029 rm -f conftest.err conftest.i conftest.$ac_ext
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2031 $as_echo "$ac_header_preproc" >&6; }
2033 # So? What about this header?
2034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2037 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2043 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2045 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2047 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2049 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2059 eval "$3=\$ac_header_compiler"
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_header_mongrel
2069 # ac_fn_c_try_run LINENO
2070 # ----------------------
2071 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2072 # that executables *can* be run.
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 if { { ac_try="$ac_link"
2078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2079 *) ac_try_echo
=$ac_try;;
2081 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_link") 2>&5
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2087 { { case "(($ac_try" in
2088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 $as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_try") 2>&5
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; }; }; then :
2099 $as_echo "$as_me: program exited with status $ac_status" >&5
2100 $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2103 ac_retval=$ac_status
2105 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 as_fn_set_status $ac_retval
2111 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2112 # -------------------------------------------------------
2113 # Tests whether HEADER exists and can be compiled using the include files in
2114 # INCLUDES, setting the cache variable VAR accordingly.
2115 ac_fn_c_check_header_compile ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119 $as_echo_n "checking for $2... " >&6; }
2120 if eval \${$3+:} false; then :
2121 $as_echo_n "(cached) " >&6
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2128 if ac_fn_c_try_compile "$LINENO"; then :
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 } # ac_fn_c_check_header_compile
2142 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2143 # ----------------------------------------------------
2144 # Tries to find if the field MEMBER exists in type AGGR, after including
2145 # INCLUDES, setting cache variable VAR accordingly.
2146 ac_fn_c_check_member ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2150 $as_echo_n "checking for $2.$3... " >&6; }
2151 if eval \${$4+:} false; then :
2152 $as_echo_n "(cached) " >&6
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2167 if ac_fn_c_try_compile "$LINENO"; then :
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2177 if (sizeof ac_aggr.$3)
2183 if ac_fn_c_try_compile "$LINENO"; then :
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197 } # ac_fn_c_check_member
2199 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2200 # ---------------------------------------------
2201 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2203 ac_fn_c_check_decl ()
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2207 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2209 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2210 if eval \${$3+:} false; then :
2211 $as_echo_n "(cached) " >&6
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2219 #ifndef $as_decl_name
2221 (void) $as_decl_use;
2223 (void) $as_decl_name;
2231 if ac_fn_c_try_compile "$LINENO"; then :
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243 } # ac_fn_c_check_decl
2245 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2246 # -------------------------------------------
2247 # Tests whether TYPE exists after having included INCLUDES, setting cache
2248 # variable VAR accordingly.
2249 ac_fn_c_check_type ()
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 $as_echo_n "checking for $2... " >&6; }
2254 if eval \${$3+:} false; then :
2255 $as_echo_n "(cached) " >&6
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2283 if ac_fn_c_try_compile "$LINENO"; then :
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 } # ac_fn_c_check_type
2299 # ac_fn_c_check_func LINENO FUNC VAR
2300 # ----------------------------------
2301 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2302 ac_fn_c_check_func ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306 $as_echo_n "checking for $2... " >&6; }
2307 if eval \${$3+:} false; then :
2308 $as_echo_n "(cached) " >&6
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2314 #define $2 innocuous_$2
2316 /* System header to define __stub macros and hopefully few prototypes,
2317 which can conflict with char $2 (); below.
2318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2319 <limits.h> exists even on freestanding compilers. */
2322 # include <limits.h>
2324 # include <assert.h>
2329 /* Override any GCC internal prototype to avoid an error.
2330 Use char because int might match the return type of a GCC
2331 builtin and then its argument prototype would still apply. */
2336 /* The GNU C library defines this for functions which it implements
2337 to always fail with ENOSYS. Some functions are actually named
2338 something starting with __ and the normal name is an alias. */
2339 #if defined __stub_$2 || defined __stub___$2
2351 if ac_fn_c_try_link "$LINENO"; then :
2356 rm -f core conftest.err conftest.$ac_objext \
2357 conftest$ac_exeext conftest.$ac_ext
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 } # ac_fn_c_check_func
2365 cat >config.log <<_ACEOF
2366 This file contains any messages produced by compilers while
2367 running configure, to aid debugging if configure makes a mistake.
2369 It was created by $as_me, which was
2370 generated by GNU Autoconf 2.69. Invocation command line was
2382 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2383 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2384 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2385 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2386 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2388 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2389 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2391 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2392 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2393 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2394 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2395 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2396 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2397 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 $as_echo "PATH: $as_dir"
2422 # Keep a trace of the command line.
2423 # Strip out --no-create and --no-recursion so they do not pile up.
2424 # Strip out --silent because we don't want to record it for future runs.
2425 # Also quote any args containing shell meta-characters.
2426 # Make two passes to allow for proper duplicate-argument suppression.
2430 ac_must_keep_next=false
2436 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2438 | -silent | --silent | --silen | --sile | --sil)
2441 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2444 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2446 as_fn_append ac_configure_args1 " '$ac_arg'"
2447 if test $ac_must_keep_next = true; then
2448 ac_must_keep_next=false # Got value, back to normal.
2451 *=* | --config-cache | -C | -disable-* | --disable-* \
2452 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2453 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2454 | -with-* | --with-* | -without-* | --without-* | --x)
2455 case "$ac_configure_args0 " in
2456 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2459 -* ) ac_must_keep_next=true ;;
2462 as_fn_append ac_configure_args " '$ac_arg'"
2467 { ac_configure_args0=; unset ac_configure_args0;}
2468 { ac_configure_args1=; unset ac_configure_args1;}
2470 # When interrupted or exit'd, cleanup temporary files, and complete
2471 # config.log. We remove comments because anyway the quotes in there
2472 # would cause problems or look ugly.
2473 # WARNING: Use '\'' to represent an apostrophe within the trap.
2474 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2475 trap 'exit_status=$?
2476 # Save into config.log some information that might help in debugging.
2480 $as_echo "## ---------------- ##
2481 ## Cache variables. ##
2482 ## ---------------- ##"
2484 # The following way of writing the cache mishandles newlines in values,
2486 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2487 eval ac_val=\$$ac_var
2491 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2492 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2495 _ | IFS | as_nl) ;; #(
2496 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2497 *) { eval $ac_var=; unset $ac_var;} ;;
2502 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2503 *${as_nl}ac_space=\ *)
2505 "s/'\''/'\''\\\\'\'''\''/g;
2506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2509 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2516 $as_echo "## ----------------- ##
2517 ## Output variables. ##
2518 ## ----------------- ##"
2520 for ac_var in $ac_subst_vars
2522 eval ac_val=\$$ac_var
2524 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2526 $as_echo "$ac_var='\''$ac_val'\''"
2530 if test -n "$ac_subst_files"; then
2531 $as_echo "## ------------------- ##
2532 ## File substitutions. ##
2533 ## ------------------- ##"
2535 for ac_var in $ac_subst_files
2537 eval ac_val=\$$ac_var
2539 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2541 $as_echo "$ac_var='\''$ac_val'\''"
2546 if test -s confdefs.h; then
2547 $as_echo "## ----------- ##
2554 test "$ac_signal" != 0 &&
2555 $as_echo "$as_me: caught signal $ac_signal"
2556 $as_echo "$as_me: exit $exit_status"
2558 rm -f core *.core core.conftest.* &&
2559 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2562 for ac_signal in 1 2 13 15; do
2563 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2567 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2568 rm -f -r conftest* confdefs.h
2570 $as_echo "/* confdefs.h */" > confdefs.h
2572 # Predefined preprocessor variables.
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_NAME "$PACKAGE_NAME"
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_STRING "$PACKAGE_STRING"
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_URL "$PACKAGE_URL"
2599 # Let the site file select an alternate cache file if it wants to.
2600 # Prefer an explicitly selected file to automatically selected ones.
2603 if test -n "$CONFIG_SITE"; then
2604 # We do not want a PATH search for config.site.
2605 case $CONFIG_SITE in #((
2606 -*) ac_site_file1=./$CONFIG_SITE;;
2607 */*) ac_site_file1=$CONFIG_SITE;;
2608 *) ac_site_file1=./$CONFIG_SITE;;
2610 elif test "x$prefix" != xNONE; then
2611 ac_site_file1=$prefix/share/config.site
2612 ac_site_file2=$prefix/etc/config.site
2614 ac_site_file1=$ac_default_prefix/share/config.site
2615 ac_site_file2=$ac_default_prefix/etc/config.site
2617 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2619 test "x$ac_site_file" = xNONE && continue
2620 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2622 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2623 sed 's/^/| /' "$ac_site_file" >&5
2625 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627 as_fn_error $? "failed to load site
script $ac_site_file
2628 See \
`config.log' for more details" "$LINENO" 5; }
2632 if test -r "$cache_file"; then
2633 # Some versions of bash will fail to source /dev/null (special files
2634 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2635 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2637 $as_echo "$as_me: loading cache $cache_file" >&6;}
2639 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2640 *) . "./$cache_file";;
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2645 $as_echo "$as_me: creating cache $cache_file" >&6;}
2649 as_fn_append ac_header_list " stdlib.h"
2650 as_fn_append ac_header_list " unistd.h"
2651 as_fn_append ac_header_list " sys/param.h"
2652 # Check that the precious variables saved in the cache have kept the same
2654 ac_cache_corrupted=false
2655 for ac_var in $ac_precious_vars; do
2656 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2657 eval ac_new_set=\$ac_env_${ac_var}_set
2658 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2659 eval ac_new_val=\$ac_env_${ac_var}_value
2660 case $ac_old_set,$ac_new_set in
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2663 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2664 ac_cache_corrupted=: ;;
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2667 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2668 ac_cache_corrupted=: ;;
2671 if test "x$ac_old_val" != "x$ac_new_val"; then
2672 # differences in whitespace do not lead to failure.
2673 ac_old_val_w=`echo x
$ac_old_val`
2674 ac_new_val_w=`echo x
$ac_new_val`
2675 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2677 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2678 ac_cache_corrupted=:
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2681 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2682 eval $ac_var=\$ac_old_val
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2685 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2687 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2690 # Pass precious variables to config.status.
2691 if test "$ac_new_set" = set; then
2693 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2694 *) ac_arg=$ac_var=$ac_new_val ;;
2696 case " $ac_configure_args " in
2697 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2698 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2702 if $ac_cache_corrupted; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2706 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2707 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2709 ## -------------------- ##
2710 ## Main body of script. ##
2711 ## -------------------- ##
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2723 if test -f "$ac_dir/install-sh"; then
2725 ac_install_sh="$ac_aux_dir/install-sh -c"
2727 elif test -f "$ac_dir/install.sh"; then
2729 ac_install_sh="$ac_aux_dir/install.sh -c"
2731 elif test -f "$ac_dir/shtool"; then
2733 ac_install_sh="$ac_aux_dir/shtool install -c"
2737 if test -z "$ac_aux_dir"; then
2738 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2741 # These three variables are undocumented and unsupported,
2742 # and are intended to be withdrawn in a future Autoconf release.
2743 # They can cause serious problems if a builder's source tree is in a directory
2744 # whose full name contains unusual characters.
2745 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2746 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2747 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2751 # Check what host we are running on.
2752 # If a target is not suggested, we use this one.
2753 # Note that what we call a target, Autoconf calls a host.
2754 # Make sure we can run config.sub.
2755 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2756 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2759 $as_echo_n "checking build system type... " >&6; }
2760 if ${ac_cv_build+:} false; then :
2761 $as_echo_n "(cached) " >&6
2763 ac_build_alias=$build_alias
2764 test "x$ac_build_alias" = x &&
2765 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2766 test "x$ac_build_alias" = x &&
2767 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2768 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2769 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2773 $as_echo "$ac_cv_build" >&6; }
2774 case $ac_cv_build in
2776 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2779 ac_save_IFS=$IFS; IFS='-'
2785 # Remember, the first character of IFS is used to create $*,
2786 # except with old shells:
2789 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2793 $as_echo_n "checking host system type... " >&6; }
2794 if ${ac_cv_host+:} false; then :
2795 $as_echo_n "(cached) " >&6
2797 if test "x$host_alias" = x; then
2798 ac_cv_host=$ac_cv_build
2800 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2801 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2806 $as_echo "$ac_cv_host" >&6; }
2809 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2812 ac_save_IFS=$IFS; IFS='-'
2818 # Remember, the first character of IFS is used to create $*,
2819 # except with old shells:
2822 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2826 # Default versions for the gnu tools we build
2827 default_toolchain_family=`cat ${srcdir}/config
/toolchain_def
`
2828 default_gcc_version=`cat ${srcdir}/config
/gcc_def
`
2829 exp_gcc_version=`cat ${srcdir}/config
/gcc_exp
`
2830 default_binutils_version=`cat ${srcdir}/config
/binutils_def
`
2831 default_llvm_version=`cat ${srcdir}/config
/llvm_def
`
2832 exp_binutils_version=`cat ${srcdir}/config
/binutils_exp
`
2833 default_grub2_version="2.02"
2834 target_grub2_version=$default_grub2_version
2836 # The AROS target is slightly different to the normal GNU style
2837 # format. We don't have the middle part, and we reverse the order
2838 # of the $(CPU) and $(OS) bits.
2840 # Don't strip the version of the target yet, it might be
2841 # useful on some systems.
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2844 $as_echo_n "checking for AROS style target... " >&6; }
2846 if test "$target" = "NONE" ; then
2847 target=$host_os-$host_cpu
2849 if test "$target" = "" ; then
2850 target=$host_os-$host_cpu
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2854 $as_echo "$target" >&6; }
2856 if test "$host_os" = "mingw32" ; then
2860 # Don't know where else to put this...
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2862 $as_echo_n "checking building AROS in... " >&6; }
2863 AROS_BUILDDIR=`${PWDCMD-pwd}`
2864 AROS_BUILDDIR_UNIX=${PWD}
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2866 $as_echo "$AROS_BUILDDIR" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2869 $as_echo_n "checking AROS source in... " >&6; }
2870 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2873 $as_echo "$SRCDIR" >&6; }
2875 # Parse the target field into something useful.
2877 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2878 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2881 # Some debug output, to be removed again.
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2883 $as_echo_n "checking for target system (debug output)... " >&6; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2885 $as_echo "$target_os" >&6; }
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2887 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2889 $as_echo "$target_cpu" >&6; }
2891 aros_nominal_width=800
2892 aros_nominal_height=600
2893 aros_nominal_depth=4
2902 default_c_compilers="gcc clang cc"
2904 # Check whether --with-c-compiler was given.
2905 if test "${with_c_compiler+set}" = set; then :
2906 withval=$with_c_compiler; use_c_compiler="$withval"
2911 if test "$use_c_compiler" = ""; then
2912 host_c_compilers="$default_c_compilers"
2914 host_c_compilers="$use_c_compiler"
2918 default_cxx_compilers="g++ clang++ c++"
2920 # Check whether --with-cxx-compiler was given.
2921 if test "${with_cxx_compiler+set}" = set; then :
2922 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2927 if test "$use_cxx_compiler" = ""; then
2928 host_cxx_compilers="$default_cxx_compilers"
2930 host_cxx_compilers="$use_cxx_compiler"
2931 CXX=$use_cxx_compiler
2935 # The first step is to find the host binaries.
2936 # Check for a compiler.
2937 # Due to a bug in autoconf check for c++ compiler first.
2938 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2940 ac_cpp='$CXXCPP $CPPFLAGS'
2941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2944 if test -z "$CXX"; then
2945 if test -n "$CCC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 for ac_prog in ${host_cxx_compilers}
2951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_CXX+:} false; then :
2956 $as_echo_n "(cached) " >&6
2958 if test -n "$CXX"; then
2959 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 if test -n "$CXX"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2981 $as_echo "$CXX" >&6; }
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2988 test -n "$CXX" && break
2991 if test -z "$CXX"; then
2993 for ac_prog in ${host_cxx_compilers}
2995 # Extract the first word of "$ac_prog", so it can be a program name with args.
2996 set dummy $ac_prog; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3000 $as_echo_n "(cached) " >&6
3002 if test -n "$ac_ct_CXX"; then
3003 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_ac_ct_CXX="$ac_prog"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3023 if test -n "$ac_ct_CXX"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3025 $as_echo "$ac_ct_CXX" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3032 test -n "$ac_ct_CXX" && break
3035 if test "x$ac_ct_CXX" = x; then
3038 case $cross_compiling:$ac_tool_warned in
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3050 # Provide some information about the compiler.
3051 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3054 for ac_option in --version -v -V -qversion; do
3055 { { ac_try="$ac_compiler $ac_option >&5"
3057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3058 *) ac_try_echo
=$ac_try;;
3060 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061 $as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3064 if test -s conftest.err
; then
3066 ... rest of stderr output deleted ...
3067 10q' conftest.err
>conftest.er1
3068 cat conftest.er1
>&5
3070 rm -f conftest.er1 conftest.err
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }
3075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3076 /* end confdefs.h. */
3086 ac_clean_files_save
=$ac_clean_files
3087 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3088 # Try to create an executable without -o first, disregard a.out.
3089 # It will help us diagnose broken compilers, and finding out an intuition
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3092 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3093 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3095 # The possible output files:
3096 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3099 for ac_file
in $ac_files
3102 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3103 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3108 if { { ac_try
="$ac_link_default"
3110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_link_default") 2>&5
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3120 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3121 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3122 # so that the user can short-circuit this test for compilers unknown to
3124 for ac_file in $ac_files ''
3126 test -f "$ac_file" || continue
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3131 # We found the default executable, but exeext='' is most
3135 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139 # We set ac_cv_exeext here because the later test for it is not
3140 # safe: cross compilers may not add the suffix if given an `-o'
3141 # argument, so we may need to know it at that point already.
3142 # Even if this section looks crufty: it has the advantage of
3149 test "$ac_cv_exeext" = no && ac_cv_exeext=
3154 if test -z "$ac_file"; then :
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 $as_echo "$as_me: failed program was:" >&5
3158 sed 's
/^
/|
/' conftest.$ac_ext >&5
3160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3162 as_fn_error 77 "C++ compiler cannot create executables
3163 See \`config.log
' for more details" "$LINENO" 5; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166 $as_echo "yes" >&6; }
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3169 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3171 $as_echo "$ac_file" >&6; }
3172 ac_exeext=$ac_cv_exeext
3174 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3175 ac_clean_files=$ac_clean_files_save
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3177 $as_echo_n "checking for suffix of executables... " >&6; }
3178 if { { ac_try="$ac_link"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_link") 2>&5
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }; then :
3189 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3190 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3191 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3193 for ac_file
in conftest.exe conftest conftest.
*; do
3194 test -f "$ac_file" ||
continue
3196 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3197 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3206 See \`config.log' for more details" "$LINENO" 5; }
3208 rm -f conftest conftest
$ac_cv_exeext
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3210 $as_echo "$ac_cv_exeext" >&6; }
3212 rm -f conftest.
$ac_ext
3213 EXEEXT
=$ac_cv_exeext
3215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3221 FILE *f = fopen ("conftest.out", "w");
3222 return ferror (f) || fclose (f) != 0;
3228 ac_clean_files
="$ac_clean_files conftest.out"
3229 # Check that the compiler produces executables we can run. If not, either
3230 # the compiler is broken, or we cross compile.
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3232 $as_echo_n "checking whether we are cross compiling... " >&6; }
3233 if test "$cross_compiling" != yes; then
3234 { { ac_try
="$ac_link"
3236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_link") 2>&5
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }
3245 if { ac_try='./conftest$ac_cv_exeext'
3246 { { case "(($ac_try" in
3247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3248 *) ac_try_echo
=$ac_try;;
3250 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_try") 2>&5
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }; }; then
3258 if test "$cross_compiling" = maybe
; then
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error $?
"cannot run C++ compiled programs.
3264 If you meant to cross compile, use \`--host'.
3265 See \`config.log' for more details" "$LINENO" 5; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3270 $as_echo "$cross_compiling" >&6; }
3272 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3273 ac_clean_files
=$ac_clean_files_save
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3275 $as_echo_n "checking for suffix of object files... " >&6; }
3276 if ${ac_cv_objext+:} false
; then :
3277 $as_echo_n "(cached) " >&6
3279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3290 rm -f conftest.o conftest.obj
3291 if { { ac_try
="$ac_compile"
3293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298 (eval "$ac_compile") 2>&5
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }; then :
3302 for ac_file in conftest.o conftest.obj conftest.*; do
3303 test -f "$ac_file" || continue;
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3311 $as_echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3317 See \
`config.log' for more details" "$LINENO" 5; }
3319 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3322 $as_echo "$ac_cv_objext" >&6; }
3323 OBJEXT=$ac_cv_objext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3326 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3327 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3328 $as_echo_n "(cached) " >&6
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3344 if ac_fn_cxx_try_compile "$LINENO"; then :
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3354 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3355 if test $ac_compiler_gnu = yes; then
3360 ac_test_CXXFLAGS=${CXXFLAGS+set}
3361 ac_save_CXXFLAGS=$CXXFLAGS
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3363 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3364 if ${ac_cv_prog_cxx_g+:} false; then :
3365 $as_echo_n "(cached) " >&6
3367 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3368 ac_cxx_werror_flag=yes
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3382 if ac_fn_cxx_try_compile "$LINENO"; then :
3383 ac_cv_prog_cxx_g=yes
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3397 if ac_fn_cxx_try_compile "$LINENO"; then :
3400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3413 if ac_fn_cxx_try_compile "$LINENO"; then :
3414 ac_cv_prog_cxx_g=yes
3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3424 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3425 if test "$ac_test_CXXFLAGS" = set; then
3426 CXXFLAGS=$ac_save_CXXFLAGS
3427 elif test $ac_cv_prog_cxx_g = yes; then
3428 if test "$GXX" = yes; then
3434 if test "$GXX" = yes; then
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 # Extract the first word of "$CXX", so it can be a program name with args.
3448 set dummy $CXX; ac_word=$2
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 $as_echo_n "checking for $ac_word... " >&6; }
3451 if ${ac_cv_path_CXX+:} false; then :
3452 $as_echo_n "(cached) " >&6
3456 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 if test -n "$CXX"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3480 $as_echo "$CXX" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 if test -n "$ac_tool_prefix"; then
3493 for ac_prog in ${host_c_compilers}
3495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_CC+:} false; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3532 test -n "$CC" && break
3535 if test -z "$CC"; then
3537 for ac_prog in ${host_c_compilers}
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3544 $as_echo_n "(cached) " >&6
3546 if test -n "$ac_ct_CC"; then
3547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_ac_ct_CC="$ac_prog"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567 if test -n "$ac_ct_CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569 $as_echo "$ac_ct_CC" >&6; }
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3576 test -n "$ac_ct_CC" && break
3579 if test "x$ac_ct_CC" = x; then
3582 case $cross_compiling:$ac_tool_warned in
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3593 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3596 See \
`config.log' for more details" "$LINENO" 5; }
3598 # Provide some information about the compiler.
3599 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3602 for ac_option in --version -v -V -qversion; do
3603 { { ac_try="$ac_compiler $ac_option >&5"
3605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3606 *) ac_try_echo
=$ac_try;;
3608 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609 $as_echo "$ac_try_echo"; } >&5
3610 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3612 if test -s conftest.err
; then
3614 ... rest of stderr output deleted ...
3615 10q' conftest.err
>conftest.er1
3616 cat conftest.er1
>&5
3618 rm -f conftest.er1 conftest.err
3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3624 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3625 if ${ac_cv_c_compiler_gnu+:} false
; then :
3626 $as_echo_n "(cached) " >&6
3628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3642 if ac_fn_c_try_compile
"$LINENO"; then :
3647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3648 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3652 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3653 if test $ac_compiler_gnu = yes; then
3658 ac_test_CFLAGS
=${CFLAGS+set}
3659 ac_save_CFLAGS
=$CFLAGS
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3661 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3662 if ${ac_cv_prog_cc_g+:} false
; then :
3663 $as_echo_n "(cached) " >&6
3665 ac_save_c_werror_flag
=$ac_c_werror_flag
3666 ac_c_werror_flag
=yes
3669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3680 if ac_fn_c_try_compile
"$LINENO"; then :
3684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3695 if ac_fn_c_try_compile
"$LINENO"; then :
3698 ac_c_werror_flag
=$ac_save_c_werror_flag
3700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3711 if ac_fn_c_try_compile
"$LINENO"; then :
3714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3719 ac_c_werror_flag
=$ac_save_c_werror_flag
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3722 $as_echo "$ac_cv_prog_cc_g" >&6; }
3723 if test "$ac_test_CFLAGS" = set; then
3724 CFLAGS
=$ac_save_CFLAGS
3725 elif test $ac_cv_prog_cc_g = yes; then
3726 if test "$GCC" = yes; then
3732 if test "$GCC" = yes; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3739 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3740 if ${ac_cv_prog_cc_c89+:} false
; then :
3741 $as_echo_n "(cached) " >&6
3743 ac_cv_prog_cc_c89
=no
3745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3751 struct buf { int x; };
3752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3753 static char *e (p, i)
3759 static char *f (char * (*g) (char **, int), char **p, ...)
3764 s = g (p, va_arg (v,int));
3769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3770 function prototypes and stuff, but not '\xHH' hex character constants.
3771 These don't provoke an error unfortunately, instead are silently treated
3772 as 'x'. The following induces an error, until -std is added to get
3773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3774 array size at least. It's necessary to write '\x00'==0 to get something
3775 that's true only with -std. */
3776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3779 inside strings and character constants. */
3781 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3783 int test (int i, double x);
3784 struct s1 {int (*f) (int a);};
3785 struct s2 {int (*f) (double a);};
3786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3797 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3800 CC
="$ac_save_CC $ac_arg"
3801 if ac_fn_c_try_compile
"$LINENO"; then :
3802 ac_cv_prog_cc_c89
=$ac_arg
3804 rm -f core conftest.err conftest.
$ac_objext
3805 test "x$ac_cv_prog_cc_c89" != "xno" && break
3807 rm -f conftest.
$ac_ext
3812 case "x$ac_cv_prog_cc_c89" in
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3815 $as_echo "none needed" >&6; } ;;
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3818 $as_echo "unsupported" >&6; } ;;
3820 CC
="$CC $ac_cv_prog_cc_c89"
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3822 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3824 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3829 ac_cpp
='$CPP $CPPFLAGS'
3830 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3836 ac_cpp
='$CPP $CPPFLAGS'
3837 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3841 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3842 # On Suns, sometimes $CPP names a directory.
3843 if test -n "$CPP" && test -d "$CPP"; then
3846 if test -z "$CPP"; then
3847 if ${ac_cv_prog_CPP+:} false
; then :
3848 $as_echo_n "(cached) " >&6
3850 # Double quotes because CPP needs to be expanded
3851 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3854 for ac_c_preproc_warn_flag
in '' yes
3856 # Use a header file that comes with gcc, so configuring glibc
3857 # with a fresh cross-compiler works.
3858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3859 # <limits.h> exists even on freestanding compilers.
3860 # On the NeXT, cc -E runs the code through the compiler's parser,
3861 # not just through cpp. "Syntax error" is here to catch this case.
3862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3865 # include <limits.h>
3867 # include <assert.h>
3871 if ac_fn_c_try_cpp
"$LINENO"; then :
3874 # Broken: fails on valid input.
3877 rm -f conftest.err conftest.i conftest.
$ac_ext
3879 # OK, works on sane cases. Now check whether nonexistent headers
3880 # can be detected and how.
3881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3883 #include <ac_nonexistent.h>
3885 if ac_fn_c_try_cpp
"$LINENO"; then :
3886 # Broken: success on invalid input.
3889 # Passes both tests.
3893 rm -f conftest.err conftest.i conftest.
$ac_ext
3896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3897 rm -f conftest.i conftest.err conftest.
$ac_ext
3898 if $ac_preproc_ok; then :
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3911 $as_echo "$CPP" >&6; }
3913 for ac_c_preproc_warn_flag
in '' yes
3915 # Use a header file that comes with gcc, so configuring glibc
3916 # with a fresh cross-compiler works.
3917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3918 # <limits.h> exists even on freestanding compilers.
3919 # On the NeXT, cc -E runs the code through the compiler's parser,
3920 # not just through cpp. "Syntax error" is here to catch this case.
3921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3924 # include <limits.h>
3926 # include <assert.h>
3930 if ac_fn_c_try_cpp
"$LINENO"; then :
3933 # Broken: fails on valid input.
3936 rm -f conftest.err conftest.i conftest.
$ac_ext
3938 # OK, works on sane cases. Now check whether nonexistent headers
3939 # can be detected and how.
3940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3942 #include <ac_nonexistent.h>
3944 if ac_fn_c_try_cpp
"$LINENO"; then :
3945 # Broken: success on invalid input.
3948 # Passes both tests.
3952 rm -f conftest.err conftest.i conftest.
$ac_ext
3955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3956 rm -f conftest.i conftest.err conftest.
$ac_ext
3957 if $ac_preproc_ok; then :
3960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details" "$LINENO" 5; }
3967 ac_cpp
='$CPP $CPPFLAGS'
3968 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3973 # Extract the first word of "$CC", so it can be a program name with args.
3974 set dummy
$CC; ac_word
=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if ${ac_cv_path_CC+:} false
; then :
3978 $as_echo_n "(cached) " >&6
3982 ac_cv_path_CC
="$CC" # Let the user override the test with a path.
3985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3989 test -z "$as_dir" && as_dir
=.
3990 for ac_exec_ext
in '' $ac_executable_extensions; do
3991 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3992 ac_cv_path_CC
="$as_dir/$ac_word$ac_exec_ext"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 if test -n "$CC"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4006 $as_echo "$CC" >&6; }
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4013 aros_host_def_cc
="$CC"
4014 case $ac_cv_prog_cc_stdc in #(
4016 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4019 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4020 if ${ac_cv_prog_cc_c99+:} false
; then :
4021 $as_echo_n "(cached) " >&6
4023 ac_cv_prog_cc_c99
=no
4025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4028 #include <stdbool.h>
4033 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4034 #define debug(...) fprintf (stderr, __VA_ARGS__)
4035 #define showlist(...) puts (#__VA_ARGS__)
4036 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4038 test_varargs_macros (void)
4043 debug ("X = %d\n", x);
4044 showlist (The first, second, and third items.);
4045 report (x>y, "x is %d but y is %d", x, y);
4048 // Check long long types.
4049 #define BIG64 18446744073709551615ull
4050 #define BIG32 4294967295ul
4051 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4053 your preprocessor is broken;
4057 your preprocessor is broken;
4059 static long long int bignum = -9223372036854775807LL;
4060 static unsigned long long int ubignum = BIG64;
4062 struct incomplete_array
4070 const wchar_t *name;
4074 typedef const char *ccp;
4077 test_restrict (ccp restrict text)
4079 // See if C++-style comments work.
4080 // Iterate through items via the restricted pointer.
4081 // Also check for declarations in for loops.
4082 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4087 // Check varargs and va_copy.
4089 test_varargs (const char *format, ...)
4092 va_start (args, format);
4094 va_copy (args_copy, args);
4105 str = va_arg (args_copy, const char *);
4108 number = va_arg (args_copy, int);
4111 fnumber = va_arg (args_copy, double);
4126 _Bool success = false;
4129 if (test_restrict ("String literal") == 0)
4131 char *restrict newvar = "Another string";
4134 test_varargs ("s, d' f .", "string", 65, 34.234);
4135 test_varargs_macros ();
4137 // Check flexible array members.
4138 struct incomplete_array *ia =
4139 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4141 for (int i = 0; i < ia->datasize; ++i)
4142 ia->data[i] = i * 1.234;
4144 // Check named initializers.
4145 struct named_init ni = {
4147 .name = L"Test wide string",
4148 .average = 543.34343,
4153 int dynamic_array[ni.number];
4154 dynamic_array[ni.number - 1] = 543;
4156 // work around unused variable warnings
4157 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4158 || dynamic_array[ni.number - 1] != 543);
4164 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4166 CC
="$ac_save_CC $ac_arg"
4167 if ac_fn_c_try_compile
"$LINENO"; then :
4168 ac_cv_prog_cc_c99
=$ac_arg
4170 rm -f core conftest.err conftest.
$ac_objext
4171 test "x$ac_cv_prog_cc_c99" != "xno" && break
4173 rm -f conftest.
$ac_ext
4178 case "x$ac_cv_prog_cc_c99" in
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4181 $as_echo "none needed" >&6; } ;;
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4184 $as_echo "unsupported" >&6; } ;;
4186 CC
="$CC $ac_cv_prog_cc_c99"
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4188 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4190 if test "x$ac_cv_prog_cc_c99" != xno
; then :
4191 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4194 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4195 if ${ac_cv_prog_cc_c89+:} false
; then :
4196 $as_echo_n "(cached) " >&6
4198 ac_cv_prog_cc_c89
=no
4200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4205 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4206 struct buf { int x; };
4207 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4208 static char *e (p, i)
4214 static char *f (char * (*g) (char **, int), char **p, ...)
4219 s = g (p, va_arg (v,int));
4224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4225 function prototypes and stuff, but not '\xHH' hex character constants.
4226 These don't provoke an error unfortunately, instead are silently treated
4227 as 'x'. The following induces an error, until -std is added to get
4228 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4229 array size at least. It's necessary to write '\x00'==0 to get something
4230 that's true only with -std. */
4231 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4234 inside strings and character constants. */
4236 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4238 int test (int i, double x);
4239 struct s1 {int (*f) (int a);};
4240 struct s2 {int (*f) (double a);};
4241 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4247 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4252 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4253 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4255 CC
="$ac_save_CC $ac_arg"
4256 if ac_fn_c_try_compile
"$LINENO"; then :
4257 ac_cv_prog_cc_c89
=$ac_arg
4259 rm -f core conftest.err conftest.
$ac_objext
4260 test "x$ac_cv_prog_cc_c89" != "xno" && break
4262 rm -f conftest.
$ac_ext
4267 case "x$ac_cv_prog_cc_c89" in
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4270 $as_echo "none needed" >&6; } ;;
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4273 $as_echo "unsupported" >&6; } ;;
4275 CC
="$CC $ac_cv_prog_cc_c89"
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4277 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4279 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4280 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4282 ac_cv_prog_cc_stdc
=no
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4289 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4290 if ${ac_cv_prog_cc_stdc+:} false
; then :
4291 $as_echo_n "(cached) " >&6
4294 case $ac_cv_prog_cc_stdc in #(
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4297 $as_echo "unsupported" >&6; } ;; #(
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4300 $as_echo "none needed" >&6; } ;; #(
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4303 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4307 ac_cpp
='$CPP $CPPFLAGS'
4308 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4312 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4313 # On Suns, sometimes $CPP names a directory.
4314 if test -n "$CPP" && test -d "$CPP"; then
4317 if test -z "$CPP"; then
4318 if ${ac_cv_prog_CPP+:} false
; then :
4319 $as_echo_n "(cached) " >&6
4321 # Double quotes because CPP needs to be expanded
4322 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4325 for ac_c_preproc_warn_flag
in '' yes
4327 # Use a header file that comes with gcc, so configuring glibc
4328 # with a fresh cross-compiler works.
4329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4330 # <limits.h> exists even on freestanding compilers.
4331 # On the NeXT, cc -E runs the code through the compiler's parser,
4332 # not just through cpp. "Syntax error" is here to catch this case.
4333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4336 # include <limits.h>
4338 # include <assert.h>
4342 if ac_fn_c_try_cpp
"$LINENO"; then :
4345 # Broken: fails on valid input.
4348 rm -f conftest.err conftest.i conftest.
$ac_ext
4350 # OK, works on sane cases. Now check whether nonexistent headers
4351 # can be detected and how.
4352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4354 #include <ac_nonexistent.h>
4356 if ac_fn_c_try_cpp
"$LINENO"; then :
4357 # Broken: success on invalid input.
4360 # Passes both tests.
4364 rm -f conftest.err conftest.i conftest.
$ac_ext
4367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4368 rm -f conftest.i conftest.err conftest.
$ac_ext
4369 if $ac_preproc_ok; then :
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4382 $as_echo "$CPP" >&6; }
4384 for ac_c_preproc_warn_flag
in '' yes
4386 # Use a header file that comes with gcc, so configuring glibc
4387 # with a fresh cross-compiler works.
4388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4389 # <limits.h> exists even on freestanding compilers.
4390 # On the NeXT, cc -E runs the code through the compiler's parser,
4391 # not just through cpp. "Syntax error" is here to catch this case.
4392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4395 # include <limits.h>
4397 # include <assert.h>
4401 if ac_fn_c_try_cpp
"$LINENO"; then :
4404 # Broken: fails on valid input.
4407 rm -f conftest.err conftest.i conftest.
$ac_ext
4409 # OK, works on sane cases. Now check whether nonexistent headers
4410 # can be detected and how.
4411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413 #include <ac_nonexistent.h>
4415 if ac_fn_c_try_cpp
"$LINENO"; then :
4416 # Broken: success on invalid input.
4419 # Passes both tests.
4423 rm -f conftest.err conftest.i conftest.
$ac_ext
4426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4427 rm -f conftest.i conftest.err conftest.
$ac_ext
4428 if $ac_preproc_ok; then :
4431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4433 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4434 See \`config.log' for more details" "$LINENO" 5; }
4438 ac_cpp
='$CPP $CPPFLAGS'
4439 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4444 # detect the compiler version
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which toolchain family ${CC_BASE} belongs to" >&5
4446 $as_echo_n "checking which toolchain family ${CC_BASE} belongs to... " >&6; }
4447 HOST_COMPILER_VERSION
=`"$CC" --version 2>/dev/null`
4448 if test x
"$HOST_COMPILER_VERSION" = "x"; then
4449 HOST_COMPILER_VERSION
=`"$CC" --qversion 2>/dev/null`
4451 if test x
"$HOST_COMPILER_VERSION" = "x"; then
4452 HOST_COMPILER_VERSION
=`"$CC" -V 2>/dev/null`
4455 IS_SUN_COMPILER
=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'Sun C\+\+'`
4456 if test "$IS_SUN_COMPILER" -ne "0"; then
4457 HOST_TOOLCHAIN_PREFIX
=
4458 HOST_TOOLCHAIN_SUFFIX
=
4459 HOST_TOOLCHAIN_FAMILY
=sun
4461 IS_LLVM_COMPILER
=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'LLVM|clang'`
4462 if test "$IS_LLVM_COMPILER" -ne "0"; then
4463 if test "$CC_BASE" != "gcc"; then
4464 HOST_TOOLCHAIN_PREFIX
=llvm-
4465 HOST_TOOLCHAIN_SUFFIX
="`echo $CC_BASE | sed -e \"s|clang||g\"`"
4466 HOST_TOOLCHAIN_FAMILY
=llvm
4471 if test "x$IS_GNU_COMPILER" = "x"; then
4472 IS_GNU_COMPILER
=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'gcc'`
4474 if test "$IS_GNU_COMPILER" -ne "0"; then
4475 HOST_TOOLCHAIN_PREFIX
=
4476 HOST_TOOLCHAIN_SUFFIX
=
4477 HOST_TOOLCHAIN_FAMILY
=gnu
4479 if test x
"$HOST_TOOLCHAIN_FAMILY" = "x"; then
4480 HOST_TOOLCHAIN_FAMILY
=unknown
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_TOOLCHAIN_FAMILY" >&5
4483 $as_echo "$HOST_TOOLCHAIN_FAMILY" >&6; }
4485 # Check for a compatible awk
4486 for ac_prog
in gawk nawk
4488 # Extract the first word of "$ac_prog", so it can be a program name with args.
4489 set dummy
$ac_prog; ac_word
=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_prog_AWK+:} false
; then :
4493 $as_echo_n "(cached) " >&6
4495 if test -n "$AWK"; then
4496 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir
=.
4503 for ac_exec_ext
in '' $ac_executable_extensions; do
4504 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_prog_AWK
="$ac_prog"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 if test -n "$AWK"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4518 $as_echo "$AWK" >&6; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4525 test -n "$AWK" && break
4529 if test "$AWK" = ""; then
4532 if test "$AWK" = "no"; then
4535 if test "$req_avail" = "no"; then
4536 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4538 # Extract the first word of "mmake", so it can be a program name with args.
4539 set dummy mmake
; ac_word
=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_MMAKE+:} false
; then :
4543 $as_echo_n "(cached) " >&6
4545 if test -n "$MMAKE"; then
4546 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir
=.
4553 for ac_exec_ext
in '' $ac_executable_extensions; do
4554 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_MMAKE
="mmake "
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 MMAKE
=$ac_cv_prog_MMAKE
4566 if test -n "$MMAKE"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4568 $as_echo "$MMAKE" >&6; }
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4576 # Perform some default variable assignments. Note all of these will be
4577 # Regenerated from the script, so there is no need to cache them.
4579 aros_build_host
=$host
4580 aros_host_cpp
="$CPP"
4582 aros_host_cxx
="$CXX"
4583 base_ld_name
=${HOST_TOOLCHAIN_PREFIX}ld
${HOST_TOOLCHAIN_SUFFIX}
4584 if test "$HOST_TOOLCHAIN_FAMILY" = "llvm"; then
4585 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}
4587 # Extract the first word of "$ac_prog", so it can be a program name with args.
4588 set dummy
$ac_prog; ac_word
=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if ${ac_cv_prog_base_lld_name+:} false
; then :
4592 $as_echo_n "(cached) " >&6
4594 if test -n "$base_lld_name"; then
4595 ac_cv_prog_base_lld_name
="$base_lld_name" # Let the user override the test.
4597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4601 test -z "$as_dir" && as_dir
=.
4602 for ac_exec_ext
in '' $ac_executable_extensions; do
4603 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4604 ac_cv_prog_base_lld_name
="$ac_prog"
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 base_lld_name
=$ac_cv_prog_base_lld_name
4615 if test -n "$base_lld_name"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $base_lld_name" >&5
4617 $as_echo "$base_lld_name" >&6; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4624 test -n "$base_lld_name" && break
4627 LD_BASE
=$base_lld_name
4629 # Extract the first word of "$base_ld_name", so it can be a program name with args.
4630 set dummy
$base_ld_name; ac_word
=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_prog_LD_BASE+:} false
; then :
4634 $as_echo_n "(cached) " >&6
4636 if test -n "$LD_BASE"; then
4637 ac_cv_prog_LD_BASE
="$LD_BASE" # Let the user override the test.
4639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir
=.
4644 for ac_exec_ext
in '' $ac_executable_extensions; do
4645 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4646 ac_cv_prog_LD_BASE
=""
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 LD_BASE
=$ac_cv_prog_LD_BASE
4657 if test -n "$LD_BASE"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_BASE" >&5
4659 $as_echo "$LD_BASE" >&6; }
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4668 if test "$LD_BASE" = ""; then
4673 if test "$GCC" = "yes"; then
4674 aros_gcc_ld
=`$CC -print-prog-name=$ac_tool_ld`
4675 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4676 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_path_aros_host_ld+:} false
; then :
4680 $as_echo_n "(cached) " >&6
4682 case $aros_host_ld in
4684 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4688 for as_dir
in `dirname $aros_gcc_ld`
4691 test -z "$as_dir" && as_dir
=.
4692 for ac_exec_ext
in '' $ac_executable_extensions; do
4693 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4694 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 aros_host_ld
=$ac_cv_path_aros_host_ld
4706 if test -n "$aros_host_ld"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4708 $as_echo "$aros_host_ld" >&6; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4716 if test "$aros_host_ld" = ""; then
4717 for ac_prog
in $ac_tool_ld
4719 # Extract the first word of "$ac_prog", so it can be a program name with args.
4720 set dummy
$ac_prog; ac_word
=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if ${ac_cv_path_aros_host_ld+:} false
; then :
4724 $as_echo_n "(cached) " >&6
4726 case $aros_host_ld in
4728 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir
=.
4736 for ac_exec_ext
in '' $ac_executable_extensions; do
4737 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 aros_host_ld
=$ac_cv_path_aros_host_ld
4750 if test -n "$aros_host_ld"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4752 $as_echo "$aros_host_ld" >&6; }
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4759 test -n "$aros_host_ld" && break
4765 if test "$aros_host_ld" = ""; then
4768 if test "$aros_host_ld" = "no"; then
4771 if test "$req_avail" = "no"; then
4772 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4774 aros_host_make
="make"
4775 aros_host_cflags
="$CFLAGS"
4776 aros_host_cxxflags
="$CXXFLAGS"
4777 aros_host_cppflags
="$CPPFLAGS"
4778 aros_host_ldflags
="$LDFLAGS"
4779 aros_host_debug
="-g -O0"
4780 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4781 aros_host_mkargs
="--no-print-directory"
4782 aros_host_exe_suffix
="$EXEEXT"
4783 aros_host_lib_suffix
=""
4785 # Ignore all compliance, AROS ROMs = 0
4786 # KickStart v1.0 = 30
4787 # KickStart v1.3 = 34
4788 # KickStart v2.0 = 37
4789 # KickStart v3.0 = 39
4790 # KickStart v3.1 = 40
4792 aros_amigaos_compliance
=0
4794 for ac_prog
in aclocal aclocal19 aclocal-1.9
4796 # Extract the first word of "$ac_prog", so it can be a program name with args.
4797 set dummy
$ac_prog; ac_word
=$2
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 $as_echo_n "checking for $ac_word... " >&6; }
4800 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4801 $as_echo_n "(cached) " >&6
4803 if test -n "$aros_host_aclocal"; then
4804 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4810 test -z "$as_dir" && as_dir
=.
4811 for ac_exec_ext
in '' $ac_executable_extensions; do
4812 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4824 if test -n "$aros_host_aclocal"; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4826 $as_echo "$aros_host_aclocal" >&6; }
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 $as_echo "no" >&6; }
4833 test -n "$aros_host_aclocal" && break
4836 for ac_prog
in autoconf autoconf259 autoconf253
4838 # Extract the first word of "$ac_prog", so it can be a program name with args.
4839 set dummy
$ac_prog; ac_word
=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4843 $as_echo_n "(cached) " >&6
4845 if test -n "$aros_host_autoconf"; then
4846 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4852 test -z "$as_dir" && as_dir
=.
4853 for ac_exec_ext
in '' $ac_executable_extensions; do
4854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4855 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4866 if test -n "$aros_host_autoconf"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4868 $as_echo "$aros_host_autoconf" >&6; }
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4875 test -n "$aros_host_autoconf" && break
4878 for ac_prog
in autoheader autoheader259 autoheader253
4880 # Extract the first word of "$ac_prog", so it can be a program name with args.
4881 set dummy
$ac_prog; ac_word
=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4885 $as_echo_n "(cached) " >&6
4887 if test -n "$aros_host_autoheader"; then
4888 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4894 test -z "$as_dir" && as_dir
=.
4895 for ac_exec_ext
in '' $ac_executable_extensions; do
4896 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4897 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4908 if test -n "$aros_host_autoheader"; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4910 $as_echo "$aros_host_autoheader" >&6; }
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4917 test -n "$aros_host_autoheader" && break
4920 for ac_prog
in automake automake19 automake-1.9
4922 # Extract the first word of "$ac_prog", so it can be a program name with args.
4923 set dummy
$ac_prog; ac_word
=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4927 $as_echo_n "(cached) " >&6
4929 if test -n "$aros_host_automake"; then
4930 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir
=.
4937 for ac_exec_ext
in '' $ac_executable_extensions; do
4938 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4939 ac_cv_prog_aros_host_automake
="$ac_prog"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 aros_host_automake
=$ac_cv_prog_aros_host_automake
4950 if test -n "$aros_host_automake"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4952 $as_echo "$aros_host_automake" >&6; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4959 test -n "$aros_host_automake" && break
4964 if test "$aros_host_aclocal" = ""; then
4967 if test "$aros_host_aclocal" = "no"; then
4970 if test "$req_avail" = "no"; then
4971 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4974 if test "$aros_host_automake" = ""; then
4977 if test "$aros_host_automake" = "no"; then
4980 if test "$req_avail" = "no"; then
4981 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4984 case "$aros_host_cc" in
4986 aros_host_cc_pipe
=""
4989 aros_host_cc_pipe
="-pipe"
4992 aros_host_cc_pipe
=""
4995 aros_host_cc_pipe
=""
4999 aros_kernel_cc_includes
=""
5000 aros_target_cc_includes
=""
5003 # ----------------------------------------------------------------------------------------
5004 # Host-specific defaults
5006 # This is the main host configuration section. It is where the host
5007 # can change the values of any variables it needs to change. We do
5008 # not look at anything that compiles to the target yet, we'll get
5013 aros_host_arch
="aros"
5014 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5017 aros_host_cpu
="i386"
5020 aros_host_cpu
="x86_64"
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5027 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5028 aros_host_cpu
="$host_cpu"
5034 aros_host_arch
="linux"
5035 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5036 android_build_os
="linux-x86"
5037 android_tool
="android"
5038 default_android_sdk
="/opt/android-sdk-linux_x86"
5041 aros_host_cpu
="i386"
5044 aros_host_cpu
="x86_64"
5047 aros_host_cpu
="m68k"
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5057 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5058 aros_host_cpu
="$host_cpu"
5064 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
5065 aros_host_make
="gmake"
5066 aros_host_arch
="freebsd"
5067 aros_host_cpu
="i386"
5069 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
5073 aros_object_format
="elf_i386"
5077 aros_object_format
="elf_i386_fbsd"
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
5085 $as_echo_n "checking for macOS SDK files... " >&6; }
5086 LOC
=$
( xcode-select
-p )
5087 if test $?
!= 0; then :
5088 as_fn_error $?
"XCode incorrectly configured!
5089 please run 'xcode-select --install' before
5090 re-running configure" "$LINENO" 5
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
5093 $as_echo "$LOC" >&6; }
5094 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5095 aros_host_arch
="darwin"
5097 if [ -z ${SED+x} ]; then SED
="gsed"; fi
5098 android_build_os
="darwin-x86"
5099 android_tool
="android"
5100 default_android_sdk
="/android-sdk-mac_x86"
5103 aros_host_cpu
="i386"
5106 aros_host_cpu
="x86_64"
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
5113 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
5114 aros_host_cpu
="$host_cpu"
5118 aros_host_ldflags
="$aros_host_ldflags -liconv"
5123 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5124 aros_host_make
="gmake"
5125 aros_host_arch
="dragonfly"
5128 aros_host_cpu
="i386"
5131 aros_host_cpu
="x86_64"
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5135 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5136 aros_host_cpu
="$host_cpu"
5142 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5143 aros_host_make
="gmake"
5144 aros_host_arch
="netbsd"
5147 aros_host_cpu
="i386"
5150 aros_host_cpu
="m68k"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5154 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5155 aros_host_cpu
="$host_cpu"
5158 aros_host_lib_suffix
=".0.0"
5162 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5163 aros_host_make
="gmake"
5164 aros_host_arch
="openbsd"
5167 aros_host_cpu
="i386"
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5171 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5172 aros_host_cpu
="$host_cpu"
5178 aros_host_arch
="solaris"
5179 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5182 aros_host_cpu
="i386"
5185 aros_host_cpu
="sparc"
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5189 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5190 aros_host_cpu
="$host_cpu"
5196 aros_host_arch
="morphos"
5202 aros_host_arch
="amiga"
5208 TOUCH
="/gg/bin/touch"
5211 aros_host_cpu
="m68k"
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5218 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5219 aros_host_cpu
="$host_cpu"
5225 aros_host_arch
="cygwin"
5226 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5228 android_build_os
="windows"
5229 android_tool
="android.bat"
5230 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
5234 aros_host_cpu
="i386"
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5238 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5239 aros_host_cpu
="$host_cpu"
5245 aros_host_arch
="mingw32"
5246 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5248 android_build_os
="windows"
5249 android_tool
="android.bat"
5250 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
5252 libpng_libextra
="-lws2_32"
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
5258 $as_echo_n "checking for Windows native gcc target... " >&6; }
5259 host_cpu
=`gcc -dumpmachine`
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
5261 $as_echo "$host_cpu" >&6; }
5268 aros_host_cpu
="i386"
5272 aros_host_cpu
="i386"
5276 aros_host_cpu
="x86_64"
5277 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5282 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5283 aros_host_cpu
="$host_cpu"
5288 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
5292 base_ar_name
=${HOST_TOOLCHAIN_PREFIX}ar${HOST_TOOLCHAIN_SUFFIX}
5293 # Extract the first word of "$base_ar_name", so it can be a program name with args.
5294 set dummy
$base_ar_name; ac_word
=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if ${ac_cv_prog_AR_BASE+:} false
; then :
5298 $as_echo_n "(cached) " >&6
5300 if test -n "$AR_BASE"; then
5301 ac_cv_prog_AR_BASE
="$AR_BASE" # Let the user override the test.
5303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir
=.
5308 for ac_exec_ext
in '' $ac_executable_extensions; do
5309 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_AR_BASE
="$base_ar_name "
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 AR_BASE
=$ac_cv_prog_AR_BASE
5321 if test -n "$AR_BASE"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_BASE" >&5
5323 $as_echo "$AR_BASE" >&6; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5330 aros_host_ar_flags
="cr"
5331 aros_host_cmd_ar
="$AR_BASE $aros_host_ar_flags"
5332 # Extract the first word of "$aros_host_cmd_ar", so it can be a program name with args.
5333 set dummy
$aros_host_cmd_ar; ac_word
=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_path_aros_host_plain_ar+:} false
; then :
5337 $as_echo_n "(cached) " >&6
5339 case $aros_host_plain_ar in
5341 ac_cv_path_aros_host_plain_ar
="$aros_host_plain_ar" # Let the user override the test with a path.
5344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir
=.
5349 for ac_exec_ext
in '' $ac_executable_extensions; do
5350 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_path_aros_host_plain_ar
="$as_dir/$ac_word$ac_exec_ext"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 test -z "$ac_cv_path_aros_host_plain_ar" && ac_cv_path_aros_host_plain_ar
="$aros_host_cmd_ar "
5363 aros_host_plain_ar
=$ac_cv_path_aros_host_plain_ar
5364 if test -n "$aros_host_plain_ar"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_plain_ar" >&5
5366 $as_echo "$aros_host_plain_ar" >&6; }
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5373 aros_host_ar
=`echo $aros_host_cmd_ar | sed -e "s|$base_ar_name|$aros_host_plain_ar|g"`
5375 if test "$aros_host_ar" = ""; then
5378 if test "$aros_host_ar" = "no"; then
5381 if test "$req_avail" = "no"; then
5382 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5384 base_ranlib_name
=${HOST_TOOLCHAIN_PREFIX}ranlib
${HOST_TOOLCHAIN_SUFFIX}
5385 # Extract the first word of "$base_ranlib_name", so it can be a program name with args.
5386 set dummy
$base_ranlib_name; ac_word
=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_prog_RANLIB_BASE+:} false
; then :
5390 $as_echo_n "(cached) " >&6
5392 if test -n "$RANLIB_BASE"; then
5393 ac_cv_prog_RANLIB_BASE
="$RANLIB_BASE" # Let the user override the test.
5395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir
=.
5400 for ac_exec_ext
in '' $ac_executable_extensions; do
5401 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_RANLIB_BASE
="$base_ranlib_name "
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 RANLIB_BASE
=$ac_cv_prog_RANLIB_BASE
5413 if test -n "$RANLIB_BASE"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_BASE" >&5
5415 $as_echo "$RANLIB_BASE" >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5422 # Extract the first word of "$RANLIB_BASE", so it can be a program name with args.
5423 set dummy
$RANLIB_BASE; ac_word
=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_path_aros_host_ranlib+:} false
; then :
5427 $as_echo_n "(cached) " >&6
5429 case $aros_host_ranlib in
5431 ac_cv_path_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test with a path.
5434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5438 test -z "$as_dir" && as_dir
=.
5439 for ac_exec_ext
in '' $ac_executable_extensions; do
5440 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_path_aros_host_ranlib
="$as_dir/$ac_word$ac_exec_ext"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 test -z "$ac_cv_path_aros_host_ranlib" && ac_cv_path_aros_host_ranlib
="$RANLIB_BASE "
5453 aros_host_ranlib
=$ac_cv_path_aros_host_ranlib
5454 if test -n "$aros_host_ranlib"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5456 $as_echo "$aros_host_ranlib" >&6; }
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5464 if test "$aros_host_ranlib" = ""; then
5467 if test "$aros_host_ranlib" = "no"; then
5470 if test "$req_avail" = "no"; then
5471 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5473 # Extract the first word of "strip", so it can be a program name with args.
5474 set dummy strip
; ac_word
=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_aros_host_strip+:} false
; then :
5478 $as_echo_n "(cached) " >&6
5480 if test -n "$aros_host_strip"; then
5481 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
5483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir
=.
5488 for ac_exec_ext
in '' $ac_executable_extensions; do
5489 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_aros_host_strip
="strip "
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 aros_host_strip
=$ac_cv_prog_aros_host_strip
5501 if test -n "$aros_host_strip"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5503 $as_echo "$aros_host_strip" >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5511 if test "$aros_host_strip" = ""; then
5514 if test "$aros_host_strip" = "no"; then
5517 if test "$req_avail" = "no"; then
5518 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5521 # Extract the first word of "rm", so it can be a program name with args.
5522 set dummy
rm; ac_word
=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_RM+:} false
; then :
5526 $as_echo_n "(cached) " >&6
5528 if test -n "$RM"; then
5529 ac_cv_prog_RM
="$RM" # Let the user override the test.
5531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5535 test -z "$as_dir" && as_dir
=.
5536 for ac_exec_ext
in '' $ac_executable_extensions; do
5537 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5538 ac_cv_prog_RM
="rm -rf"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 if test -n "$RM"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5551 $as_echo "$RM" >&6; }
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5559 if test "$RM" = ""; then
5562 if test "$RM" = "no"; then
5565 if test "$req_avail" = "no"; then
5566 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5568 # Extract the first word of "cp", so it can be a program name with args.
5569 set dummy
cp; ac_word
=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if ${ac_cv_prog_CP+:} false
; then :
5573 $as_echo_n "(cached) " >&6
5575 if test -n "$CP"; then
5576 ac_cv_prog_CP
="$CP" # Let the user override the test.
5578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5582 test -z "$as_dir" && as_dir
=.
5583 for ac_exec_ext
in '' $ac_executable_extensions; do
5584 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 if test -n "$CP"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5598 $as_echo "$CP" >&6; }
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5606 if test "$CP" = ""; then
5609 if test "$CP" = "no"; then
5612 if test "$req_avail" = "no"; then
5613 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5615 # Extract the first word of "mv", so it can be a program name with args.
5616 set dummy
mv; ac_word
=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_MV+:} false
; then :
5620 $as_echo_n "(cached) " >&6
5622 if test -n "$MV"; then
5623 ac_cv_prog_MV
="$MV" # Let the user override the test.
5625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir
=.
5630 for ac_exec_ext
in '' $ac_executable_extensions; do
5631 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 if test -n "$MV"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5645 $as_echo "$MV" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5653 if test "$MV" = ""; then
5656 if test "$MV" = "no"; then
5659 if test "$req_avail" = "no"; then
5660 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5662 # Extract the first word of "echo", so it can be a program name with args.
5663 set dummy
echo; ac_word
=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_prog_ECHO+:} false
; then :
5667 $as_echo_n "(cached) " >&6
5669 if test -n "$ECHO"; then
5670 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5676 test -z "$as_dir" && as_dir
=.
5677 for ac_exec_ext
in '' $ac_executable_extensions; do
5678 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_ECHO
="echo "
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 ECHO
=$ac_cv_prog_ECHO
5690 if test -n "$ECHO"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5692 $as_echo "$ECHO" >&6; }
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5700 if test "$ECHO" = ""; then
5703 if test "$ECHO" = "no"; then
5706 if test "$req_avail" = "no"; then
5707 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5709 # Extract the first word of "mkdir", so it can be a program name with args.
5710 set dummy mkdir
; ac_word
=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if ${ac_cv_prog_MKDIR+:} false
; then :
5714 $as_echo_n "(cached) " >&6
5716 if test -n "$MKDIR"; then
5717 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5723 test -z "$as_dir" && as_dir
=.
5724 for ac_exec_ext
in '' $ac_executable_extensions; do
5725 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_MKDIR
="mkdir -p"
5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 MKDIR
=$ac_cv_prog_MKDIR
5737 if test -n "$MKDIR"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5739 $as_echo "$MKDIR" >&6; }
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5747 if test "$MKDIR" = ""; then
5750 if test "$MKDIR" = "no"; then
5753 if test "$req_avail" = "no"; then
5754 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5756 # Extract the first word of "touch", so it can be a program name with args.
5757 set dummy
touch; ac_word
=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_prog_TOUCH+:} false
; then :
5761 $as_echo_n "(cached) " >&6
5763 if test -n "$TOUCH"; then
5764 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5770 test -z "$as_dir" && as_dir
=.
5771 for ac_exec_ext
in '' $ac_executable_extensions; do
5772 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5773 ac_cv_prog_TOUCH
="touch "
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 TOUCH
=$ac_cv_prog_TOUCH
5784 if test -n "$TOUCH"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5786 $as_echo "$TOUCH" >&6; }
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5794 if test "$TOUCH" = ""; then
5797 if test "$TOUCH" = "no"; then
5800 if test "$req_avail" = "no"; then
5801 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5803 # Extract the first word of "sort", so it can be a program name with args.
5804 set dummy
sort; ac_word
=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if ${ac_cv_prog_SORT+:} false
; then :
5808 $as_echo_n "(cached) " >&6
5810 if test -n "$SORT"; then
5811 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5817 test -z "$as_dir" && as_dir
=.
5818 for ac_exec_ext
in '' $ac_executable_extensions; do
5819 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5820 ac_cv_prog_SORT
="sort "
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 SORT
=$ac_cv_prog_SORT
5831 if test -n "$SORT"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5833 $as_echo "$SORT" >&6; }
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5841 if test "$SORT" = ""; then
5844 if test "$SORT" = "no"; then
5847 if test "$req_avail" = "no"; then
5848 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5850 # Extract the first word of "uniq", so it can be a program name with args.
5851 set dummy
uniq; ac_word
=$2
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853 $as_echo_n "checking for $ac_word... " >&6; }
5854 if ${ac_cv_prog_UNIQ+:} false
; then :
5855 $as_echo_n "(cached) " >&6
5857 if test -n "$UNIQ"; then
5858 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5864 test -z "$as_dir" && as_dir
=.
5865 for ac_exec_ext
in '' $ac_executable_extensions; do
5866 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5867 ac_cv_prog_UNIQ
="uniq "
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 UNIQ
=$ac_cv_prog_UNIQ
5878 if test -n "$UNIQ"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5880 $as_echo "$UNIQ" >&6; }
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5888 if test "$UNIQ" = ""; then
5891 if test "$UNIQ" = "no"; then
5894 if test "$req_avail" = "no"; then
5895 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5897 # Extract the first word of "true", so it can be a program name with args.
5898 set dummy true
; ac_word
=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_NOP+:} false
; then :
5902 $as_echo_n "(cached) " >&6
5904 if test -n "$NOP"; then
5905 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5911 test -z "$as_dir" && as_dir
=.
5912 for ac_exec_ext
in '' $ac_executable_extensions; do
5913 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_NOP
="true "
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 if test -n "$NOP"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5927 $as_echo "$NOP" >&6; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5935 if test "$NOP" = ""; then
5938 if test "$NOP" = "no"; then
5941 if test "$req_avail" = "no"; then
5942 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5944 # Extract the first word of "cat", so it can be a program name with args.
5945 set dummy
cat; ac_word
=$2
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if ${ac_cv_prog_CAT+:} false
; then :
5949 $as_echo_n "(cached) " >&6
5951 if test -n "$CAT"; then
5952 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir
=.
5959 for ac_exec_ext
in '' $ac_executable_extensions; do
5960 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_CAT
="cat "
5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 if test -n "$CAT"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5974 $as_echo "$CAT" >&6; }
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5982 if test "$CAT" = ""; then
5985 if test "$CAT" = "no"; then
5988 if test "$req_avail" = "no"; then
5989 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5991 # Extract the first word of "bison", so it can be a program name with args.
5992 set dummy bison
; ac_word
=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_prog_BISON+:} false
; then :
5996 $as_echo_n "(cached) " >&6
5998 if test -n "$BISON"; then
5999 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
6001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6005 test -z "$as_dir" && as_dir
=.
6006 for ac_exec_ext
in '' $ac_executable_extensions; do
6007 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6008 ac_cv_prog_BISON
="bison "
6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 BISON
=$ac_cv_prog_BISON
6019 if test -n "$BISON"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6021 $as_echo "$BISON" >&6; }
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6029 if test "$BISON" = ""; then
6032 if test "$BISON" = "no"; then
6035 if test "$req_avail" = "no"; then
6036 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
6038 # Extract the first word of "flex", so it can be a program name with args.
6039 set dummy flex
; ac_word
=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_FLEX+:} false
; then :
6043 $as_echo_n "(cached) " >&6
6045 if test -n "$FLEX"; then
6046 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
6048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir
=.
6053 for ac_exec_ext
in '' $ac_executable_extensions; do
6054 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6055 ac_cv_prog_FLEX
="flex "
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 FLEX
=$ac_cv_prog_FLEX
6066 if test -n "$FLEX"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
6068 $as_echo "$FLEX" >&6; }
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6076 if test "$FLEX" = ""; then
6079 if test "$FLEX" = "no"; then
6082 if test "$req_avail" = "no"; then
6083 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
6086 $as_echo_n "checking version of $FLEX... " >&6; }
6087 ax_cv_flex_version
="`$FLEX --version | cut -d\" \" -f2`"
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
6089 $as_echo "$ax_cv_flex_version" >&6; }
6090 # Extract the first word of "pngtopnm", so it can be a program name with args.
6091 set dummy pngtopnm
; ac_word
=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
6095 $as_echo_n "(cached) " >&6
6097 if test -n "$PNGTOPNM"; then
6098 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
6100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6104 test -z "$as_dir" && as_dir
=.
6105 for ac_exec_ext
in '' $ac_executable_extensions; do
6106 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6107 ac_cv_prog_PNGTOPNM
="pngtopnm "
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
6118 if test -n "$PNGTOPNM"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
6120 $as_echo "$PNGTOPNM" >&6; }
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6128 if test "$PNGTOPNM" = ""; then
6131 if test "$PNGTOPNM" = "no"; then
6134 if test "$req_avail" = "no"; then
6135 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
6137 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
6138 set dummy ppmtoilbm
; ac_word
=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
6142 $as_echo_n "(cached) " >&6
6144 if test -n "$PPMTOILBM"; then
6145 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
6147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir
=.
6152 for ac_exec_ext
in '' $ac_executable_extensions; do
6153 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6154 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
6165 if test -n "$PPMTOILBM"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
6167 $as_echo "$PPMTOILBM" >&6; }
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6175 if test "$PPMTOILBM" = ""; then
6178 if test "$PPMTOILBM" = "no"; then
6181 if test "$req_avail" = "no"; then
6182 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
6184 # Extract the first word of "sed", so it can be a program name with args.
6185 set dummy
sed; ac_word
=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_SED+:} false
; then :
6189 $as_echo_n "(cached) " >&6
6191 if test -n "$SED"; then
6192 ac_cv_prog_SED
="$SED" # Let the user override the test.
6194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6198 test -z "$as_dir" && as_dir
=.
6199 for ac_exec_ext
in '' $ac_executable_extensions; do
6200 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6201 ac_cv_prog_SED
="sed "
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 if test -n "$SED"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6214 $as_echo "$SED" >&6; }
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6222 if test "$SED" = ""; then
6225 if test "$SED" = "no"; then
6228 if test "$req_avail" = "no"; then
6229 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
6231 # Extract the first word of "chmod", so it can be a program name with args.
6232 set dummy
chmod; ac_word
=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_CHMOD+:} false
; then :
6236 $as_echo_n "(cached) " >&6
6238 if test -n "$CHMOD"; then
6239 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
6241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir
=.
6246 for ac_exec_ext
in '' $ac_executable_extensions; do
6247 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6248 ac_cv_prog_CHMOD
="chmod "
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 CHMOD
=$ac_cv_prog_CHMOD
6259 if test -n "$CHMOD"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6261 $as_echo "$CHMOD" >&6; }
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6269 if test "$CHMOD" = ""; then
6272 if test "$CHMOD" = "no"; then
6275 if test "$req_avail" = "no"; then
6276 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
6278 # Extract the first word of "patch", so it can be a program name with args.
6279 set dummy
patch; ac_word
=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_prog_PATCH+:} false
; then :
6283 $as_echo_n "(cached) " >&6
6285 if test -n "$PATCH"; then
6286 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
6288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir
=.
6293 for ac_exec_ext
in '' $ac_executable_extensions; do
6294 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6295 ac_cv_prog_PATCH
="patch "
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 PATCH
=$ac_cv_prog_PATCH
6306 if test -n "$PATCH"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
6308 $as_echo "$PATCH" >&6; }
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6316 if test "$PATCH" = ""; then
6319 if test "$PATCH" = "no"; then
6322 if test "$req_avail" = "no"; then
6323 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
6332 if test -n "$PYTHON"; then
6333 # If the user set $PYTHON, use it and don't search something else.
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
6335 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
6337 # split strings by '.' and convert to numeric. Append some zeros
6338 # because we need at least 4 digits for the hex conversion.
6339 # map returns an iterator in Python 3.0 and a list in 2.x
6340 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6342 # xrange is not present in Python 3.0 and range returns an iterator
6343 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6344 sys.exit(sys.hexversion < minverhex)"
6345 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
6346 ($PYTHON -c "$prog") >&5 2>&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; then :
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6351 $as_echo "yes" >&6; }
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6355 as_fn_error $?
"Python interpreter is too old" "$LINENO" 5
6357 am_display_PYTHON
=$PYTHON
6359 # Otherwise, try each interpreter until we find one that satisfies
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
6362 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
6363 if ${am_cv_pathless_PYTHON+:} false
; then :
6364 $as_echo_n "(cached) " >&6
6367 for am_cv_pathless_PYTHON
in python python2 python3 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
6368 test "$am_cv_pathless_PYTHON" = none
&& break
6370 # split strings by '.' and convert to numeric. Append some zeros
6371 # because we need at least 4 digits for the hex conversion.
6372 # map returns an iterator in Python 3.0 and a list in 2.x
6373 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6375 # xrange is not present in Python 3.0 and range returns an iterator
6376 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6377 sys.exit(sys.hexversion < minverhex)"
6378 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
6379 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; then :
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
6388 $as_echo "$am_cv_pathless_PYTHON" >&6; }
6389 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
6390 if test "$am_cv_pathless_PYTHON" = none
; then
6393 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
6394 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_path_PYTHON+:} false
; then :
6398 $as_echo_n "(cached) " >&6
6402 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
6405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6409 test -z "$as_dir" && as_dir
=.
6410 for ac_exec_ext
in '' $ac_executable_extensions; do
6411 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 PYTHON
=$ac_cv_path_PYTHON
6424 if test -n "$PYTHON"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6426 $as_echo "$PYTHON" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6434 am_display_PYTHON
=$am_cv_pathless_PYTHON
6438 if test "$PYTHON" = :; then
6439 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
6444 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
6445 if ${am_cv_python_version+:} false
; then :
6446 $as_echo_n "(cached) " >&6
6448 am_cv_python_version
=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
6451 $as_echo "$am_cv_python_version" >&6; }
6452 PYTHON_VERSION
=$am_cv_python_version
6456 PYTHON_PREFIX
='${prefix}'
6458 PYTHON_EXEC_PREFIX
='${exec_prefix}'
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6463 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
6464 if ${am_cv_python_platform+:} false
; then :
6465 $as_echo_n "(cached) " >&6
6467 am_cv_python_platform
=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6470 $as_echo "$am_cv_python_platform" >&6; }
6471 PYTHON_PLATFORM
=$am_cv_python_platform
6474 # Just factor out some code duplication.
6475 am_python_setup_sysconfig
="\
6477 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6478 # with python 3.x. See automake bug#10227.
6482 can_use_sysconfig = 0
6484 can_use_sysconfig = 1
6485 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6486 # <https://github.com/pypa/virtualenv/issues/118>
6488 from platform import python_implementation
6489 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6490 can_use_sysconfig = 0
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6496 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6497 if ${am_cv_python_pythondir+:} false
; then :
6498 $as_echo_n "(cached) " >&6
6500 if test "x$prefix" = xNONE
6502 am_py_prefix
=$ac_default_prefix
6504 am_py_prefix
=$prefix
6506 am_cv_python_pythondir
=`$PYTHON -c "
6507 $am_python_setup_sysconfig
6508 if can_use_sysconfig:
6509 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6511 from distutils import sysconfig
6512 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6513 sys.stdout.write(sitedir)"`
6514 case $am_cv_python_pythondir in
6516 am__strip_prefix
=`echo "$am_py_prefix" | sed 's|.|.|g'`
6517 am_cv_python_pythondir
=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6520 case $am_py_prefix in
6523 am_cv_python_pythondir
=$PYTHON_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6531 $as_echo "$am_cv_python_pythondir" >&6; }
6532 pythondir
=$am_cv_python_pythondir
6536 pkgpythondir
=\
${pythondir}/$PACKAGE
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6540 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6541 if ${am_cv_python_pyexecdir+:} false
; then :
6542 $as_echo_n "(cached) " >&6
6544 if test "x$exec_prefix" = xNONE
6546 am_py_exec_prefix
=$am_py_prefix
6548 am_py_exec_prefix
=$exec_prefix
6550 am_cv_python_pyexecdir
=`$PYTHON -c "
6551 $am_python_setup_sysconfig
6552 if can_use_sysconfig:
6553 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6555 from distutils import sysconfig
6556 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6557 sys.stdout.write(sitedir)"`
6558 case $am_cv_python_pyexecdir in
6559 $am_py_exec_prefix*)
6560 am__strip_prefix
=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6561 am_cv_python_pyexecdir
=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6564 case $am_py_exec_prefix in
6567 am_cv_python_pyexecdir
=$PYTHON_EXEC_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6575 $as_echo "$am_cv_python_pyexecdir" >&6; }
6576 pyexecdir
=$am_cv_python_pyexecdir
6580 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
6588 # Check whether --enable-libpng-config was given.
6589 if test "${enable_libpng_config+set}" = set; then :
6590 enableval
=$enable_libpng_config;
6593 if test "$enable_libpng_config" != "no"; then
6594 # Extract the first word of "libpng-config", so it can be a program name with args.
6595 set dummy libpng-config
; ac_word
=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false
; then :
6599 $as_echo_n "(cached) " >&6
6601 if test -n "$arosconfig_use_libpngconfig"; then
6602 ac_cv_prog_arosconfig_use_libpngconfig
="$arosconfig_use_libpngconfig" # Let the user override the test.
6604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir
=.
6609 for ac_exec_ext
in '' $ac_executable_extensions; do
6610 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6611 ac_cv_prog_arosconfig_use_libpngconfig
="yes"
6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig
="no"
6622 arosconfig_use_libpngconfig
=$ac_cv_prog_arosconfig_use_libpngconfig
6623 if test -n "$arosconfig_use_libpngconfig"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6625 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6633 if test "$arosconfig_use_libpngconfig" = "yes"; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6635 $as_echo_n "checking libpng-config library... " >&6; }
6636 libpng_incdir
="`libpng-config --cflags`"
6637 libpng_libextra
="$libpng_libextra `libpng-config --ldflags`"
6638 libpng
="`libpng-config --libs`"
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6640 $as_echo "$libpng" >&6; }
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6644 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6645 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6646 $as_echo_n "(cached) " >&6
6648 ac_check_lib_save_LIBS
=$LIBS
6650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6653 /* Override any GCC internal prototype to avoid an error.
6654 Use char because int might match the return type of a GCC
6655 builtin and then its argument prototype would still apply. */
6659 char png_read_png ();
6663 return png_read_png ();
6668 if ac_fn_c_try_link
"$LINENO"; then :
6669 ac_cv_lib_png_png_read_png
=yes
6671 ac_cv_lib_png_png_read_png
=no
6673 rm -f core conftest.err conftest.
$ac_objext \
6674 conftest
$ac_exeext conftest.
$ac_ext
6675 LIBS
=$ac_check_lib_save_LIBS
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6678 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6679 if test "x$ac_cv_lib_png_png_read_png" = xyes
; then :
6685 if test "$libpng_libextra" != ""; then
6686 if test "$libpng" != "no"; then
6687 libpng_libextra
="$libpng_libextra $libpng"
6692 if test "$libpng" = ""; then
6695 if test "$libpng" = "no"; then
6698 if test "$req_avail" = "no"; then
6699 as_fn_error $?
"libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6715 # Check for some includes for the X11 HIDD and the kernel
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6718 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6719 if ${ac_cv_path_GREP+:} false
; then :
6720 $as_echo_n "(cached) " >&6
6722 if test -z "$GREP"; then
6723 ac_path_GREP_found
=false
6724 # Loop through the user's path and test for each of PROGNAME-LIST
6725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6726 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6729 test -z "$as_dir" && as_dir
=.
6730 for ac_prog
in grep ggrep
; do
6731 for ac_exec_ext
in '' $ac_executable_extensions; do
6732 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6733 as_fn_executable_p
"$ac_path_GREP" ||
continue
6734 # Check for GNU ac_path_GREP and select it if it is found.
6735 # Check for GNU $ac_path_GREP
6736 case `"$ac_path_GREP" --version 2>&1` in
6738 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6741 $as_echo_n 0123456789 >"conftest.in"
6744 cat "conftest.in" "conftest.in" >"conftest.tmp"
6745 mv "conftest.tmp" "conftest.in"
6746 cp "conftest.in" "conftest.nl"
6747 $as_echo 'GREP' >> "conftest.nl"
6748 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6749 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6750 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6751 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6752 # Best one so far, save it but keep looking for a better one
6753 ac_cv_path_GREP
="$ac_path_GREP"
6754 ac_path_GREP_max
=$ac_count
6756 # 10*(2^10) chars as input seems more than enough
6757 test $ac_count -gt 10 && break
6759 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6762 $ac_path_GREP_found && break 3
6767 if test -z "$ac_cv_path_GREP"; then
6768 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6771 ac_cv_path_GREP
=$GREP
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6776 $as_echo "$ac_cv_path_GREP" >&6; }
6777 GREP
="$ac_cv_path_GREP"
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6781 $as_echo_n "checking for egrep... " >&6; }
6782 if ${ac_cv_path_EGREP+:} false
; then :
6783 $as_echo_n "(cached) " >&6
6785 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6786 then ac_cv_path_EGREP
="$GREP -E"
6788 if test -z "$EGREP"; then
6789 ac_path_EGREP_found
=false
6790 # Loop through the user's path and test for each of PROGNAME-LIST
6791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6792 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6795 test -z "$as_dir" && as_dir
=.
6796 for ac_prog
in egrep; do
6797 for ac_exec_ext
in '' $ac_executable_extensions; do
6798 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6799 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6800 # Check for GNU ac_path_EGREP and select it if it is found.
6801 # Check for GNU $ac_path_EGREP
6802 case `"$ac_path_EGREP" --version 2>&1` in
6804 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6807 $as_echo_n 0123456789 >"conftest.in"
6810 cat "conftest.in" "conftest.in" >"conftest.tmp"
6811 mv "conftest.tmp" "conftest.in"
6812 cp "conftest.in" "conftest.nl"
6813 $as_echo 'EGREP' >> "conftest.nl"
6814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6815 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6816 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6818 # Best one so far, save it but keep looking for a better one
6819 ac_cv_path_EGREP
="$ac_path_EGREP"
6820 ac_path_EGREP_max
=$ac_count
6822 # 10*(2^10) chars as input seems more than enough
6823 test $ac_count -gt 10 && break
6825 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6828 $ac_path_EGREP_found && break 3
6833 if test -z "$ac_cv_path_EGREP"; then
6834 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6837 ac_cv_path_EGREP
=$EGREP
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6843 $as_echo "$ac_cv_path_EGREP" >&6; }
6844 EGREP
="$ac_cv_path_EGREP"
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6848 $as_echo_n "checking for ANSI C header files... " >&6; }
6849 if ${ac_cv_header_stdc+:} false
; then :
6850 $as_echo_n "(cached) " >&6
6852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6867 if ac_fn_c_try_compile
"$LINENO"; then :
6868 ac_cv_header_stdc
=yes
6870 ac_cv_header_stdc
=no
6872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6874 if test $ac_cv_header_stdc = yes; then
6875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6882 $EGREP "memchr" >/dev
/null
2>&1; then :
6885 ac_cv_header_stdc
=no
6891 if test $ac_cv_header_stdc = yes; then
6892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6899 $EGREP "free" >/dev
/null
2>&1; then :
6902 ac_cv_header_stdc
=no
6908 if test $ac_cv_header_stdc = yes; then
6909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6910 if test "$cross_compiling" = yes; then :
6913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6917 #if ((' ' & 0x0FF) == 0x020)
6918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6921 # define ISLOWER(c) \
6922 (('a' <= (c) && (c) <= 'i') \
6923 || ('j' <= (c) && (c) <= 'r') \
6924 || ('s' <= (c) && (c) <= 'z'))
6925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6933 for (i = 0; i < 256; i++)
6934 if (XOR (islower (i), ISLOWER (i))
6935 || toupper (i) != TOUPPER (i))
6940 if ac_fn_c_try_run
"$LINENO"; then :
6943 ac_cv_header_stdc
=no
6945 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6946 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6952 $as_echo "$ac_cv_header_stdc" >&6; }
6953 if test $ac_cv_header_stdc = yes; then
6955 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6959 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6960 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6961 inttypes.h stdint.h unistd.h
6963 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6964 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6966 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6967 cat >>confdefs.h
<<_ACEOF
6968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6976 for ac_header
in sys
/ipc.h sys
/shm.h \
6977 sys
/mmap.h sys
/mman.h sysexits.h \
6978 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6981 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6982 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6983 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6984 cat >>confdefs.h
<<_ACEOF
6985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6993 for ac_header
in sys
/mount.h
6995 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6997 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6998 cat >>confdefs.h
<<_ACEOF
6999 #define HAVE_SYS_MOUNT_H 1
7006 for ac_header
in GL
/glx.h
7008 ac_fn_c_check_header_mongrel
"$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
7009 if test "x$ac_cv_header_GL_glx_h" = xyes
; then :
7010 cat >>confdefs.h
<<_ACEOF
7011 #define HAVE_GL_GLX_H 1
7013 host_feature_glx
=yes
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
7022 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
7023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7026 #define __unused __attribute__((unused))
7027 #include <sys/stat.h>
7037 if ac_fn_c_try_compile
"$LINENO"; then :
7038 host_stat_h__unused_used
=no
7040 host_stat_h__unused_used
=yes
7042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
7044 $as_echo "$host_stat_h__unused_used" >&6; }
7047 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
7048 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7050 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7051 if eval \
${$as_ac_Header+:} false
; then :
7052 $as_echo_n "(cached) " >&6
7054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056 #include <sys/types.h>
7068 if ac_fn_c_try_compile
"$LINENO"; then :
7069 eval "$as_ac_Header=yes"
7071 eval "$as_ac_Header=no"
7073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7075 eval ac_res
=\$
$as_ac_Header
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7077 $as_echo "$ac_res" >&6; }
7078 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7079 cat >>confdefs.h
<<_ACEOF
7080 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7083 ac_header_dirent
=$ac_hdr; break
7087 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7088 if test $ac_header_dirent = dirent.h
; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7090 $as_echo_n "checking for library containing opendir... " >&6; }
7091 if ${ac_cv_search_opendir+:} false
; then :
7092 $as_echo_n "(cached) " >&6
7094 ac_func_search_save_LIBS
=$LIBS
7095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7098 /* Override any GCC internal prototype to avoid an error.
7099 Use char because int might match the return type of a GCC
7100 builtin and then its argument prototype would still apply. */
7113 for ac_lib
in '' dir
; do
7114 if test -z "$ac_lib"; then
7115 ac_res
="none required"
7118 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7120 if ac_fn_c_try_link
"$LINENO"; then :
7121 ac_cv_search_opendir
=$ac_res
7123 rm -f core conftest.err conftest.
$ac_objext \
7125 if ${ac_cv_search_opendir+:} false
; then :
7129 if ${ac_cv_search_opendir+:} false
; then :
7132 ac_cv_search_opendir
=no
7135 LIBS
=$ac_func_search_save_LIBS
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7138 $as_echo "$ac_cv_search_opendir" >&6; }
7139 ac_res
=$ac_cv_search_opendir
7140 if test "$ac_res" != no
; then :
7141 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7147 $as_echo_n "checking for library containing opendir... " >&6; }
7148 if ${ac_cv_search_opendir+:} false
; then :
7149 $as_echo_n "(cached) " >&6
7151 ac_func_search_save_LIBS
=$LIBS
7152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7155 /* Override any GCC internal prototype to avoid an error.
7156 Use char because int might match the return type of a GCC
7157 builtin and then its argument prototype would still apply. */
7170 for ac_lib
in '' x
; do
7171 if test -z "$ac_lib"; then
7172 ac_res
="none required"
7175 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7177 if ac_fn_c_try_link
"$LINENO"; then :
7178 ac_cv_search_opendir
=$ac_res
7180 rm -f core conftest.err conftest.
$ac_objext \
7182 if ${ac_cv_search_opendir+:} false
; then :
7186 if ${ac_cv_search_opendir+:} false
; then :
7189 ac_cv_search_opendir
=no
7192 LIBS
=$ac_func_search_save_LIBS
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7195 $as_echo "$ac_cv_search_opendir" >&6; }
7196 ac_res
=$ac_cv_search_opendir
7197 if test "$ac_res" != no
; then :
7198 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
7205 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7206 if ${ac_cv_header_stat_broken+:} false
; then :
7207 $as_echo_n "(cached) " >&6
7209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 #include <sys/types.h>
7212 #include <sys/stat.h>
7214 #if defined S_ISBLK && defined S_IFDIR
7215 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7218 #if defined S_ISBLK && defined S_IFCHR
7219 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7222 #if defined S_ISLNK && defined S_IFREG
7223 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7226 #if defined S_ISSOCK && defined S_IFREG
7227 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7231 if ac_fn_c_try_compile
"$LINENO"; then :
7232 ac_cv_header_stat_broken
=no
7234 ac_cv_header_stat_broken
=yes
7236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
7239 $as_echo "$ac_cv_header_stat_broken" >&6; }
7240 if test $ac_cv_header_stat_broken = yes; then
7242 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7247 $as_echo_n "checking for ANSI C header files... " >&6; }
7248 if ${ac_cv_header_stdc+:} false
; then :
7249 $as_echo_n "(cached) " >&6
7251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7266 if ac_fn_c_try_compile
"$LINENO"; then :
7267 ac_cv_header_stdc
=yes
7269 ac_cv_header_stdc
=no
7271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7273 if test $ac_cv_header_stdc = yes; then
7274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281 $EGREP "memchr" >/dev
/null
2>&1; then :
7284 ac_cv_header_stdc
=no
7290 if test $ac_cv_header_stdc = yes; then
7291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7298 $EGREP "free" >/dev
/null
2>&1; then :
7301 ac_cv_header_stdc
=no
7307 if test $ac_cv_header_stdc = yes; then
7308 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7309 if test "$cross_compiling" = yes; then :
7312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7316 #if ((' ' & 0x0FF) == 0x020)
7317 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7318 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7320 # define ISLOWER(c) \
7321 (('a' <= (c) && (c) <= 'i') \
7322 || ('j' <= (c) && (c) <= 'r') \
7323 || ('s' <= (c) && (c) <= 'z'))
7324 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7327 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7332 for (i = 0; i < 256; i++)
7333 if (XOR (islower (i), ISLOWER (i))
7334 || toupper (i) != TOUPPER (i))
7339 if ac_fn_c_try_run
"$LINENO"; then :
7342 ac_cv_header_stdc
=no
7344 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7345 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7351 $as_echo "$ac_cv_header_stdc" >&6; }
7352 if test $ac_cv_header_stdc = yes; then
7354 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7359 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7360 if ${ac_cv_header_sys_wait_h+:} false
; then :
7361 $as_echo_n "(cached) " >&6
7363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 #include <sys/types.h>
7366 #include <sys/wait.h>
7368 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7371 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7379 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7384 if ac_fn_c_try_compile
"$LINENO"; then :
7385 ac_cv_header_sys_wait_h
=yes
7387 ac_cv_header_sys_wait_h
=no
7389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7392 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7393 if test $ac_cv_header_sys_wait_h = yes; then
7395 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7400 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7401 if ${ac_cv_header_time+:} false
; then :
7402 $as_echo_n "(cached) " >&6
7404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 #include <sys/types.h>
7407 #include <sys/time.h>
7413 if ((struct tm *) 0)
7419 if ac_fn_c_try_compile
"$LINENO"; then :
7420 ac_cv_header_time
=yes
7422 ac_cv_header_time
=no
7424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7427 $as_echo "$ac_cv_header_time" >&6; }
7428 if test $ac_cv_header_time = yes; then
7430 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7434 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7435 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
7437 cat >>confdefs.h
<<_ACEOF
7438 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7442 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7447 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7448 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
7450 cat >>confdefs.h
<<_ACEOF
7451 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7455 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7458 case " $LIBOBJS " in
7459 *" fileblocks.$ac_objext "* ) ;;
7460 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
7467 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7468 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
7470 cat >>confdefs.h
<<_ACEOF
7471 #define HAVE_STRUCT_STAT_ST_RDEV 1
7475 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7481 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7482 if ${ac_cv_struct_tm+:} false
; then :
7483 $as_echo_n "(cached) " >&6
7485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #include <sys/types.h>
7494 int *p = &tm.tm_sec;
7500 if ac_fn_c_try_compile
"$LINENO"; then :
7501 ac_cv_struct_tm
=time.h
7503 ac_cv_struct_tm
=sys
/time.h
7505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7508 $as_echo "$ac_cv_struct_tm" >&6; }
7509 if test $ac_cv_struct_tm = sys
/time.h
; then
7511 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7515 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7516 #include <$ac_cv_struct_tm>
7519 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
7521 cat >>confdefs.h
<<_ACEOF
7522 #define HAVE_STRUCT_TM_TM_ZONE 1
7528 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7530 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7533 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7535 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
7541 cat >>confdefs.h
<<_ACEOF
7542 #define HAVE_DECL_TZNAME $ac_have_decl
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7546 $as_echo_n "checking for tzname... " >&6; }
7547 if ${ac_cv_var_tzname+:} false
; then :
7548 $as_echo_n "(cached) " >&6
7550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7553 #if !HAVE_DECL_TZNAME
7554 extern char *tzname[];
7560 return tzname[0][0];
7565 if ac_fn_c_try_link
"$LINENO"; then :
7566 ac_cv_var_tzname
=yes
7570 rm -f core conftest.err conftest.
$ac_objext \
7571 conftest
$ac_exeext conftest.
$ac_ext
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7574 $as_echo "$ac_cv_var_tzname" >&6; }
7575 if test $ac_cv_var_tzname = yes; then
7577 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7582 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7583 if test "x$ac_cv_type_off_t" = xyes
; then :
7587 cat >>confdefs.h
<<_ACEOF
7588 #define off_t long int
7593 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7594 if test "x$ac_cv_type_pid_t" = xyes
; then :
7598 cat >>confdefs.h
<<_ACEOF
7604 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7605 if test "x$ac_cv_type_size_t" = xyes
; then :
7609 cat >>confdefs.h
<<_ACEOF
7610 #define size_t unsigned int
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7616 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7617 if ${ac_cv_type_uid_t+:} false
; then :
7618 $as_echo_n "(cached) " >&6
7620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7622 #include <sys/types.h>
7625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7626 $EGREP "uid_t" >/dev
/null
2>&1; then :
7627 ac_cv_type_uid_t
=yes
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7635 $as_echo "$ac_cv_type_uid_t" >&6; }
7636 if test $ac_cv_type_uid_t = no
; then
7638 $as_echo "#define uid_t int" >>confdefs.h
7641 $as_echo "#define gid_t int" >>confdefs.h
7646 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7647 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7649 cat >>confdefs.h
<<_ACEOF
7650 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7657 # Look for some functions
7658 for ac_func
in getpagesize kqueue statfs statvfs \
7659 clone kse_create rfork_thread thr_create sa_register \
7660 getcontext makecontext setcontext sigaltstack swapcontext
7662 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7663 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7664 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7665 cat >>confdefs.h
<<_ACEOF
7666 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7676 for ac_header
in $ac_header_list
7678 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7679 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7681 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7682 cat >>confdefs.h
<<_ACEOF
7683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7697 for ac_func
in getpagesize
7699 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7700 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7701 cat >>confdefs.h
<<_ACEOF
7702 #define HAVE_GETPAGESIZE 1
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7709 $as_echo_n "checking for working mmap... " >&6; }
7710 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7711 $as_echo_n "(cached) " >&6
7713 if test "$cross_compiling" = yes; then :
7714 ac_cv_func_mmap_fixed_mapped
=no
7716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 $ac_includes_default
7719 /* malloc might have been renamed as rpl_malloc. */
7722 /* Thanks to Mike Haertel and Jim Avera for this test.
7723 Here is a matrix of mmap possibilities:
7724 mmap private not fixed
7725 mmap private fixed at somewhere currently unmapped
7726 mmap private fixed at somewhere already mapped
7727 mmap shared not fixed
7728 mmap shared fixed at somewhere currently unmapped
7729 mmap shared fixed at somewhere already mapped
7730 For private mappings, we should verify that changes cannot be read()
7731 back from the file, nor mmap's back from the file at a different
7732 address. (There have been systems where private was not correctly
7733 implemented like the infamous i386 svr4.0, and systems where the
7734 VM page cache was not coherent with the file system buffer cache
7735 like early versions of FreeBSD and possibly contemporary NetBSD.)
7736 For shared mappings, we should conversely verify that changes get
7737 propagated back to all the places they're supposed to be.
7739 Grep wants private fixed already mapped.
7740 The main things grep needs to know about mmap are:
7741 * does it exist and is it safe to write into the mmap'd area
7742 * how to use it (BSD variants) */
7745 #include <sys/mman.h>
7747 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7751 /* This mess was copied from the GNU getpagesize.h. */
7752 #ifndef HAVE_GETPAGESIZE
7753 # ifdef _SC_PAGESIZE
7754 # define getpagesize() sysconf(_SC_PAGESIZE)
7755 # else /* no _SC_PAGESIZE */
7756 # ifdef HAVE_SYS_PARAM_H
7757 # include <sys/param.h>
7758 # ifdef EXEC_PAGESIZE
7759 # define getpagesize() EXEC_PAGESIZE
7760 # else /* no EXEC_PAGESIZE */
7762 # define getpagesize() NBPG * CLSIZE
7765 # endif /* no CLSIZE */
7766 # else /* no NBPG */
7768 # define getpagesize() NBPC
7769 # else /* no NBPC */
7771 # define getpagesize() PAGESIZE
7772 # endif /* PAGESIZE */
7773 # endif /* no NBPC */
7774 # endif /* no NBPG */
7775 # endif /* no EXEC_PAGESIZE */
7776 # else /* no HAVE_SYS_PARAM_H */
7777 # define getpagesize() 8192 /* punt totally */
7778 # endif /* no HAVE_SYS_PARAM_H */
7779 # endif /* no _SC_PAGESIZE */
7781 #endif /* no HAVE_GETPAGESIZE */
7786 char *data, *data2, *data3;
7791 pagesize = getpagesize ();
7793 /* First, make a file with some known garbage in it. */
7794 data = (char *) malloc (pagesize);
7797 for (i = 0; i < pagesize; ++i)
7798 *(data + i) = rand ();
7800 fd = creat ("conftest.mmap", 0600);
7803 if (write (fd, data, pagesize) != pagesize)
7807 /* Next, check that the tail of a page is zero-filled. File must have
7808 non-zero length, otherwise we risk SIGBUS for entire page. */
7809 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7813 if (write (fd2, cdata2, 1) != 1)
7815 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7816 if (data2 == MAP_FAILED)
7818 for (i = 0; i < pagesize; ++i)
7822 if (munmap (data2, pagesize))
7825 /* Next, try to mmap the file at a fixed address which already has
7826 something else allocated at it. If we can, also make sure that
7827 we see the same garbage. */
7828 fd = open ("conftest.mmap", O_RDWR);
7831 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7832 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7834 for (i = 0; i < pagesize; ++i)
7835 if (*(data + i) != *(data2 + i))
7838 /* Finally, make sure that changes to the mapped area do not
7839 percolate back to the file as seen by read(). (This is a bug on
7840 some variants of i386 svr4.0.) */
7841 for (i = 0; i < pagesize; ++i)
7842 *(data2 + i) = *(data2 + i) + 1;
7843 data3 = (char *) malloc (pagesize);
7846 if (read (fd, data3, pagesize) != pagesize)
7848 for (i = 0; i < pagesize; ++i)
7849 if (*(data + i) != *(data3 + i))
7857 if ac_fn_c_try_run
"$LINENO"; then :
7858 ac_cv_func_mmap_fixed_mapped
=yes
7860 ac_cv_func_mmap_fixed_mapped
=no
7862 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7863 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7868 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7869 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7871 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7874 rm -f conftest.mmap conftest.txt
7877 #-----------------------------------------------------------------------------
7880 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7881 # it switched on by default, and we use the host compiler, so it compiles AROS
7882 # code with this enabled resulting in link failures as we don't have support
7885 # We use two methods to disable it. For the host compiler (used to compile
7886 # some hosted modules), we test to see if the compiler supports stack
7887 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7888 # work on all platforms.
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fno-stack-protector" >&5
7892 $as_echo_n "checking whether ${CC_BASE} accepts -fno-stack-protector... " >&6; }
7893 save_cflags
="$CFLAGS"
7894 CFLAGS
="$CFLAGS -fno-stack-protector"
7895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7906 if ac_fn_c_try_compile
"$LINENO"; then :
7907 use_no_stack_protector
="yes"
7909 use_no_stack_protector
="no"
7911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7913 $as_echo "$use_no_stack_protector" >&6; }
7914 if test "x-$use_no_stack_protector" = "x-yes" ; then
7915 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7917 CFLAGS
="$save_cflags"
7919 #-----------------------------------------------------------------------------
7921 # Disable pointer-signedness warnings if the compiler recognises the option
7922 # (this only works for the host compiler at the moment)
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -Wno-pointer-sign" >&5
7925 $as_echo_n "checking whether ${CC_BASE} accepts -Wno-pointer-sign... " >&6; }
7926 save_cflags
="$CFLAGS"
7927 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7939 if ac_fn_c_try_compile
"$LINENO"; then :
7940 use_no_sign_warning
="yes"
7942 use_no_sign_warning
="no"
7944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7946 $as_echo "$use_no_sign_warning" >&6; }
7947 if test "x-$use_no_sign_warning" = "x-yes" ; then
7948 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7950 CFLAGS
="$save_cflags"
7952 #-----------------------------------------------------------------------------
7954 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fgnu89-inline" >&5
7957 $as_echo_n "checking whether ${CC_BASE} accepts -fgnu89-inline... " >&6; }
7958 save_cflags
="$CFLAGS"
7959 CFLAGS
="$CFLAGS -fgnu89-inline"
7960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7971 if ac_fn_c_try_compile
"$LINENO"; then :
7972 use_gnu89_inline
="yes"
7974 use_gnu89_inline
="no"
7976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7978 $as_echo "$use_gnu89_inline" >&6; }
7979 if test "x-$use_gnu89_inline" = "x-yes" ; then
7980 gnu89_inline
="-fgnu89-inline"
7982 CFLAGS
="$save_cflags"
7985 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7986 # On GCC >= 4.0 -iquote should be used
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -iquote" >&5
7989 $as_echo_n "checking whether ${CC_BASE} accepts -iquote... " >&6; }
7990 CFLAGS
="$CFLAGS -iquote."
7991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
8002 if ac_fn_c_try_compile
"$LINENO"; then :
8007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
8009 $as_echo "$has_iquote" >&6; }
8010 if test "x-$has_iquote" = "x-yes" ; then
8011 host_cflags_iquote
=-iquote
8012 host_cflags_iquote_end
=
8014 host_cflags_iquote
=-I
8015 host_cflags_iquote_end
=-I-
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
8019 $as_echo "$as_me: Performing target configuration..." >&6;}
8024 aros_nowarn_flags
="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
8032 aros_kernel_isaflags
=
8033 aros_config_cppflags
=
8035 aros_config_cxxflags
=
8036 aros_config_aflags
="$""(WARN_ALL) -x assembler-with-cpp -c"
8037 aros_config_ldflags
=""
8039 aros_shared_default
=yes
8041 aros_shared_cflags
="-fPIC"
8042 aros_shared_aflags
=""
8043 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8044 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8046 aros_kernel_ar_flags
="cr"
8047 aros_target_ar_flags
="cr"
8048 aros_target_nm_flags
="-C -ul"
8049 aros_target_strip_flags
="--strip-unneeded -R.comment"
8054 aros_target_genmap
="-Wl,-Map -Xlinker"
8056 # Native flavour stuff
8057 aros_serial_debug
="0"
8059 # Palm native flavour stuff
8060 aros_palm_debug_hack
="0"
8062 # Unix flavour stuff
8063 aros_nesting_supervisor
="0"
8065 # Collect-aros stuff: "-ius" to ignore undefined symbols
8066 ignore_undefined_symbols
=""
8068 # Check for X11 by default
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
8072 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
8074 # Check whether --with-toolchain was given.
8075 if test "${with_toolchain+set}" = set; then :
8076 withval
=$with_toolchain; aros_toolchain
="$withval"
8078 aros_toolchain
="$default_toolchain_family"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
8082 $as_echo "$aros_toolchain" >&6; }
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
8086 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
8087 # Check whether --enable-lto was given.
8088 if test "${enable_lto+set}" = set; then :
8089 enableval
=$enable_lto; aros_config_lto
="$enableval"
8091 aros_config_lto
="no"
8094 if test "$aros_config_lto" != "no"; then
8095 aros_config_lto
="yes"
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
8098 $as_echo "$aros_config_lto" >&6; }
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
8101 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
8102 # Check whether --enable-coverage was given.
8103 if test "${enable_coverage+set}" = set; then :
8104 enableval
=$enable_coverage; aros_config_coverage
="$enableval"
8106 aros_config_coverage
="no"
8109 if test "$aros_config_coverage" != "no"; then
8110 aros_config_coverage
="yes"
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
8113 $as_echo "$aros_config_coverage" >&6; }
8117 case "$aros_toolchain" in
8119 toolchain_c_compiler
="clang"
8120 toolchain_cxx_compiler
="clang++"
8121 toolchain_cpp_preprocessor
="clang"
8122 toolchain_cpp_opts
=" -E"
8123 toolchain_ld
="ld.lld"
8125 toolchain_as
="llvm-as"
8126 toolchain_ar
="llvm-ar"
8127 toolchain_ranlib
="llvm-ranlib"
8128 toolchain_nm
="llvm-nm"
8129 toolchain_strip
="true"
8130 toolchain_objcopy
="llvm-objcopy"
8131 toolchain_objdump
="llvm-objdump"
8133 toolchain_def_opt_lvl
="-O2"
8134 toolchain_debug_opt_lvl
="-O0"
8135 toolchain_size_opt_lvl
="-Os"
8138 toolchain_c_compiler
="gcc"
8139 toolchain_cxx_compiler
="g++"
8140 toolchain_cpp_preprocessor
="gcc"
8141 toolchain_cpp_opts
=" -E"
8144 if test "$aros_config_lto" != "yes"; then
8147 toolchain_ranlib
="ranlib"
8150 toolchain_ld
="ld.bfd"
8151 toolchain_ar
="gcc-ar"
8152 toolchain_ranlib
="gcc-ranlib"
8153 toolchain_nm
="gcc-nm"
8155 toolchain_strip
="strip"
8156 toolchain_objcopy
="objcopy"
8157 toolchain_objdump
="objdump"
8159 toolchain_def_opt_lvl
="-O2"
8160 toolchain_debug_opt_lvl
="-O0"
8161 toolchain_size_opt_lvl
="-Os"
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
8165 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
8166 toolchain_c_compiler
="cc"
8167 toolchain_cxx_compiler
="c++"
8168 toolchain_cpp_preprocessor
="cpp"
8174 toolchain_ranlib
="ranlib"
8176 toolchain_strip
="strip"
8177 toolchain_objcopy
="objcopy"
8178 toolchain_objdump
="objdump"
8182 #-----------------------------------------------------------------------------
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
8185 $as_echo_n "checking which type of build to do... " >&6; }
8186 # Check whether --enable-build_type was given.
8187 if test "${enable_build_type+set}" = set; then :
8188 enableval
=$enable_build_type; build_type
=$enableval
8190 build_type
="personal"
8194 if test "$build_type" = "nightly"; then
8195 build_type_string
="NIGHTLY"
8196 elif test "$build_type" = "snapshot"; then
8197 build_type_string
="SNAPSHOT"
8198 elif test "$build_type" = "milestone"; then
8199 build_type_string
="MILESTONE"
8200 elif test "$build_type" = "release"; then
8201 build_type_string
="RELEASE"
8203 build_type_string
="PERSONAL"
8204 build_type
="personal"
8207 aros_config_cppflags
="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
8210 $as_echo "$build_type" >&6; }
8212 #-----------------------------------------------------------------------------
8213 all_debug_types
="messages stack modules mungwall symbols"
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
8216 $as_echo_n "checking which debug types to enable... " >&6; }
8217 # Check whether --enable-debug was given.
8218 if test "${enable_debug+set}" = set; then :
8219 enableval
=$enable_debug; debug
="$enableval"
8225 if test "$debug" = "" -o "$debug" = "no"; then
8227 elif test "$debug" = "yes"; then
8231 if test "$debug" = "all" ; then
8232 debug
="messages stack modules symbols"
8233 for d
in $all_debug_types; do
8234 export aros_
${d}_debug
="1"
8237 for d
in $all_debug_types; do
8238 export aros_
${d}_debug
="0"
8242 if test "$debug" != "none"; then
8243 debug
=`echo $debug | sed s/,/\ /g`
8246 for d2
in $all_debug_types; do
8247 if test "$d2" = "$d"; then
8252 if test "$found" = "0"; then
8253 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
8255 export aros_
${d}_debug
="1"
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
8260 $as_echo "$debug" >&6; }
8262 if test "$aros_messages_debug" = "1"; then
8263 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
8265 aros_messages_debug
=""
8267 if test "$aros_symbols_debug" = "1"; then
8268 aros_symbols_debug
="-g"
8270 aros_symbols_debug
=""
8273 # These are the flags to pass when compiling debugged programs
8274 aros_debug_cppflags
="$aros_messages_debug"
8275 aros_debug_cflags
="$aros_symbols_debug"
8276 aros_debug_cxxflags
=
8277 aros_debug_aflags
=""
8278 aros_debug_ldflags
="$aros_symbols_debug"
8280 #-----------------------------------------------------------------------------
8281 # Checking for distcc and ccache.
8283 # Always apply the transforms in this particular order. Basically you should
8284 # always run 'ccache distcc compiler' in that order for the best performance.
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
8287 $as_echo_n "checking whether to enable distcc... " >&6; }
8288 # Check whether --enable-distcc was given.
8289 if test "${enable_distcc+set}" = set; then :
8290 enableval
=$enable_distcc; distcc
="$enableval"
8295 if test "$distcc" != "" -a "$distcc" != "no"; then
8296 # AC_CHECK_PROG will print out the result in this case
8297 # Extract the first word of "distcc", so it can be a program name with args.
8298 set dummy distcc
; ac_word
=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if ${ac_cv_path_DISTCC+:} false
; then :
8302 $as_echo_n "(cached) " >&6
8306 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
8309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8313 test -z "$as_dir" && as_dir
=.
8314 for ac_exec_ext
in '' $ac_executable_extensions; do
8315 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8316 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
8328 DISTCC
=$ac_cv_path_DISTCC
8329 if test -n "$DISTCC"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
8331 $as_echo "$DISTCC" >&6; }
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
8344 $as_echo_n "checking whether to enable ccache... " >&6; }
8345 # Check whether --enable-ccache was given.
8346 if test "${enable_ccache+set}" = set; then :
8347 enableval
=$enable_ccache; ccache
="$enableval"
8352 if test "$ccache" != "" -a "$ccache" != "no"; then
8353 # AC_CHECK_PROG will print out the result in this case
8354 # Extract the first word of "ccache", so it can be a program name with args.
8355 set dummy ccache
; ac_word
=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_prog_CCACHE+:} false
; then :
8359 $as_echo_n "(cached) " >&6
8361 if test -n "$CCACHE"; then
8362 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
8364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir
=.
8369 for ac_exec_ext
in '' $ac_executable_extensions; do
8370 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8371 ac_cv_prog_CCACHE
="ccache"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 CCACHE
=$ac_cv_prog_CCACHE
8382 if test -n "$CCACHE"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
8384 $as_echo "$CCACHE" >&6; }
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8396 #-----------------------------------------------------------------------------
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
8398 $as_echo_n "checking what specific host gcc version to use... " >&6; }
8400 # Check whether --with-kernel-gcc-version was given.
8401 if test "${with_kernel_gcc_version+set}" = set; then :
8402 withval
=$with_kernel_gcc_version; kernel_tool_version
="$withval"
8404 kernel_tool_version
=""
8407 if test "$kernel_tool_version" != "" ; then
8408 msg_result
=$kernel_tool_version
8410 msg_result
="default"
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8413 $as_echo "$msg_result" >&6; }
8415 #-----------------------------------------------------------------------------
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
8417 $as_echo_n "checking what optimization flags to use... " >&6; }
8419 # Check whether --with-optimization was given.
8420 if test "${with_optimization+set}" = set; then :
8421 withval
=$with_optimization; optimization_level
="$withval"
8423 optimization_level
="unknown"
8426 if test "$optimization_level" = "unknown"; then
8427 optimization
="default"
8428 if test "$debug" != "none"; then
8429 optimization_level
=$toolchain_debug_opt_lvl
8431 optimization_level
=$toolchain_def_opt_lvl
8434 optimization
="$optimization_level"
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
8437 $as_echo "$optimization" >&6; }
8439 paranoia_default
=yes
8440 #-----------------------------------------------------------------------------
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
8442 $as_echo_n "checking which paranoia flags to use... " >&6; }
8444 # Check whether --with-paranoia was given.
8445 if test "${with_paranoia+set}" = set; then :
8446 withval
=$with_paranoia; paranoia_flags
="$withval"
8448 paranoia_flags
="$paranoia_default"
8451 if test "$paranoia_flags" = "no"; then
8452 paranoia_flags
="$""(WARN_ALL) -Werror-implicit-function-declaration"
8455 if test "$paranoia_flags" = "yes"; then
8456 paranoia_flags
="$""(WARN_ALL) $""(WARN_ERROR)"
8458 msg_result
="$paranoia_flags"
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8461 $as_echo "$msg_result" >&6; }
8462 aros_warn_flags
="$aros_warn_flags $paranoia_flags"
8464 #-----------------------------------------------------------------------------
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
8466 $as_echo_n "checking what target variant to enable... " >&6; }
8467 # Check whether --enable-target_variant was given.
8468 if test "${enable_target_variant+set}" = set; then :
8469 enableval
=$enable_target_variant; target_variant
=$enableval
8474 if test "$target_variant" = ""; then
8475 aros_target_variant
=""
8476 aros_target_suffix
=""
8479 aros_target_variant
="$target_variant"
8480 aros_target_suffix
="-$target_variant"
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8483 $as_echo "$enableval" >&6; }
8485 #-----------------------------------------------------------------------------
8486 # Target-specific defaults. You can override then on a per-target basis.
8488 # Bootloader name. Currently used by PC target.
8489 target_bootloader
="none"
8493 #-----------------------------------------------------------------------------
8494 # Additional options for some specific targets
8496 case "$aros_target_variant" in
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8499 $as_echo_n "checking XCode path... " >&6; }
8501 # Check whether --with-xcode was given.
8502 if test "${with_xcode+set}" = set; then :
8503 withval
=$with_xcode; aros_xcode_path
="$withval"
8505 aros_xcode_path
="/Developer"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8509 $as_echo "$aros_xcode_path" >&6; }
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8512 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8514 # Check whether --with-sdk-version was given.
8515 if test "${with_sdk_version+set}" = set; then :
8516 withval
=$with_sdk_version; aros_sdk_version
="$withval"
8518 aros_sdk_version
="4.1"
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8522 $as_echo "$aros_sdk_version" >&6; }
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8528 $as_echo_n "checking Android SDK path... " >&6; }
8530 # Check whether --with-sdk was given.
8531 if test "${with_sdk+set}" = set; then :
8532 withval
=$with_sdk; aros_android_sdk
="$withval"
8534 aros_android_sdk
=$default_android_sdk
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8538 $as_echo "$aros_android_sdk" >&6; }
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8541 $as_echo_n "checking Android NDK path... " >&6; }
8543 # Check whether --with-ndk was given.
8544 if test "${with_ndk+set}" = set; then :
8545 withval
=$with_ndk; aros_android_ndk
="$withval"
8547 aros_android_ndk
="none"
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8551 $as_echo "$aros_android_ndk" >&6; }
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8554 $as_echo_n "checking what Android SDK version to use... " >&6; }
8556 # Check whether --with-sdk-version was given.
8557 if test "${with_sdk_version+set}" = set; then :
8558 withval
=$with_sdk_version; aros_sdk_version
="$withval"
8560 aros_sdk_version
="12"
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8564 $as_echo "$aros_sdk_version" >&6; }
8566 aros_android_level
=android-
$aros_sdk_version
8567 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
8568 echo "Platform $aros_android_level is not installed in your SDK"
8569 echo "Use --with-sdk-version=<API level number> to select another platform version"
8570 echo "You can check what plaform versions are installed in your SDK"
8571 echo "by examining contents of $aros_android_sdk/platforms directory"
8572 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
8575 export PATH
="$aros_android_sdk/tools:$PATH"
8576 # Extract the first word of "$android_tool", so it can be a program name with args.
8577 set dummy
$android_tool; ac_word
=$2
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 $as_echo_n "checking for $ac_word... " >&6; }
8580 if ${ac_cv_path_android_tool+:} false
; then :
8581 $as_echo_n "(cached) " >&6
8583 case $android_tool in
8585 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
8588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8592 test -z "$as_dir" && as_dir
=.
8593 for ac_exec_ext
in '' $ac_executable_extensions; do
8594 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8595 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 android_tool
=$ac_cv_path_android_tool
8607 if test -n "$android_tool"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8609 $as_echo "$android_tool" >&6; }
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8617 if test "$android_tool" = ""; then
8620 if test "$android_tool" = "no"; then
8623 if test "$req_avail" = "no"; then
8624 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
8627 if test "$aros_android_ndk" != "none"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8629 $as_echo_n "checking what Android NDK version to use... " >&6; }
8631 # Check whether --with-ndk-version was given.
8632 if test "${with_ndk_version+set}" = set; then :
8633 withval
=$with_ndk_version; aros_ndk_version
="$withval"
8635 aros_ndk_version
="9"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8639 $as_echo "$aros_ndk_version" >&6; }
8642 # Extract the first word of "ant", so it can be a program name with args.
8643 set dummy ant
; ac_word
=$2
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645 $as_echo_n "checking for $ac_word... " >&6; }
8646 if ${ac_cv_path_ant+:} false
; then :
8647 $as_echo_n "(cached) " >&6
8651 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
8654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8658 test -z "$as_dir" && as_dir
=.
8659 for ac_exec_ext
in '' $ac_executable_extensions; do
8660 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8661 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 if test -n "$ant"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8675 $as_echo "$ant" >&6; }
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8682 if test "$ant" = ""; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8684 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8688 $as_echo_n "checking Build debug or release apk... " >&6; }
8690 # Check whether --with-apk-version was given.
8691 if test "${with_apk_version+set}" = set; then :
8692 withval
=$with_apk_version; aros_android_antapk
=$withval
8694 aros_android_antapk
=release
8697 if test $aros_android_antapk != release
-a $aros_android_antapk != debug
; then
8698 as_fn_error $?
"apk-version has to be release or debug" "$LINENO" 5
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8701 $as_echo "$aros_android_antapk" >&6; }
8703 target_extra_cfg
+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8704 host_extra_cfg
+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8705 aros_target_options
+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8707 if test "$host_os" = "mingw32"; then
8708 android_tool
="cmd //c $android_tool"
8716 #-----------------------------------------------------------------------------
8717 # External toolchains
8718 kernel_tool_prefix
="none"
8719 aros_tool_prefix
="none"
8720 elf_tool_prefix
="${target_cpu}-elf-"
8722 # Base target cpu ISA configuration switch.
8723 case "$target_cpu" in
8729 m68k_isa_extra
="ISA_MC68000_FLAGS = -march=68000"
8730 m68k_020_isa_extra
="ISA_MC68020_FLAGS = -march=68020"
8731 m68k_030_isa_extra
="ISA_MC68030_FLAGS = -march=68030"
8732 m68k_040_isa_extra
="ISA_MC68040_FLAGS = -march=68040"
8733 m68k_060_isa_extra
="ISA_MC68060_FLAGS = -march=68060"
8734 m68k_ac080_isa_extra
="ISA_AC68080_FLAGS = -march=68040"
8735 m68k_020_ext
="ISA_MC68020_EXT :=020"
8736 m68k_030_ext
="ISA_MC68030_EXT :=030"
8737 m68k_040_ext
="ISA_MC68040_EXT :=040"
8738 m68k_060_ext
="ISA_MC68060_EXT :=060"
8739 m68k_020_cflags
="ISA_MC68020_CFLAGS ="
8740 m68k_030_cflags
="ISA_MC68030_CFLAGS ="
8741 m68k_040_cflags
="ISA_MC68040_CFLAGS ="
8742 m68k_060_cflags
="ISA_MC68060_CFLAGS ="
8743 m68k_020_cppflags
="ISA_MC68020_CPPFLAGS ="
8744 m68k_030_cppflags
="ISA_MC68030_CPPFLAGS ="
8745 m68k_040_cppflags
="ISA_MC68040_CPPFLAGS ="
8746 m68k_060_cppflags
="ISA_MC68060_CPPFLAGS ="
8747 m68k_020_ldflags
="ISA_MC68020_LDFLAGS ="
8748 m68k_030_ldflags
="ISA_MC68030_LDFLAGS ="
8749 m68k_040_ldflags
="ISA_MC68040_LDFLAGS ="
8750 m68k_060_ldflags
="ISA_MC68060_LDFLAGS ="
8753 x86_isa_extra
="ISA_X86_FLAGS = -m32 -march=i486"
8754 x86_64_isa_extra
="ISA_X8664_FLAGS = -mcmodel=large"
8760 # This is the target configuration switch.
8761 case "$target_os" in
8767 HOST_WANTS_DLOPEN
=yes
8768 aros_target_arch
="linux"
8769 aros_target_family
="unix"
8770 case "$target_cpu" in
8772 aros_target_cpu
="m68k"
8773 aros_object_format
="m68kelf"
8774 aros_flavour
="emulcompat"
8775 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8776 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8777 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8778 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8779 gcc_target_cpu
="mc68000"
8782 aros_target_cpu
="i386"
8783 aros_object_format
="elf_i386"
8784 aros_flavour
="emulation"
8785 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8786 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8787 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8788 aros_kernel_ldflags
="-Wl,-melf_i386"
8789 aros_nominal_depth
=8
8790 gcc_target_cpu
="i386"
8791 pci_hidd_target
="hidd-pci-linux"
8792 android_tool_dir_prefix
="x86"
8793 android_tool_prefix
="i686-android-linux"
8794 android_ndk_arch
="x86"
8797 aros_target_cpu
="x86_64"
8798 aros_object_format
="elf_x86_64"
8799 aros_flavour
="emulation"
8800 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8801 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8802 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8803 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8804 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8805 aros_nominal_depth
=8
8806 pci_hidd_target
="hidd-pci-linux"
8809 aros_target_cpu
="ppc"
8810 aros_object_format
="elf32ppc"
8811 aros_flavour
="emulation"
8812 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8813 aros_nominal_depth
=8
8814 gcc_target_cpu
="ppc"
8817 # Same as powerpc, but I need this for the nightly build to work again.
8818 # Actually, the nightly should be made working with powerpc target.
8819 # That just was too much work for the moment, another week or two.
8821 aros_target_cpu
="ppc"
8822 aros_object_format
="elf32ppc"
8823 aros_flavour
="emulation"
8824 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8825 aros_nominal_depth
=8
8826 gcc_target_cpu
="ppc"
8829 aros_target_cpu
="aarch64"
8830 target_cpu
="aarch64"
8831 aros_object_format
="aarch64elf_aros"
8832 aros_flavour
="emulation"
8833 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8834 gcc_target_cpu
="aarch64"
8835 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8836 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8837 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8838 aros_c_libs
="$aros_c_libs -laeabi"
8839 gcc_default_float_abi
="hard"
8840 kernel_tool_prefix
="aarch64-linux-gnueabihf-"
8843 aros_target_cpu
="arm"
8845 aros_object_format
="armelf_aros"
8846 aros_flavour
="emulation"
8847 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8848 gcc_target_cpu
="arm"
8849 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8850 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8851 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8852 aros_c_libs
="$aros_c_libs -laeabi"
8853 gcc_default_float_abi
="hard"
8854 android_tool_dir_prefix
="arm-linux-androideabi"
8855 android_tool_prefix
="arm-linux-androideabi"
8856 android_ndk_arch
="arm"
8857 kernel_tool_prefix
="arm-linux-gnueabihf-"
8860 aros_target_cpu
="arm"
8861 aros_object_format
="armelf_aros"
8862 aros_flavour
="emulation"
8863 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8864 gcc_target_cpu
="arm"
8865 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8866 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8867 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8868 aros_c_libs
="$aros_c_libs -laeabi"
8869 android_tool_dir_prefix
="arm-linux-androideabi"
8870 android_tool_prefix
="arm-linux-androideabi"
8871 android_ndk_arch
="arm"
8872 kernel_tool_prefix
="arm-linux-gnueabi-"
8875 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8878 case "$aros_target_variant" in
8881 if test "$android_ndk_arch" = ""; then
8882 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8885 aros_nominal_width
=320
8886 aros_nominal_height
=480
8887 if test "$aros_android_ndk" = "none"; then
8888 aros_kernel_cflags
="-mandroid"
8889 aros_kernel_ldflags
="-mandroid"
8892 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8893 kernel_tool_version
=""
8894 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8895 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
8896 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
8897 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8898 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
8901 # Disable implicit PIC mode
8902 aros_config_cflags
="$aros_config_cflags -fno-pic"
8903 kernel_tool_prefix
="$android_tool_prefix-"
8909 aros_target_arch
="pc"
8910 aros_shared_default
="no"
8911 target_bootloader
="grub2"
8912 case "$target_cpu" in
8914 aros_target_cpu
="i386"
8917 if test "$aros_object_format" = "" ; then
8918 aros_object_format
="elf_i386"
8920 aros_flavour
="standalone"
8921 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8922 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8923 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8924 aros_kernel_ldflags
="-Wl,-melf_i386"
8925 aros_nominal_width
=640
8926 aros_nominal_height
=480
8927 gcc_target_cpu
="i386"
8930 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
8931 aros_target_cpu
="x86_64"
8933 if test "$aros_object_format" = "" ; then
8934 aros_object_format
="elf_x86_64"
8936 aros_flavour
="standalone"
8937 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8938 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8939 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8940 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8941 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8942 aros_kernel_ldflags
=""
8943 aros_nominal_width
=640
8944 aros_nominal_height
=480
8945 case "$aros_target_variant" in
8947 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8952 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8958 aros_target_arch
="prep"
8959 aros_shared_default
="no"
8960 aros_target_cpu
="ppc"
8961 aros_object_format
="elf32ppc"
8962 aros_flavour
="ppcnative"
8963 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8964 aros_kernel_ldflags
=""
8965 aros_nominal_width
=640
8966 aros_nominal_height
=480
8967 gcc_target_cpu
="ppc"
8975 HOST_WANTS_DLOPEN
=yes
8976 aros_target_arch
="freebsd"
8977 aros_target_family
="unix"
8978 aros_target_cpu
="i386"
8979 aros_flavour
="emulation"
8980 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8981 gcc_target_cpu
="i386"
8983 aros_target_strip_flags
="-x"
8991 HOST_WANTS_DLOPEN
=yes
8992 aros_target_arch
="darwin"
8993 aros_target_family
="unix"
8994 aros_flavour
="emulation"
8995 case "$target_cpu" in
8997 aros_ios_platform
="iPhoneSimulator"
8998 aros_target_cpu
="i386"
8999 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
9000 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9001 aros_kernel_ldflags
=""
9002 aros_macosx_version
="10.4"
9003 aros_nominal_depth
=8
9004 gcc_target_cpu
="i386"
9005 aros_object_format
="elf_i386"
9006 aros_kernel_ar_flags
="-cr"
9007 aros_target_strip_flags
="-x"
9008 kernel_tool_flags
="-m32"
9011 aros_target_cpu
="x86_64"
9012 aros_object_format
="elf_x86_64"
9013 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9014 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
9015 aros_macosx_version
="10.6"
9016 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9017 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9018 aros_kernel_cflags
="-m64"
9019 aros_kernel_ldflags
="-m64"
9020 aros_nominal_depth
=8
9021 aros_kernel_rs
="$toolchain_ar"
9022 aros_kernel_ar_flags
="-cr"
9023 aros_kernel_ld
="$toolchain_ld"
9024 aros_kernel_as
="$toolchain_as"
9025 aros_kernel_ranlib
="$toolchain_ranlib"
9026 aros_kernel_nm
="$toolchain_nm"
9027 aros_kernel_strip
="strip"
9028 kernel_tool_prefix
="i686-apple-darwin10-"
9031 aros_target_cpu
="ppc"
9032 aros_object_format
="elf32ppc"
9033 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
9034 aros_kernel_ldflags
=""
9035 aros_macosx_version
="10.0"
9036 aros_nominal_depth
=8
9037 gcc_target_cpu
="ppc"
9038 aros_kernel_rs
="$toolchain_ar"
9039 aros_kernel_ar_flags
="-cr"
9040 aros_kernel_ld
="$toolchain_ld -arch ppc"
9041 aros_kernel_as
="$toolchain_as -arch ppc"
9042 aros_kernel_ranlib
="$toolchain_ranlib -arch ppc"
9043 aros_kernel_nm
="$toolchain_nm -arch ppc"
9044 aros_kernel_strip
="strip -arch ppc"
9045 kernel_tool_prefix
="powerpc-apple-darwin10-"
9048 aros_ios_platform
="iPhoneOS"
9049 aros_target_cpu
="arm"
9050 aros_object_format
="armelf_aros"
9051 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
9052 aros_c_libs
="$aros_c_libs -laeabi"
9053 aros_nominal_depth
=8
9054 gcc_target_cpu
="arm"
9055 aros_kernel_rs
="$toolchain_ar"
9056 aros_kernel_ar_flags
="-cr"
9057 aros_kernel_ld
="$toolchain_ld -arch arm"
9058 aros_kernel_ranlib
="$toolchain_ranlib -arch arm"
9059 kernel_tool_prefix
="arm-apple-darwin10-"
9060 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
9063 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
9066 case "$aros_target_variant" in
9068 make_extra_targetcfg
="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
9069 aros_ios_version
="3.0"
9070 aros_nominal_width
=320
9071 aros_nominal_height
=480
9072 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
9073 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"
9074 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
9075 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
9077 # This is here because it may depend on iOS or SDK version
9078 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
9079 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
9080 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
9083 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
9084 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
9094 HOST_WANTS_DLOPEN
=yes
9095 aros_target_arch
="dragonfly"
9096 aros_target_family
="unix"
9097 aros_flavour
="emulation"
9098 case "$target_cpu" in
9100 aros_target_cpu
="i386"
9101 aros_object_format
="elf_i386"
9102 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
9103 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9106 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9107 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9108 aros_target_cpu
="x86_64"
9109 aros_object_format
="elf_x86_64"
9110 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
9111 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
9114 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
9124 HOST_WANTS_DLOPEN
=yes
9125 aros_target_arch
="netbsd"
9126 aros_target_family
="unix"
9127 case "$target_cpu" in
9129 aros_target_cpu
="m68k"
9130 aros_object_format
="m68kelf"
9131 aros_flavour
="emulcompat"
9132 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
9133 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9134 gcc_target_cpu
="mc68000"
9137 aros_target_cpu
="i386"
9138 aros_object_format
="elf_i386"
9139 aros_flavour
="emulation"
9140 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
9141 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9142 aros_nominal_depth
=8
9143 gcc_target_cpu
="i386"
9146 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
9149 aros_target_genmap
="-Wl,-M -Xlinker >"
9150 aros_flavour
="emulation"
9151 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
9159 HOST_WANTS_DLOPEN
=yes
9160 aros_target_arch
="openbsd"
9161 aros_target_family
="unix"
9162 case "$target_cpu" in
9164 aros_target_cpu
="i386"
9165 aros_object_format
="elf_i386"
9166 aros_flavour
="emulation"
9167 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
9168 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9169 gcc_target_cpu
="i386"
9172 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
9175 aros_target_genmap
="-Wl,-M -Xlinker >"
9176 aros_target_nm_flags
="-u"
9177 aros_flavour
="emulation"
9181 aros_target_arch
="solaris"
9182 aros_target_family
="unix"
9183 case "$target_cpu" in
9185 aros_target_cpu
="i386"
9186 aros_object_format
="elf_i386"
9187 aros_flavour
="emulation"
9188 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
9189 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9190 aros_nominal_depth
=8
9191 gcc_target_cpu
="i386"
9194 aros_target_cpu
="sparc"
9195 aros_object_format
="elf_sparc"
9196 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
9197 gcc_target_cpu
="sparc"
9200 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
9203 aros_config_cppflags
="$aros_config_cppflags -D$aros_target_cpu"
9204 aros_flavour
="emulation"
9208 aros_target_arch
="morphos"
9209 aros_shared_default
="no"
9210 aros_target_cpu
="ppc"
9211 aros_object_format
="elf_ppc"
9212 aros_flavour
="nativecompat"
9213 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
9214 gcc_target_cpu
="ppc"
9218 aros_target_arch
="sam440"
9219 aros_shared_default
="no"
9220 aros_target_cpu
="ppc"
9221 aros_object_format
="elf32ppc"
9222 aros_flavour
="ppcnative"
9223 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
9224 aros_kernel_ldflags
=""
9225 aros_nominal_width
=1024
9226 aros_nominal_height
=768
9227 aros_nominal_depth
=24
9228 aros_isa_flags
="$aros_isa_flags -mcpu=440fp -mno-toc"
9229 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9230 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9231 gcc_target_cpu
="powerpc"
9235 aros_target_arch
="efika"
9236 aros_shared_default
="no"
9237 aros_target_cpu
="arm"
9238 aros_object_format
="armelf_aros"
9239 aros_flavour
="standalone"
9240 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
9241 aros_kernel_ldflags
=""
9242 aros_nominal_width
=1024
9243 aros_nominal_height
=600
9244 aros_c_libs
="$aros_c_libs -laeabi"
9245 gcc_default_cpu
="armv7-a"
9246 gcc_default_fpu
="vfpv3"
9247 aros_isa_flags
="$aros_isa_flags -mtune=cortex-a8"
9248 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9249 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9250 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9251 if test "$optimization" = "default"; then
9252 optimization_level
=$toolchain_size_opt_lvl
9254 case "$target_cpu" in
9256 gcc_default_float_abi
="hard"
9261 gcc_default_float_abi
="softfp"
9264 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
9270 aros_target_arch
="chrp"
9271 aros_shared_default
="no"
9272 aros_target_cpu
="ppc"
9273 aros_object_format
="elf32ppc"
9274 aros_flavour
="ppcnative"
9275 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
9276 aros_kernel_ldflags
=""
9277 aros_nominal_width
=640
9278 aros_nominal_height
=480
9279 aros_isa_flags
="$aros_isa_flags -mno-toc"
9280 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9281 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9282 gcc_target_cpu
="powerpc"
9283 case "$aros_target_variant" in
9285 aros_isa_flags
="$aros_isa_flags -mcpu=603e"
9286 aros_config_cppflags
="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
9292 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
9293 aros_flavour
="standalone"
9294 aros_target_arch
="raspi"
9296 aros_shared_default
="no"
9298 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__"
9300 case "$target_cpu" in
9302 aros_target_cpu
="aarch64"
9303 gcc_default_cpu
="aarch64"
9304 aros_object_format
="aarch64elf_aros"
9307 aros_target_cpu
="arm"
9308 gcc_default_cpu
="armv6zk"
9309 gcc_default_cpu_tune
="arm1176jzf-s"
9310 aros_object_format
="armelf_aros"
9311 aros_isa_flags
="$aros_isa_flags -marm"
9312 aros_config_cflags
="$aros_config_cflags"
9313 aros_config_cxxflags
="$aros_config_cxxflags"
9314 aros_config_aflags
="$aros_config_aflags -marm"
9315 aros_kernel_cflags
="$aros_kernel_cflags -marm"
9316 aros_target_mkdep
="$aros_target_mkdep -Darm"
9317 aros_c_libs
="$aros_c_libs -laeabi"
9320 aros_flavour
="standcompat"
9321 aros_target_cpu
="armeb"
9322 gcc_default_float_abi
="hard"
9323 gcc_default_cpu
="armv7ve"
9324 gcc_default_cpu_tune
="cortex-a7"
9325 aros_object_format
="armelfb_aros"
9326 aros_isa_flags
="$aros_isa_flags -marm"
9327 aros_config_cflags
="$aros_config_cflags"
9328 aros_config_cxxflags
="$aros_config_cxxflags"
9329 aros_config_aflags
="$aros_config_aflags -marm"
9330 aros_kernel_cflags
="$aros_kernel_cflags -marm"
9331 aros_target_mkdep
="$aros_target_mkdep -Darm"
9332 aros_c_libs
="$aros_c_libs -laeabi"
9335 aros_target_cpu
="arm"
9336 gcc_default_cpu
="armv6zk"
9337 gcc_default_cpu_tune
="arm1176jzf-s"
9338 aros_object_format
="armelf_aros"
9339 aros_isa_flags
="$aros_isa_flags -marm"
9340 aros_config_cflags
="$aros_config_cflags"
9341 aros_config_cxxflags
="$aros_config_cxxflags"
9342 aros_config_aflags
="$aros_config_aflags -marm"
9343 aros_kernel_cflags
="$aros_kernel_cflags -marm"
9344 aros_target_mkdep
="$aros_target_mkdep -Darm"
9345 aros_c_libs
="$aros_c_libs -laeabi"
9348 as_fn_error $?
"\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
9352 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9353 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9354 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9355 aros_kernel_cflags
="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9357 case "$aros_target_variant" in
9359 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
9365 aros_flavour
="standalone"
9366 aros_target_arch
="stm32f7_discovery"
9367 aros_target_cpu
="arm"
9368 aros_target_cpu_mode
="thumb2"
9369 aros_object_format
="armelf_aros"
9370 aros_shared_default
="no"
9372 gcc_default_cpu
="armv7e-m"
9373 gcc_default_cpu_tune
="cortex-m7"
9374 gcc_default_fpu
="fpv5-sp-d16"
9375 gcc_default_float_abi
="hard"
9377 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dthumb"
9381 aros_elf_translate
="$""(ELF2HUNK)"
9382 make_extra_commands
="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
9383 aros_target_arch
="amiga"
9384 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9385 aros_shared_default
="no"
9387 case "$target_cpu" in
9389 # Check whether --enable-amigaos_compliance was given.
9390 if test "${enable_amigaos_compliance+set}" = set; then :
9391 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
9395 aros_target_cpu
="m68k"
9396 aros_object_format
="m68kelf"
9397 aros_flavour
="standcompat"
9398 gcc_target_cpu
="m68000"
9399 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9400 aros_nowarn_flags
="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
9401 aros_config_cppflags
="$aros_config_cppflags -DNOLIBINLINE"
9402 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9403 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9404 if test "$optimization" = "default"; then
9405 optimization_level
=$toolchain_size_opt_lvl
9407 aros_config_aflags
="$aros_config_aflags"
9408 aros_target_strip_flags
="-R.comment --strip-debug"
9409 aros_nominal_width
=640
9410 aros_nominal_height
=256
9411 aros_nominal_depth
=2
9415 aros_flavour
="native"
9416 gcc_target_cpu
="ppc"
9419 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
9425 aros_target_arch
="mingw32"
9426 aros_shared_default
="no"
9427 aros_flavour
="emulation"
9428 aros_shared_cflags
=""
9429 need_crosstools
="yes"
9432 case "$target_cpu" in
9434 aros_target_cpu
="i386"
9435 aros_object_format
="elf_i386"
9436 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
9437 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9438 aros_nominal_depth
=8
9439 gcc_target_cpu
="i386"
9441 kernel_tool_prefix
="i386-mingw32-"
9444 aros_target_cpu
="x86_64"
9445 aros_object_format
="elf_x86_64"
9446 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9447 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
9448 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9449 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9450 aros_nominal_depth
=8
9451 kernel_tool_prefix
="x86_64-w64-mingw32-"
9454 aros_target_cpu
="arm"
9455 aros_object_format
="armelf_aros"
9456 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
9457 aros_c_libs
="$aros_c_libs -laeabi"
9458 aros_nominal_depth
=8
9459 gcc_target_cpu
="arm"
9460 gcc_default_float_abi
="soft"
9461 kernel_tool_prefix
="arm-mingw32ce-"
9462 aros_nominal_width
=160
9463 aros_nominal_height
=160
9466 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
9469 if test $host_os = "cygwin"; then
9470 aros_kernel_cflags
="-mno-cygwin"
9474 aros_target_arch
="pp"
9475 aros_shared_default
="no"
9476 case "$target_cpu" in
9478 aros_target_cpu
="m68k"
9479 aros_object_format
="m68kelf"
9480 aros_flavour
="palmnative"
9481 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
9482 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9483 aros_nominal_width
=160
9484 aros_nominal_height
=160
9485 aros_nominal_depth
=1
9486 aros_target_ar_flags
="cru"
9487 aros_c_libs
="$aros_c_libs -lgcc1"
9488 aros_shared_default
=no
9489 aros_shared_cflags
="-fpic"
9490 aros_shared_aflags
=""
9491 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
9492 aros_kernel_ldflags
="-Wl,-rpath,./lib"
9493 aros_debug_cppflags
="$aros_messages_debug"
9494 aros_debug_cflags
="$aros_symbols_debug"
9495 aros_debug_aflags
=""
9496 aros_debug_ldflags
="$aros_symbols_debug"
9497 aros_mungwall_debug
="0"
9498 aros_modules_debug
="0"
9499 gcc_target_cpu
="mc68000"
9500 ignore_undefined_symbols
="-ius"
9503 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9509 aros_target_arch
="mac"
9510 aros_shared_default
="no"
9511 case "$target_cpu" in
9513 aros_target_cpu
="m68k"
9514 aros_object_format
="m68kelf"
9515 aros_flavour
="mac68knative"
9516 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
9517 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9518 aros_nominal_width
=512
9519 aros_nominal_height
=384
9520 aros_nominal_depth
=8
9521 aros_target_ar_flags
="cru"
9522 aros_c_libs
="$aros_c_libs -lgcc1"
9523 aros_shared_default
=no
9524 aros_shared_cflags
="-fpic"
9525 aros_shared_aflags
=""
9526 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
9527 aros_kernel_ldflags
="-Wl,-rpath,./lib"
9528 aros_debug_cppflags
="$aros_messages_debug"
9529 aros_debug_cflags
="$aros_symbols_debug"
9530 aros_debug_aflags
=""
9531 aros_debug_ldflags
="$aros_symbols_debug"
9532 aros_mungwall_debug
="0"
9533 aros_modules_debug
="0"
9534 gcc_target_cpu
="mc68000"
9535 ignore_undefined_symbols
="-ius"
9538 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9544 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
9548 #-----------------------------------------------------------------------------
9549 crosstools_guess
="yes"
9550 aros_target_toolchain
="no"
9551 aros_kernel_sysroot
=""
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9554 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9556 # Check whether --with-kernel-toolchain-prefix was given.
9557 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9558 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9562 $as_echo "$kernel_tool_prefix" >&6; }
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9565 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9567 # Check whether --with-elf-toolchain-prefix was given.
9568 if test "${with_elf_toolchain_prefix+set}" = set; then :
9569 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
9570 crosstools_guess
="no"
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9574 $as_echo "$elf_tool_prefix" >&6; }
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9577 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9579 # Check whether --with-aros-toolchain was given.
9580 if test "${with_aros_toolchain+set}" = set; then :
9581 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
9582 crosstools_guess
="no"
9585 if test "$aros_tool_prefix" = "yes" ; then
9586 aros_tool_prefix
=$aros_target_cpu-aros-
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9589 $as_echo "$aros_tool_prefix" >&6; }
9591 #-----------------------------------------------------------------------------
9592 # Checking if we should build crosstools..
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9594 $as_echo_n "checking whether to build crosstools... " >&6; }
9595 # Check whether --enable-crosstools was given.
9596 if test "${enable_crosstools+set}" = set; then :
9597 enableval
=$enable_crosstools; crosstools
="$enableval"
9599 crosstools
="$crosstools_guess"
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9603 $as_echo "$crosstools" >&6; }
9605 if test "${crosstools}" = "yes"; then
9606 if test "${crosstools_guess}" = "no"; then
9607 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9611 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
9612 aros_target_toolchain
="yes"
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9616 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9618 # Check whether --with-aros-toolchain-install was given.
9619 if test "${with_aros_toolchain_install+set}" = set; then :
9620 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
9623 if test "x$aros_toolchain_install" = "x"; then
9624 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9626 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
9627 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
9628 if test "$crosstools_guess" = "no" ; then
9629 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9630 aros_kernel_sysroot
="$""(TARGET_SYSROOT)"
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9635 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9637 #-----------------------------------------------------------------------------
9638 if test "$aros_toolchain" = "gnu" ; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9640 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9643 # Check whether --with-binutils-version was given.
9644 if test "${with_binutils_version+set}" = set; then :
9645 withval
=$with_binutils_version; use_binutils_version
="$withval"
9647 use_binutils_version
=""
9650 if test "$use_binutils_version" = ""; then
9651 target_binutils_version
="$default_binutils_version"
9653 target_binutils_version
="$use_binutils_version"
9655 if test "$aros_toolchain" = "gnu" ; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9657 $as_echo "$target_binutils_version" >&6; }
9661 # Helper to identify gcc version
9664 #-----------------------------------------------------------------------------
9665 if test "$aros_toolchain" = "gnu" ; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9667 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9670 # Check whether --with-gcc-version was given.
9671 if test "${with_gcc_version+set}" = set; then :
9672 withval
=$with_gcc_version; use_gcc_version
="$withval"
9677 if test "$use_gcc_version" = ""; then
9678 if test "${crosstools}" = "no"; then
9679 if test "x$aros_toolchain_install" != "x"; then
9681 target_gcc_version
=""
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9683 $as_echo_n "checking gcc version... " >&6; }
9684 if ${ax_cv_gcc_version+:} false
; then :
9685 $as_echo_n "(cached) " >&6
9688 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor}$(toolchain_cpp_opts) -dumpversion`"
9689 if test "x$ax_cv_gcc_version" = "x"; then :
9691 ax_cv_gcc_version
=""
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9697 $as_echo "$ax_cv_gcc_version" >&6; }
9698 target_gcc_version
=$ax_cv_gcc_version
9703 if test "$use_gcc_version" = ""; then
9704 target_gcc_version
="$default_gcc_version"
9707 target_gcc_version
="$use_gcc_version"
9709 if test "$aros_toolchain" = "gnu" ; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9711 $as_echo "$target_gcc_version" >&6; }
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
9714 $as_echo_n "checking version string style... " >&6; }
9715 if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
9717 $as_echo "snapshot" >&6; }
9718 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'-' -f1)
9719 GCC_VERSION_MINOR
=-1
9720 GCC_VERSION_PATCH
=-1
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
9723 $as_echo "release" >&6; }
9724 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'.' -f1)
9725 GCC_VERSION_MINOR
=$
(echo $target_gcc_version | cut
-d'.' -f2)
9726 GCC_VERSION_PATCH
=$
(echo $target_gcc_version | cut
-d'.' -f3)
9729 gcc_fix_bitfields
="false"
9730 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9731 gcc_fix_bitfields
="true"
9733 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9734 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9735 gcc_fix_bitfields
="true"
9740 if test "$gcc_fix_bitfields" = "true" ; then
9741 case "$aros_target_cpu" in
9743 x86_isa_extra
="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9744 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9750 # Helper to identify llvm version
9753 if test "$aros_toolchain" = "llvm" ; then
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target llvm version to use" >&5
9755 $as_echo_n "checking what specific target llvm version to use... " >&6; }
9758 # Check whether --with-llvm-version was given.
9759 if test "${with_llvm_version+set}" = set; then :
9760 withval
=$with_llvm_version; use_llvm_version
="$withval"
9765 if test "$use_llvm_version" = ""; then
9766 if test "${crosstools}" = "no"; then
9767 if test "x$aros_toolchain_install" != "x"; then
9769 target_llvm_version
=""
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm version" >&5
9771 $as_echo_n "checking llvm version... " >&6; }
9772 if ${ax_cv_llvm_version+:} false
; then :
9773 $as_echo_n "(cached) " >&6
9776 ax_cv_llvm_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor}$(toolchain_cpp_opts) -dumpversion`"
9777 if test "x$ax_cv_llvm_version" = "x"; then :
9779 ax_cv_llvm_version
=""
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_llvm_version" >&5
9785 $as_echo "$ax_cv_llvm_version" >&6; }
9786 target_llvm_version
=$ax_cv_llvm_version
9791 if test "$use_llvm_version" = ""; then
9792 target_llvm_version
="$default_llvm_version"
9795 target_llvm_version
="$use_llvm_version"
9797 if test "$aros_toolchain" = "llvm" ; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_llvm_version" >&5
9799 $as_echo "$target_llvm_version" >&6; }
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9803 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9804 # Check whether --enable-objc was given.
9805 if test "${enable_objc+set}" = set; then :
9806 enableval
=$enable_objc; objc
="$enableval"
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9812 $as_echo "$objc" >&6; }
9813 if test "x$objc" = "xyes"; then
9816 objc_target
="no-objc"
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9820 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9821 # Check whether --enable-java was given.
9822 if test "${enable_java+set}" = set; then :
9823 enableval
=$enable_java; java
="$enableval"
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9829 $as_echo "$java" >&6; }
9830 if test "x$java" != "xno"; then
9833 java_target
="no-java"
9836 spec_obj_format
="-m $aros_object_format"
9837 # Now process extra architecture-specific options.
9838 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9839 # as well as floating-point ABI.
9840 case "$aros_target_cpu" in
9842 aros_isa_targets
="M68K_ISA_TARGETS :=MC68020 MC68040"
9843 aros_isa_extra
="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9844 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"
9845 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"
9846 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"
9847 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"
9848 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"
9851 aros_isa_extra
="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9852 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9855 if test "$gcc_default_cpu" = ""; then
9856 gcc_default_cpu
="armv6"
9858 if test "$gcc_default_fpu" = ""; then
9859 gcc_default_fpu
="vfp"
9861 if test "$gcc_default_endian" = ""; then
9862 if test "$target_cpu" = "armeb"; then
9863 gcc_default_endian
="big-endian"
9865 gcc_default_endian
="little-endian"
9868 if test "$gcc_default_float_abi" = ""; then
9869 if test "$target_cpu" = "armhf"; then
9870 gcc_default_float_abi
="hard"
9872 gcc_default_float_abi
="softfp"
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9877 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9879 # Check whether --with-cpu was given.
9880 if test "${with_cpu+set}" = set; then :
9881 withval
=$with_cpu; aros_gcc_cpu
="$withval"
9883 aros_gcc_cpu
=$gcc_default_cpu
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9887 $as_echo "$aros_gcc_cpu" >&6; }
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9890 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9892 # Check whether --with-fpu was given.
9893 if test "${with_fpu+set}" = set; then :
9894 withval
=$with_fpu; aros_gcc_fpu
="$withval"
9896 aros_gcc_fpu
=$gcc_default_fpu
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9900 $as_echo "$aros_gcc_fpu" >&6; }
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9903 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9905 # Check whether --with-float was given.
9906 if test "${with_float+set}" = set; then :
9907 withval
=$with_float; aros_gcc_float_abi
="$withval"
9909 aros_gcc_float_abi
=$gcc_default_float_abi
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9913 $as_echo "$aros_gcc_float_abi" >&6; }
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9916 $as_echo_n "checking Which ARM mode to use... " >&6; }
9917 if test "$aros_target_cpu_mode" = ""; then
9918 aros_target_cpu_mode
="arm32"
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9920 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9923 $as_echo "$aros_target_cpu_mode" >&6; }
9926 case "$aros_target_cpu_mode" in
9928 gcc_default_mode
="arm"
9929 aros_isa_flags
="$aros_isa_flags -m$gcc_default_mode -m$gcc_default_endian -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9932 as_fn_error $?
"ARM 64-bit mode is unsupported" "$LINENO" 5
9935 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9938 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9941 gcc_default_mode
="thumb"
9942 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9943 aros_isa_flags
="$aros_isa_flags -m$gcc_default_mode -$gcc_default_endian -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9946 as_fn_error $?
"Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9950 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9951 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9952 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9955 aros_isa_extra
="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9956 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
9960 # Some architectures may need custom ELF specs.
9961 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
9962 elf_specs_in
=config
/${aros_object_format}-specs.
in
9964 elf_specs_in
=config
/elf-specs.
in
9967 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9968 # Since we override specs, we may need to put these defines there
9969 if test "$gcc_target_cpu" != ""; then
9970 gcc_target_cpu
="-D__${gcc_target_cpu}__"
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9974 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9976 # Check whether --with-portssources was given.
9977 if test "${with_portssources+set}" = set; then :
9978 withval
=$with_portssources; with_portssrcdir
=$withval
9980 with_portssrcdir
="default"
9983 if test "$with_portssrcdir" = "default"; then
9984 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9986 AROS_PORTSSRCDIR
="$with_portssrcdir"
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9989 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9992 $as_echo_n "checking which bootloader to use... " >&6; }
9994 # Check whether --with-bootloader was given.
9995 if test "${with_bootloader+set}" = set; then :
9996 withval
=$with_bootloader; target_bootloader
=$withval
9998 target_bootloader
=$target_bootloader
10001 if test "$target_bootloader" = "none"; then
10002 aros_target_bootloader
=""
10004 aros_target_bootloader
="$target_bootloader"
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
10007 $as_echo "$target_bootloader" >&6; }
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
10010 $as_echo_n "checking which icon-set to use... " >&6; }
10012 # Check whether --with-iconset was given.
10013 if test "${with_iconset+set}" = set; then :
10014 withval
=$with_iconset; target_iconset
=$withval
10016 target_iconset
="default"
10019 if test "$target_iconset" = "default"; then
10020 aros_target_iconset
="Gorilla"
10021 target_iconset
="default (Gorilla)"
10023 aros_target_iconset
="$target_iconset"
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
10026 $as_echo "$target_iconset" >&6; }
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
10029 $as_echo_n "checking which GUI Theme to use... " >&6; }
10031 # Check whether --with-theme was given.
10032 if test "${with_theme+set}" = set; then :
10033 withval
=$with_theme; target_guitheme
=$withval
10035 target_guitheme
="default"
10038 if test "$target_guitheme" = "default"; then
10039 aros_target_guitheme
="Ice"
10041 aros_target_guitheme
="$target_guitheme"
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
10044 $as_echo "$aros_target_guitheme" >&6; }
10046 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
10050 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
10051 cross_compiling
=yes
10054 if test "$aros_host_cpu" == "x86_64" ; then
10055 if test "$aros_target_cpu" == "i386" ; then
10060 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10061 if test "$aros_host_arch" != "$aros_target_arch" ; then
10062 cross_compiling
=yes
10065 cross_compiling
=yes
10068 if test "$cross_compiling" = "no" ; then
10069 kernel_tool_prefix
=""
10070 if test "$host_cc_elf" = "yes" ; then
10075 if test "$kernel_tool_version" != ""; then
10076 kernel_tool_version
="-$kernel_tool_version"
10079 #######################################################################
10080 ## Compute what toolchains to use, and their paths ##
10081 #######################################################################
10083 # This takes, as input:
10084 # crosstools {yes,no}
10085 # kernel_tool_version {"",[version]}
10086 # target_tool_version {"",[version]}
10087 # kernel_tool_prefix {none,[some-arch-os-]}
10089 # target_tool_prefix ${aros_target_cpu}-aros-
10090 # aros_tool_prefix ${aros_target_cpu}-aros-
10093 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
10094 # Where the 'kernel' binaries are located
10095 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
10096 # Where the 'target' binaries are located
10097 # (not the symlink farm - that is aros_target_*!)
10100 # if crosstools then
10101 # if kernel_tools_prefix = "no-kernel-prefix-"
10102 # aros_kernel_* = crosstools cc paths
10103 # aros_kernel_cc = elf cc wrapper around crosstools cc
10105 # VALIDATE(${kernel_tools_prefix}*)
10106 # aros_kernel_* = ${kernel_tools_prefix}*
10107 # if ${kernel_tools_prefix}cc is an AROS gcc
10108 # aros_kernel_cc = ${kernel_tools_prefix}cc
10110 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
10114 # orig_target_* = aros built crosstools
10115 # orig_target_cc = elf cc wrapper around crosstools cc
10117 # VALIDATE(${kernel_tools_prefix}*)
10119 # orig_target_* = aros_kernel_*
10120 # if aros_kernel_cc is an AROS gcc
10121 # orig_target_cc = aros_kernel_cc
10123 # orig_target_cc = aros cc wrapper around aros_kernel_cc
10127 if test "$aros_toolchain" = "gnu" ; then
10128 target_tool_prefix
="${aros_target_cpu}-aros-"
10129 elif test "$aros_toolchain" = "llvm" ; then
10130 target_tool_prefix
="bin/"
10133 if test "$kernel_tool_prefix" != "" ; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
10135 $as_echo_n "checking which kernel tools... " >&6; }
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
10137 $as_echo "$kernel_tool_prefix" >&6; };
10140 if test "$kernel_tool_prefix" = "none" ; then
10141 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10142 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
10145 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
10146 # Kernel tools required - find them
10147 # Note that 'normally', aros_kernel_* overrides will be
10148 # empty, unless specified in the per-arch sections above.
10150 if test "x$aros_kernel_cpp" = "x"; then
10151 aros_kernel_cpp
=${kernel_tool_prefix}${CPP_BASE}
10153 if test "${kernel_tool_version}" != ""; then
10154 if test "$aros_kernel_cpp" != ""; then
10155 ac_prog_args
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10156 ac_prog_cmd
=`expr "X$aros_kernel_cpp" : '^\S*'`
10157 aros_kernel_cpp
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10161 if test "$aros_kernel_cpp" = ""; then
10162 if test "$cross_compiling" = "yes" ; then
10163 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
10164 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166 $as_echo_n "checking for $ac_word... " >&6; }
10167 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10168 $as_echo_n "(cached) " >&6
10170 case $aros_kernel_cpp in
10172 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10176 for as_dir
in $PATH
10179 test -z "$as_dir" && as_dir
=.
10180 for ac_exec_ext
in '' $ac_executable_extensions; do
10181 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10182 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10193 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10194 if test -n "$aros_kernel_cpp"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10196 $as_echo "$aros_kernel_cpp" >&6; }
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10205 if test "" = ""; then
10210 if test "$GCC" = "yes"; then
10211 aros_gcc_cpp
=`$CC -print-prog-name=$ac_tool_cpp`
10212 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10213 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 $as_echo_n "checking for $ac_word... " >&6; }
10216 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10217 $as_echo_n "(cached) " >&6
10219 case $aros_kernel_cpp in
10221 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10225 for as_dir
in `dirname $aros_gcc_cpp`
10228 test -z "$as_dir" && as_dir
=.
10229 for ac_exec_ext
in '' $ac_executable_extensions; do
10230 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10231 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10242 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10243 if test -n "$aros_kernel_cpp"; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10245 $as_echo "$aros_kernel_cpp" >&6; }
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10253 if test "$aros_kernel_cpp" = ""; then
10254 for ac_prog
in $ac_tool_cpp
10256 # Extract the first word of "$ac_prog", so it can be a program name with args.
10257 set dummy
$ac_prog; ac_word
=$2
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259 $as_echo_n "checking for $ac_word... " >&6; }
10260 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10261 $as_echo_n "(cached) " >&6
10263 case $aros_kernel_cpp in
10265 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10269 for as_dir
in $PATH
10272 test -z "$as_dir" && as_dir
=.
10273 for ac_exec_ext
in '' $ac_executable_extensions; do
10274 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10286 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10287 if test -n "$aros_kernel_cpp"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10289 $as_echo "$aros_kernel_cpp" >&6; }
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10296 test -n "$aros_kernel_cpp" && break
10303 ac_tool_optarg
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10304 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
10305 set dummy
$aros_kernel_cpp; ac_word
=$2
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10307 $as_echo_n "checking for $ac_word... " >&6; }
10308 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10309 $as_echo_n "(cached) " >&6
10311 case $aros_kernel_cpp in
10313 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10317 for as_dir
in $PATH
10320 test -z "$as_dir" && as_dir
=.
10321 for ac_exec_ext
in '' $ac_executable_extensions; do
10322 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10323 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10334 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10335 if test -n "$aros_kernel_cpp"; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10337 $as_echo "$aros_kernel_cpp" >&6; }
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10344 aros_kernel_cpp
="$aros_kernel_cpp $ac_tool_optarg"
10348 if test "$aros_kernel_cpp" = ""; then
10351 if test "$aros_kernel_cpp" = "no"; then
10354 if test "$req_avail" = "no"; then
10355 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10358 if test "x$aros_kernel_cc" = "x"; then
10359 aros_kernel_cc
=${kernel_tool_prefix}${CC_BASE}
10361 if test "${kernel_tool_version}" != ""; then
10362 if test "$aros_kernel_cc" != ""; then
10363 ac_prog_args
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10364 ac_prog_cmd
=`expr "X$aros_kernel_cc" : '^\S*'`
10365 aros_kernel_cc
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10369 if test "$aros_kernel_cc" = ""; then
10370 if test "$cross_compiling" = "yes" ; then
10371 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
10372 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10376 $as_echo_n "(cached) " >&6
10378 case $aros_kernel_cc in
10380 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10384 for as_dir
in $PATH
10387 test -z "$as_dir" && as_dir
=.
10388 for ac_exec_ext
in '' $ac_executable_extensions; do
10389 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10390 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10401 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10402 if test -n "$aros_kernel_cc"; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10404 $as_echo "$aros_kernel_cc" >&6; }
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407 $as_echo "no" >&6; }
10413 if test "" = ""; then
10418 if test "$GCC" = "yes"; then
10419 aros_gcc_cc
=`$CC -print-prog-name=$ac_tool_cc`
10420 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
10421 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423 $as_echo_n "checking for $ac_word... " >&6; }
10424 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10425 $as_echo_n "(cached) " >&6
10427 case $aros_kernel_cc in
10429 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10433 for as_dir
in `dirname $aros_gcc_cc`
10436 test -z "$as_dir" && as_dir
=.
10437 for ac_exec_ext
in '' $ac_executable_extensions; do
10438 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10439 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10450 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10451 if test -n "$aros_kernel_cc"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10453 $as_echo "$aros_kernel_cc" >&6; }
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456 $as_echo "no" >&6; }
10461 if test "$aros_kernel_cc" = ""; then
10462 for ac_prog
in $ac_tool_cc
10464 # Extract the first word of "$ac_prog", so it can be a program name with args.
10465 set dummy
$ac_prog; ac_word
=$2
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467 $as_echo_n "checking for $ac_word... " >&6; }
10468 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10469 $as_echo_n "(cached) " >&6
10471 case $aros_kernel_cc in
10473 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10477 for as_dir
in $PATH
10480 test -z "$as_dir" && as_dir
=.
10481 for ac_exec_ext
in '' $ac_executable_extensions; do
10482 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10483 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10495 if test -n "$aros_kernel_cc"; then
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10497 $as_echo "$aros_kernel_cc" >&6; }
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; }
10504 test -n "$aros_kernel_cc" && break
10511 ac_tool_optarg
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10512 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
10513 set dummy
$aros_kernel_cc; ac_word
=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10517 $as_echo_n "(cached) " >&6
10519 case $aros_kernel_cc in
10521 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10525 for as_dir
in $PATH
10528 test -z "$as_dir" && as_dir
=.
10529 for ac_exec_ext
in '' $ac_executable_extensions; do
10530 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10531 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10542 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10543 if test -n "$aros_kernel_cc"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10545 $as_echo "$aros_kernel_cc" >&6; }
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10552 aros_kernel_cc
="$aros_kernel_cc $ac_tool_optarg"
10556 if test "$aros_kernel_cc" = ""; then
10559 if test "$aros_kernel_cc" = "no"; then
10562 if test "$req_avail" = "no"; then
10563 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10566 if test "x$aros_kernel_cxx" = "x"; then
10567 aros_kernel_cxx
=${kernel_tool_prefix}${CXX_BASE}
10569 if test "${kernel_tool_version}" != ""; then
10570 if test "$aros_kernel_cxx" != ""; then
10571 ac_prog_args
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10572 ac_prog_cmd
=`expr "X$aros_kernel_cxx" : '^\S*'`
10573 aros_kernel_cxx
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10577 if test "$aros_kernel_cxx" = ""; then
10578 if test "$cross_compiling" = "yes" ; then
10579 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
10580 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10582 $as_echo_n "checking for $ac_word... " >&6; }
10583 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10584 $as_echo_n "(cached) " >&6
10586 case $aros_kernel_cxx in
10588 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10592 for as_dir
in $PATH
10595 test -z "$as_dir" && as_dir
=.
10596 for ac_exec_ext
in '' $ac_executable_extensions; do
10597 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10598 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10610 if test -n "$aros_kernel_cxx"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10612 $as_echo "$aros_kernel_cxx" >&6; }
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10621 if test "" = ""; then
10626 if test "$GCC" = "yes"; then
10627 aros_gcc_cxx
=`$CC -print-prog-name=$ac_tool_cxx`
10628 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10629 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10633 $as_echo_n "(cached) " >&6
10635 case $aros_kernel_cxx in
10637 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10641 for as_dir
in `dirname $aros_gcc_cxx`
10644 test -z "$as_dir" && as_dir
=.
10645 for ac_exec_ext
in '' $ac_executable_extensions; do
10646 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10647 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10659 if test -n "$aros_kernel_cxx"; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10661 $as_echo "$aros_kernel_cxx" >&6; }
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10669 if test "$aros_kernel_cxx" = ""; then
10670 for ac_prog
in $ac_tool_cxx
10672 # Extract the first word of "$ac_prog", so it can be a program name with args.
10673 set dummy
$ac_prog; ac_word
=$2
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675 $as_echo_n "checking for $ac_word... " >&6; }
10676 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10677 $as_echo_n "(cached) " >&6
10679 case $aros_kernel_cxx in
10681 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10685 for as_dir
in $PATH
10688 test -z "$as_dir" && as_dir
=.
10689 for ac_exec_ext
in '' $ac_executable_extensions; do
10690 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10691 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10702 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10703 if test -n "$aros_kernel_cxx"; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10705 $as_echo "$aros_kernel_cxx" >&6; }
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; }
10712 test -n "$aros_kernel_cxx" && break
10719 ac_tool_optarg
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10720 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10721 set dummy
$aros_kernel_cxx; ac_word
=$2
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723 $as_echo_n "checking for $ac_word... " >&6; }
10724 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10725 $as_echo_n "(cached) " >&6
10727 case $aros_kernel_cxx in
10729 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10733 for as_dir
in $PATH
10736 test -z "$as_dir" && as_dir
=.
10737 for ac_exec_ext
in '' $ac_executable_extensions; do
10738 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10739 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10750 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10751 if test -n "$aros_kernel_cxx"; then
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10753 $as_echo "$aros_kernel_cxx" >&6; }
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10756 $as_echo "no" >&6; }
10760 aros_kernel_cxx
="$aros_kernel_cxx $ac_tool_optarg"
10763 # If it's set, make sure it's really there
10764 if test "x$aros_kernel_cxx" != "x" ; then
10766 if test "$aros_kernel_cxx" = ""; then
10769 if test "$aros_kernel_cxx" = "no"; then
10772 if test "$req_avail" = "no"; then
10773 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10776 if test "x$aros_kernel_ld" = "x"; then
10777 aros_kernel_ld
=${kernel_tool_prefix}${LD_BASE}
10780 if test "$aros_kernel_ld" = ""; then
10781 if test "$cross_compiling" = "yes" ; then
10782 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10783 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10785 $as_echo_n "checking for $ac_word... " >&6; }
10786 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10787 $as_echo_n "(cached) " >&6
10789 case $aros_kernel_ld in
10791 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10795 for as_dir
in $PATH
10798 test -z "$as_dir" && as_dir
=.
10799 for ac_exec_ext
in '' $ac_executable_extensions; do
10800 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10801 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10812 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10813 if test -n "$aros_kernel_ld"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10815 $as_echo "$aros_kernel_ld" >&6; }
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818 $as_echo "no" >&6; }
10824 if test "" = ""; then
10829 if test "$GCC" = "yes"; then
10830 aros_gcc_ld
=`$CC -print-prog-name=$ac_tool_ld`
10831 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10832 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834 $as_echo_n "checking for $ac_word... " >&6; }
10835 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10836 $as_echo_n "(cached) " >&6
10838 case $aros_kernel_ld in
10840 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10844 for as_dir
in `dirname $aros_gcc_ld`
10847 test -z "$as_dir" && as_dir
=.
10848 for ac_exec_ext
in '' $ac_executable_extensions; do
10849 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10850 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10862 if test -n "$aros_kernel_ld"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10864 $as_echo "$aros_kernel_ld" >&6; }
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10872 if test "$aros_kernel_ld" = ""; then
10873 for ac_prog
in $ac_tool_ld
10875 # Extract the first word of "$ac_prog", so it can be a program name with args.
10876 set dummy
$ac_prog; ac_word
=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878 $as_echo_n "checking for $ac_word... " >&6; }
10879 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10880 $as_echo_n "(cached) " >&6
10882 case $aros_kernel_ld in
10884 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10888 for as_dir
in $PATH
10891 test -z "$as_dir" && as_dir
=.
10892 for ac_exec_ext
in '' $ac_executable_extensions; do
10893 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10894 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10905 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10906 if test -n "$aros_kernel_ld"; then
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10908 $as_echo "$aros_kernel_ld" >&6; }
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10911 $as_echo "no" >&6; }
10915 test -n "$aros_kernel_ld" && break
10922 ac_tool_optarg
=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10923 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10924 set dummy
$aros_kernel_ld; ac_word
=$2
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10926 $as_echo_n "checking for $ac_word... " >&6; }
10927 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10928 $as_echo_n "(cached) " >&6
10930 case $aros_kernel_ld in
10932 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10936 for as_dir
in $PATH
10939 test -z "$as_dir" && as_dir
=.
10940 for ac_exec_ext
in '' $ac_executable_extensions; do
10941 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10942 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10954 if test -n "$aros_kernel_ld"; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10956 $as_echo "$aros_kernel_ld" >&6; }
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10963 aros_kernel_ld
="$aros_kernel_ld $ac_tool_optarg"
10967 if test "$aros_kernel_ld" = ""; then
10970 if test "$aros_kernel_ld" = "no"; then
10973 if test "$req_avail" = "no"; then
10974 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10976 if test "x$aros_kernel_as" = "x"; then
10977 aros_kernel_as
=$aros_host_as
10978 if test "x$aros_kernel_as" = "x"; then
10979 aros_kernel_as
=${HOST_TOOLCHAIN_PREFIX}as
${HOST_TOOLCHAIN_SUFFIX}
10983 if test "$aros_kernel_as" = ""; then
10984 if test "$cross_compiling" = "yes" ; then
10985 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10986 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988 $as_echo_n "checking for $ac_word... " >&6; }
10989 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10990 $as_echo_n "(cached) " >&6
10992 case $aros_kernel_as in
10994 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10998 for as_dir
in $PATH
11001 test -z "$as_dir" && as_dir
=.
11002 for ac_exec_ext
in '' $ac_executable_extensions; do
11003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11004 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11015 aros_kernel_as
=$ac_cv_path_aros_kernel_as
11016 if test -n "$aros_kernel_as"; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11018 $as_echo "$aros_kernel_as" >&6; }
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11027 if test "" = ""; then
11032 if test "$GCC" = "yes"; then
11033 aros_gcc_as
=`$CC -print-prog-name=$ac_tool_as`
11034 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11035 set dummy
`basename $aros_gcc_as`; ac_word
=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if ${ac_cv_path_aros_kernel_as+:} false
; then :
11039 $as_echo_n "(cached) " >&6
11041 case $aros_kernel_as in
11043 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
11046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11047 for as_dir
in `dirname $aros_gcc_as`
11050 test -z "$as_dir" && as_dir
=.
11051 for ac_exec_ext
in '' $ac_executable_extensions; do
11052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11053 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
11054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11064 aros_kernel_as
=$ac_cv_path_aros_kernel_as
11065 if test -n "$aros_kernel_as"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11067 $as_echo "$aros_kernel_as" >&6; }
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11075 if test "$aros_kernel_as" = ""; then
11076 for ac_prog
in $ac_tool_as
11078 # Extract the first word of "$ac_prog", so it can be a program name with args.
11079 set dummy
$ac_prog; ac_word
=$2
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081 $as_echo_n "checking for $ac_word... " >&6; }
11082 if ${ac_cv_path_aros_kernel_as+:} false
; then :
11083 $as_echo_n "(cached) " >&6
11085 case $aros_kernel_as in
11087 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
11090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11091 for as_dir
in $PATH
11094 test -z "$as_dir" && as_dir
=.
11095 for ac_exec_ext
in '' $ac_executable_extensions; do
11096 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11097 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
11098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 aros_kernel_as
=$ac_cv_path_aros_kernel_as
11109 if test -n "$aros_kernel_as"; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11111 $as_echo "$aros_kernel_as" >&6; }
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114 $as_echo "no" >&6; }
11118 test -n "$aros_kernel_as" && break
11125 ac_tool_optarg
=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
11126 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
11127 set dummy
$aros_kernel_as; ac_word
=$2
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129 $as_echo_n "checking for $ac_word... " >&6; }
11130 if ${ac_cv_path_aros_kernel_as+:} false
; then :
11131 $as_echo_n "(cached) " >&6
11133 case $aros_kernel_as in
11135 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
11138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11139 for as_dir
in $PATH
11142 test -z "$as_dir" && as_dir
=.
11143 for ac_exec_ext
in '' $ac_executable_extensions; do
11144 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11145 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 aros_kernel_as
=$ac_cv_path_aros_kernel_as
11157 if test -n "$aros_kernel_as"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11159 $as_echo "$aros_kernel_as" >&6; }
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11166 aros_kernel_as
="$aros_kernel_as $ac_tool_optarg"
11170 if test "$aros_kernel_as" = ""; then
11173 if test "$aros_kernel_as" = "no"; then
11176 if test "$req_avail" = "no"; then
11177 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
11180 if test "x$aros_kernel_ar" = "x"; then
11181 aros_kernel_ar
="${kernel_tool_prefix}${AR_BASE}"
11183 if test "${kernel_tool_version}" != ""; then
11184 if test "$aros_kernel_ar" != ""; then
11185 ac_prog_args
=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11186 ac_prog_cmd
=`expr "X$aros_kernel_ar" : '^\S*'`
11187 aros_kernel_ar
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
11191 if test "$aros_kernel_ar" = ""; then
11192 if test "$cross_compiling" = "yes" ; then
11193 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
11194 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196 $as_echo_n "checking for $ac_word... " >&6; }
11197 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
11198 $as_echo_n "(cached) " >&6
11200 case $aros_kernel_ar in
11202 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
11205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11206 for as_dir
in $PATH
11209 test -z "$as_dir" && as_dir
=.
11210 for ac_exec_ext
in '' $ac_executable_extensions; do
11211 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11212 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
11213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11223 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
11224 if test -n "$aros_kernel_ar"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11226 $as_echo "$aros_kernel_ar" >&6; }
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11235 if test "" = ""; then
11240 if test "$GCC" = "yes"; then
11241 aros_gcc_ar
=`$CC -print-prog-name=$ac_tool_ar`
11242 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11243 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11245 $as_echo_n "checking for $ac_word... " >&6; }
11246 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
11247 $as_echo_n "(cached) " >&6
11249 case $aros_kernel_ar in
11251 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
11254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11255 for as_dir
in `dirname $aros_gcc_ar`
11258 test -z "$as_dir" && as_dir
=.
11259 for ac_exec_ext
in '' $ac_executable_extensions; do
11260 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11261 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11272 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
11273 if test -n "$aros_kernel_ar"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11275 $as_echo "$aros_kernel_ar" >&6; }
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11283 if test "$aros_kernel_ar" = ""; then
11284 for ac_prog
in $ac_tool_ar
11286 # Extract the first word of "$ac_prog", so it can be a program name with args.
11287 set dummy
$ac_prog; ac_word
=$2
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289 $as_echo_n "checking for $ac_word... " >&6; }
11290 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
11291 $as_echo_n "(cached) " >&6
11293 case $aros_kernel_ar in
11295 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
11298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11299 for as_dir
in $PATH
11302 test -z "$as_dir" && as_dir
=.
11303 for ac_exec_ext
in '' $ac_executable_extensions; do
11304 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11305 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
11306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11316 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
11317 if test -n "$aros_kernel_ar"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11319 $as_echo "$aros_kernel_ar" >&6; }
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11326 test -n "$aros_kernel_ar" && break
11333 ac_tool_optarg
=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11334 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
11335 set dummy
$aros_kernel_ar; ac_word
=$2
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11337 $as_echo_n "checking for $ac_word... " >&6; }
11338 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
11339 $as_echo_n "(cached) " >&6
11341 case $aros_kernel_ar in
11343 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
11346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11347 for as_dir
in $PATH
11350 test -z "$as_dir" && as_dir
=.
11351 for ac_exec_ext
in '' $ac_executable_extensions; do
11352 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11353 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
11354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11364 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
11365 if test -n "$aros_kernel_ar"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11367 $as_echo "$aros_kernel_ar" >&6; }
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11374 aros_kernel_ar
="$aros_kernel_ar $ac_tool_optarg"
11378 if test "$aros_kernel_ar" = ""; then
11381 if test "$aros_kernel_ar" = "no"; then
11384 if test "$req_avail" = "no"; then
11385 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11387 if test "x$aros_kernel_ranlib" = "x"; then
11388 aros_kernel_ranlib
=${kernel_tool_prefix}${RANLIB_BASE}
11390 if test "${kernel_tool_version}" != ""; then
11391 if test "$aros_kernel_ranlib" != ""; then
11392 ac_prog_args
=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11393 ac_prog_cmd
=`expr "X$aros_kernel_ranlib" : '^\S*'`
11394 aros_kernel_ranlib
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
11398 if test "$aros_kernel_ranlib" = ""; then
11399 if test "$cross_compiling" = "yes" ; then
11400 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
11401 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403 $as_echo_n "checking for $ac_word... " >&6; }
11404 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11405 $as_echo_n "(cached) " >&6
11407 case $aros_kernel_ranlib in
11409 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11413 for as_dir
in $PATH
11416 test -z "$as_dir" && as_dir
=.
11417 for ac_exec_ext
in '' $ac_executable_extensions; do
11418 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11419 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11430 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11431 if test -n "$aros_kernel_ranlib"; then
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11433 $as_echo "$aros_kernel_ranlib" >&6; }
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436 $as_echo "no" >&6; }
11442 if test "" = ""; then
11443 ac_tool_ranlib
=ranlib
11447 if test "$GCC" = "yes"; then
11448 aros_gcc_ranlib
=`$CC -print-prog-name=$ac_tool_ranlib`
11449 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11450 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11452 $as_echo_n "checking for $ac_word... " >&6; }
11453 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11454 $as_echo_n "(cached) " >&6
11456 case $aros_kernel_ranlib in
11458 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11462 for as_dir
in `dirname $aros_gcc_ranlib`
11465 test -z "$as_dir" && as_dir
=.
11466 for ac_exec_ext
in '' $ac_executable_extensions; do
11467 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11468 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11479 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11480 if test -n "$aros_kernel_ranlib"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11482 $as_echo "$aros_kernel_ranlib" >&6; }
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11490 if test "$aros_kernel_ranlib" = ""; then
11491 for ac_prog
in $ac_tool_ranlib
11493 # Extract the first word of "$ac_prog", so it can be a program name with args.
11494 set dummy
$ac_prog; ac_word
=$2
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11498 $as_echo_n "(cached) " >&6
11500 case $aros_kernel_ranlib in
11502 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11506 for as_dir
in $PATH
11509 test -z "$as_dir" && as_dir
=.
11510 for ac_exec_ext
in '' $ac_executable_extensions; do
11511 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11512 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11524 if test -n "$aros_kernel_ranlib"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11526 $as_echo "$aros_kernel_ranlib" >&6; }
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11533 test -n "$aros_kernel_ranlib" && break
11540 ac_tool_optarg
=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11541 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
11542 set dummy
$aros_kernel_ranlib; ac_word
=$2
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544 $as_echo_n "checking for $ac_word... " >&6; }
11545 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11546 $as_echo_n "(cached) " >&6
11548 case $aros_kernel_ranlib in
11550 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11554 for as_dir
in $PATH
11557 test -z "$as_dir" && as_dir
=.
11558 for ac_exec_ext
in '' $ac_executable_extensions; do
11559 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11560 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11572 if test -n "$aros_kernel_ranlib"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11574 $as_echo "$aros_kernel_ranlib" >&6; }
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11581 aros_kernel_ranlib
="$aros_kernel_ranlib $ac_tool_optarg"
11585 if test "$aros_kernel_ranlib" = ""; then
11588 if test "$aros_kernel_ranlib" = "no"; then
11591 if test "$req_avail" = "no"; then
11592 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11594 if test "x$aros_kernel_nm" = "x"; then
11595 aros_kernel_nm
=$aros_host_nm
11596 if test "x$aros_kernel_nm" = "x"; then
11597 aros_kernel_nm
=${HOST_TOOLCHAIN_PREFIX}nm
${HOST_TOOLCHAIN_SUFFIX}
11601 if test "$aros_kernel_nm" = ""; then
11602 if test "$cross_compiling" = "yes" ; then
11603 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
11604 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11606 $as_echo_n "checking for $ac_word... " >&6; }
11607 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11608 $as_echo_n "(cached) " >&6
11610 case $aros_kernel_nm in
11612 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11616 for as_dir
in $PATH
11619 test -z "$as_dir" && as_dir
=.
11620 for ac_exec_ext
in '' $ac_executable_extensions; do
11621 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11622 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11633 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11634 if test -n "$aros_kernel_nm"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11636 $as_echo "$aros_kernel_nm" >&6; }
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11645 if test "" = ""; then
11650 if test "$GCC" = "yes"; then
11651 aros_gcc_nm
=`$CC -print-prog-name=$ac_tool_nm`
11652 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11653 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11657 $as_echo_n "(cached) " >&6
11659 case $aros_kernel_nm in
11661 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11665 for as_dir
in `dirname $aros_gcc_nm`
11668 test -z "$as_dir" && as_dir
=.
11669 for ac_exec_ext
in '' $ac_executable_extensions; do
11670 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11671 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11683 if test -n "$aros_kernel_nm"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11685 $as_echo "$aros_kernel_nm" >&6; }
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11693 if test "$aros_kernel_nm" = ""; then
11694 for ac_prog
in $ac_tool_nm
11696 # Extract the first word of "$ac_prog", so it can be a program name with args.
11697 set dummy
$ac_prog; ac_word
=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11701 $as_echo_n "(cached) " >&6
11703 case $aros_kernel_nm in
11705 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11709 for as_dir
in $PATH
11712 test -z "$as_dir" && as_dir
=.
11713 for ac_exec_ext
in '' $ac_executable_extensions; do
11714 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11715 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11726 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11727 if test -n "$aros_kernel_nm"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11729 $as_echo "$aros_kernel_nm" >&6; }
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11736 test -n "$aros_kernel_nm" && break
11743 ac_tool_optarg
=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11744 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11745 set dummy
$aros_kernel_nm; ac_word
=$2
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747 $as_echo_n "checking for $ac_word... " >&6; }
11748 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11749 $as_echo_n "(cached) " >&6
11751 case $aros_kernel_nm in
11753 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11757 for as_dir
in $PATH
11760 test -z "$as_dir" && as_dir
=.
11761 for ac_exec_ext
in '' $ac_executable_extensions; do
11762 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11763 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11775 if test -n "$aros_kernel_nm"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11777 $as_echo "$aros_kernel_nm" >&6; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11784 aros_kernel_nm
="$aros_kernel_nm $ac_tool_optarg"
11788 if test "$aros_kernel_nm" = ""; then
11791 if test "$aros_kernel_nm" = "no"; then
11794 if test "$req_avail" = "no"; then
11795 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11798 if test "$aros_kernel_strip" = ""; then
11799 if test "$cross_compiling" = "yes" ; then
11800 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11801 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11805 $as_echo_n "(cached) " >&6
11807 case $aros_kernel_strip in
11809 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11813 for as_dir
in $PATH
11816 test -z "$as_dir" && as_dir
=.
11817 for ac_exec_ext
in '' $ac_executable_extensions; do
11818 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11819 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11831 if test -n "$aros_kernel_strip"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11833 $as_echo "$aros_kernel_strip" >&6; }
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11842 if test "" = ""; then
11843 ac_tool_strip
=strip
11847 if test "$GCC" = "yes"; then
11848 aros_gcc_strip
=`$CC -print-prog-name=$ac_tool_strip`
11849 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11850 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852 $as_echo_n "checking for $ac_word... " >&6; }
11853 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11854 $as_echo_n "(cached) " >&6
11856 case $aros_kernel_strip in
11858 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11862 for as_dir
in `dirname $aros_gcc_strip`
11865 test -z "$as_dir" && as_dir
=.
11866 for ac_exec_ext
in '' $ac_executable_extensions; do
11867 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11868 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11880 if test -n "$aros_kernel_strip"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11882 $as_echo "$aros_kernel_strip" >&6; }
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11890 if test "$aros_kernel_strip" = ""; then
11891 for ac_prog
in $ac_tool_strip
11893 # Extract the first word of "$ac_prog", so it can be a program name with args.
11894 set dummy
$ac_prog; ac_word
=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11898 $as_echo_n "(cached) " >&6
11900 case $aros_kernel_strip in
11902 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11906 for as_dir
in $PATH
11909 test -z "$as_dir" && as_dir
=.
11910 for ac_exec_ext
in '' $ac_executable_extensions; do
11911 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11924 if test -n "$aros_kernel_strip"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11926 $as_echo "$aros_kernel_strip" >&6; }
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11933 test -n "$aros_kernel_strip" && break
11940 ac_tool_optarg
=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11941 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11942 set dummy
$aros_kernel_strip; ac_word
=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11946 $as_echo_n "(cached) " >&6
11948 case $aros_kernel_strip in
11950 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11954 for as_dir
in $PATH
11957 test -z "$as_dir" && as_dir
=.
11958 for ac_exec_ext
in '' $ac_executable_extensions; do
11959 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11960 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11972 if test -n "$aros_kernel_strip"; then
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11974 $as_echo "$aros_kernel_strip" >&6; }
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11981 aros_kernel_strip
="$aros_kernel_strip $ac_tool_optarg"
11985 if test "$aros_kernel_strip" = ""; then
11988 if test "$aros_kernel_strip" = "no"; then
11991 if test "$req_avail" = "no"; then
11992 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11995 # Objcopy and objdump are not required for the kernel
11996 # toolchain on many architectures.
11997 # So we'll look for them, but not make them strictly required.
11998 if test "x$aros_kernel_objcopy" = "x"; then
11999 aros_kernel_objcopy
=$aros_host_objcopy
12000 if test "x$aros_kernel_objcopy" = "x"; then
12001 aros_kernel_objcopy
=${HOST_TOOLCHAIN_PREFIX}objcopy
${HOST_TOOLCHAIN_SUFFIX}
12005 if test "$aros_kernel_objcopy" = ""; then
12006 if test "$cross_compiling" = "yes" ; then
12007 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
12008 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
12012 $as_echo_n "(cached) " >&6
12014 case $aros_kernel_objcopy in
12016 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
12019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12020 for as_dir
in $PATH
12023 test -z "$as_dir" && as_dir
=.
12024 for ac_exec_ext
in '' $ac_executable_extensions; do
12025 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12026 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12037 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
12038 if test -n "$aros_kernel_objcopy"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12040 $as_echo "$aros_kernel_objcopy" >&6; }
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12049 if test "" = ""; then
12050 ac_tool_objcopy
=objcopy
12054 if test "$GCC" = "yes"; then
12055 aros_gcc_objcopy
=`$CC -print-prog-name=$ac_tool_objcopy`
12056 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12057 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12059 $as_echo_n "checking for $ac_word... " >&6; }
12060 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
12061 $as_echo_n "(cached) " >&6
12063 case $aros_kernel_objcopy in
12065 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
12068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12069 for as_dir
in `dirname $aros_gcc_objcopy`
12072 test -z "$as_dir" && as_dir
=.
12073 for ac_exec_ext
in '' $ac_executable_extensions; do
12074 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12075 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
12087 if test -n "$aros_kernel_objcopy"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12089 $as_echo "$aros_kernel_objcopy" >&6; }
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12097 if test "$aros_kernel_objcopy" = ""; then
12098 for ac_prog
in $ac_tool_objcopy
12100 # Extract the first word of "$ac_prog", so it can be a program name with args.
12101 set dummy
$ac_prog; ac_word
=$2
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
12105 $as_echo_n "(cached) " >&6
12107 case $aros_kernel_objcopy in
12109 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
12112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12113 for as_dir
in $PATH
12116 test -z "$as_dir" && as_dir
=.
12117 for ac_exec_ext
in '' $ac_executable_extensions; do
12118 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12119 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
12131 if test -n "$aros_kernel_objcopy"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12133 $as_echo "$aros_kernel_objcopy" >&6; }
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12140 test -n "$aros_kernel_objcopy" && break
12147 ac_tool_optarg
=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
12148 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
12149 set dummy
$aros_kernel_objcopy; ac_word
=$2
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12151 $as_echo_n "checking for $ac_word... " >&6; }
12152 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
12153 $as_echo_n "(cached) " >&6
12155 case $aros_kernel_objcopy in
12157 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
12160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12161 for as_dir
in $PATH
12164 test -z "$as_dir" && as_dir
=.
12165 for ac_exec_ext
in '' $ac_executable_extensions; do
12166 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12167 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12178 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
12179 if test -n "$aros_kernel_objcopy"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12181 $as_echo "$aros_kernel_objcopy" >&6; }
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12188 aros_kernel_objcopy
="$aros_kernel_objcopy $ac_tool_optarg"
12191 if test "x$aros_kernel_objdump" = "x"; then
12192 aros_kernel_objdump
=$aros_host_objdump
12193 if test "x$aros_kernel_objdump" = "x"; then
12194 aros_kernel_objdump
=${HOST_TOOLCHAIN_PREFIX}objdump
${HOST_TOOLCHAIN_SUFFIX}
12198 if test "$aros_kernel_objdump" = ""; then
12199 if test "$cross_compiling" = "yes" ; then
12200 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
12201 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
12205 $as_echo_n "(cached) " >&6
12207 case $aros_kernel_objdump in
12209 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
12212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12213 for as_dir
in $PATH
12216 test -z "$as_dir" && as_dir
=.
12217 for ac_exec_ext
in '' $ac_executable_extensions; do
12218 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12219 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12230 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
12231 if test -n "$aros_kernel_objdump"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12233 $as_echo "$aros_kernel_objdump" >&6; }
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12242 if test "" = ""; then
12243 ac_tool_objdump
=objdump
12247 if test "$GCC" = "yes"; then
12248 aros_gcc_objdump
=`$CC -print-prog-name=$ac_tool_objdump`
12249 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12250 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
12254 $as_echo_n "(cached) " >&6
12256 case $aros_kernel_objdump in
12258 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
12261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12262 for as_dir
in `dirname $aros_gcc_objdump`
12265 test -z "$as_dir" && as_dir
=.
12266 for ac_exec_ext
in '' $ac_executable_extensions; do
12267 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12268 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12279 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
12280 if test -n "$aros_kernel_objdump"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12282 $as_echo "$aros_kernel_objdump" >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12290 if test "$aros_kernel_objdump" = ""; then
12291 for ac_prog
in $ac_tool_objdump
12293 # Extract the first word of "$ac_prog", so it can be a program name with args.
12294 set dummy
$ac_prog; ac_word
=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
12298 $as_echo_n "(cached) " >&6
12300 case $aros_kernel_objdump in
12302 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
12305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12306 for as_dir
in $PATH
12309 test -z "$as_dir" && as_dir
=.
12310 for ac_exec_ext
in '' $ac_executable_extensions; do
12311 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12312 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
12324 if test -n "$aros_kernel_objdump"; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12326 $as_echo "$aros_kernel_objdump" >&6; }
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12333 test -n "$aros_kernel_objdump" && break
12340 ac_tool_optarg
=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
12341 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
12342 set dummy
$aros_kernel_objdump; ac_word
=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344 $as_echo_n "checking for $ac_word... " >&6; }
12345 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
12346 $as_echo_n "(cached) " >&6
12348 case $aros_kernel_objdump in
12350 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
12353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12354 for as_dir
in $PATH
12357 test -z "$as_dir" && as_dir
=.
12358 for ac_exec_ext
in '' $ac_executable_extensions; do
12359 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12360 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
12372 if test -n "$aros_kernel_objdump"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12374 $as_echo "$aros_kernel_objdump" >&6; }
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12381 aros_kernel_objdump
="$aros_kernel_objdump $ac_tool_optarg"
12384 if test "x${crosstools}" != "xyes" ; then
12386 if test "$aros_kernel_objcopy" = ""; then
12389 if test "$aros_kernel_objcopy" = "no"; then
12392 if test "$req_avail" = "no"; then
12393 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12396 if test "$aros_kernel_objdump" = ""; then
12399 if test "$aros_kernel_objdump" = "no"; then
12402 if test "$req_avail" = "no"; then
12403 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
12410 $as_echo_n "checking which target tools to use... " >&6; }
12411 if test "$aros_target_toolchain" = "yes"; then
12412 if test "$aros_toolchain" = "llvm" ; then
12415 msg_result
=$target_tool_prefix
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
12418 $as_echo "$msg_result" >&6; }
12419 # We are building AROS crosstools
12420 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
12421 orig_target_cc
="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
12422 orig_target_cxx
="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
12423 orig_target_cpp
="${tmp_tool_prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
12424 orig_target_ld
="${tmp_tool_prefix}${toolchain_ld}"
12425 orig_target_as
="${tmp_tool_prefix}${toolchain_as}"
12426 orig_target_ar
="${tmp_tool_prefix}${toolchain_ar}"
12427 orig_target_ranlib
="${tmp_tool_prefix}${toolchain_ranlib}"
12428 orig_target_nm
="${tmp_tool_prefix}${toolchain_nm}"
12429 orig_target_strip
="${tmp_tool_prefix}${toolchain_strip}"
12430 orig_target_objcopy
="${tmp_tool_prefix}${toolchain_objcopy}"
12431 orig_target_objdump
="${tmp_tool_prefix}${toolchain_objdump}"
12433 # Determine whether AROS or ELF tools should be used
12434 if test "$aros_tool_prefix" = "none"; then
12435 aros_tool_prefix
="${elf_tool_prefix}"
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
12439 $as_echo "$aros_tool_prefix" >&6; }
12440 # We are *not* building AROS crosstools - use the AROS or ELF tools
12442 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" = ""; then
12443 if test "$cross_compiling" = "yes" ; then
12444 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
12445 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447 $as_echo_n "checking for $ac_word... " >&6; }
12448 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12449 $as_echo_n "(cached) " >&6
12451 case $orig_target_cpp in
12453 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12457 for as_dir
in $PATH
12460 test -z "$as_dir" && as_dir
=.
12461 for ac_exec_ext
in '' $ac_executable_extensions; do
12462 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12463 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12475 if test -n "$orig_target_cpp"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12477 $as_echo "$orig_target_cpp" >&6; }
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480 $as_echo "no" >&6; }
12486 if test "" = ""; then
12491 if test "$GCC" = "yes"; then
12492 aros_gcc_cpp
=`$CC -print-prog-name=$ac_tool_cpp`
12493 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
12494 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496 $as_echo_n "checking for $ac_word... " >&6; }
12497 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12498 $as_echo_n "(cached) " >&6
12500 case $orig_target_cpp in
12502 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12506 for as_dir
in `dirname $aros_gcc_cpp`
12509 test -z "$as_dir" && as_dir
=.
12510 for ac_exec_ext
in '' $ac_executable_extensions; do
12511 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12512 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12524 if test -n "$orig_target_cpp"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12526 $as_echo "$orig_target_cpp" >&6; }
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12534 if test "$orig_target_cpp" = ""; then
12535 for ac_prog
in $ac_tool_cpp
12537 # Extract the first word of "$ac_prog", so it can be a program name with args.
12538 set dummy
$ac_prog; ac_word
=$2
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540 $as_echo_n "checking for $ac_word... " >&6; }
12541 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12542 $as_echo_n "(cached) " >&6
12544 case $orig_target_cpp in
12546 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12550 for as_dir
in $PATH
12553 test -z "$as_dir" && as_dir
=.
12554 for ac_exec_ext
in '' $ac_executable_extensions; do
12555 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12556 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12568 if test -n "$orig_target_cpp"; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12570 $as_echo "$orig_target_cpp" >&6; }
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573 $as_echo "no" >&6; }
12577 test -n "$orig_target_cpp" && break
12584 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" : '[^ ]* \(.*\)'`
12585 # 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.
12586 set dummy
${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}; ac_word
=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12590 $as_echo_n "(cached) " >&6
12592 case $orig_target_cpp in
12594 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12598 for as_dir
in $PATH
12601 test -z "$as_dir" && as_dir
=.
12602 for ac_exec_ext
in '' $ac_executable_extensions; do
12603 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12604 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12615 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12616 if test -n "$orig_target_cpp"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12618 $as_echo "$orig_target_cpp" >&6; }
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12625 orig_target_cpp
="$orig_target_cpp $ac_tool_optarg"
12629 if test "$orig_target_cpp" = ""; then
12632 if test "$orig_target_cpp" = "no"; then
12635 if test "$req_avail" = "no"; then
12636 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
12639 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
12640 if test "$cross_compiling" = "yes" ; then
12641 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12642 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 $as_echo_n "checking for $ac_word... " >&6; }
12645 if ${ac_cv_path_orig_target_cc+:} false
; then :
12646 $as_echo_n "(cached) " >&6
12648 case $orig_target_cc in
12650 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12654 for as_dir
in $PATH
12657 test -z "$as_dir" && as_dir
=.
12658 for ac_exec_ext
in '' $ac_executable_extensions; do
12659 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12660 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 orig_target_cc
=$ac_cv_path_orig_target_cc
12672 if test -n "$orig_target_cc"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12674 $as_echo "$orig_target_cc" >&6; }
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12683 if test "" = ""; then
12688 if test "$GCC" = "yes"; then
12689 aros_gcc_gcc
=`$CC -print-prog-name=$ac_tool_gcc`
12690 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12691 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if ${ac_cv_path_orig_target_cc+:} false
; then :
12695 $as_echo_n "(cached) " >&6
12697 case $orig_target_cc in
12699 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12703 for as_dir
in `dirname $aros_gcc_gcc`
12706 test -z "$as_dir" && as_dir
=.
12707 for ac_exec_ext
in '' $ac_executable_extensions; do
12708 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12709 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12720 orig_target_cc
=$ac_cv_path_orig_target_cc
12721 if test -n "$orig_target_cc"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12723 $as_echo "$orig_target_cc" >&6; }
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12731 if test "$orig_target_cc" = ""; then
12732 for ac_prog
in $ac_tool_gcc
12734 # Extract the first word of "$ac_prog", so it can be a program name with args.
12735 set dummy
$ac_prog; ac_word
=$2
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737 $as_echo_n "checking for $ac_word... " >&6; }
12738 if ${ac_cv_path_orig_target_cc+:} false
; then :
12739 $as_echo_n "(cached) " >&6
12741 case $orig_target_cc in
12743 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12747 for as_dir
in $PATH
12750 test -z "$as_dir" && as_dir
=.
12751 for ac_exec_ext
in '' $ac_executable_extensions; do
12752 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12753 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12764 orig_target_cc
=$ac_cv_path_orig_target_cc
12765 if test -n "$orig_target_cc"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12767 $as_echo "$orig_target_cc" >&6; }
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12774 test -n "$orig_target_cc" && break
12781 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12782 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12783 set dummy
${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word
=$2
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785 $as_echo_n "checking for $ac_word... " >&6; }
12786 if ${ac_cv_path_orig_target_cc+:} false
; then :
12787 $as_echo_n "(cached) " >&6
12789 case $orig_target_cc in
12791 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12795 for as_dir
in $PATH
12798 test -z "$as_dir" && as_dir
=.
12799 for ac_exec_ext
in '' $ac_executable_extensions; do
12800 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12801 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12812 orig_target_cc
=$ac_cv_path_orig_target_cc
12813 if test -n "$orig_target_cc"; then
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12815 $as_echo "$orig_target_cc" >&6; }
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818 $as_echo "no" >&6; }
12822 orig_target_cc
="$orig_target_cc $ac_tool_optarg"
12826 if test "$orig_target_cc" = ""; then
12829 if test "$orig_target_cc" = "no"; then
12832 if test "$req_avail" = "no"; then
12833 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12836 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12837 if test "$cross_compiling" = "yes" ; then
12838 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12839 set dummy
${target_tool_prefix}g
++; ac_word
=$2
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841 $as_echo_n "checking for $ac_word... " >&6; }
12842 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12843 $as_echo_n "(cached) " >&6
12845 case $orig_target_cxx in
12847 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12851 for as_dir
in $PATH
12854 test -z "$as_dir" && as_dir
=.
12855 for ac_exec_ext
in '' $ac_executable_extensions; do
12856 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12857 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12869 if test -n "$orig_target_cxx"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12871 $as_echo "$orig_target_cxx" >&6; }
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12880 if test "" = ""; then
12885 if test "$GCC" = "yes"; then
12886 aros_gcc_g
++=`$CC -print-prog-name=$ac_tool_g++`
12887 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12888 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890 $as_echo_n "checking for $ac_word... " >&6; }
12891 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12892 $as_echo_n "(cached) " >&6
12894 case $orig_target_cxx in
12896 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12900 for as_dir
in `dirname $aros_gcc_g++`
12903 test -z "$as_dir" && as_dir
=.
12904 for ac_exec_ext
in '' $ac_executable_extensions; do
12905 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12906 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12917 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12918 if test -n "$orig_target_cxx"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12920 $as_echo "$orig_target_cxx" >&6; }
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12928 if test "$orig_target_cxx" = ""; then
12929 for ac_prog
in $ac_tool_g++
12931 # Extract the first word of "$ac_prog", so it can be a program name with args.
12932 set dummy
$ac_prog; ac_word
=$2
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12934 $as_echo_n "checking for $ac_word... " >&6; }
12935 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12936 $as_echo_n "(cached) " >&6
12938 case $orig_target_cxx in
12940 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12944 for as_dir
in $PATH
12947 test -z "$as_dir" && as_dir
=.
12948 for ac_exec_ext
in '' $ac_executable_extensions; do
12949 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12950 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12962 if test -n "$orig_target_cxx"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12964 $as_echo "$orig_target_cxx" >&6; }
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12971 test -n "$orig_target_cxx" && break
12978 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12979 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12980 set dummy
${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word
=$2
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12982 $as_echo_n "checking for $ac_word... " >&6; }
12983 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12984 $as_echo_n "(cached) " >&6
12986 case $orig_target_cxx in
12988 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12992 for as_dir
in $PATH
12995 test -z "$as_dir" && as_dir
=.
12996 for ac_exec_ext
in '' $ac_executable_extensions; do
12997 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12998 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13009 orig_target_cxx
=$ac_cv_path_orig_target_cxx
13010 if test -n "$orig_target_cxx"; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
13012 $as_echo "$orig_target_cxx" >&6; }
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015 $as_echo "no" >&6; }
13019 orig_target_cxx
="$orig_target_cxx $ac_tool_optarg"
13023 if test "$orig_target_cxx" = ""; then
13026 if test "$orig_target_cxx" = "no"; then
13029 if test "$req_avail" = "no"; then
13030 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
13033 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
13034 if test "$cross_compiling" = "yes" ; then
13035 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
13036 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13038 $as_echo_n "checking for $ac_word... " >&6; }
13039 if ${ac_cv_path_orig_target_ld+:} false
; then :
13040 $as_echo_n "(cached) " >&6
13042 case $orig_target_ld in
13044 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
13047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13048 for as_dir
in $PATH
13051 test -z "$as_dir" && as_dir
=.
13052 for ac_exec_ext
in '' $ac_executable_extensions; do
13053 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 orig_target_ld
=$ac_cv_path_orig_target_ld
13066 if test -n "$orig_target_ld"; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13068 $as_echo "$orig_target_ld" >&6; }
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13077 if test "" = ""; then
13082 if test "$GCC" = "yes"; then
13083 aros_gcc_gcc
=`$CC -print-prog-name=$ac_tool_gcc`
13084 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
13085 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 $as_echo_n "checking for $ac_word... " >&6; }
13088 if ${ac_cv_path_orig_target_ld+:} false
; then :
13089 $as_echo_n "(cached) " >&6
13091 case $orig_target_ld in
13093 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
13096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13097 for as_dir
in `dirname $aros_gcc_gcc`
13100 test -z "$as_dir" && as_dir
=.
13101 for ac_exec_ext
in '' $ac_executable_extensions; do
13102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13103 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13114 orig_target_ld
=$ac_cv_path_orig_target_ld
13115 if test -n "$orig_target_ld"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13117 $as_echo "$orig_target_ld" >&6; }
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13125 if test "$orig_target_ld" = ""; then
13126 for ac_prog
in $ac_tool_gcc
13128 # Extract the first word of "$ac_prog", so it can be a program name with args.
13129 set dummy
$ac_prog; ac_word
=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 $as_echo_n "checking for $ac_word... " >&6; }
13132 if ${ac_cv_path_orig_target_ld+:} false
; then :
13133 $as_echo_n "(cached) " >&6
13135 case $orig_target_ld in
13137 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
13140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13141 for as_dir
in $PATH
13144 test -z "$as_dir" && as_dir
=.
13145 for ac_exec_ext
in '' $ac_executable_extensions; do
13146 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13147 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 orig_target_ld
=$ac_cv_path_orig_target_ld
13159 if test -n "$orig_target_ld"; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13161 $as_echo "$orig_target_ld" >&6; }
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164 $as_echo "no" >&6; }
13168 test -n "$orig_target_ld" && break
13175 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
13176 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
13177 set dummy
${aros_tool_prefix}${toolchain_ld}; ac_word
=$2
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179 $as_echo_n "checking for $ac_word... " >&6; }
13180 if ${ac_cv_path_orig_target_ld+:} false
; then :
13181 $as_echo_n "(cached) " >&6
13183 case $orig_target_ld in
13185 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
13188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13189 for as_dir
in $PATH
13192 test -z "$as_dir" && as_dir
=.
13193 for ac_exec_ext
in '' $ac_executable_extensions; do
13194 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13195 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
13196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13206 orig_target_ld
=$ac_cv_path_orig_target_ld
13207 if test -n "$orig_target_ld"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13209 $as_echo "$orig_target_ld" >&6; }
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13216 orig_target_ld
="$orig_target_ld $ac_tool_optarg"
13220 if test "$orig_target_ld" = ""; then
13223 if test "$orig_target_ld" = "no"; then
13226 if test "$req_avail" = "no"; then
13227 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
13230 if test "aros_tool_prefix}${toolchain_as}" = ""; then
13231 if test "$cross_compiling" = "yes" ; then
13232 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
13233 set dummy
${target_tool_prefix}as
; ac_word
=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235 $as_echo_n "checking for $ac_word... " >&6; }
13236 if ${ac_cv_path_orig_target_as+:} false
; then :
13237 $as_echo_n "(cached) " >&6
13239 case $orig_target_as in
13241 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
13244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13245 for as_dir
in $PATH
13248 test -z "$as_dir" && as_dir
=.
13249 for ac_exec_ext
in '' $ac_executable_extensions; do
13250 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13251 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 orig_target_as
=$ac_cv_path_orig_target_as
13263 if test -n "$orig_target_as"; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13265 $as_echo "$orig_target_as" >&6; }
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13274 if test "" = ""; then
13279 if test "$GCC" = "yes"; then
13280 aros_gcc_as
=`$CC -print-prog-name=$ac_tool_as`
13281 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
13282 set dummy
`basename $aros_gcc_as`; ac_word
=$2
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13284 $as_echo_n "checking for $ac_word... " >&6; }
13285 if ${ac_cv_path_orig_target_as+:} false
; then :
13286 $as_echo_n "(cached) " >&6
13288 case $orig_target_as in
13290 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
13293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13294 for as_dir
in `dirname $aros_gcc_as`
13297 test -z "$as_dir" && as_dir
=.
13298 for ac_exec_ext
in '' $ac_executable_extensions; do
13299 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13300 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
13301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13311 orig_target_as
=$ac_cv_path_orig_target_as
13312 if test -n "$orig_target_as"; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13314 $as_echo "$orig_target_as" >&6; }
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317 $as_echo "no" >&6; }
13322 if test "$orig_target_as" = ""; then
13323 for ac_prog
in $ac_tool_as
13325 # Extract the first word of "$ac_prog", so it can be a program name with args.
13326 set dummy
$ac_prog; ac_word
=$2
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13328 $as_echo_n "checking for $ac_word... " >&6; }
13329 if ${ac_cv_path_orig_target_as+:} false
; then :
13330 $as_echo_n "(cached) " >&6
13332 case $orig_target_as in
13334 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
13337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13338 for as_dir
in $PATH
13341 test -z "$as_dir" && as_dir
=.
13342 for ac_exec_ext
in '' $ac_executable_extensions; do
13343 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13344 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
13345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355 orig_target_as
=$ac_cv_path_orig_target_as
13356 if test -n "$orig_target_as"; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13358 $as_echo "$orig_target_as" >&6; }
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361 $as_echo "no" >&6; }
13365 test -n "$orig_target_as" && break
13372 ac_tool_optarg
=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
13373 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
13374 set dummy aros_tool_prefix
}${toolchain_as}; ac_word
=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376 $as_echo_n "checking for $ac_word... " >&6; }
13377 if ${ac_cv_path_orig_target_as+:} false
; then :
13378 $as_echo_n "(cached) " >&6
13380 case $orig_target_as in
13382 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
13385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13386 for as_dir
in $PATH
13389 test -z "$as_dir" && as_dir
=.
13390 for ac_exec_ext
in '' $ac_executable_extensions; do
13391 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13392 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13403 orig_target_as
=$ac_cv_path_orig_target_as
13404 if test -n "$orig_target_as"; then
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13406 $as_echo "$orig_target_as" >&6; }
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409 $as_echo "no" >&6; }
13413 orig_target_as
="$orig_target_as $ac_tool_optarg"
13417 if test "$orig_target_as" = ""; then
13420 if test "$orig_target_as" = "no"; then
13423 if test "$req_avail" = "no"; then
13424 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
13427 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
13428 if test "$cross_compiling" = "yes" ; then
13429 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13430 set dummy
${target_tool_prefix}ar; ac_word
=$2
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13432 $as_echo_n "checking for $ac_word... " >&6; }
13433 if ${ac_cv_path_orig_target_ar+:} false
; then :
13434 $as_echo_n "(cached) " >&6
13436 case $orig_target_ar in
13438 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13442 for as_dir
in $PATH
13445 test -z "$as_dir" && as_dir
=.
13446 for ac_exec_ext
in '' $ac_executable_extensions; do
13447 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13448 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13459 orig_target_ar
=$ac_cv_path_orig_target_ar
13460 if test -n "$orig_target_ar"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13462 $as_echo "$orig_target_ar" >&6; }
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13471 if test "" = ""; then
13476 if test "$GCC" = "yes"; then
13477 aros_gcc_ar
=`$CC -print-prog-name=$ac_tool_ar`
13478 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13479 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if ${ac_cv_path_orig_target_ar+:} false
; then :
13483 $as_echo_n "(cached) " >&6
13485 case $orig_target_ar in
13487 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13491 for as_dir
in `dirname $aros_gcc_ar`
13494 test -z "$as_dir" && as_dir
=.
13495 for ac_exec_ext
in '' $ac_executable_extensions; do
13496 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13497 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13508 orig_target_ar
=$ac_cv_path_orig_target_ar
13509 if test -n "$orig_target_ar"; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13511 $as_echo "$orig_target_ar" >&6; }
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13519 if test "$orig_target_ar" = ""; then
13520 for ac_prog
in $ac_tool_ar
13522 # Extract the first word of "$ac_prog", so it can be a program name with args.
13523 set dummy
$ac_prog; ac_word
=$2
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525 $as_echo_n "checking for $ac_word... " >&6; }
13526 if ${ac_cv_path_orig_target_ar+:} false
; then :
13527 $as_echo_n "(cached) " >&6
13529 case $orig_target_ar in
13531 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13535 for as_dir
in $PATH
13538 test -z "$as_dir" && as_dir
=.
13539 for ac_exec_ext
in '' $ac_executable_extensions; do
13540 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13541 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13552 orig_target_ar
=$ac_cv_path_orig_target_ar
13553 if test -n "$orig_target_ar"; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13555 $as_echo "$orig_target_ar" >&6; }
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558 $as_echo "no" >&6; }
13562 test -n "$orig_target_ar" && break
13569 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
13570 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
13571 set dummy
${aros_tool_prefix}${toolchain_ar}; ac_word
=$2
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573 $as_echo_n "checking for $ac_word... " >&6; }
13574 if ${ac_cv_path_orig_target_ar+:} false
; then :
13575 $as_echo_n "(cached) " >&6
13577 case $orig_target_ar in
13579 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13583 for as_dir
in $PATH
13586 test -z "$as_dir" && as_dir
=.
13587 for ac_exec_ext
in '' $ac_executable_extensions; do
13588 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13589 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13600 orig_target_ar
=$ac_cv_path_orig_target_ar
13601 if test -n "$orig_target_ar"; then
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13603 $as_echo "$orig_target_ar" >&6; }
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606 $as_echo "no" >&6; }
13610 orig_target_ar
="$orig_target_ar $ac_tool_optarg"
13614 if test "$orig_target_ar" = ""; then
13617 if test "$orig_target_ar" = "no"; then
13620 if test "$req_avail" = "no"; then
13621 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
13624 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
13625 if test "$cross_compiling" = "yes" ; then
13626 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13627 set dummy
${target_tool_prefix}ar; ac_word
=$2
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13629 $as_echo_n "checking for $ac_word... " >&6; }
13630 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13631 $as_echo_n "(cached) " >&6
13633 case $orig_target_ranlib in
13635 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13639 for as_dir
in $PATH
13642 test -z "$as_dir" && as_dir
=.
13643 for ac_exec_ext
in '' $ac_executable_extensions; do
13644 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13645 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13656 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13657 if test -n "$orig_target_ranlib"; then
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13659 $as_echo "$orig_target_ranlib" >&6; }
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662 $as_echo "no" >&6; }
13668 if test "" = ""; then
13673 if test "$GCC" = "yes"; then
13674 aros_gcc_ar
=`$CC -print-prog-name=$ac_tool_ar`
13675 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13676 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13678 $as_echo_n "checking for $ac_word... " >&6; }
13679 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13680 $as_echo_n "(cached) " >&6
13682 case $orig_target_ranlib in
13684 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13688 for as_dir
in `dirname $aros_gcc_ar`
13691 test -z "$as_dir" && as_dir
=.
13692 for ac_exec_ext
in '' $ac_executable_extensions; do
13693 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13694 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13705 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13706 if test -n "$orig_target_ranlib"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13708 $as_echo "$orig_target_ranlib" >&6; }
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13716 if test "$orig_target_ranlib" = ""; then
13717 for ac_prog
in $ac_tool_ar
13719 # Extract the first word of "$ac_prog", so it can be a program name with args.
13720 set dummy
$ac_prog; ac_word
=$2
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13722 $as_echo_n "checking for $ac_word... " >&6; }
13723 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13724 $as_echo_n "(cached) " >&6
13726 case $orig_target_ranlib in
13728 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13732 for as_dir
in $PATH
13735 test -z "$as_dir" && as_dir
=.
13736 for ac_exec_ext
in '' $ac_executable_extensions; do
13737 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13738 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13749 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13750 if test -n "$orig_target_ranlib"; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13752 $as_echo "$orig_target_ranlib" >&6; }
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13759 test -n "$orig_target_ranlib" && break
13766 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
13767 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
13768 set dummy
${aros_tool_prefix}${toolchain_ranlib}; ac_word
=$2
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13770 $as_echo_n "checking for $ac_word... " >&6; }
13771 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13772 $as_echo_n "(cached) " >&6
13774 case $orig_target_ranlib in
13776 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13780 for as_dir
in $PATH
13783 test -z "$as_dir" && as_dir
=.
13784 for ac_exec_ext
in '' $ac_executable_extensions; do
13785 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13786 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13797 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13798 if test -n "$orig_target_ranlib"; then
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13800 $as_echo "$orig_target_ranlib" >&6; }
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13807 orig_target_ranlib
="$orig_target_ranlib $ac_tool_optarg"
13811 if test "$orig_target_ranlib" = ""; then
13814 if test "$orig_target_ranlib" = "no"; then
13817 if test "$req_avail" = "no"; then
13818 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
13821 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
13822 if test "$cross_compiling" = "yes" ; then
13823 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
13824 set dummy
${target_tool_prefix}nm
; ac_word
=$2
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13826 $as_echo_n "checking for $ac_word... " >&6; }
13827 if ${ac_cv_path_orig_target_nm+:} false
; then :
13828 $as_echo_n "(cached) " >&6
13830 case $orig_target_nm in
13832 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13836 for as_dir
in $PATH
13839 test -z "$as_dir" && as_dir
=.
13840 for ac_exec_ext
in '' $ac_executable_extensions; do
13841 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13842 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13853 orig_target_nm
=$ac_cv_path_orig_target_nm
13854 if test -n "$orig_target_nm"; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13856 $as_echo "$orig_target_nm" >&6; }
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13865 if test "" = ""; then
13870 if test "$GCC" = "yes"; then
13871 aros_gcc_nm
=`$CC -print-prog-name=$ac_tool_nm`
13872 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13873 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13875 $as_echo_n "checking for $ac_word... " >&6; }
13876 if ${ac_cv_path_orig_target_nm+:} false
; then :
13877 $as_echo_n "(cached) " >&6
13879 case $orig_target_nm in
13881 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13885 for as_dir
in `dirname $aros_gcc_nm`
13888 test -z "$as_dir" && as_dir
=.
13889 for ac_exec_ext
in '' $ac_executable_extensions; do
13890 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13891 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13902 orig_target_nm
=$ac_cv_path_orig_target_nm
13903 if test -n "$orig_target_nm"; then
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13905 $as_echo "$orig_target_nm" >&6; }
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908 $as_echo "no" >&6; }
13913 if test "$orig_target_nm" = ""; then
13914 for ac_prog
in $ac_tool_nm
13916 # Extract the first word of "$ac_prog", so it can be a program name with args.
13917 set dummy
$ac_prog; ac_word
=$2
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13919 $as_echo_n "checking for $ac_word... " >&6; }
13920 if ${ac_cv_path_orig_target_nm+:} false
; then :
13921 $as_echo_n "(cached) " >&6
13923 case $orig_target_nm in
13925 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13929 for as_dir
in $PATH
13932 test -z "$as_dir" && as_dir
=.
13933 for ac_exec_ext
in '' $ac_executable_extensions; do
13934 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13935 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13946 orig_target_nm
=$ac_cv_path_orig_target_nm
13947 if test -n "$orig_target_nm"; then
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13949 $as_echo "$orig_target_nm" >&6; }
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 $as_echo "no" >&6; }
13956 test -n "$orig_target_nm" && break
13963 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13964 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13965 set dummy
${aros_tool_prefix}${toolchain_nm}; ac_word
=$2
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13967 $as_echo_n "checking for $ac_word... " >&6; }
13968 if ${ac_cv_path_orig_target_nm+:} false
; then :
13969 $as_echo_n "(cached) " >&6
13971 case $orig_target_nm in
13973 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13977 for as_dir
in $PATH
13980 test -z "$as_dir" && as_dir
=.
13981 for ac_exec_ext
in '' $ac_executable_extensions; do
13982 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13983 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13994 orig_target_nm
=$ac_cv_path_orig_target_nm
13995 if test -n "$orig_target_nm"; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13997 $as_echo "$orig_target_nm" >&6; }
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14000 $as_echo "no" >&6; }
14004 orig_target_nm
="$orig_target_nm $ac_tool_optarg"
14008 if test "$orig_target_nm" = ""; then
14011 if test "$orig_target_nm" = "no"; then
14014 if test "$req_avail" = "no"; then
14015 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
14018 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
14019 if test "$cross_compiling" = "yes" ; then
14020 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
14021 set dummy
${target_tool_prefix}strip
; ac_word
=$2
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14023 $as_echo_n "checking for $ac_word... " >&6; }
14024 if ${ac_cv_path_orig_target_strip+:} false
; then :
14025 $as_echo_n "(cached) " >&6
14027 case $orig_target_strip in
14029 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
14032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14033 for as_dir
in $PATH
14036 test -z "$as_dir" && as_dir
=.
14037 for ac_exec_ext
in '' $ac_executable_extensions; do
14038 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14039 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
14040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14050 orig_target_strip
=$ac_cv_path_orig_target_strip
14051 if test -n "$orig_target_strip"; then
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14053 $as_echo "$orig_target_strip" >&6; }
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14056 $as_echo "no" >&6; }
14062 if test "" = ""; then
14063 ac_tool_strip
=strip
14067 if test "$GCC" = "yes"; then
14068 aros_gcc_strip
=`$CC -print-prog-name=$ac_tool_strip`
14069 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
14070 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14072 $as_echo_n "checking for $ac_word... " >&6; }
14073 if ${ac_cv_path_orig_target_strip+:} false
; then :
14074 $as_echo_n "(cached) " >&6
14076 case $orig_target_strip in
14078 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
14081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14082 for as_dir
in `dirname $aros_gcc_strip`
14085 test -z "$as_dir" && as_dir
=.
14086 for ac_exec_ext
in '' $ac_executable_extensions; do
14087 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14088 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
14089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14099 orig_target_strip
=$ac_cv_path_orig_target_strip
14100 if test -n "$orig_target_strip"; then
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14102 $as_echo "$orig_target_strip" >&6; }
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14105 $as_echo "no" >&6; }
14110 if test "$orig_target_strip" = ""; then
14111 for ac_prog
in $ac_tool_strip
14113 # Extract the first word of "$ac_prog", so it can be a program name with args.
14114 set dummy
$ac_prog; ac_word
=$2
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14116 $as_echo_n "checking for $ac_word... " >&6; }
14117 if ${ac_cv_path_orig_target_strip+:} false
; then :
14118 $as_echo_n "(cached) " >&6
14120 case $orig_target_strip in
14122 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
14125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14126 for as_dir
in $PATH
14129 test -z "$as_dir" && as_dir
=.
14130 for ac_exec_ext
in '' $ac_executable_extensions; do
14131 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14132 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
14133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14143 orig_target_strip
=$ac_cv_path_orig_target_strip
14144 if test -n "$orig_target_strip"; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14146 $as_echo "$orig_target_strip" >&6; }
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149 $as_echo "no" >&6; }
14153 test -n "$orig_target_strip" && break
14160 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
14161 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
14162 set dummy
${aros_tool_prefix}${toolchain_strip}; ac_word
=$2
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14164 $as_echo_n "checking for $ac_word... " >&6; }
14165 if ${ac_cv_path_orig_target_strip+:} false
; then :
14166 $as_echo_n "(cached) " >&6
14168 case $orig_target_strip in
14170 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
14173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14174 for as_dir
in $PATH
14177 test -z "$as_dir" && as_dir
=.
14178 for ac_exec_ext
in '' $ac_executable_extensions; do
14179 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14180 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
14181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14191 orig_target_strip
=$ac_cv_path_orig_target_strip
14192 if test -n "$orig_target_strip"; then
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14194 $as_echo "$orig_target_strip" >&6; }
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14197 $as_echo "no" >&6; }
14201 orig_target_strip
="$orig_target_strip $ac_tool_optarg"
14205 if test "$orig_target_strip" = ""; then
14208 if test "$orig_target_strip" = "no"; then
14211 if test "$req_avail" = "no"; then
14212 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
14215 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
14216 if test "$cross_compiling" = "yes" ; then
14217 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
14218 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14220 $as_echo_n "checking for $ac_word... " >&6; }
14221 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
14222 $as_echo_n "(cached) " >&6
14224 case $orig_target_objcopy in
14226 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
14229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14230 for as_dir
in $PATH
14233 test -z "$as_dir" && as_dir
=.
14234 for ac_exec_ext
in '' $ac_executable_extensions; do
14235 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14236 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
14237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14247 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
14248 if test -n "$orig_target_objcopy"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14250 $as_echo "$orig_target_objcopy" >&6; }
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14259 if test "" = ""; then
14260 ac_tool_objcopy
=objcopy
14264 if test "$GCC" = "yes"; then
14265 aros_gcc_objcopy
=`$CC -print-prog-name=$ac_tool_objcopy`
14266 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
14267 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14269 $as_echo_n "checking for $ac_word... " >&6; }
14270 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
14271 $as_echo_n "(cached) " >&6
14273 case $orig_target_objcopy in
14275 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
14278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14279 for as_dir
in `dirname $aros_gcc_objcopy`
14282 test -z "$as_dir" && as_dir
=.
14283 for ac_exec_ext
in '' $ac_executable_extensions; do
14284 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14285 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
14286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14296 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
14297 if test -n "$orig_target_objcopy"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14299 $as_echo "$orig_target_objcopy" >&6; }
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14302 $as_echo "no" >&6; }
14307 if test "$orig_target_objcopy" = ""; then
14308 for ac_prog
in $ac_tool_objcopy
14310 # Extract the first word of "$ac_prog", so it can be a program name with args.
14311 set dummy
$ac_prog; ac_word
=$2
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14313 $as_echo_n "checking for $ac_word... " >&6; }
14314 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
14315 $as_echo_n "(cached) " >&6
14317 case $orig_target_objcopy in
14319 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
14322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14323 for as_dir
in $PATH
14326 test -z "$as_dir" && as_dir
=.
14327 for ac_exec_ext
in '' $ac_executable_extensions; do
14328 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14329 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
14330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14340 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
14341 if test -n "$orig_target_objcopy"; then
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14343 $as_echo "$orig_target_objcopy" >&6; }
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346 $as_echo "no" >&6; }
14350 test -n "$orig_target_objcopy" && break
14357 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
14358 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
14359 set dummy
${aros_tool_prefix}${toolchain_objcopy}; ac_word
=$2
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14361 $as_echo_n "checking for $ac_word... " >&6; }
14362 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
14363 $as_echo_n "(cached) " >&6
14365 case $orig_target_objcopy in
14367 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
14370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14371 for as_dir
in $PATH
14374 test -z "$as_dir" && as_dir
=.
14375 for ac_exec_ext
in '' $ac_executable_extensions; do
14376 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14377 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
14378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14388 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
14389 if test -n "$orig_target_objcopy"; then
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14391 $as_echo "$orig_target_objcopy" >&6; }
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394 $as_echo "no" >&6; }
14398 orig_target_objcopy
="$orig_target_objcopy $ac_tool_optarg"
14402 if test "$orig_target_objcopy" = ""; then
14405 if test "$orig_target_objcopy" = "no"; then
14408 if test "$req_avail" = "no"; then
14409 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
14412 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
14413 if test "$cross_compiling" = "yes" ; then
14414 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
14415 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14417 $as_echo_n "checking for $ac_word... " >&6; }
14418 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14419 $as_echo_n "(cached) " >&6
14421 case $orig_target_objdump in
14423 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14427 for as_dir
in $PATH
14430 test -z "$as_dir" && as_dir
=.
14431 for ac_exec_ext
in '' $ac_executable_extensions; do
14432 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14433 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14444 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14445 if test -n "$orig_target_objdump"; then
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14447 $as_echo "$orig_target_objdump" >&6; }
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14450 $as_echo "no" >&6; }
14456 if test "" = ""; then
14457 ac_tool_objdump
=objdump
14461 if test "$GCC" = "yes"; then
14462 aros_gcc_objdump
=`$CC -print-prog-name=$ac_tool_objdump`
14463 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
14464 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14466 $as_echo_n "checking for $ac_word... " >&6; }
14467 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14468 $as_echo_n "(cached) " >&6
14470 case $orig_target_objdump in
14472 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14476 for as_dir
in `dirname $aros_gcc_objdump`
14479 test -z "$as_dir" && as_dir
=.
14480 for ac_exec_ext
in '' $ac_executable_extensions; do
14481 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14482 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14493 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14494 if test -n "$orig_target_objdump"; then
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14496 $as_echo "$orig_target_objdump" >&6; }
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14499 $as_echo "no" >&6; }
14504 if test "$orig_target_objdump" = ""; then
14505 for ac_prog
in $ac_tool_objdump
14507 # Extract the first word of "$ac_prog", so it can be a program name with args.
14508 set dummy
$ac_prog; ac_word
=$2
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14510 $as_echo_n "checking for $ac_word... " >&6; }
14511 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14512 $as_echo_n "(cached) " >&6
14514 case $orig_target_objdump in
14516 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14520 for as_dir
in $PATH
14523 test -z "$as_dir" && as_dir
=.
14524 for ac_exec_ext
in '' $ac_executable_extensions; do
14525 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14526 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14537 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14538 if test -n "$orig_target_objdump"; then
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14540 $as_echo "$orig_target_objdump" >&6; }
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14543 $as_echo "no" >&6; }
14547 test -n "$orig_target_objdump" && break
14554 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
14555 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
14556 set dummy
${aros_tool_prefix}${toolchain_objdump}; ac_word
=$2
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14558 $as_echo_n "checking for $ac_word... " >&6; }
14559 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14560 $as_echo_n "(cached) " >&6
14562 case $orig_target_objdump in
14564 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14568 for as_dir
in $PATH
14571 test -z "$as_dir" && as_dir
=.
14572 for ac_exec_ext
in '' $ac_executable_extensions; do
14573 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14574 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14585 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14586 if test -n "$orig_target_objdump"; then
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14588 $as_echo "$orig_target_objdump" >&6; }
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14591 $as_echo "no" >&6; }
14595 orig_target_objdump
="$orig_target_objdump $ac_tool_optarg"
14599 if test "$orig_target_objdump" = ""; then
14602 if test "$orig_target_objdump" = "no"; then
14605 if test "$req_avail" = "no"; then
14606 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
14610 if test "$kernel_tool_prefix" = "none" ; then
14611 # No kernel tools specified
14612 # Assume kernel tools == target tools with ELF wrapper
14613 aros_kernel_cc
=$orig_target_cc
14614 aros_kernel_cxx
=$orig_target_cxx
14615 aros_kernel_cpp
="$orig_target_cpp"
14616 aros_kernel_ld
=$orig_target_ld
14617 aros_kernel_as
=$orig_target_as
14618 aros_kernel_ar
=$orig_target_ar
14619 aros_kernel_ranlib
=$orig_target_ranlib
14620 aros_kernel_nm
=$orig_target_nm
14621 aros_kernel_strip
=$orig_target_strip
14622 aros_kernel_objcopy
=$orig_target_objcopy
14623 aros_kernel_objdump
=$orig_target_objdump
14624 aros_kernel_isa_flags
=$aros_isa_flags
14625 use_kernel_cc_wrapper
=yes
14628 # At this point, all aros_kernel_* and aros_target_*
14629 # tools should be set up correctly
14631 CC
="$aros_kernel_cc $kernel_tool_flags"
14632 CPP
="$aros_kernel_cpp"
14634 #-----------------------------------------------------------------------------
14636 # Find all the tools we need to compile. This could be cross-compiling
14637 # though! If that is the case we use the GNU form of the target and
14638 # simply add this to the front of the binary name. This is rather simple,
14639 # but it should work under most circumstances.
14641 # The default tools are to use the same as the host, but only if the
14642 # host and target CPU are the same. With GCC this is normally enough.
14646 aros_shared_ld
="$aros_host_ld"
14648 aros_target_mkdep
="$aros_host_mkdep"
14650 # The default tools executables to be linked to.
14651 if test "$rescomp" != ""; then
14652 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
14653 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14655 $as_echo_n "checking for $ac_word... " >&6; }
14656 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
14657 $as_echo_n "(cached) " >&6
14659 case $aros_kernel_rescomp in
14661 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
14664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14665 for as_dir
in $PATH
14668 test -z "$as_dir" && as_dir
=.
14669 for ac_exec_ext
in '' $ac_executable_extensions; do
14670 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14671 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
14672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14682 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
14683 if test -n "$aros_kernel_rescomp"; then
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
14685 $as_echo "$aros_kernel_rescomp" >&6; }
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14688 $as_echo "no" >&6; }
14693 if test "$aros_kernel_rescomp" = ""; then
14696 if test "$aros_kernel_rescomp" = "no"; then
14699 if test "$req_avail" = "no"; then
14700 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
14704 # Set up the sources for the symlink farm
14705 if test "$crosstools" = "yes"; then
14706 crosstools_target
=tools-crosstools
14709 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
14710 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
14712 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
14713 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
14714 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
14715 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
14716 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
14717 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
14718 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
14720 # aros_cc_pre is a variable that is added to the front of the compiler name
14721 # in the generated aros-gcc shell script. We need this to enable the cache
14722 # to work across cleaned builds. Also, support DISTCC using the correct
14723 # environment variable.
14726 if test "x${DISTCC}" != "x" ; then
14727 if test "x${CCACHE}" != "x" ; then
14728 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
14730 aros_cc_pre
="${DISTCC} "
14733 if test "x${CCACHE}" != "x" ; then
14734 aros_cc_pre
="${CCACHE} "
14738 aros_target_nostdinc_cflags
=-nostdinc
14740 aros_target_nostartup_ldflags
=-nostartfiles
14742 aros_target_nix_ldflags
=-nix
14744 aros_target_detach_ldflags
=-detach
14746 aros_target_nostdlib_ldflags
=-nostdlib
14749 aros_target_cc_path
=
14753 if test "$aros_target_toolchain" != "yes"; then
14754 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
14755 if test "$GCC" = "yes"; then
14756 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
14759 # We do not know which c compiler version we are going to build and what we need to know
14760 # here is different for different versions so this will be set later during the
14761 # build of crosstools.
14762 if test "$aros_toolchain" = "gnu" ; then
14763 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
14764 elif test "$aros_toolchain" = "llvm" ; then
14765 prefix
="$AROS_CROSSTOOLSDIR/bin/"
14767 aros_target_cc_path
=@aros_target_cc_path@
14769 aros_target_cpp
="${prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
14770 aros_target_cc
="${prefix}${toolchain_c_compiler}"
14771 aros_target_cxx
="${prefix}${toolchain_cxx_compiler}"
14772 aros_target_as
="${prefix}${toolchain_as}"
14773 if test "${use_ld_wrapper}" = "yes"; then
14774 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
14776 aros_target_ld
="${prefix}${toolchain_ld}"
14778 aros_toolchain_ld
="${prefix}${toolchain_ld}"
14780 aros_target_ar
="${prefix}${toolchain_ar} $aros_target_ar_flags"
14781 aros_target_objcopy
="${prefix}${toolchain_objcopy}"
14782 aros_target_objdump
="${prefix}${toolchain_objdump}"
14783 aros_target_ranlib
="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
14784 aros_target_nm
="${prefix}${toolchain_nm} $aros_target_nm_flags"
14785 aros_target_strip
="${prefix}${toolchain_strip}"
14786 aros_plain_nm
="${prefix}${toolchain_nm}"
14787 aros_plain_ar
="${prefix}${toolchain_ar}"
14789 # Check whether --enable-includes was given.
14790 if test "${enable_includes+set}" = set; then :
14791 enableval
=$enable_includes; aros_target_incl
=$enable_includes
14793 aros_target_incl
=no
14797 if test "x$aros_target_incl" = "xno"; then
14798 if test "x$test_kernel_cc" != "xno"; then
14799 aros_target_incl
=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
14805 if test "x$aros_kernel_includes" = "x"; then
14806 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14807 if test "x$aros_target_incl" != "x"; then
14808 aros_kernel_includes
="-isystem $aros_target_incl"
14813 if test "x$test_kernel_cc" != "xno"; then
14814 if test "$aros_kernel_includes" != "" ; then
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
14816 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
14817 if test "$aros_kernel_cc_includes" = "" ; then
14818 # Try to guess where the directory is.
14819 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
14820 if test -d $aros_kernel_cc_includes; then
14821 # Check if there is also an include-fixed directory and add it
14822 # to kernel compiler's include path as it may contain some of
14823 # the headers we need.
14824 if test -d "$aros_kernel_cc_includes"-fixed; then
14825 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
14827 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
14828 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
14829 aros_kernel_cc_includes
+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
14832 # The directory doesn't exist, we need to do some more work.
14833 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
14835 # These are the headers we're looking for.
14836 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14837 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14841 for h
in $headers; do
14842 # Which other headers are needed by each of the above?
14843 deps
=$
(echo "#include <$h>" | \
14844 $aros_kernel_cc -E -M - 2>/dev
/null | \
14845 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14847 # Copy all the needed headers to a directory beneath gendir.
14850 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
14851 sed -n "s,^.*/include\(/.*\),\1,p")
14852 ! test -d $dir && mkdir
-p $dir
14853 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
14859 $as_echo "$aros_kernel_cc_includes" >&6; }
14860 # Adding -nostdinc to kernel includes as they are always used together.
14861 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
14865 if test "$crosstools" != "yes"; then
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
14867 $as_echo_n "checking for the target compiler's include path... " >&6; }
14868 if test "$aros_target_cc_includes" = "" ; then
14869 #try to guess where the directory is
14870 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
14871 if ! test -d $aros_target_cc_includes; then
14872 #the directory doesn't exist, we need to do some more work
14873 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
14875 #these are the headers we're looking for
14876 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14877 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14881 for h
in $headers; do
14882 #which other headers each of the above headers needs?
14883 deps
=$
(echo "#include <$h>" | \
14884 $orig_target_cc -E -M - 2>/dev
/null | \
14885 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14887 #copy all the needed headers to a directory beneath gendir
14890 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
14891 sed -n "s,^.*/include\(/.*\),\1,p")
14892 ! test -d $dir && mkdir
-p $dir
14893 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14899 $as_echo "$aros_target_cc_includes" >&6; }
14901 # We do not know which c compiler version we are going to build and what we need to know
14902 # here is different for different versions so this will be set later during the
14903 # build of crosstools.
14904 aros_target_cc_includes
=@aros_target_cc_includes@
14908 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14909 # On GCC >= 4.0 -iquote should be used
14913 save_cflags
="$CFLAGS"
14914 if test "x$test_kernel_cc" != "xno"; then
14916 kernel_cflags_iquote
=$host_cflags_iquote
14917 kernel_cflags_iquote_end
=$host_cflags_iquote_end
14918 if test "x-$cross_compiling" = "x-yes"; then
14919 CC
="$aros_kernel_cc"
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14921 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14922 if test "x-$crosstools" != "x-yes"; then
14923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14924 /* end confdefs.h. */
14934 if ac_fn_c_try_compile
"$LINENO"; then :
14935 use_no_stack_protector
="yes"
14937 use_no_stack_protector
="no"
14939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14941 # we do know it is supported for the smallest version of gcc we are going to build
14942 # we assume it's also supported by later versions
14943 use_no_stack_protector
=yes
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14946 $as_echo "$use_no_stack_protector" >&6; }
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14948 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14949 if test "x-$crosstools" != "x-yes"; then
14950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14961 if ac_fn_c_try_compile
"$LINENO"; then :
14966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14968 # we do know it is supported for the smallest version of gcc we are going to build
14969 # we assume it's also supported by later versions
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14973 $as_echo "$has_iquote" >&6; }
14974 if test "x-$has_iquote" = "x-yes" ; then
14975 kernel_cflags_iquote
=-iquote
14976 kernel_cflags_iquote_end
=
14978 kernel_cflags_iquote
=-I
14979 kernel_cflags_iquote_end
=-I-
14982 if test "x-$use_no_stack_protector" = "x-yes" ; then
14983 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
14986 #-----------------------------------------------------------------------------
14988 # Check if we can explicitly choose older version of symbol hashing
14990 CFLAGS
="$save_cflags -Wl,--hash-style=sysv"
14991 CC
="$aros_kernel_cc"
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14993 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
15005 if ac_fn_c_try_link
"$LINENO"; then :
15006 use_hash_style
="yes"
15008 use_hash_style
="no"
15010 rm -f core conftest.err conftest.
$ac_objext \
15011 conftest
$ac_exeext conftest.
$ac_ext
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
15013 $as_echo "$use_hash_style" >&6; }
15014 if test "x-$use_hash_style" = "x-yes" ; then
15015 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
15018 kernel_cflags_iquote
="$""(CFLAGS_IQUOTE)"
15019 kernel_cflags_iquote_end
="$""(CFLAGS_IQUOTE_END)"
15022 CFLAGS
="$save_cflags"
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
15031 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
15033 # Check whether --with-resolution was given.
15034 if test "${with_resolution+set}" = set; then :
15035 withval
=$with_resolution; resolution
=$withval
15040 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
15041 if test "$resolution" = "yes" ; then
15044 if test "$resolution" = "no" ; then
15047 if test "$resolution" != "none" ; then
15048 aros_nominal_width
=`echo $resolution | cut -d'x' -f1`
15049 aros_nominal_height
=`echo $resolution | cut -d'x' -f2`
15050 aros_nominal_depth
=`echo $resolution | cut -d'x' -f3`
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
15053 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
15054 aros_cv_nominal_width
=$aros_nominal_width
15055 aros_cv_nominal_height
=$aros_nominal_height
15056 aros_cv_nominal_depth
=$aros_nominal_depth
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
15059 $as_echo_n "checking whether serial debug is enabled... " >&6; }
15061 # Check whether --with-serial-debug was given.
15062 if test "${with_serial_debug+set}" = set; then :
15063 withval
=$with_serial_debug; serial_debug
=$withval
15068 if test "$aros_serial_debug" = 0 ; then
15069 serial_debug_forced
=""
15070 if test "$serial_debug" = "yes" ; then
15073 if test "$serial_debug" = "no" ; then
15074 serial_debug
="none"
15077 serial_debug_forced
="(forced)"
15078 serial_debug
=$aros_serial_debug
15080 if test "$serial_debug" != "none" ; then
15081 aros_serial_debug
=$serial_debug
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
15083 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15086 $as_echo "no" >&6; }
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
15090 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
15091 # Check whether --enable-palm_debug_hack was given.
15092 if test "${enable_palm_debug_hack+set}" = set; then :
15093 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
15095 palm_debug_hack
="no"
15098 if test "$palm_debug_hack" = "yes" ; then
15099 aros_palm_debug_hack
="1"
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
15102 $as_echo "$palm_debug_hack" >&6; }
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
15105 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
15106 # Check whether --enable-usb30_code was given.
15107 if test "${enable_usb30_code+set}" = set; then :
15108 enableval
=$enable_usb30_code; usb30_code
="yes"
15113 if test "$usb30_code" = "yes" ; then
15114 aros_config_cppflags
="$aros_config_cppflags -DAROS_USB30_CODE"
15115 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
15118 $as_echo "$usb30_code" >&6; }
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
15121 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
15122 # Check whether --enable-nesting_supervisor was given.
15123 if test "${enable_nesting_supervisor+set}" = set; then :
15124 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
15126 nesting_supervisor
="no"
15129 if test "$nesting_supervisor" = "yes" ; then
15130 aros_nesting_supervisor
="1"
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
15133 $as_echo "$nesting_supervisor" >&6; }
15135 if test "$aros_enable_mmu" = "" ; then
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
15137 $as_echo_n "checking whether MMU support is enabled... " >&6; }
15138 # Check whether --enable-mmu was given.
15139 if test "${enable_mmu+set}" = set; then :
15140 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
15142 aros_enable_mmu
="yes"
15145 if test "$aros_enable_mmu" = "" ; then
15146 aros_enable_mmu
="yes"
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
15149 $as_echo "$aros_enable_mmu" >&6; }
15151 if test "$aros_enable_mmu" = "no" ; then
15152 aros_enable_mmu
="0"
15154 aros_enable_mmu
="1"
15158 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
15160 if test "x-$need_dlopen" != "x-no" ; then
15163 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
15164 if test "x$ac_cv_func_dlopen" = xyes
; then :
15170 if test "x-$have_dl" = "x-no" ; then
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15172 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15173 if ${ac_cv_lib_dl_dlopen+:} false
; then :
15174 $as_echo_n "(cached) " >&6
15176 ac_check_lib_save_LIBS
=$LIBS
15178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15181 /* Override any GCC internal prototype to avoid an error.
15182 Use char because int might match the return type of a GCC
15183 builtin and then its argument prototype would still apply. */
15196 if ac_fn_c_try_link
"$LINENO"; then :
15197 ac_cv_lib_dl_dlopen
=yes
15199 ac_cv_lib_dl_dlopen
=no
15201 rm -f core conftest.err conftest.
$ac_objext \
15202 conftest
$ac_exeext conftest.
$ac_ext
15203 LIBS
=$ac_check_lib_save_LIBS
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15206 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15207 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
15209 aros_host_ldflags
="$aros_host_ldflags -ldl"
15215 if test "x-$have_dl" = "x-no" ; then
15216 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
15222 # Check whether --enable-x11_hidd was given.
15223 if test "${enable_x11_hidd+set}" = set; then :
15224 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
15226 x11_hidd
="$need_x11"
15229 case "x-$x11_hidd" in
15230 x-yes|x-no|x-auto
) ;;
15231 *) x11_hidd
="$need_x11" ;;
15236 if test "x-$x11_hidd" != "x-no" ; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15239 $as_echo_n "checking for X... " >&6; }
15242 # Check whether --with-x was given.
15243 if test "${with_x+set}" = set; then :
15247 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15248 if test "x$with_x" = xno
; then
15249 # The user explicitly disabled X.
15252 case $x_includes,$x_libraries in #(
15253 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
15254 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
15255 $as_echo_n "(cached) " >&6
15257 # One or both of the vars are not set, and there is no cached value.
15258 ac_x_includes
=no ac_x_libraries
=no
15259 rm -f -r conftest.dir
15260 if mkdir conftest.dir
; then
15262 cat >Imakefile
<<'_ACEOF'
15264 @echo incroot='${INCROOT}'
15266 @echo usrlibdir='${USRLIBDIR}'
15268 @echo libdir='${LIBDIR}'
15270 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15271 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15272 for ac_var
in incroot usrlibdir libdir
; do
15273 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15275 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15276 for ac_extension
in a so sl dylib la dll
; do
15277 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15278 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15279 ac_im_usrlibdir
=$ac_im_libdir; break
15282 # Screen out bogus values from the imake configuration. They are
15283 # bogus both because they are the default anyway, and because
15284 # using them would break gcc on systems where it needs fixed includes.
15285 case $ac_im_incroot in
15286 /usr
/include
) ac_x_includes
= ;;
15287 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15289 case $ac_im_usrlibdir in
15290 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15291 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15295 rm -f -r conftest.dir
15298 # Standard set of common directories for X headers.
15299 # Check X11 before X11Rn because it is often a symlink to the current release.
15313 /usr/local/X11/include
15314 /usr/local/X11R7/include
15315 /usr/local/X11R6/include
15316 /usr/local/X11R5/include
15317 /usr/local/X11R4/include
15319 /usr/local/include/X11
15320 /usr/local/include/X11R7
15321 /usr/local/include/X11R6
15322 /usr/local/include/X11R5
15323 /usr/local/include/X11R4
15327 /usr/XFree86/include/X11
15331 /usr/unsupported/include
15332 /usr/athena/include
15333 /usr/local/x11r5/include
15334 /usr/lpp/Xamples/include
15336 /usr/openwin/include
15337 /usr/openwin/share/include'
15339 if test "$ac_x_includes" = no
; then
15340 # Guess where to find include files, by looking for Xlib.h.
15341 # First, try using that file with no special directory specified.
15342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344 #include <X11/Xlib.h>
15346 if ac_fn_c_try_cpp
"$LINENO"; then :
15347 # We can compile using X headers with no special include directory.
15350 for ac_dir
in $ac_x_header_dirs; do
15351 if test -r "$ac_dir/X11/Xlib.h"; then
15352 ac_x_includes
=$ac_dir
15357 rm -f conftest.err conftest.i conftest.
$ac_ext
15358 fi # $ac_x_includes = no
15360 if test "$ac_x_libraries" = no
; then
15361 # Check for the libraries.
15362 # See if we find them without any special options.
15363 # Don't add to $LIBS permanently.
15366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15368 #include <X11/Xlib.h>
15377 if ac_fn_c_try_link
"$LINENO"; then :
15379 # We can link X programs with no special library path.
15383 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15385 # Don't even attempt the hair of trying to link an X program!
15386 for ac_extension
in a so sl dylib la dll
; do
15387 if test -r "$ac_dir/libX11.$ac_extension"; then
15388 ac_x_libraries
=$ac_dir
15394 rm -f core conftest.err conftest.
$ac_objext \
15395 conftest
$ac_exeext conftest.
$ac_ext
15396 fi # $ac_x_libraries = no
15398 case $ac_x_includes,$ac_x_libraries in #(
15399 no
,* |
*,no |
*\'*)
15400 # Didn't find X, or a directory has "'" in its name.
15401 ac_cv_have_x
="have_x=no";; #(
15403 # Record where we found X for the cache.
15404 ac_cv_have_x
="have_x=yes\
15405 ac_x_includes='$ac_x_includes'\
15406 ac_x_libraries='$ac_x_libraries'"
15412 eval "$ac_cv_have_x"
15415 if test "$have_x" != yes; then
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15417 $as_echo "$have_x" >&6; }
15420 # If each of the values was on the command line, it overrides each guess.
15421 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15422 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15423 # Update the cache value to reflect the command line values.
15424 ac_cv_have_x
="have_x=yes\
15425 ac_x_includes='$x_includes'\
15426 ac_x_libraries='$x_libraries'"
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15428 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15432 if test -n "$x_includes"; then
15433 X_CFLAGS
="$X_CFLAGS -I$x_includes"
15436 if test -n "$x_libraries"; then
15437 X_LIBS
="$X_LIBS -L$x_libraries"
15440 if test "x-$no_x" = "x-yes" ; then
15442 if test "x-$x11_hidd" != "x-auto" ; then
15443 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
15447 aros_target_options
+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
15448 if test "x-$host_feature_glx" != "x-no" ; then
15449 aros_target_options
+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
15453 aros_host_x11_cflags
="$X_CFLAGS"
15454 aros_host_x11_ldflags
="$X_LIBS -lX11"
15456 # Check whether --enable-x11_shm was given.
15457 if test "${enable_x11_shm+set}" = set; then :
15458 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
15460 x11_hidd_shm
="auto"
15463 case "x-$x11_hidd_shm" in
15464 x-yes|x-no|x-auto
) ;;
15465 *) x11_hidd_shm
="auto" ;;
15470 if test "x-$x11_hidd_shm" != "x-no" ; then
15472 for ac_header
in sys
/ipc.h
15474 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15475 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
15476 cat >>confdefs.h
<<_ACEOF
15477 #define HAVE_SYS_IPC_H 1
15484 for ac_header
in sys
/shm.h
15486 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15487 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
15488 cat >>confdefs.h
<<_ACEOF
15489 #define HAVE_SYS_SHM_H 1
15497 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
15499 save_cflags
="$CFLAGS"
15500 save_ldflags
="$LDFLAGS"
15501 CFLAGS
="$CFLAGS $X_CFLAGS"
15502 LDFLAGS
="$LDFLAGS $X_LIBS"
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
15504 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
15505 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
15506 $as_echo_n "(cached) " >&6
15508 ac_check_lib_save_LIBS
=$LIBS
15509 LIBS
="-lXext $LIBS"
15510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15511 /* end confdefs.h. */
15513 /* Override any GCC internal prototype to avoid an error.
15514 Use char because int might match the return type of a GCC
15515 builtin and then its argument prototype would still apply. */
15519 char XShmQueryExtension ();
15523 return XShmQueryExtension ();
15528 if ac_fn_c_try_link
"$LINENO"; then :
15529 ac_cv_lib_Xext_XShmQueryExtension
=yes
15531 ac_cv_lib_Xext_XShmQueryExtension
=no
15533 rm -f core conftest.err conftest.
$ac_objext \
15534 conftest
$ac_exeext conftest.
$ac_ext
15535 LIBS
=$ac_check_lib_save_LIBS
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
15538 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
15539 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
15543 CFLAGS
="$save_cflags"
15544 LDFLAGS
="$save_ldflags"
15548 if test "x-$have_xshm" = "x-yes" ; then
15549 DO_XSHM_SUPPORT
="1"
15550 elif test "x-$x11_hidd_shm" = "x-yes" ; then
15551 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
15553 DO_XSHM_SUPPORT
="0"
15557 # Check whether --enable-x11_vidmode was given.
15558 if test "${enable_x11_vidmode+set}" = set; then :
15559 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
15561 x11_hidd_vidmode
="auto"
15564 case "x-$x11_hidd_vidmode" in
15565 x-yes|x-no|x-auto
) ;;
15566 *) x11_hidd_vidmode
="auto" ;;
15571 if test "x-$x11_hidd_vidmode" != "x-no" ; then
15573 save_cflags
="$CFLAGS"
15574 save_ldflags
="$LDFLAGS"
15575 CFLAGS
="$CFLAGS $X_CFLAGS"
15576 LDFLAGS
="$LDFLAGS $X_LIBS"
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
15578 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
15579 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
15580 $as_echo_n "(cached) " >&6
15582 ac_check_lib_save_LIBS
=$LIBS
15583 LIBS
="-lXxf86vm $LIBS"
15584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15587 /* Override any GCC internal prototype to avoid an error.
15588 Use char because int might match the return type of a GCC
15589 builtin and then its argument prototype would still apply. */
15593 char XF86VidModeQueryExtension ();
15597 return XF86VidModeQueryExtension ();
15602 if ac_fn_c_try_link
"$LINENO"; then :
15603 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
15605 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
15607 rm -f core conftest.err conftest.
$ac_objext \
15608 conftest
$ac_exeext conftest.
$ac_ext
15609 LIBS
=$ac_check_lib_save_LIBS
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
15612 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
15613 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
15617 CFLAGS
="$save_cflags"
15618 LDFLAGS
="$save_ldflags"
15621 if test "x-$have_vidmode" = "x-yes" ; then
15622 DO_VIDMODE_SUPPORT
="1"
15623 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
15624 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
15626 DO_VIDMODE_SUPPORT
="0"
15631 # Check whether --enable-sdl_hidd was given.
15632 if test "${enable_sdl_hidd+set}" = set; then :
15633 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
15638 case "x-$sdl_hidd" in
15639 x-yes|x-no|x-auto
) ;;
15640 *) sdl_hidd
="auto" ;;
15643 if test "x-$sdl_hidd" != "x-no" ; then
15647 # Check whether --with-sdl-prefix was given.
15648 if test "${with_sdl_prefix+set}" = set; then :
15649 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
15655 # Check whether --with-sdl-exec-prefix was given.
15656 if test "${with_sdl_exec_prefix+set}" = set; then :
15657 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
15662 # Check whether --enable-sdltest was given.
15663 if test "${enable_sdltest+set}" = set; then :
15664 enableval
=$enable_sdltest;
15670 if test x
$sdl_exec_prefix != x
; then
15671 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15672 if test x
${SDL_CONFIG+set} != xset
; then
15673 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
15676 if test x
$sdl_prefix != x
; then
15677 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
15678 if test x
${SDL_CONFIG+set} != xset
; then
15679 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
15683 as_save_PATH
="$PATH"
15684 if test "x$prefix" != xNONE
; then
15685 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
15687 # Extract the first word of "sdl-config", so it can be a program name with args.
15688 set dummy sdl-config
; ac_word
=$2
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15690 $as_echo_n "checking for $ac_word... " >&6; }
15691 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
15692 $as_echo_n "(cached) " >&6
15694 case $SDL_CONFIG in
15696 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
15699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15700 for as_dir
in $PATH
15703 test -z "$as_dir" && as_dir
=.
15704 for ac_exec_ext
in '' $ac_executable_extensions; do
15705 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15706 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15714 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
15718 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
15719 if test -n "$SDL_CONFIG"; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15721 $as_echo "$SDL_CONFIG" >&6; }
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15724 $as_echo "no" >&6; }
15728 PATH
="$as_save_PATH"
15729 min_sdl_version
=$SDL_VERSION
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15731 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15733 if test "$SDL_CONFIG" = "no" ; then
15736 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
15737 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
15739 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
15740 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15741 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
15742 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15743 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
15744 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15745 if test "x$enable_sdltest" = "xyes" ; then
15746 ac_save_CFLAGS
="$CFLAGS"
15747 ac_save_CXXFLAGS
="$CXXFLAGS"
15748 ac_save_LIBS
="$LIBS"
15749 CFLAGS
="$CFLAGS $SDL_CFLAGS"
15750 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
15751 LIBS
="$LIBS $SDL_LIBS"
15753 if test "$cross_compiling" = yes; then :
15754 echo $ac_n "cross compiling; assumed OK... $ac_c"
15756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h. */
15760 #include <stdlib.h>
15761 #include <string.h>
15765 my_strdup (char *str)
15771 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15772 strcpy (new_str, str);
15780 int main (int argc, char *argv[])
15782 int major, minor, micro;
15785 /* This hangs on some systems (?)
15786 system ("touch conf.sdltest");
15788 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15790 /* HP/UX 9 (%@#!) writes to sscanf strings */
15791 tmp_version = my_strdup("$min_sdl_version");
15792 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
15793 printf("%s, bad version string\n", "$min_sdl_version");
15797 if (($sdl_major_version > major) ||
15798 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15799 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15805 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15806 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15807 printf("*** best to upgrade to the required version.\n");
15808 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15809 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15810 printf("*** config.cache before re-running configure\n");
15817 if ac_fn_c_try_run
"$LINENO"; then :
15822 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15823 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15826 CFLAGS
="$ac_save_CFLAGS"
15827 CXXFLAGS
="$ac_save_CXXFLAGS"
15828 LIBS
="$ac_save_LIBS"
15831 if test "x$no_sdl" = x
; then
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15833 $as_echo "yes" >&6; }
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15837 $as_echo "no" >&6; }
15838 if test "$SDL_CONFIG" = "no" ; then
15839 echo "*** The sdl-config script installed by SDL could not be found"
15840 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15841 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15842 echo "*** full path to sdl-config."
15844 if test -f conf.sdltest
; then
15847 echo "*** Could not run SDL test program, checking why..."
15848 CFLAGS
="$CFLAGS $SDL_CFLAGS"
15849 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
15850 LIBS
="$LIBS $SDL_LIBS"
15851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15857 int main(int argc, char *argv[])
15860 #define main K_and_R_C_main
15870 if ac_fn_c_try_link
"$LINENO"; then :
15871 echo "*** The test program compiled, but did not run. This usually means"
15872 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15873 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15874 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15875 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15876 echo "*** is required on your system"
15878 echo "*** If you have an old version installed, it is best to remove it, although"
15879 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15881 echo "*** The test program failed to compile or link. See the file config.log for the"
15882 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15883 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15884 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15886 rm -f core conftest.err conftest.
$ac_objext \
15887 conftest
$ac_exeext conftest.
$ac_ext
15888 CFLAGS
="$ac_save_CFLAGS"
15889 CXXFLAGS
="$ac_save_CXXFLAGS"
15890 LIBS
="$ac_save_LIBS"
15902 if test "x-$have_sdl" != "x-yes" ; then
15904 if test "x-$sdl_hidd" != "x-auto" ; then
15905 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15909 aros_target_options
+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15910 aros_host_sdl_cflags
=$SDL_CFLAGS
15911 aros_host_sdl_libs
=$SDL_LIBS
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15919 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15920 # Check whether --enable-dbus was given.
15921 if test "${enable_dbus+set}" = set; then :
15922 enableval
=$enable_dbus; dbus
="yes"
15927 if test "$dbus" = "yes" ; then
15929 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
15930 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
15931 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
15932 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15937 $as_echo "$dbus" >&6; }
15939 if test "$use_kernel_cc_wrapper" = "yes" ; then
15940 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15943 aros_kernel_cppflags
=$aros_config_cppflags
15944 aros_optimization_cflags
="$optimization_level"
15945 if test "$optimization" = "default"; then
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15947 $as_echo_n "checking default optimization level to use... " >&6; }
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15949 $as_echo "$optimization_level" >&6; }
15952 if ! test "$gcc_default_cpu" = "" ; then
15953 target_extra_cfg
+="$export_newline""# ARM gcc default target$export_newline""GCC_DEFAULT_CPU := $gcc_default_cpu$export_newline""GCC_DEFAULT_FPU := $gcc_default_fpu$export_newline""GCC_DEFAULT_FLOAT_ABI := $gcc_default_float_abi$export_newline""GCC_DEFAULT_MODE := $gcc_default_mode$export_newline"
15956 if test "$use_libatomic" = "yes" ; then
15957 aros_cxx_libs
="$aros_cxx_libs -latomic"
15960 aros_target_options
+="$export_newline""# Enable Nouveau Gfx Driver$export_newline""OPT_GFX_NOUVEAU := no$export_newline"
15973 PPMTOILBM
=$PPMTOILBM
15979 aros_config_cflags
=$aros_config_cflags
15980 aros_config_cppflags
=$aros_config_cppflags
15981 aros_config_cxxflags
=$aros_config_cxxflags
15983 aros_c_libs
=$aros_c_libs
15984 aros_cxx_libs
=$aros_cxx_libs
15986 aros_host_ldflags
=$aros_host_ldflags
15987 aros_host_strip
=$aros_host_strip
15988 aros_host_x11_ldflags
=$aros_host_x11_ldflags
15990 aros_kernel_ar
=$aros_kernel_ar
15991 aros_kernel_as
=$aros_kernel_as
15992 aros_kernel_cc
=$aros_kernel_cc
15993 aros_kernel_cflags
=$aros_kernel_cflags
15994 aros_kernel_cppflags
=$aros_kernel_cppflags
15995 aros_kernel_cxx
=$aros_kernel_cxx
15996 aros_kernel_nm
=$aros_kernel_nm
15997 aros_kernel_objcopy
=$aros_kernel_objcopy
15998 aros_kernel_objdump
=$aros_kernel_objdump
15999 aros_kernel_ranlib
=$aros_kernel_ranlib
16015 # Compatability with other Amiga-like operating systems
16018 # Host Related ###########################
16050 # Target Related #########################
16144 # Native version related
16152 # Bootloader related
16155 # Unix/Hosted version related
16158 # ARM default GCC target related
16165 # Palm native version related
16168 # Apple iOS related
16185 # Collect-aros stuff: "-ius" to ignore undefined symbols
16188 # C compiler related
16194 #ObjC compiler related
16222 case "$aros_flavour" in
16223 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
16224 aros_flavour
="emulation" ;;
16225 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
16226 aros_flavour
="emulation" ;;
16227 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
16228 aros_flavour
="standalone";;
16229 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
16230 aros_flavour
="standalone";;
16231 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
16232 aros_flavour
="native" ;;
16233 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
16234 aros_flavour
="native" ;;
16235 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
16236 aros_flavour
="linklib" ;;
16237 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
16238 aros_flavour
="palmnative" ;;
16239 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
16240 aros_flavour
="mac68knative" ;;
16241 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
16242 aros_flavour
="ppcnative" ;;
16245 if test ! -d ${aros_inc_dir} ; then
16246 ${MKDIR} ${aros_inc_dir}
16248 if test ! -d ${aros_geninc_dir} ; then
16249 ${MKDIR} ${aros_geninc_dir}
16251 if test ! -d ${aros_hostcfg_dir} ; then
16252 ${MKDIR} ${aros_hostcfg_dir}
16254 if test ! -d ${aros_targetcfg_dir} ; then
16255 ${MKDIR} ${aros_targetcfg_dir}
16257 if test ! -d ${aros_tools_dir} ; then
16258 ${MKDIR} ${aros_tools_dir}
16260 if test ! -d ${aros_scripts_dir} ; then
16261 ${MKDIR} ${aros_scripts_dir}
16264 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
16267 # Generic build tools (metamake, etc)
16268 ac_config_commands
="$ac_config_commands genmf-executable-support"
16270 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 tools/collect-aros/env.h"
16274 ac_config_commands
="$ac_config_commands binutils-support"
16276 if test "${use_ld_wrapper}" = "yes"; then
16277 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"
16280 # Bare Elf support script and spec
16281 if test "${use_kernel_cc_wrapper}" = "yes"; then
16282 ac_config_commands
="$ac_config_commands elf-compiler-support"
16284 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"
16288 # Host compiler support scripts and spec
16289 if test "${aros_target_toolchain}" = "no"; then
16290 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
16292 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"
16297 if test "$aros_target_variant" == "android"; then
16298 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
16303 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
16306 cat >confcache
<<\_ACEOF
16307 # This file is a shell script that caches the results of configure
16308 # tests run on this system so they can be shared between configure
16309 # scripts and configure runs, see configure's option --config-cache.
16310 # It is not useful on other systems. If it contains results you don't
16311 # want to keep, you may remove or edit it.
16313 # config.status only pays attention to the cache file if you give it
16314 # the --recheck option to rerun configure.
16316 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16317 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16318 # following values.
16322 # The following way of writing the cache mishandles newlines in values,
16323 # but we know of no workaround that is simple, portable, and efficient.
16324 # So, we kill variables containing newlines.
16325 # Ultrix sh set writes to stderr and can't be redirected directly,
16326 # and sets the high bit in the cache file unless we assign to the vars.
16328 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16329 eval ac_val
=\$
$ac_var
16333 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16334 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16337 _ | IFS | as_nl
) ;; #(
16338 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16339 *) { eval $ac_var=; unset $ac_var;} ;;
16345 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16346 *${as_nl}ac_space
=\
*)
16347 # `set' does not quote correctly, so add quotes: double-quote
16348 # substitution turns \\\\ into \\, and sed turns \\ into \.
16351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16354 # `set' quotes correctly as required by POSIX, so do not add quotes.
16355 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16364 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16366 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16368 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16369 if test -w "$cache_file"; then
16370 if test "x$cache_file" != "x/dev/null"; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16372 $as_echo "$as_me: updating cache $cache_file" >&6;}
16373 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16374 cat confcache
>"$cache_file"
16376 case $cache_file in #(
16378 mv -f confcache
"$cache_file"$$
&&
16379 mv -f "$cache_file"$$
"$cache_file" ;; #(
16381 mv -f confcache
"$cache_file" ;;
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16387 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16392 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16393 # Let make expand exec_prefix.
16394 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16396 DEFS
=-DHAVE_CONFIG_H
16401 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16402 # 1. Remove the extension, and $U if already installed.
16403 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16404 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16405 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16406 # will be set to the directory where LIBOBJS objects are built.
16407 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16408 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16410 LIBOBJS
=$ac_libobjs
16412 LTLIBOBJS
=$ac_ltlibobjs
16416 : "${CONFIG_STATUS=./config.status}"
16418 ac_clean_files_save
=$ac_clean_files
16419 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16421 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16423 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16425 # Generated by $as_me.
16426 # Run this file to recreate the current configuration.
16427 # Compiler output produced by configure, useful for debugging
16428 # configure, is in config.log if it exists.
16431 ac_cs_recheck=false
16434 SHELL=\${CONFIG_SHELL-$SHELL}
16437 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16438 ## -------------------- ##
16439 ## M4sh Initialization. ##
16440 ## -------------------- ##
16442 # Be more Bourne compatible
16443 DUALCASE
=1; export DUALCASE
# for MKS sh
16444 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16447 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16448 # is contrary to our usage. Disable this feature.
16449 alias -g '${1+"$@"}'='"$@"'
16450 setopt NO_GLOB_SUBST
16452 case `(set -o) 2>/dev/null` in #(
16464 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16465 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16466 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16467 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16468 # Prefer a ksh shell builtin over an external printf program on Solaris,
16469 # but without wasting forks for bash or zsh.
16470 if test -z "$BASH_VERSION$ZSH_VERSION" \
16471 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16472 as_echo='print
-r --'
16473 as_echo_n='print
-rn --'
16474 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16475 as_echo='printf %s
\n'
16476 as_echo_n='printf %s
'
16478 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16479 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16480 as_echo_n='/usr
/ucb
/echo -n'
16482 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16483 as_echo_n_body='eval
16487 expr "X$arg" : "X\\(.*\\)$as_nl";
16488 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16490 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16492 export as_echo_n_body
16493 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16495 export as_echo_body
16496 as_echo='sh
-c $as_echo_body as_echo
'
16499 # The user is always right.
16500 if test "${PATH_SEPARATOR+set}" != set; then
16502 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16503 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16510 # We need space, tab and new line, in precisely that order. Quoting is
16511 # there to prevent editors from complaining about space-tab.
16512 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16513 # splitting by setting IFS to empty value.)
16516 # Find who we are. Look in the path if we contain no directory separator.
16519 *[\\/]* ) as_myself=$0 ;;
16520 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16521 for as_dir in $PATH
16524 test -z "$as_dir" && as_dir=.
16525 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16531 # We did not find ourselves, most probably we were run as `sh COMMAND'
16532 # in which case we are not to be found in the path.
16533 if test "x$as_myself" = x
; then
16536 if test ! -f "$as_myself"; then
16537 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16541 # Unset variables that we do not need and which cause bugs (e.g. in
16542 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16543 # suppresses any "Segmentation fault" message there. '((' could
16544 # trigger a bug in pdksh 5.2.14.
16545 for as_var
in BASH_ENV ENV MAIL MAILPATH
16546 do eval test x\
${$as_var+set} = xset \
16547 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16560 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16563 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16564 # ----------------------------------------
16565 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16566 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16567 # script with STATUS, using 1 if that was 0.
16570 as_status
=$1; test $as_status -eq 0 && as_status
=1
16572 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16573 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16575 $as_echo "$as_me: error: $2" >&2
16576 as_fn_exit
$as_status
16580 # as_fn_set_status STATUS
16581 # -----------------------
16582 # Set $? to STATUS, without forking.
16583 as_fn_set_status
()
16586 } # as_fn_set_status
16588 # as_fn_exit STATUS
16589 # -----------------
16590 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16594 as_fn_set_status
$1
16600 # Portably unset VAR.
16603 { eval $1=; unset $1;}
16605 as_unset
=as_fn_unset
16606 # as_fn_append VAR VALUE
16607 # ----------------------
16608 # Append the text in VALUE to the end of the definition contained in VAR. Take
16609 # advantage of any shell optimizations that allow amortized linear growth over
16610 # repeated appends, instead of the typical quadratic growth present in naive
16612 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16613 eval 'as_fn_append ()
16624 # as_fn_arith ARG...
16625 # ------------------
16626 # Perform arithmetic evaluation on the ARGs, and store the result in the
16627 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16628 # must be portable across $(()) and expr.
16629 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16630 eval 'as_fn_arith ()
16637 as_val
=`expr "$@" || test $? -eq 1`
16642 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16643 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16649 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16650 as_basename
=basename
16655 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16661 as_me
=`$as_basename -- "$0" ||
16662 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16663 X"$0" : 'X\(//\)$' \| \
16664 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16666 sed '/^.*\/\([^/][^/]*\)\/*$/{
16680 # Avoid depending upon Character Ranges.
16681 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16682 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16683 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16684 as_cr_digits
='0123456789'
16685 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16687 ECHO_C
= ECHO_N
= ECHO_T
=
16688 case `echo -n x` in #(((((
16690 case `echo 'xy\c'` in
16691 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16693 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16700 rm -f conf$$ conf$$.exe conf$$.
file
16701 if test -d conf$$.dir
; then
16702 rm -f conf$$.dir
/conf$$.
file
16705 mkdir conf$$.dir
2>/dev
/null
16707 if (echo >conf$$.
file) 2>/dev
/null
; then
16708 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16710 # ... but there are two gotchas:
16711 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16712 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16713 # In both cases, we have to default to `cp -pR'.
16714 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16716 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16724 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16725 rmdir conf$$.dir
2>/dev
/null
16730 # Create "$as_dir" as a directory, including parents if necessary.
16735 -*) as_dir
=.
/$as_dir;;
16737 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16741 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16742 *) as_qdir
=$as_dir;;
16744 as_dirs
="'$as_qdir' $as_dirs"
16745 as_dir
=`$as_dirname -- "$as_dir" ||
16746 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16747 X"$as_dir" : 'X\(//\)[^/]' \| \
16748 X"$as_dir" : 'X\(//\)$' \| \
16749 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16750 $as_echo X"$as_dir" |
16751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16755 /^X\(\/\/\)[^/].*/{
16768 test -d "$as_dir" && break
16770 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16771 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16775 if mkdir
-p .
2>/dev
/null
; then
16776 as_mkdir_p
='mkdir -p "$as_dir"'
16778 test -d .
/-p && rmdir .
/-p
16783 # as_fn_executable_p FILE
16784 # -----------------------
16785 # Test if FILE is an executable regular file.
16786 as_fn_executable_p
()
16788 test -f "$1" && test -x "$1"
16789 } # as_fn_executable_p
16790 as_test_x
='test -x'
16791 as_executable_p
=as_fn_executable_p
16793 # Sed expression to map a string onto a valid CPP name.
16794 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16796 # Sed expression to map a string onto a valid variable name.
16797 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16801 ## ----------------------------------- ##
16802 ## Main body of $CONFIG_STATUS script. ##
16803 ## ----------------------------------- ##
16805 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16808 # Save the log message, to keep $0 and so on meaningful, and to
16809 # report actual input values of CONFIG_FILES etc. instead of their
16810 # values after options handling.
16812 This file was extended by $as_me, which was
16813 generated by GNU Autoconf 2.69. Invocation command line was
16815 CONFIG_FILES = $CONFIG_FILES
16816 CONFIG_HEADERS = $CONFIG_HEADERS
16817 CONFIG_LINKS = $CONFIG_LINKS
16818 CONFIG_COMMANDS = $CONFIG_COMMANDS
16821 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16826 case $ac_config_files in *"
16827 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16830 case $ac_config_headers in *"
16831 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16836 # Files that config.status was made for.
16837 config_files="$ac_config_files"
16838 config_headers="$ac_config_headers"
16839 config_commands="$ac_config_commands"
16843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16845 \`$as_me' instantiates files and other configuration actions
16846 from templates according to the current configuration. Unless the files
16847 and actions are specified as TAGs, all are instantiated by default.
16849 Usage: $0 [OPTION]... [TAG]...
16851 -h, --help print this help, then exit
16852 -V, --version print version number and configuration settings, then exit
16853 --config print configuration, then exit
16854 -q, --quiet, --silent
16855 do not print progress messages
16856 -d, --debug don't remove temporary files
16857 --recheck update $as_me by reconfiguring in the same conditions
16858 --file=FILE[:TEMPLATE]
16859 instantiate the configuration file FILE
16860 --header=FILE[:TEMPLATE]
16861 instantiate the configuration header FILE
16863 Configuration files:
16866 Configuration headers:
16869 Configuration commands:
16872 Report bugs to the package provider."
16875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16876 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16879 configured by $0, generated by GNU Autoconf 2.69,
16880 with options \\"\$ac_cs_config\\"
16882 Copyright (C) 2012 Free Software Foundation, Inc.
16883 This config.status script is free software; the Free Software Foundation
16884 gives unlimited permission to copy, distribute and modify it."
16888 test -n "\$AWK" || AWK=awk
16891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16892 # The default lists apply if the user does not specify any file.
16898 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16899 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16903 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16915 # Handling of the options.
16916 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16918 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16919 $as_echo "$ac_cs_version"; exit ;;
16920 --config |
--confi |
--conf |
--con |
--co |
--c )
16921 $as_echo "$ac_cs_config"; exit ;;
16922 --debug |
--debu |
--deb |
--de |
--d |
-d )
16924 --file |
--fil |
--fi |
--f )
16927 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16928 '') as_fn_error $?
"missing file argument" ;;
16930 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16931 ac_need_defaults
=false
;;
16932 --header |
--heade |
--head |
--hea )
16935 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16937 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16938 ac_need_defaults
=false
;;
16940 # Conflict between --help and --header
16941 as_fn_error $?
"ambiguous option: \`$1'
16942 Try \`$0 --help' for more information.";;
16943 --help |
--hel |
-h )
16944 $as_echo "$ac_cs_usage"; exit ;;
16945 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16946 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16949 # This is an error.
16950 -*) as_fn_error $?
"unrecognized option: \`$1'
16951 Try \`$0 --help' for more information." ;;
16953 *) as_fn_append ac_config_targets
" $1"
16954 ac_need_defaults
=false
;;
16960 ac_configure_extra_args
=
16962 if $ac_cs_silent; then
16964 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16969 if \$ac_cs_recheck; then
16970 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16972 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16973 CONFIG_SHELL='$SHELL'
16974 export CONFIG_SHELL
16979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16983 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16984 ## Running $as_me. ##
16990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16995 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16996 aros_tools_dir=${aros_tools_dir}
17000 aros_host_exe_suffix=${aros_host_exe_suffix}
17001 aros_tools_dir=${aros_tools_dir}
17002 aros_target_cpu=${aros_target_cpu}
17003 aros_target_arch=${aros_target_arch}
17004 aros_target_suffix=${aros_target_suffix}
17005 orig_target_nm=${orig_target_nm}
17006 orig_target_as=${orig_target_as}
17007 orig_target_ar=${orig_target_ar}
17008 orig_target_ranlib=${orig_target_ranlib}
17009 orig_target_objdump=${orig_target_objdump}
17010 orig_target_objcopy=${orig_target_objcopy}
17011 orig_target_strip=${orig_target_strip}
17012 aros_kernel_ld=${aros_kernel_ld}
17016 aros_host_exe_suffix=${aros_host_exe_suffix}
17017 aros_tools_dir=${aros_tools_dir}
17018 aros_target_cpu=${aros_target_cpu}
17019 aros_target_arch=${aros_target_arch}
17020 aros_target_suffix=${aros_target_suffix}
17021 aros_kernel_ld=${aros_kernel_ld}
17025 aros_host_exe_suffix=${aros_host_exe_suffix}
17026 aros_tools_dir=${aros_tools_dir}
17027 aros_target_cpu=${aros_target_cpu}
17028 aros_target_arch=${aros_target_arch}
17029 aros_target_suffix=${aros_target_suffix}
17035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17037 # Handling of arguments.
17038 for ac_config_target
in $ac_config_targets
17040 case $ac_config_target in
17041 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
17042 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
17043 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17044 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
17045 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
17046 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
17047 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
17048 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
17049 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
17050 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
17051 "compiler/include/geninc.cfg") CONFIG_FILES
="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
17052 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
17053 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
17054 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
17055 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
17056 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
17057 "${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" ;;
17058 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
17059 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
17060 "${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" ;;
17061 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
17062 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
17063 "${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" ;;
17064 "${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" ;;
17065 "${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" ;;
17066 "${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" ;;
17067 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
17069 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17074 # If the user did not use the arguments to specify the items to instantiate,
17075 # then the envvar interface is used. Set only those that are not.
17076 # We use the long form for the default assignment because of an extremely
17077 # bizarre bug on SunOS 4.1.3.
17078 if $ac_need_defaults; then
17079 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17080 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17081 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17084 # Have a temporary directory for convenience. Make it in the build tree
17085 # simply because there is no reason against having it here, and in addition,
17086 # creating and moving files from /tmp can sometimes cause problems.
17087 # Hook for its removal unless debugging.
17088 # Note that there is a small window in which the directory will not be cleaned:
17089 # after its creation but before its name has been assigned to `$tmp'.
17093 trap 'exit_status=$?
17094 : "${ac_tmp:=$tmp}"
17095 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17097 trap 'as_fn_exit 1' 1 2 13 15
17099 # Create a (secure) tmp directory for tmp files.
17102 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17106 tmp
=.
/conf$$
-$RANDOM
17107 (umask 077 && mkdir
"$tmp")
17108 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17111 # Set up the scripts for CONFIG_FILES section.
17112 # No need to generate them if there are no CONFIG_FILES.
17113 # This happens for instance with `./config.status config.h'.
17114 if test -n "$CONFIG_FILES"; then
17117 ac_cr
=`echo X | tr X '\015'`
17118 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17119 # But we know of no other shell where ac_cr would be empty at this
17120 # point, so we can use a bashism as a fallback.
17121 if test "x$ac_cr" = x
; then
17122 eval ac_cr
=\$
\'\\r
\'
17124 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17125 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17128 ac_cs_awk_cr
=$ac_cr
17131 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17136 echo "cat >conf$$subs.awk <<_ACEOF" &&
17137 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17139 } >conf$$subs.sh ||
17140 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17141 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17143 for ac_last_try in false false false false false :; do
17144 . ./conf$$subs.sh ||
17145 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17147 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17148 if test $ac_delim_n = $ac_delim_num; then
17150 elif $ac_last_try; then
17151 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17153 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17156 rm -f conf$$subs.sh
17158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17159 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17163 s/^/S["/; s
/!.
*/"]=/
17173 s/\(.\{148\}\)..*/\1/
17175 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17180 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17187 s/\(.\{148\}\)..*/\1/
17189 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17193 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17198 ' <conf$$subs.awk | sed '
17203 ' >>$CONFIG_STATUS || ac_write_fail=1
17204 rm -f conf$$subs.awk
17205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17207 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17208 for (key in S) S_is_set[key] = 1
17214 nfields = split(line, field, "@
")
17216 len = length(field[1])
17217 for (i = 2; i < nfields; i++) {
17219 keylen = length(key)
17220 if (S_is_set[key]) {
17222 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17223 len += length(value) + length(field[++i])
17234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17235 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17236 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17239 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17240 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17243 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17244 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17245 # trailing colons and then remove the whole line if VPATH becomes empty
17246 # (actually we leave an empty line to preserve line numbers).
17247 if test "x
$srcdir" = x.; then
17248 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17267 fi # test -n "$CONFIG_FILES"
17269 # Set up the scripts for CONFIG_HEADERS section.
17270 # No need to generate them if there are no CONFIG_HEADERS.
17271 # This happens for instance with `./config.status Makefile'.
17272 if test -n "$CONFIG_HEADERS"; then
17273 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17277 # Transform confdefs.h into an awk script `defines.awk', embedded as
17278 # here-document in config.status, that substitutes the proper values into
17279 # config.h.in to produce config.h.
17281 # Create a delimiter string that does not exist in confdefs.h, to ease
17282 # handling of long lines.
17284 for ac_last_try in false false :; do
17285 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17286 if test -z "$ac_tt"; then
17288 elif $ac_last_try; then
17289 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17291 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17295 # For the awk script, D is an array of macro values keyed by name,
17296 # likewise P contains macro parameters if any. Preserve backslash
17297 # newline sequences.
17299 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17301 s/.\{148\}/&'"$ac_delim"'/g
17304 s/^[ ]*#[ ]*define[ ][ ]*/ /
17311 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17313 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17317 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17318 D["\
1"]=" \
3\\\\\\n
"\\/p
17320 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17325 s/.\{148\}/&'"$ac_delim"'/g
17330 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17333 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17335 ' <confdefs.h | sed '
17336 s/'"$ac_delim"'/"\\\
17337 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17340 for (key in D) D_is_set[key] = 1
17343 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17345 split(line, arg, " ")
17346 if (arg[1] == "#") {
17350 defundef
= substr
(arg
[1], 2)
17353 split(mac1
, mac2
, "(") #)
17355 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17356 if (D_is_set
[macro
]) {
17357 # Preserve the white space surrounding the "#".
17358 print prefix
"define", macro P
[macro
] D
[macro
]
17361 # Replace #undef with comments. This is necessary, for example,
17362 # in the case of _POSIX_SOURCE, which is predefined and required
17363 # on some systems where configure will not decide to define it.
17364 if (defundef
== "undef") {
17365 print
"/*", prefix defundef
, macro
, "*/"
17373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17374 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17375 fi # test -n "$CONFIG_HEADERS"
17378 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17383 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17385 case $ac_mode$ac_tag in
17387 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17388 :[FH
]-) ac_tag
=-:-;;
17389 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17406 -) ac_f
="$ac_tmp/stdin";;
17407 *) # Look for the file first in the build tree, then in the source tree
17408 # (if the path is not absolute). The absolute path cannot be DOS-style,
17409 # because $ac_f cannot contain `:'.
17413 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17415 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17417 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17418 as_fn_append ac_file_inputs
" '$ac_f'"
17421 # Let's still pretend it is `configure' which instantiates (i.e., don't
17422 # use $as_me), people would be surprised to read:
17423 # /* config.h. Generated by config.status. */
17424 configure_input
='Generated from '`
17425 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17427 if test x
"$ac_file" != x-
; then
17428 configure_input
="$ac_file. $configure_input"
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17430 $as_echo "$as_me: creating $ac_file" >&6;}
17432 # Neutralize special characters interpreted by sed in replacement strings.
17433 case $configure_input in #(
17434 *\
&* |
*\|
* |
*\\* )
17435 ac_sed_conf_input
=`$as_echo "$configure_input" |
17436 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17437 *) ac_sed_conf_input
=$configure_input;;
17441 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17442 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17447 ac_dir
=`$as_dirname -- "$ac_file" ||
17448 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17449 X"$ac_file" : 'X\(//\)[^/]' \| \
17450 X"$ac_file" : 'X\(//\)$' \| \
17451 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17452 $as_echo X"$ac_file" |
17453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17457 /^X\(\/\/\)[^/].*/{
17470 as_dir
="$ac_dir"; as_fn_mkdir_p
17474 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17476 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17477 # A ".." for each directory in $ac_dir_suffix.
17478 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17479 case $ac_top_builddir_sub in
17480 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17481 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17484 ac_abs_top_builddir
=$ac_pwd
17485 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17486 # for backward compatibility:
17487 ac_top_builddir
=$ac_top_build_prefix
17490 .
) # We are building in place.
17492 ac_top_srcdir
=$ac_top_builddir_sub
17493 ac_abs_top_srcdir
=$ac_pwd ;;
17494 [\\/]* | ?
:[\\/]* ) # Absolute name.
17495 ac_srcdir
=$srcdir$ac_dir_suffix;
17496 ac_top_srcdir
=$srcdir
17497 ac_abs_top_srcdir
=$srcdir ;;
17498 *) # Relative name.
17499 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17500 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17501 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17503 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17515 # If the template does not know about datarootdir, expand it.
17516 # FIXME: This hack should be removed a few years after 2.60.
17517 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17528 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17529 *datarootdir
*) ac_datarootdir_seen
=yes;;
17530 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17532 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17535 ac_datarootdir_hack='
17536 s&@datadir@&$datadir&g
17537 s&@docdir@&$docdir&g
17538 s&@infodir@&$infodir&g
17539 s&@localedir@&$localedir&g
17540 s&@mandir@&$mandir&g
17541 s&\\\${datarootdir}&$datarootdir&g' ;;
17545 # Neutralize VPATH when `$srcdir' = `.'.
17546 # Shell code in configure.ac might set extrasub.
17547 # FIXME: do we really want to maintain this feature?
17548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17549 ac_sed_extra="$ac_vpsub
17552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17554 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17555 s|@configure_input@|
$ac_sed_conf_input|
;t t
17556 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17557 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17558 s
&@srcdir@
&$ac_srcdir&;t t
17559 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17560 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17561 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17562 s
&@builddir@
&$ac_builddir&;t t
17563 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17564 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17565 $ac_datarootdir_hack
17567 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17568 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17570 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17571 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17573 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17575 which seems to be undefined. Please make sure it is defined" >&5
17576 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17577 which seems to be undefined. Please make sure it is defined" >&2;}
17579 rm -f "$ac_tmp/stdin"
17581 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17582 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17590 if test x"$ac_file" != x-; then
17592 $as_echo "/* $configure_input */" \
17593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17594 } >"$ac_tmp/config.h" \
17595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17596 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17598 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17601 mv "$ac_tmp/config.h" "$ac_file" \
17602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17605 $as_echo "/* $configure_input */" \
17606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17607 || as_fn_error $? "could not create -" "$LINENO" 5
17611 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17612 $as_echo "$as_me: executing $ac_file commands" >&6;}
17617 case $ac_file$ac_mode in
17618 "genmf-executable-support":C)
17619 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
17620 chmod a+x ${aros_tools_dir}/genmf.py
17622 "binutils-support":C)
17623 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17625 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17627 chmod a+x ${prefix2}-ld
17629 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
17630 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
17631 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
17632 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
17633 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
17634 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
17635 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
17637 "elf-compiler-support":C)
17638 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17640 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
17642 chmod a+x ${prefix2}-gcc
17644 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
17646 "host-compiler-wrapper-support":C)
17647 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17649 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17651 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
17660 ac_clean_files=$ac_clean_files_save
17662 test $ac_write_fail = 0 ||
17663 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17666 # configure is writing to config.log, and then calls config.status.
17667 # config.status does its own redirection, appending to config.log.
17668 # Unfortunately, on DOS this fails, as config.log is still kept open
17669 # by configure, so config.status won't be able to
write to it
; its
17670 # output is simply discarded. So we exec the FD to /dev/null,
17671 # effectively closing config.log, so it can be properly (re)opened and
17672 # appended to by config.status. When coming back to configure, we
17673 # need to make the FD available again.
17674 if test "$no_create" != yes; then
17676 ac_config_status_args
=
17677 test "$silent" = yes &&
17678 ac_config_status_args
="$ac_config_status_args --quiet"
17680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17683 # would make configure fail if this is the last instruction.
17684 $ac_cs_success || as_fn_exit
1
17686 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17688 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17693 #XXX compatability...
17694 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
17696 if test -n "$aros_shared_cflags" ; then
17697 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
17698 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg