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
822 arosconfig_use_libpngconfig
908 program_transform_name
921 enable_option_checking
932 with_kernel_gcc_version
935 enable_target_variant
942 enable_amigaos_compliance
943 with_kernel_toolchain_prefix
944 with_elf_toolchain_prefix
947 with_aros_toolchain_install
948 with_binutils_version
962 enable_palm_debug_hack
964 enable_nesting_supervisor
976 ac_precious_vars
='build_alias
992 # Initialize some variables set by options.
994 ac_init_version
=false
995 ac_unrecognized_opts
=
997 # The variables have the same names as the options, with
998 # dashes changed to underlines.
1006 program_transform_name
=s
,x
,x
,
1014 # Installation directory options.
1015 # These are left unexpanded so users can "make install exec_prefix=/foo"
1016 # and all the variables that are supposed to be based on exec_prefix
1017 # by default will actually change.
1018 # Use braces instead of parens because sh, perl, etc. also accept them.
1019 # (The list follows the same order as the GNU Coding Standards.)
1020 bindir
='${exec_prefix}/bin'
1021 sbindir
='${exec_prefix}/sbin'
1022 libexecdir
='${exec_prefix}/libexec'
1023 datarootdir
='${prefix}/share'
1024 datadir
='${datarootdir}'
1025 sysconfdir
='${prefix}/etc'
1026 sharedstatedir
='${prefix}/com'
1027 localstatedir
='${prefix}/var'
1028 runstatedir
='${localstatedir}/run'
1029 includedir
='${prefix}/include'
1030 oldincludedir
='/usr/include'
1031 docdir
='${datarootdir}/doc/${PACKAGE}'
1032 infodir
='${datarootdir}/info'
1037 libdir
='${exec_prefix}/lib'
1038 localedir
='${datarootdir}/locale'
1039 mandir
='${datarootdir}/man'
1045 # If the previous option needs an argument, assign it.
1046 if test -n "$ac_prev"; then
1047 eval $ac_prev=\
$ac_option
1053 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1058 # Accept the important Cygnus configure options, so we can diagnose typos.
1060 case $ac_dashdash$ac_option in
1064 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1066 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1067 bindir
=$ac_optarg ;;
1069 -build |
--build |
--buil |
--bui |
--bu)
1070 ac_prev
=build_alias
;;
1071 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1072 build_alias
=$ac_optarg ;;
1074 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1075 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1076 ac_prev
=cache_file
;;
1077 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1078 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1079 cache_file
=$ac_optarg ;;
1081 --config-cache |
-C)
1082 cache_file
=config.cache
;;
1084 -datadir |
--datadir |
--datadi |
--datad)
1086 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1087 datadir
=$ac_optarg ;;
1089 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1090 |
--dataroo |
--dataro |
--datar)
1091 ac_prev
=datarootdir
;;
1092 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1093 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1094 datarootdir
=$ac_optarg ;;
1096 -disable-* |
--disable-*)
1097 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1100 as_fn_error $?
"invalid feature name: $ac_useropt"
1101 ac_useropt_orig
=$ac_useropt
1102 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "enable_
$ac_useropt"
1107 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108 ac_unrecognized_sep
=', ';;
1110 eval enable_
$ac_useropt=no
;;
1112 -docdir |
--docdir |
--docdi |
--doc |
--do)
1114 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1115 docdir
=$ac_optarg ;;
1117 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1119 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1120 dvidir
=$ac_optarg ;;
1122 -enable-* |
--enable-*)
1123 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1126 as_fn_error $?
"invalid feature name: $ac_useropt"
1127 ac_useropt_orig
=$ac_useropt
1128 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "enable_
$ac_useropt"
1133 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134 ac_unrecognized_sep
=', ';;
1136 eval enable_
$ac_useropt=\
$ac_optarg ;;
1138 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1139 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1140 |
--exec |
--exe |
--ex)
1141 ac_prev
=exec_prefix
;;
1142 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1143 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1144 |
--exec=* |
--exe=* |
--ex=*)
1145 exec_prefix
=$ac_optarg ;;
1147 -gas |
--gas |
--ga |
--g)
1148 # Obsolete; use --with-gas.
1151 -help |
--help |
--hel |
--he |
-h)
1152 ac_init_help
=long
;;
1153 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1154 ac_init_help
=recursive
;;
1155 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1156 ac_init_help
=short
;;
1158 -host |
--host |
--hos |
--ho)
1159 ac_prev
=host_alias
;;
1160 -host=* |
--host=* |
--hos=* |
--ho=*)
1161 host_alias
=$ac_optarg ;;
1163 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1165 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1167 htmldir
=$ac_optarg ;;
1169 -includedir |
--includedir |
--includedi |
--included |
--include \
1170 |
--includ |
--inclu |
--incl |
--inc)
1171 ac_prev
=includedir
;;
1172 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1173 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1174 includedir
=$ac_optarg ;;
1176 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1178 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1179 infodir
=$ac_optarg ;;
1181 -libdir |
--libdir |
--libdi |
--libd)
1183 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1184 libdir
=$ac_optarg ;;
1186 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1187 |
--libexe |
--libex |
--libe)
1188 ac_prev
=libexecdir
;;
1189 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1190 |
--libexe=* |
--libex=* |
--libe=*)
1191 libexecdir
=$ac_optarg ;;
1193 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1194 ac_prev
=localedir
;;
1195 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1196 localedir
=$ac_optarg ;;
1198 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1199 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1200 ac_prev
=localstatedir
;;
1201 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1202 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1203 localstatedir
=$ac_optarg ;;
1205 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1207 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1208 mandir
=$ac_optarg ;;
1210 -nfp |
--nfp |
--nf)
1211 # Obsolete; use --without-fp.
1214 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1215 |
--no-cr |
--no-c |
-n)
1218 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1219 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1222 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1223 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1224 |
--oldin |
--oldi |
--old |
--ol |
--o)
1225 ac_prev
=oldincludedir
;;
1226 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1227 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1228 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1229 oldincludedir
=$ac_optarg ;;
1231 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1233 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1234 prefix
=$ac_optarg ;;
1236 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1237 |
--program-pre |
--program-pr |
--program-p)
1238 ac_prev
=program_prefix
;;
1239 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1240 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1241 program_prefix
=$ac_optarg ;;
1243 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1244 |
--program-suf |
--program-su |
--program-s)
1245 ac_prev
=program_suffix
;;
1246 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1247 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1248 program_suffix
=$ac_optarg ;;
1250 -program-transform-name |
--program-transform-name \
1251 |
--program-transform-nam |
--program-transform-na \
1252 |
--program-transform-n |
--program-transform- \
1253 |
--program-transform |
--program-transfor \
1254 |
--program-transfo |
--program-transf \
1255 |
--program-trans |
--program-tran \
1256 |
--progr-tra |
--program-tr |
--program-t)
1257 ac_prev
=program_transform_name
;;
1258 -program-transform-name=* |
--program-transform-name=* \
1259 |
--program-transform-nam=* |
--program-transform-na=* \
1260 |
--program-transform-n=* |
--program-transform-=* \
1261 |
--program-transform=* |
--program-transfor=* \
1262 |
--program-transfo=* |
--program-transf=* \
1263 |
--program-trans=* |
--program-tran=* \
1264 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1265 program_transform_name
=$ac_optarg ;;
1267 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1269 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1270 pdfdir
=$ac_optarg ;;
1272 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1274 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1277 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1278 |
-silent |
--silent |
--silen |
--sile |
--sil)
1281 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1282 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1283 |
--run |
--ru |
--r)
1284 ac_prev
=runstatedir
;;
1285 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1286 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1287 |
--run=* |
--ru=* |
--r=*)
1288 runstatedir
=$ac_optarg ;;
1290 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1292 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1294 sbindir
=$ac_optarg ;;
1296 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1297 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1298 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1300 ac_prev
=sharedstatedir
;;
1301 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1302 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1303 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1305 sharedstatedir
=$ac_optarg ;;
1307 -site |
--site |
--sit)
1309 -site=* |
--site=* |
--sit=*)
1312 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1314 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1315 srcdir
=$ac_optarg ;;
1317 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1318 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1319 ac_prev
=sysconfdir
;;
1320 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1321 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1322 sysconfdir
=$ac_optarg ;;
1324 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1325 ac_prev
=target_alias
;;
1326 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1327 target_alias
=$ac_optarg ;;
1329 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1332 -version |
--version |
--versio |
--versi |
--vers |
-V)
1333 ac_init_version
=: ;;
1336 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1339 as_fn_error $?
"invalid package name: $ac_useropt"
1340 ac_useropt_orig
=$ac_useropt
1341 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1346 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347 ac_unrecognized_sep
=', ';;
1349 eval with_
$ac_useropt=\
$ac_optarg ;;
1351 -without-* |
--without-*)
1352 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1355 as_fn_error $?
"invalid package name: $ac_useropt"
1356 ac_useropt_orig
=$ac_useropt
1357 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1362 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep
=', ';;
1365 eval with_
$ac_useropt=no
;;
1368 # Obsolete; use --with-x.
1371 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1372 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1373 ac_prev
=x_includes
;;
1374 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1375 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1376 x_includes
=$ac_optarg ;;
1378 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1379 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1380 ac_prev
=x_libraries
;;
1381 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1382 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1383 x_libraries
=$ac_optarg ;;
1385 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information"
1390 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1391 # Reject names that are not valid shell variable names.
1392 case $ac_envvar in #(
1393 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1394 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1396 eval $ac_envvar=\
$ac_optarg
1397 export $ac_envvar ;;
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1410 if test -n "$ac_prev"; then
1411 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1412 as_fn_error $?
"missing argument to $ac_option"
1415 if test -n "$ac_unrecognized_opts"; then
1416 case $enable_option_checking in
1418 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1419 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1423 # Check all directory arguments for consistency.
1424 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425 datadir sysconfdir sharedstatedir localstatedir includedir \
1426 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427 libdir localedir mandir runstatedir
1429 eval ac_val
=\$
$ac_var
1430 # Remove trailing slashes.
1433 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434 eval $ac_var=\
$ac_val;;
1436 # Be sure to have absolute directory names.
1438 [\\/$
]* | ?
:[\\/]* ) continue;;
1439 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1441 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1449 target
=$target_alias
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x
; then
1453 if test "x$build_alias" = x
; then
1454 cross_compiling
=maybe
1455 elif test "x$build_alias" != "x$host_alias"; then
1461 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1463 test "$silent" = yes && exec 6>/dev
/null
1466 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di
=`ls -di .` &&
1468 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1469 as_fn_error $?
"working directory cannot be determined"
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471 as_fn_error $?
"pwd does not report name of working directory"
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476 ac_srcdir_defaulted
=yes
1477 # Try the directory containing this script, then the parent directory.
1478 ac_confdir
=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480 X"$as_myself" : 'X\(//\)[^/]' \| \
1481 X"$as_myself" : 'X\(//\)$' \| \
1482 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1506 ac_srcdir_defaulted
=no
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1510 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1512 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1514 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1524 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1526 for ac_var
in $ac_precious_vars; do
1527 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1528 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1529 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1530 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1534 # Report the --help message.
1536 if test "$ac_init_help" = "long"; then
1537 # Omit some internal or obsolete options to make the list less imposing.
1538 # This message is too long to be a string in the A/UX 3.1 sh.
1540 \`configure' configures this package to adapt to many kinds of systems.
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE. See below for descriptions of some of the useful variables.
1547 Defaults for the options are specified in brackets.
1550 -h, --help display this help and exit
1551 --help=short display options specific to this package
1552 --help=recursive display the short help of all the included packages
1553 -V, --version display version information and exit
1554 -q, --quiet, --silent do not print \`checking ...' messages
1555 --cache-file=FILE cache test results in FILE [disabled]
1556 -C, --config-cache alias for \`--cache-file=config.cache'
1557 -n, --no-create do not create output files
1558 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1560 Installation directories:
1561 --prefix=PREFIX install architecture-independent files in PREFIX
1562 [$ac_default_prefix]
1563 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1571 For better control, use the options below.
1573 Fine tuning of the installation directories:
1574 --bindir=DIR user executables [EPREFIX/bin]
1575 --sbindir=DIR system admin executables [EPREFIX/sbin]
1576 --libexecdir=DIR program executables [EPREFIX/libexec]
1577 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1578 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1579 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1580 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1581 --libdir=DIR object code libraries [EPREFIX/lib]
1582 --includedir=DIR C header files [PREFIX/include]
1583 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1584 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1585 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1586 --infodir=DIR info documentation [DATAROOTDIR/info]
1587 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1588 --mandir=DIR man documentation [DATAROOTDIR/man]
1589 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1590 --htmldir=DIR html documentation [DOCDIR]
1591 --dvidir=DIR dvi documentation [DOCDIR]
1592 --pdfdir=DIR pdf documentation [DOCDIR]
1593 --psdir=DIR ps documentation [DOCDIR]
1599 --x-includes=DIR X include files are
in DIR
1600 --x-libraries=DIR X library files are
in DIR
1603 --build=BUILD configure
for building on BUILD
[guessed
]
1604 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1608 if test -n "$ac_init_help"; then
1613 --disable-option-checking ignore unrecognized
--enable/--with options
1614 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1615 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1616 --disable-libpng-config disable libpng-config
test and configuration
1617 --enable-lto=yes|no Enable link
time optimizations
if the target
1618 compiler supports them
(default
=no
)
1619 --enable-coverage=yes|no
1620 Enable coverage instrumentation
if the target
1621 compiler supports it
(default
=no
)
1622 --enable-build-type=TYPE
1623 Select the build
type. Available types are
:
1624 personal
, nightly
, snapshot
, milestone
, release. Do
1625 NOT use this option unless you know what you are
1626 doing
! (default
=personal
)
1627 --enable-debug=list Enable different types of debug. Commas or
1628 whitespaces can be used to separate the items
in the
1629 list. Available types of debug are
: all
, none
,
1630 messages
, stack
, mungwall
, modules
, symbols. If no
1631 list is provided
then "all" is assumed.
1633 --enable-distcc Use distcc as a front end to the compiler
1635 --enable-ccache Use ccache as a front end to the compiler
1637 --enable-target-variant=NAME
1638 Enable a specific target variant
(default
=none
)
1639 --enable-amigaos-compliance=VERSION
1640 Enforce userspace AmigaOS compliance to a specific
1641 KickStart version
(default
=none
).
1642 --disable-crosstools Do not build cross-compiler toolchain
1643 --enable-objc Enable Objectve-C support
(default
=no
)
1644 --enable-java Enable Java support
(default
=no
)
1645 --enable-includes=dir Alternative system include directory
1646 --enable-palm-debug-hack
1647 Enable palm debug output hack
in palm native
1649 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1650 --enable-nesting-supervisor
1651 Enable nesting supervisor support
in unix
1653 --disable-mmu Disable MMU support
(default
=enabled
)
1654 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1655 --enable-x11-shm use X11 shared memory
(default
=auto
)
1656 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1657 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1658 --disable-sdltest Do not try to compile and run a
test SDL program
1659 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1662 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1663 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1664 --with-c-compiler=VERSION
1665 Use specified c compiler
for building AROS
1666 --with-cxx-compiler=VERSION
1667 Use specified c
++ compiler building AROS
1668 --with-toolchain=family Which toolchain family to crosscompile with
1670 --with-kernel-gcc-version=VERSION
1671 Use gcc-VERSION
for building bootstrap
1672 --with-optimization=FLAGS
1673 Use optimization flags FLAGS
(e.g
1674 --with-optimization=-O2).
1675 --with-paranoia=(yes|no|FLAGS
)
1676 Specific compiler warning FLAGS to
enable for
1677 paranoia builds
(default
=-Wall -Werror)
1678 --with-xcode=PATH Specify XCode path
for iOS targets
1679 (default
=/Developer
).
1680 --with-sdk-version=VERSION
1681 Use iOS SDK version VERSION
(default
=4.1).
1682 --with-sdk=PATH Specify Android SDK path
1683 (default
=$default_android_sdk).
1684 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1685 --with-sdk-version=LEVEL
1686 Use Android SDK
for API LEVEL
(default
=12).
1687 --with-ndk-version=LEVEL
1688 Use Android NDK
for API LEVEL
(default
=9).
1689 --with-apk-version=(release|debug
)
1690 Which version of AROSBootstrap.apk to compile.
1691 Release version needs key
for signing
, debug version
1692 will only run
in emulator.
(default
=release
)
1693 --with-kernel-toolchain-prefix=...
1694 Specify crosscompile toolchain prefix
for kernel
1696 --with-elf-toolchain-prefix=...
1697 Specify crosscompile toolchain prefix to wrap
for
1699 --with-aros-toolchain=PREFIX
1700 Specify prebuilt AROS toolchain. Use
yes for default
1702 --with-aros-toolchain-install=DIR
1703 Where to
install or search
for cross tools binaries
1704 --with-binutils-version=VERSION
1705 Use binutils-VERSION
for building AROS
1706 --with-gcc-version=VERSION
1707 Compile gcc-VERSION
for AROS
1708 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1709 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1710 --with-float=<spec
> Specify floating point ABI
1711 (default
=$gcc_default_float_abi).
1712 --with-portssources=DIR Where to download sourcecode
for external ports
1713 --with-bootloader=NAME Use a specific bootloader
1714 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1715 --with-theme=NAME Use a specific GUI Theme
1716 --with-resolution=XRESxYRESxDEPTH
1717 Default resolution of the initial WorkbenchScreen
1718 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1719 --with-x use the X Window System
1720 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1721 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1723 Some influential environment variables
:
1724 CXX C
++ compiler
command
1725 CXXFLAGS C
++ compiler flags
1726 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1727 nonstandard directory
<lib dir
>
1728 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1729 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1730 you have headers
in a nonstandard directory
<include dir
>
1731 CC C compiler
command
1732 CFLAGS C compiler flags
1734 PYTHON the Python interpreter
1735 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1737 Use these variables to override the choices made by
`configure' or to help
1738 it to find libraries and programs with nonstandard names/locations.
1740 Report bugs to the package provider.
1745 if test "$ac_init_help" = "recursive"; then
1746 # If there are subdirs, report their specific --help.
1747 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1748 test -d "$ac_dir" ||
1749 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1756 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1757 # A ".." for each directory in $ac_dir_suffix.
1758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1759 case $ac_top_builddir_sub in
1760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1764 ac_abs_top_builddir=$ac_pwd
1765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1766 # for backward compatibility:
1767 ac_top_builddir=$ac_top_build_prefix
1770 .) # We are building in place.
1772 ac_top_srcdir=$ac_top_builddir_sub
1773 ac_abs_top_srcdir=$ac_pwd ;;
1774 [\\/]* | ?:[\\/]* ) # Absolute name.
1775 ac_srcdir=$srcdir$ac_dir_suffix;
1776 ac_top_srcdir=$srcdir
1777 ac_abs_top_srcdir=$srcdir ;;
1779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1780 ac_top_srcdir=$ac_top_build_prefix$srcdir
1781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1785 cd "$ac_dir" || { ac_status=$?; continue; }
1786 # Check for guested configure.
1787 if test -f "$ac_srcdir/configure.gnu"; then
1789 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1790 elif test -f "$ac_srcdir/configure"; then
1792 $SHELL "$ac_srcdir/configure" --help=recursive
1794 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1796 cd "$ac_pwd" || { ac_status=$?; break; }
1800 test -n "$ac_init_help" && exit $ac_status
1801 if $ac_init_version; then
1804 generated by GNU Autoconf 2.69
1806 Copyright (C) 2012 Free Software Foundation, Inc.
1807 This configure script is free software; the Free Software Foundation
1808 gives unlimited permission to copy, distribute and modify it.
1813 ## ------------------------ ##
1814 ## Autoconf initialization. ##
1815 ## ------------------------ ##
1817 # ac_fn_cxx_try_compile LINENO
1818 # ----------------------------
1819 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_cxx_try_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext
1824 if { { ac_try="$ac_compile"
1826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1827 *) ac_try_echo
=$ac_try;;
1829 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_compile") 2>conftest.err
1833 if test -s conftest.err
; then
1834 grep -v '^ *+' conftest.err
>conftest.er1
1835 cat conftest.er1
>&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_cxx_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest.
$ac_objext; then :
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.
$ac_ext >&5
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status
$ac_retval
1853 } # ac_fn_cxx_try_compile
1855 # ac_fn_c_try_compile LINENO
1856 # --------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_c_try_compile
()
1860 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1861 rm -f conftest.
$ac_objext
1862 if { { ac_try
="$ac_compile"
1864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext; then :
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_c_try_compile
1893 # ac_fn_c_try_cpp LINENO
1894 # ----------------------
1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1902 *) ac_try_echo
=$ac_try;;
1904 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1908 if test -s conftest.err
; then
1909 grep -v '^ *+' conftest.err
>conftest.er1
1910 cat conftest.er1
>&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } > conftest.i
&& {
1915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.
$ac_ext >&5
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status
$ac_retval
1930 # ac_fn_c_try_link LINENO
1931 # -----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1935 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1936 rm -f conftest.
$ac_objext conftest
$ac_exeext
1937 if { { ac_try
="$ac_link"
1939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_c_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 test -x conftest$ac_exeext
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1974 } # ac_fn_c_try_link
1976 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1977 # -------------------------------------------------------
1978 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1979 # the include files in INCLUDES and setting the cache variable VAR
1981 ac_fn_c_check_header_mongrel ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if eval \${$3+:} false; then :
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1994 # Is the header compilable?
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1996 $as_echo_n "checking $2 usability... " >&6; }
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_header_compiler=yes
2005 ac_header_compiler=no
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2009 $as_echo "$ac_header_compiler" >&6; }
2011 # Is the header present?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2013 $as_echo_n "checking $2 presence... " >&6; }
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2018 if ac_fn_c_try_cpp "$LINENO"; then :
2019 ac_header_preproc=yes
2021 ac_header_preproc=no
2023 rm -f conftest.err conftest.i conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2025 $as_echo "$ac_header_preproc" >&6; }
2027 # So? What about this header?
2028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2031 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2037 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2039 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2041 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2043 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2053 eval "$3=\$ac_header_compiler"
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_header_mongrel
2063 # ac_fn_c_try_run LINENO
2064 # ----------------------
2065 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2066 # that executables *can* be run.
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_link"
2072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2073 *) ac_try_echo
=$ac_try;;
2075 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_link") 2>&5
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2081 { { case "(($ac_try" in
2082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086 $as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_try") 2>&5
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; }; }; then :
2093 $as_echo "$as_me: program exited with status $ac_status" >&5
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2097 ac_retval=$ac_status
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 as_fn_set_status $ac_retval
2105 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2106 # -------------------------------------------------------
2107 # Tests whether HEADER exists and can be compiled using the include files in
2108 # INCLUDES, setting the cache variable VAR accordingly.
2109 ac_fn_c_check_header_compile ()
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if eval \${$3+:} false; then :
2115 $as_echo_n "(cached) " >&6
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2122 if ac_fn_c_try_compile "$LINENO"; then :
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 } # ac_fn_c_check_header_compile
2136 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2137 # ----------------------------------------------------
2138 # Tries to find if the field MEMBER exists in type AGGR, after including
2139 # INCLUDES, setting cache variable VAR accordingly.
2140 ac_fn_c_check_member ()
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2144 $as_echo_n "checking for $2.$3... " >&6; }
2145 if eval \${$4+:} false; then :
2146 $as_echo_n "(cached) " >&6
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2161 if ac_fn_c_try_compile "$LINENO"; then :
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2171 if (sizeof ac_aggr.$3)
2177 if ac_fn_c_try_compile "$LINENO"; then :
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_member
2193 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2194 # ---------------------------------------------
2195 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2197 ac_fn_c_check_decl ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2201 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2203 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2204 if eval \${$3+:} false; then :
2205 $as_echo_n "(cached) " >&6
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2213 #ifndef $as_decl_name
2215 (void) $as_decl_use;
2217 (void) $as_decl_name;
2225 if ac_fn_c_try_compile "$LINENO"; then :
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234 $as_echo "$ac_res" >&6; }
2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237 } # ac_fn_c_check_decl
2239 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2240 # -------------------------------------------
2241 # Tests whether TYPE exists after having included INCLUDES, setting cache
2242 # variable VAR accordingly.
2243 ac_fn_c_check_type ()
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247 $as_echo_n "checking for $2... " >&6; }
2248 if eval \${$3+:} false; then :
2249 $as_echo_n "(cached) " >&6
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2277 if ac_fn_c_try_compile "$LINENO"; then :
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 } # ac_fn_c_check_type
2293 # ac_fn_c_check_func LINENO FUNC VAR
2294 # ----------------------------------
2295 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2296 ac_fn_c_check_func ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2300 $as_echo_n "checking for $2... " >&6; }
2301 if eval \${$3+:} false; then :
2302 $as_echo_n "(cached) " >&6
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2306 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2308 #define $2 innocuous_$2
2310 /* System header to define __stub macros and hopefully few prototypes,
2311 which can conflict with char $2 (); below.
2312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2313 <limits.h> exists even on freestanding compilers. */
2316 # include <limits.h>
2318 # include <assert.h>
2323 /* Override any GCC internal prototype to avoid an error.
2324 Use char because int might match the return type of a GCC
2325 builtin and then its argument prototype would still apply. */
2330 /* The GNU C library defines this for functions which it implements
2331 to always fail with ENOSYS. Some functions are actually named
2332 something starting with __ and the normal name is an alias. */
2333 #if defined __stub_$2 || defined __stub___$2
2345 if ac_fn_c_try_link "$LINENO"; then :
2350 rm -f core conftest.err conftest.$ac_objext \
2351 conftest$ac_exeext conftest.$ac_ext
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2355 $as_echo "$ac_res" >&6; }
2356 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2358 } # ac_fn_c_check_func
2359 cat >config.log <<_ACEOF
2360 This file contains any messages produced by compilers while
2361 running configure, to aid debugging if configure makes a mistake.
2363 It was created by $as_me, which was
2364 generated by GNU Autoconf 2.69. Invocation command line was
2376 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2377 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2378 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2379 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2380 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2382 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2383 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2385 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2386 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2387 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2388 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2389 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2390 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2391 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 $as_echo "PATH: $as_dir"
2416 # Keep a trace of the command line.
2417 # Strip out --no-create and --no-recursion so they do not pile up.
2418 # Strip out --silent because we don't want to record it for future runs.
2419 # Also quote any args containing shell meta-characters.
2420 # Make two passes to allow for proper duplicate-argument suppression.
2424 ac_must_keep_next=false
2430 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2432 | -silent | --silent | --silen | --sile | --sil)
2435 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2438 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2440 as_fn_append ac_configure_args1 " '$ac_arg'"
2441 if test $ac_must_keep_next = true; then
2442 ac_must_keep_next=false # Got value, back to normal.
2445 *=* | --config-cache | -C | -disable-* | --disable-* \
2446 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2447 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2448 | -with-* | --with-* | -without-* | --without-* | --x)
2449 case "$ac_configure_args0 " in
2450 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2453 -* ) ac_must_keep_next=true ;;
2456 as_fn_append ac_configure_args " '$ac_arg'"
2461 { ac_configure_args0=; unset ac_configure_args0;}
2462 { ac_configure_args1=; unset ac_configure_args1;}
2464 # When interrupted or exit'd, cleanup temporary files, and complete
2465 # config.log. We remove comments because anyway the quotes in there
2466 # would cause problems or look ugly.
2467 # WARNING: Use '\'' to represent an apostrophe within the trap.
2468 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2469 trap 'exit_status=$?
2470 # Save into config.log some information that might help in debugging.
2474 $as_echo "## ---------------- ##
2475 ## Cache variables. ##
2476 ## ---------------- ##"
2478 # The following way of writing the cache mishandles newlines in values,
2480 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2481 eval ac_val=\$$ac_var
2485 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2489 _ | IFS | as_nl) ;; #(
2490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2491 *) { eval $ac_var=; unset $ac_var;} ;;
2496 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2497 *${as_nl}ac_space=\ *)
2499 "s/'\''/'\''\\\\'\'''\''/g;
2500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2510 $as_echo "## ----------------- ##
2511 ## Output variables. ##
2512 ## ----------------- ##"
2514 for ac_var in $ac_subst_vars
2516 eval ac_val=\$$ac_var
2518 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2520 $as_echo "$ac_var='\''$ac_val'\''"
2524 if test -n "$ac_subst_files"; then
2525 $as_echo "## ------------------- ##
2526 ## File substitutions. ##
2527 ## ------------------- ##"
2529 for ac_var in $ac_subst_files
2531 eval ac_val=\$$ac_var
2533 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2535 $as_echo "$ac_var='\''$ac_val'\''"
2540 if test -s confdefs.h; then
2541 $as_echo "## ----------- ##
2548 test "$ac_signal" != 0 &&
2549 $as_echo "$as_me: caught signal $ac_signal"
2550 $as_echo "$as_me: exit $exit_status"
2552 rm -f core *.core core.conftest.* &&
2553 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2556 for ac_signal in 1 2 13 15; do
2557 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2562 rm -f -r conftest* confdefs.h
2564 $as_echo "/* confdefs.h */" > confdefs.h
2566 # Predefined preprocessor variables.
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_NAME "$PACKAGE_NAME"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_STRING "$PACKAGE_STRING"
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_URL "$PACKAGE_URL"
2593 # Let the site file select an alternate cache file if it wants to.
2594 # Prefer an explicitly selected file to automatically selected ones.
2597 if test -n "$CONFIG_SITE"; then
2598 # We do not want a PATH search for config.site.
2599 case $CONFIG_SITE in #((
2600 -*) ac_site_file1=./$CONFIG_SITE;;
2601 */*) ac_site_file1=$CONFIG_SITE;;
2602 *) ac_site_file1=./$CONFIG_SITE;;
2604 elif test "x$prefix" != xNONE; then
2605 ac_site_file1=$prefix/share/config.site
2606 ac_site_file2=$prefix/etc/config.site
2608 ac_site_file1=$ac_default_prefix/share/config.site
2609 ac_site_file2=$ac_default_prefix/etc/config.site
2611 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2613 test "x$ac_site_file" = xNONE && continue
2614 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2616 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2617 sed 's/^/| /' "$ac_site_file" >&5
2619 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621 as_fn_error $? "failed to load site
script $ac_site_file
2622 See \
`config.log' for more details" "$LINENO" 5; }
2626 if test -r "$cache_file"; then
2627 # Some versions of bash will fail to source /dev/null (special files
2628 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2629 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2631 $as_echo "$as_me: loading cache $cache_file" >&6;}
2633 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2634 *) . "./$cache_file";;
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2639 $as_echo "$as_me: creating cache $cache_file" >&6;}
2643 as_fn_append ac_header_list " stdlib.h"
2644 as_fn_append ac_header_list " unistd.h"
2645 as_fn_append ac_header_list " sys/param.h"
2646 # Check that the precious variables saved in the cache have kept the same
2648 ac_cache_corrupted=false
2649 for ac_var in $ac_precious_vars; do
2650 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2651 eval ac_new_set=\$ac_env_${ac_var}_set
2652 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2653 eval ac_new_val=\$ac_env_${ac_var}_value
2654 case $ac_old_set,$ac_new_set in
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2657 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2658 ac_cache_corrupted=: ;;
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2661 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2662 ac_cache_corrupted=: ;;
2665 if test "x$ac_old_val" != "x$ac_new_val"; then
2666 # differences in whitespace do not lead to failure.
2667 ac_old_val_w=`echo x
$ac_old_val`
2668 ac_new_val_w=`echo x
$ac_new_val`
2669 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2671 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2672 ac_cache_corrupted=:
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2675 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2676 eval $ac_var=\$ac_old_val
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2679 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2681 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2684 # Pass precious variables to config.status.
2685 if test "$ac_new_set" = set; then
2687 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2688 *) ac_arg=$ac_var=$ac_new_val ;;
2690 case " $ac_configure_args " in
2691 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2692 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2696 if $ac_cache_corrupted; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2700 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2701 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2703 ## -------------------- ##
2704 ## Main body of script. ##
2705 ## -------------------- ##
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2717 if test -f "$ac_dir/install-sh"; then
2719 ac_install_sh="$ac_aux_dir/install-sh -c"
2721 elif test -f "$ac_dir/install.sh"; then
2723 ac_install_sh="$ac_aux_dir/install.sh -c"
2725 elif test -f "$ac_dir/shtool"; then
2727 ac_install_sh="$ac_aux_dir/shtool install -c"
2731 if test -z "$ac_aux_dir"; then
2732 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2735 # These three variables are undocumented and unsupported,
2736 # and are intended to be withdrawn in a future Autoconf release.
2737 # They can cause serious problems if a builder's source tree is in a directory
2738 # whose full name contains unusual characters.
2739 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2740 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2741 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2745 # Check what host we are running on.
2746 # If a target is not suggested, we use this one.
2747 # Note that what we call a target, Autoconf calls a host.
2748 # Make sure we can run config.sub.
2749 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2750 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2753 $as_echo_n "checking build system type... " >&6; }
2754 if ${ac_cv_build+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 ac_build_alias=$build_alias
2758 test "x$ac_build_alias" = x &&
2759 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2760 test "x$ac_build_alias" = x &&
2761 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2762 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2763 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2767 $as_echo "$ac_cv_build" >&6; }
2768 case $ac_cv_build in
2770 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2773 ac_save_IFS=$IFS; IFS='-'
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2783 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2787 $as_echo_n "checking host system type... " >&6; }
2788 if ${ac_cv_host+:} false; then :
2789 $as_echo_n "(cached) " >&6
2791 if test "x$host_alias" = x; then
2792 ac_cv_host=$ac_cv_build
2794 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2800 $as_echo "$ac_cv_host" >&6; }
2803 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2806 ac_save_IFS=$IFS; IFS='-'
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2816 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2820 # Default versions for the gnu tools we build
2821 default_toolchain_family=`cat ${srcdir}/config
/toolchain_def
`
2822 default_gcc_version=`cat ${srcdir}/config
/gcc_def
`
2823 exp_gcc_version=`cat ${srcdir}/config
/gcc_exp
`
2824 default_binutils_version=`cat ${srcdir}/config
/binutils_def
`
2825 exp_binutils_version=`cat ${srcdir}/config
/binutils_exp
`
2826 default_grub2_version="2.02"
2827 target_grub2_version=$default_grub2_version
2829 # The AROS target is slightly different to the normal GNU style
2830 # format. We don't have the middle part, and we reverse the order
2831 # of the $(CPU) and $(OS) bits.
2833 # Don't strip the version of the target yet, it might be
2834 # useful on some systems.
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2837 $as_echo_n "checking for AROS style target... " >&6; }
2839 if test "$target" = "NONE" ; then
2840 target=$host_os-$host_cpu
2842 if test "$target" = "" ; then
2843 target=$host_os-$host_cpu
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2847 $as_echo "$target" >&6; }
2849 if test "$host_os" = "mingw32" ; then
2853 # Don't know where else to put this...
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2855 $as_echo_n "checking building AROS in... " >&6; }
2856 AROS_BUILDDIR=`${PWDCMD-pwd}`
2857 AROS_BUILDDIR_UNIX=${PWD}
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2859 $as_echo "$AROS_BUILDDIR" >&6; }
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2862 $as_echo_n "checking AROS source in... " >&6; }
2863 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2866 $as_echo "$SRCDIR" >&6; }
2868 # Parse the target field into something useful.
2870 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2871 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2874 # Some debug output, to be removed again.
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2876 $as_echo_n "checking for target system (debug output)... " >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2878 $as_echo "$target_os" >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2880 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2882 $as_echo "$target_cpu" >&6; }
2884 aros_nominal_width=800
2885 aros_nominal_height=600
2886 aros_nominal_depth=4
2895 default_c_compilers="gcc clang cc"
2897 # Check whether --with-c-compiler was given.
2898 if test "${with_c_compiler+set}" = set; then :
2899 withval=$with_c_compiler; use_c_compiler="$withval"
2904 if test "$use_c_compiler" = ""; then
2905 host_c_compilers="$default_c_compilers"
2907 host_c_compilers="$use_c_compiler"
2911 default_cxx_compilers="g++ clang++ c++"
2913 # Check whether --with-cxx-compiler was given.
2914 if test "${with_cxx_compiler+set}" = set; then :
2915 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2920 if test "$use_cxx_compiler" = ""; then
2921 host_cxx_compilers="$default_cxx_compilers"
2923 host_cxx_compilers="$use_cxx_compiler"
2924 CXX=$use_cxx_compiler
2928 # The first step is to find the host binaries.
2929 # Check for a compiler.
2930 # Due to a bug in autoconf check for c++ compiler first.
2931 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2933 ac_cpp='$CXXCPP $CPPFLAGS'
2934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2937 if test -z "$CXX"; then
2938 if test -n "$CCC"; then
2941 if test -n "$ac_tool_prefix"; then
2942 for ac_prog in ${host_cxx_compilers}
2944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_CXX+:} false; then :
2949 $as_echo_n "(cached) " >&6
2951 if test -n "$CXX"; then
2952 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 if test -n "$CXX"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2974 $as_echo "$CXX" >&6; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2981 test -n "$CXX" && break
2984 if test -z "$CXX"; then
2986 for ac_prog in ${host_cxx_compilers}
2988 # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy $ac_prog; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2993 $as_echo_n "(cached) " >&6
2995 if test -n "$ac_ct_CXX"; then
2996 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_ac_ct_CXX="$ac_prog"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3016 if test -n "$ac_ct_CXX"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3018 $as_echo "$ac_ct_CXX" >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3025 test -n "$ac_ct_CXX" && break
3028 if test "x$ac_ct_CXX" = x; then
3031 case $cross_compiling:$ac_tool_warned in
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035 ac_tool_warned=yes ;;
3043 # Provide some information about the compiler.
3044 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3047 for ac_option in --version -v -V -qversion; do
3048 { { ac_try="$ac_compiler $ac_option >&5"
3050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3051 *) ac_try_echo
=$ac_try;;
3053 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3057 if test -s conftest.err
; then
3059 ... rest of stderr output deleted ...
3060 10q' conftest.err
>conftest.er1
3061 cat conftest.er1
>&5
3063 rm -f conftest.er1 conftest.err
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }
3068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3079 ac_clean_files_save
=$ac_clean_files
3080 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3081 # Try to create an executable without -o first, disregard a.out.
3082 # It will help us diagnose broken compilers, and finding out an intuition
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3085 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3086 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3088 # The possible output files:
3089 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3092 for ac_file
in $ac_files
3095 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3096 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3101 if { { ac_try
="$ac_link_default"
3103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_link_default") 2>&5
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3113 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3114 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3115 # so that the user can short-circuit this test for compilers unknown to
3117 for ac_file in $ac_files ''
3119 test -f "$ac_file" || continue
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3124 # We found the default executable, but exeext='' is most
3128 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3130 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 # We set ac_cv_exeext here because the later test for it is not
3133 # safe: cross compilers may not add the suffix if given an `-o'
3134 # argument, so we may need to know it at that point already.
3135 # Even if this section looks crufty: it has the advantage of
3142 test "$ac_cv_exeext" = no && ac_cv_exeext=
3147 if test -z "$ac_file"; then :
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 $as_echo "$as_me: failed program was:" >&5
3151 sed 's
/^
/|
/' conftest.$ac_ext >&5
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3155 as_fn_error 77 "C++ compiler cannot create executables
3156 See \`config.log
' for more details" "$LINENO" 5; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159 $as_echo "yes" >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3162 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3164 $as_echo "$ac_file" >&6; }
3165 ac_exeext=$ac_cv_exeext
3167 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3168 ac_clean_files=$ac_clean_files_save
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3170 $as_echo_n "checking for suffix of executables... " >&6; }
3171 if { { ac_try="$ac_link"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_link") 2>&5
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; then :
3182 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3183 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3184 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3186 for ac_file
in conftest.exe conftest conftest.
*; do
3187 test -f "$ac_file" ||
continue
3189 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3190 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3199 See \`config.log' for more details" "$LINENO" 5; }
3201 rm -f conftest conftest
$ac_cv_exeext
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3203 $as_echo "$ac_cv_exeext" >&6; }
3205 rm -f conftest.
$ac_ext
3206 EXEEXT
=$ac_cv_exeext
3208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3214 FILE *f = fopen ("conftest.out", "w");
3215 return ferror (f) || fclose (f) != 0;
3221 ac_clean_files
="$ac_clean_files conftest.out"
3222 # Check that the compiler produces executables we can run. If not, either
3223 # the compiler is broken, or we cross compile.
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3225 $as_echo_n "checking whether we are cross compiling... " >&6; }
3226 if test "$cross_compiling" != yes; then
3227 { { ac_try
="$ac_link"
3229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_link") 2>&5
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237 test $ac_status = 0; }
3238 if { ac_try='./conftest$ac_cv_exeext'
3239 { { case "(($ac_try" in
3240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3241 *) ac_try_echo
=$ac_try;;
3243 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_try") 2>&5
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; }; then
3251 if test "$cross_compiling" = maybe
; then
3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $?
"cannot run C++ compiled programs.
3257 If you meant to cross compile, use \`--host'.
3258 See \`config.log' for more details" "$LINENO" 5; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3263 $as_echo "$cross_compiling" >&6; }
3265 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3266 ac_clean_files
=$ac_clean_files_save
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3268 $as_echo_n "checking for suffix of object files... " >&6; }
3269 if ${ac_cv_objext+:} false
; then :
3270 $as_echo_n "(cached) " >&6
3272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3283 rm -f conftest.o conftest.obj
3284 if { { ac_try
="$ac_compile"
3286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_compile") 2>&5
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }; then :
3295 for ac_file in conftest.o conftest.obj conftest.*; do
3296 test -f "$ac_file" || continue;
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3299 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3304 $as_echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3310 See \
`config.log' for more details" "$LINENO" 5; }
3312 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3315 $as_echo "$ac_cv_objext" >&6; }
3316 OBJEXT=$ac_cv_objext
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3319 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3320 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3321 $as_echo_n "(cached) " >&6
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3337 if ac_fn_cxx_try_compile "$LINENO"; then :
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3347 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3348 if test $ac_compiler_gnu = yes; then
3353 ac_test_CXXFLAGS=${CXXFLAGS+set}
3354 ac_save_CXXFLAGS=$CXXFLAGS
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3356 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3357 if ${ac_cv_prog_cxx_g+:} false; then :
3358 $as_echo_n "(cached) " >&6
3360 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3361 ac_cxx_werror_flag=yes
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3375 if ac_fn_cxx_try_compile "$LINENO"; then :
3376 ac_cv_prog_cxx_g=yes
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3390 if ac_fn_cxx_try_compile "$LINENO"; then :
3393 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3406 if ac_fn_cxx_try_compile "$LINENO"; then :
3407 ac_cv_prog_cxx_g=yes
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3417 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3418 if test "$ac_test_CXXFLAGS" = set; then
3419 CXXFLAGS=$ac_save_CXXFLAGS
3420 elif test $ac_cv_prog_cxx_g = yes; then
3421 if test "$GXX" = yes; then
3427 if test "$GXX" = yes; then
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 # Extract the first word of "$CXX", so it can be a program name with args.
3441 set dummy $CXX; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if ${ac_cv_path_CXX+:} false; then :
3445 $as_echo_n "(cached) " >&6
3449 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 if test -n "$CXX"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3473 $as_echo "$CXX" >&6; }
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485 if test -n "$ac_tool_prefix"; then
3486 for ac_prog in ${host_c_compilers}
3488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if ${ac_cv_prog_CC+:} false; then :
3493 $as_echo_n "(cached) " >&6
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3525 test -n "$CC" && break
3528 if test -z "$CC"; then
3530 for ac_prog in ${host_c_compilers}
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3537 $as_echo_n "(cached) " >&6
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549 ac_cv_prog_ac_ct_CC="$ac_prog"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3562 $as_echo "$ac_ct_CC" >&6; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3569 test -n "$ac_ct_CC" && break
3572 if test "x$ac_ct_CC" = x; then
3575 case $cross_compiling:$ac_tool_warned in
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3579 ac_tool_warned=yes ;;
3586 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3589 See \
`config.log' for more details" "$LINENO" 5; }
3591 # Provide some information about the compiler.
3592 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3595 for ac_option in --version -v -V -qversion; do
3596 { { ac_try="$ac_compiler $ac_option >&5"
3598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3599 *) ac_try_echo
=$ac_try;;
3601 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 $as_echo "$ac_try_echo"; } >&5
3603 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3605 if test -s conftest.err
; then
3607 ... rest of stderr output deleted ...
3608 10q' conftest.err
>conftest.er1
3609 cat conftest.er1
>&5
3611 rm -f conftest.er1 conftest.err
3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613 test $ac_status = 0; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3617 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3618 if ${ac_cv_c_compiler_gnu+:} false
; then :
3619 $as_echo_n "(cached) " >&6
3621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3635 if ac_fn_c_try_compile
"$LINENO"; then :
3640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3641 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3645 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646 if test $ac_compiler_gnu = yes; then
3651 ac_test_CFLAGS
=${CFLAGS+set}
3652 ac_save_CFLAGS
=$CFLAGS
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3654 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3655 if ${ac_cv_prog_cc_g+:} false
; then :
3656 $as_echo_n "(cached) " >&6
3658 ac_save_c_werror_flag
=$ac_c_werror_flag
3659 ac_c_werror_flag
=yes
3662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3673 if ac_fn_c_try_compile
"$LINENO"; then :
3677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3688 if ac_fn_c_try_compile
"$LINENO"; then :
3691 ac_c_werror_flag
=$ac_save_c_werror_flag
3693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3704 if ac_fn_c_try_compile
"$LINENO"; then :
3707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3712 ac_c_werror_flag
=$ac_save_c_werror_flag
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3715 $as_echo "$ac_cv_prog_cc_g" >&6; }
3716 if test "$ac_test_CFLAGS" = set; then
3717 CFLAGS
=$ac_save_CFLAGS
3718 elif test $ac_cv_prog_cc_g = yes; then
3719 if test "$GCC" = yes; then
3725 if test "$GCC" = yes; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3732 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3733 if ${ac_cv_prog_cc_c89+:} false
; then :
3734 $as_echo_n "(cached) " >&6
3736 ac_cv_prog_cc_c89
=no
3738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3744 struct buf { int x; };
3745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3746 static char *e (p, i)
3752 static char *f (char * (*g) (char **, int), char **p, ...)
3757 s = g (p, va_arg (v,int));
3762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3763 function prototypes and stuff, but not '\xHH' hex character constants.
3764 These don't provoke an error unfortunately, instead are silently treated
3765 as 'x'. The following induces an error, until -std is added to get
3766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3767 array size at least. It's necessary to write '\x00'==0 to get something
3768 that's true only with -std. */
3769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3771 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3772 inside strings and character constants. */
3774 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3776 int test (int i, double x);
3777 struct s1 {int (*f) (int a);};
3778 struct s2 {int (*f) (double a);};
3779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3790 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3791 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3793 CC
="$ac_save_CC $ac_arg"
3794 if ac_fn_c_try_compile
"$LINENO"; then :
3795 ac_cv_prog_cc_c89
=$ac_arg
3797 rm -f core conftest.err conftest.
$ac_objext
3798 test "x$ac_cv_prog_cc_c89" != "xno" && break
3800 rm -f conftest.
$ac_ext
3805 case "x$ac_cv_prog_cc_c89" in
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3808 $as_echo "none needed" >&6; } ;;
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3811 $as_echo "unsupported" >&6; } ;;
3813 CC
="$CC $ac_cv_prog_cc_c89"
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3815 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3817 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3822 ac_cpp
='$CPP $CPPFLAGS'
3823 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
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
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3834 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3835 # On Suns, sometimes $CPP names a directory.
3836 if test -n "$CPP" && test -d "$CPP"; then
3839 if test -z "$CPP"; then
3840 if ${ac_cv_prog_CPP+:} false
; then :
3841 $as_echo_n "(cached) " >&6
3843 # Double quotes because CPP needs to be expanded
3844 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3847 for ac_c_preproc_warn_flag
in '' yes
3849 # Use a header file that comes with gcc, so configuring glibc
3850 # with a fresh cross-compiler works.
3851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3852 # <limits.h> exists even on freestanding compilers.
3853 # On the NeXT, cc -E runs the code through the compiler's parser,
3854 # not just through cpp. "Syntax error" is here to catch this case.
3855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3858 # include <limits.h>
3860 # include <assert.h>
3864 if ac_fn_c_try_cpp
"$LINENO"; then :
3867 # Broken: fails on valid input.
3870 rm -f conftest.err conftest.i conftest.
$ac_ext
3872 # OK, works on sane cases. Now check whether nonexistent headers
3873 # can be detected and how.
3874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876 #include <ac_nonexistent.h>
3878 if ac_fn_c_try_cpp
"$LINENO"; then :
3879 # Broken: success on invalid input.
3882 # Passes both tests.
3886 rm -f conftest.err conftest.i conftest.
$ac_ext
3889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3890 rm -f conftest.i conftest.err conftest.
$ac_ext
3891 if $ac_preproc_ok; then :
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3904 $as_echo "$CPP" >&6; }
3906 for ac_c_preproc_warn_flag
in '' yes
3908 # Use a header file that comes with gcc, so configuring glibc
3909 # with a fresh cross-compiler works.
3910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 # <limits.h> exists even on freestanding compilers.
3912 # On the NeXT, cc -E runs the code through the compiler's parser,
3913 # not just through cpp. "Syntax error" is here to catch this case.
3914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3917 # include <limits.h>
3919 # include <assert.h>
3923 if ac_fn_c_try_cpp
"$LINENO"; then :
3926 # Broken: fails on valid input.
3929 rm -f conftest.err conftest.i conftest.
$ac_ext
3931 # OK, works on sane cases. Now check whether nonexistent headers
3932 # can be detected and how.
3933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3935 #include <ac_nonexistent.h>
3937 if ac_fn_c_try_cpp
"$LINENO"; then :
3938 # Broken: success on invalid input.
3941 # Passes both tests.
3945 rm -f conftest.err conftest.i conftest.
$ac_ext
3948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3949 rm -f conftest.i conftest.err conftest.
$ac_ext
3950 if $ac_preproc_ok; then :
3953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3955 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3956 See \`config.log' for more details" "$LINENO" 5; }
3960 ac_cpp
='$CPP $CPPFLAGS'
3961 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3966 # Extract the first word of "$CC", so it can be a program name with args.
3967 set dummy
$CC; ac_word
=$2
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969 $as_echo_n "checking for $ac_word... " >&6; }
3970 if ${ac_cv_path_CC+:} false
; then :
3971 $as_echo_n "(cached) " >&6
3975 ac_cv_path_CC
="$CC" # Let the user override the test with a path.
3978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3982 test -z "$as_dir" && as_dir
=.
3983 for ac_exec_ext
in '' $ac_executable_extensions; do
3984 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3985 ac_cv_path_CC
="$as_dir/$ac_word$ac_exec_ext"
3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 if test -n "$CC"; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3999 $as_echo "$CC" >&6; }
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 $as_echo "no" >&6; }
4006 aros_host_def_cc
="$CC"
4007 case $ac_cv_prog_cc_stdc in #(
4009 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4012 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4013 if ${ac_cv_prog_cc_c99+:} false
; then :
4014 $as_echo_n "(cached) " >&6
4016 ac_cv_prog_cc_c99
=no
4018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4021 #include <stdbool.h>
4026 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4027 #define debug(...) fprintf (stderr, __VA_ARGS__)
4028 #define showlist(...) puts (#__VA_ARGS__)
4029 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4031 test_varargs_macros (void)
4036 debug ("X = %d\n", x);
4037 showlist (The first, second, and third items.);
4038 report (x>y, "x is %d but y is %d", x, y);
4041 // Check long long types.
4042 #define BIG64 18446744073709551615ull
4043 #define BIG32 4294967295ul
4044 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4046 your preprocessor is broken;
4050 your preprocessor is broken;
4052 static long long int bignum = -9223372036854775807LL;
4053 static unsigned long long int ubignum = BIG64;
4055 struct incomplete_array
4063 const wchar_t *name;
4067 typedef const char *ccp;
4070 test_restrict (ccp restrict text)
4072 // See if C++-style comments work.
4073 // Iterate through items via the restricted pointer.
4074 // Also check for declarations in for loops.
4075 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4080 // Check varargs and va_copy.
4082 test_varargs (const char *format, ...)
4085 va_start (args, format);
4087 va_copy (args_copy, args);
4098 str = va_arg (args_copy, const char *);
4101 number = va_arg (args_copy, int);
4104 fnumber = va_arg (args_copy, double);
4119 _Bool success = false;
4122 if (test_restrict ("String literal") == 0)
4124 char *restrict newvar = "Another string";
4127 test_varargs ("s, d' f .", "string", 65, 34.234);
4128 test_varargs_macros ();
4130 // Check flexible array members.
4131 struct incomplete_array *ia =
4132 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4134 for (int i = 0; i < ia->datasize; ++i)
4135 ia->data[i] = i * 1.234;
4137 // Check named initializers.
4138 struct named_init ni = {
4140 .name = L"Test wide string",
4141 .average = 543.34343,
4146 int dynamic_array[ni.number];
4147 dynamic_array[ni.number - 1] = 543;
4149 // work around unused variable warnings
4150 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4151 || dynamic_array[ni.number - 1] != 543);
4157 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4159 CC
="$ac_save_CC $ac_arg"
4160 if ac_fn_c_try_compile
"$LINENO"; then :
4161 ac_cv_prog_cc_c99
=$ac_arg
4163 rm -f core conftest.err conftest.
$ac_objext
4164 test "x$ac_cv_prog_cc_c99" != "xno" && break
4166 rm -f conftest.
$ac_ext
4171 case "x$ac_cv_prog_cc_c99" in
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4174 $as_echo "none needed" >&6; } ;;
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177 $as_echo "unsupported" >&6; } ;;
4179 CC
="$CC $ac_cv_prog_cc_c99"
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4181 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4183 if test "x$ac_cv_prog_cc_c99" != xno
; then :
4184 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4187 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4188 if ${ac_cv_prog_cc_c89+:} false
; then :
4189 $as_echo_n "(cached) " >&6
4191 ac_cv_prog_cc_c89
=no
4193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4198 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4199 struct buf { int x; };
4200 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4201 static char *e (p, i)
4207 static char *f (char * (*g) (char **, int), char **p, ...)
4212 s = g (p, va_arg (v,int));
4217 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4218 function prototypes and stuff, but not '\xHH' hex character constants.
4219 These don't provoke an error unfortunately, instead are silently treated
4220 as 'x'. The following induces an error, until -std is added to get
4221 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4222 array size at least. It's necessary to write '\x00'==0 to get something
4223 that's true only with -std. */
4224 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4226 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4227 inside strings and character constants. */
4229 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4231 int test (int i, double x);
4232 struct s1 {int (*f) (int a);};
4233 struct s2 {int (*f) (double a);};
4234 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4240 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4245 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4246 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4248 CC
="$ac_save_CC $ac_arg"
4249 if ac_fn_c_try_compile
"$LINENO"; then :
4250 ac_cv_prog_cc_c89
=$ac_arg
4252 rm -f core conftest.err conftest.
$ac_objext
4253 test "x$ac_cv_prog_cc_c89" != "xno" && break
4255 rm -f conftest.
$ac_ext
4260 case "x$ac_cv_prog_cc_c89" in
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4263 $as_echo "none needed" >&6; } ;;
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4266 $as_echo "unsupported" >&6; } ;;
4268 CC
="$CC $ac_cv_prog_cc_c89"
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4270 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4272 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4273 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4275 ac_cv_prog_cc_stdc
=no
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4282 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4283 if ${ac_cv_prog_cc_stdc+:} false
; then :
4284 $as_echo_n "(cached) " >&6
4287 case $ac_cv_prog_cc_stdc in #(
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4290 $as_echo "unsupported" >&6; } ;; #(
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4293 $as_echo "none needed" >&6; } ;; #(
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4296 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4300 ac_cpp
='$CPP $CPPFLAGS'
4301 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4305 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4306 # On Suns, sometimes $CPP names a directory.
4307 if test -n "$CPP" && test -d "$CPP"; then
4310 if test -z "$CPP"; then
4311 if ${ac_cv_prog_CPP+:} false
; then :
4312 $as_echo_n "(cached) " >&6
4314 # Double quotes because CPP needs to be expanded
4315 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4318 for ac_c_preproc_warn_flag
in '' yes
4320 # Use a header file that comes with gcc, so configuring glibc
4321 # with a fresh cross-compiler works.
4322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4323 # <limits.h> exists even on freestanding compilers.
4324 # On the NeXT, cc -E runs the code through the compiler's parser,
4325 # not just through cpp. "Syntax error" is here to catch this case.
4326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4329 # include <limits.h>
4331 # include <assert.h>
4335 if ac_fn_c_try_cpp
"$LINENO"; then :
4338 # Broken: fails on valid input.
4341 rm -f conftest.err conftest.i conftest.
$ac_ext
4343 # OK, works on sane cases. Now check whether nonexistent headers
4344 # can be detected and how.
4345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 #include <ac_nonexistent.h>
4349 if ac_fn_c_try_cpp
"$LINENO"; then :
4350 # Broken: success on invalid input.
4353 # Passes both tests.
4357 rm -f conftest.err conftest.i conftest.
$ac_ext
4360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4361 rm -f conftest.i conftest.err conftest.
$ac_ext
4362 if $ac_preproc_ok; then :
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4375 $as_echo "$CPP" >&6; }
4377 for ac_c_preproc_warn_flag
in '' yes
4379 # Use a header file that comes with gcc, so configuring glibc
4380 # with a fresh cross-compiler works.
4381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4382 # <limits.h> exists even on freestanding compilers.
4383 # On the NeXT, cc -E runs the code through the compiler's parser,
4384 # not just through cpp. "Syntax error" is here to catch this case.
4385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4388 # include <limits.h>
4390 # include <assert.h>
4394 if ac_fn_c_try_cpp
"$LINENO"; then :
4397 # Broken: fails on valid input.
4400 rm -f conftest.err conftest.i conftest.
$ac_ext
4402 # OK, works on sane cases. Now check whether nonexistent headers
4403 # can be detected and how.
4404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406 #include <ac_nonexistent.h>
4408 if ac_fn_c_try_cpp
"$LINENO"; then :
4409 # Broken: success on invalid input.
4412 # Passes both tests.
4416 rm -f conftest.err conftest.i conftest.
$ac_ext
4419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4420 rm -f conftest.i conftest.err conftest.
$ac_ext
4421 if $ac_preproc_ok; then :
4424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4427 See \`config.log' for more details" "$LINENO" 5; }
4431 ac_cpp
='$CPP $CPPFLAGS'
4432 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4437 # detect the compiler version
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which toolchain family ${CC_BASE} belongs to" >&5
4439 $as_echo_n "checking which toolchain family ${CC_BASE} belongs to... " >&6; }
4440 HOST_COMPILER_VERSION
=`"$CC" --version 2>/dev/null`
4441 if test x
"$HOST_COMPILER_VERSION" = "x"; then
4442 HOST_COMPILER_VERSION
=`"$CC" --qversion 2>/dev/null`
4444 if test x
"$HOST_COMPILER_VERSION" = "x"; then
4445 HOST_COMPILER_VERSION
=`"$CC" -V 2>/dev/null`
4448 IS_SUN_COMPILER
=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'Sun C\+\+'`
4449 if test "$IS_SUN_COMPILER" -ne "0"; then
4450 HOST_TOOLCHAIN_PREFIX
=
4451 HOST_TOOLCHAIN_SUFFIX
=
4452 HOST_TOOLCHAIN_FAMILY
=sun
4454 IS_LLVM_COMPILER
=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'LLVM|clang'`
4455 if test "$IS_LLVM_COMPILER" -ne "0"; then
4456 if test "$CC_BASE" != "gcc"; then
4457 HOST_TOOLCHAIN_PREFIX
=llvm-
4458 HOST_TOOLCHAIN_SUFFIX
="`echo $CC_BASE | sed -e \"s|clang||g\"`"
4459 HOST_TOOLCHAIN_FAMILY
=llvm
4464 if test "x$IS_GNU_COMPILER" = "x"; then
4465 IS_GNU_COMPILER
=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'gcc'`
4467 if test "$IS_GNU_COMPILER" -ne "0"; then
4468 HOST_TOOLCHAIN_PREFIX
=
4469 HOST_TOOLCHAIN_SUFFIX
=
4470 HOST_TOOLCHAIN_FAMILY
=gnu
4472 if test x
"$HOST_TOOLCHAIN_FAMILY" = "x"; then
4473 HOST_TOOLCHAIN_FAMILY
=unknown
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_TOOLCHAIN_FAMILY" >&5
4476 $as_echo "$HOST_TOOLCHAIN_FAMILY" >&6; }
4478 # Check for a compatible awk
4479 for ac_prog
in gawk nawk
4481 # Extract the first word of "$ac_prog", so it can be a program name with args.
4482 set dummy
$ac_prog; ac_word
=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if ${ac_cv_prog_AWK+:} false
; then :
4486 $as_echo_n "(cached) " >&6
4488 if test -n "$AWK"; then
4489 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir
=.
4496 for ac_exec_ext
in '' $ac_executable_extensions; do
4497 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_prog_AWK
="$ac_prog"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 if test -n "$AWK"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4511 $as_echo "$AWK" >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4518 test -n "$AWK" && break
4522 if test "$AWK" = ""; then
4525 if test "$AWK" = "no"; then
4528 if test "$req_avail" = "no"; then
4529 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4531 # Extract the first word of "mmake", so it can be a program name with args.
4532 set dummy mmake
; ac_word
=$2
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534 $as_echo_n "checking for $ac_word... " >&6; }
4535 if ${ac_cv_prog_MMAKE+:} false
; then :
4536 $as_echo_n "(cached) " >&6
4538 if test -n "$MMAKE"; then
4539 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4545 test -z "$as_dir" && as_dir
=.
4546 for ac_exec_ext
in '' $ac_executable_extensions; do
4547 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4548 ac_cv_prog_MMAKE
="mmake "
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 MMAKE
=$ac_cv_prog_MMAKE
4559 if test -n "$MMAKE"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4561 $as_echo "$MMAKE" >&6; }
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 $as_echo "no" >&6; }
4569 # Perform some default variable assignments. Note all of these will be
4570 # Regenerated from the script, so there is no need to cache them.
4572 aros_build_host
=$host
4573 aros_host_cpp
="$CPP"
4575 aros_host_cxx
="$CXX"
4576 base_ld_name
=${HOST_TOOLCHAIN_PREFIX}ld
${HOST_TOOLCHAIN_SUFFIX}
4577 if test "$HOST_TOOLCHAIN_FAMILY" = "llvm"; then
4578 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}
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy
$ac_prog; ac_word
=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_base_lld_name+:} false
; then :
4585 $as_echo_n "(cached) " >&6
4587 if test -n "$base_lld_name"; then
4588 ac_cv_prog_base_lld_name
="$base_lld_name" # Let the user override the test.
4590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4594 test -z "$as_dir" && as_dir
=.
4595 for ac_exec_ext
in '' $ac_executable_extensions; do
4596 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_base_lld_name
="$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 base_lld_name
=$ac_cv_prog_base_lld_name
4608 if test -n "$base_lld_name"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $base_lld_name" >&5
4610 $as_echo "$base_lld_name" >&6; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4617 test -n "$base_lld_name" && break
4620 base_ld_name
=$base_lld_name
4623 if test "$base_ld_name" = ""; then
4626 ac_tool_ld
=$base_ld_name
4628 if test "$GCC" = "yes"; then
4629 aros_gcc_ld
=`$CC -print-prog-name=$ac_tool_ld`
4630 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4631 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if ${ac_cv_path_aros_host_ld+:} false
; then :
4635 $as_echo_n "(cached) " >&6
4637 case $aros_host_ld in
4639 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4643 for as_dir
in `dirname $aros_gcc_ld`
4646 test -z "$as_dir" && as_dir
=.
4647 for ac_exec_ext
in '' $ac_executable_extensions; do
4648 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 aros_host_ld
=$ac_cv_path_aros_host_ld
4661 if test -n "$aros_host_ld"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4663 $as_echo "$aros_host_ld" >&6; }
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4671 if test "$aros_host_ld" = ""; then
4672 for ac_prog
in $ac_tool_ld
4674 # Extract the first word of "$ac_prog", so it can be a program name with args.
4675 set dummy
$ac_prog; ac_word
=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if ${ac_cv_path_aros_host_ld+:} false
; then :
4679 $as_echo_n "(cached) " >&6
4681 case $aros_host_ld in
4683 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir
=.
4691 for ac_exec_ext
in '' $ac_executable_extensions; do
4692 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 aros_host_ld
=$ac_cv_path_aros_host_ld
4705 if test -n "$aros_host_ld"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4707 $as_echo "$aros_host_ld" >&6; }
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4714 test -n "$aros_host_ld" && break
4720 if test "$aros_host_ld" = ""; then
4723 if test "$aros_host_ld" = "no"; then
4726 if test "$req_avail" = "no"; then
4727 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4729 aros_host_make
="make"
4730 aros_host_cflags
="$CFLAGS"
4731 aros_host_cxxflags
="$CXXFLAGS"
4732 aros_host_cppflags
="$CPPFLAGS"
4733 aros_host_ldflags
="$LDFLAGS"
4734 aros_host_debug
="-g -O0"
4735 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4736 aros_host_mkargs
="--no-print-directory"
4737 aros_host_exe_suffix
="$EXEEXT"
4738 aros_host_lib_suffix
=""
4740 # Ignore all compliance, AROS ROMs = 0
4741 # KickStart v1.0 = 30
4742 # KickStart v1.3 = 34
4743 # KickStart v2.0 = 37
4744 # KickStart v3.0 = 39
4745 # KickStart v3.1 = 40
4747 aros_amigaos_compliance
=0
4749 for ac_prog
in aclocal aclocal19 aclocal-1.9
4751 # Extract the first word of "$ac_prog", so it can be a program name with args.
4752 set dummy
$ac_prog; ac_word
=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4756 $as_echo_n "(cached) " >&6
4758 if test -n "$aros_host_aclocal"; then
4759 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4765 test -z "$as_dir" && as_dir
=.
4766 for ac_exec_ext
in '' $ac_executable_extensions; do
4767 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4768 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4779 if test -n "$aros_host_aclocal"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4781 $as_echo "$aros_host_aclocal" >&6; }
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4788 test -n "$aros_host_aclocal" && break
4791 for ac_prog
in autoconf autoconf259 autoconf253
4793 # Extract the first word of "$ac_prog", so it can be a program name with args.
4794 set dummy
$ac_prog; ac_word
=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4798 $as_echo_n "(cached) " >&6
4800 if test -n "$aros_host_autoconf"; then
4801 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4807 test -z "$as_dir" && as_dir
=.
4808 for ac_exec_ext
in '' $ac_executable_extensions; do
4809 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4810 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4821 if test -n "$aros_host_autoconf"; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4823 $as_echo "$aros_host_autoconf" >&6; }
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 $as_echo "no" >&6; }
4830 test -n "$aros_host_autoconf" && break
4833 for ac_prog
in autoheader autoheader259 autoheader253
4835 # Extract the first word of "$ac_prog", so it can be a program name with args.
4836 set dummy
$ac_prog; ac_word
=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4840 $as_echo_n "(cached) " >&6
4842 if test -n "$aros_host_autoheader"; then
4843 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4849 test -z "$as_dir" && as_dir
=.
4850 for ac_exec_ext
in '' $ac_executable_extensions; do
4851 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4852 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4863 if test -n "$aros_host_autoheader"; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4865 $as_echo "$aros_host_autoheader" >&6; }
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4872 test -n "$aros_host_autoheader" && break
4875 for ac_prog
in automake automake19 automake-1.9
4877 # Extract the first word of "$ac_prog", so it can be a program name with args.
4878 set dummy
$ac_prog; ac_word
=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4882 $as_echo_n "(cached) " >&6
4884 if test -n "$aros_host_automake"; then
4885 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4891 test -z "$as_dir" && as_dir
=.
4892 for ac_exec_ext
in '' $ac_executable_extensions; do
4893 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4894 ac_cv_prog_aros_host_automake
="$ac_prog"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 aros_host_automake
=$ac_cv_prog_aros_host_automake
4905 if test -n "$aros_host_automake"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4907 $as_echo "$aros_host_automake" >&6; }
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4914 test -n "$aros_host_automake" && break
4919 if test "$aros_host_aclocal" = ""; then
4922 if test "$aros_host_aclocal" = "no"; then
4925 if test "$req_avail" = "no"; then
4926 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4929 if test "$aros_host_automake" = ""; then
4932 if test "$aros_host_automake" = "no"; then
4935 if test "$req_avail" = "no"; then
4936 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4939 case "$aros_host_cc" in
4941 aros_host_cc_pipe
=""
4944 aros_host_cc_pipe
="-pipe"
4947 aros_host_cc_pipe
=""
4950 aros_host_cc_pipe
=""
4954 aros_kernel_cc_includes
=""
4955 aros_target_cc_includes
=""
4958 # ----------------------------------------------------------------------------------------
4959 # Host-specific defaults
4961 # This is the main host configuration section. It is where the host
4962 # can change the values of any variables it needs to change. We do
4963 # not look at anything that compiles to the target yet, we'll get
4968 aros_host_arch
="aros"
4969 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4972 aros_host_cpu
="i386"
4975 aros_host_cpu
="x86_64"
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4982 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4983 aros_host_cpu
="$host_cpu"
4989 aros_host_arch
="linux"
4990 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4991 android_build_os
="linux-x86"
4992 android_tool
="android"
4993 default_android_sdk
="/opt/android-sdk-linux_x86"
4996 aros_host_cpu
="i386"
4999 aros_host_cpu
="x86_64"
5002 aros_host_cpu
="m68k"
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5012 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5013 aros_host_cpu
="$host_cpu"
5019 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
5020 aros_host_make
="gmake"
5021 aros_host_arch
="freebsd"
5022 aros_host_cpu
="i386"
5024 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
5028 aros_object_format
="elf_i386"
5032 aros_object_format
="elf_i386_fbsd"
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
5040 $as_echo_n "checking for macOS SDK files... " >&6; }
5041 LOC
=$
( xcode-select
-p )
5042 if test $?
!= 0; then :
5043 as_fn_error $?
"XCode incorrectly configured!
5044 please run 'xcode-select --install' before
5045 re-running configure" "$LINENO" 5
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
5048 $as_echo "$LOC" >&6; }
5049 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5050 aros_host_arch
="darwin"
5052 if [ -z ${SED+x} ]; then SED
="gsed"; fi
5053 android_build_os
="darwin-x86"
5054 android_tool
="android"
5055 default_android_sdk
="/android-sdk-mac_x86"
5058 aros_host_cpu
="i386"
5061 aros_host_cpu
="x86_64"
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
5068 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
5069 aros_host_cpu
="$host_cpu"
5073 aros_host_ldflags
="$aros_host_ldflags -liconv"
5078 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5079 aros_host_make
="gmake"
5080 aros_host_arch
="dragonfly"
5083 aros_host_cpu
="i386"
5086 aros_host_cpu
="x86_64"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5090 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5091 aros_host_cpu
="$host_cpu"
5097 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5098 aros_host_make
="gmake"
5099 aros_host_arch
="netbsd"
5102 aros_host_cpu
="i386"
5105 aros_host_cpu
="m68k"
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5109 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5110 aros_host_cpu
="$host_cpu"
5113 aros_host_lib_suffix
=".0.0"
5117 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5118 aros_host_make
="gmake"
5119 aros_host_arch
="openbsd"
5122 aros_host_cpu
="i386"
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5126 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5127 aros_host_cpu
="$host_cpu"
5133 aros_host_arch
="solaris"
5134 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5137 aros_host_cpu
="i386"
5140 aros_host_cpu
="sparc"
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5144 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5145 aros_host_cpu
="$host_cpu"
5151 aros_host_arch
="morphos"
5157 aros_host_arch
="amiga"
5163 TOUCH
="/gg/bin/touch"
5166 aros_host_cpu
="m68k"
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5173 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5174 aros_host_cpu
="$host_cpu"
5180 aros_host_arch
="cygwin"
5181 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5183 android_build_os
="windows"
5184 android_tool
="android.bat"
5185 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
5189 aros_host_cpu
="i386"
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5193 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5194 aros_host_cpu
="$host_cpu"
5200 aros_host_arch
="mingw32"
5201 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5203 android_build_os
="windows"
5204 android_tool
="android.bat"
5205 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
5207 libpng_libextra
="-lws2_32"
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
5213 $as_echo_n "checking for Windows native gcc target... " >&6; }
5214 host_cpu
=`gcc -dumpmachine`
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
5216 $as_echo "$host_cpu" >&6; }
5223 aros_host_cpu
="i386"
5227 aros_host_cpu
="i386"
5231 aros_host_cpu
="x86_64"
5232 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5237 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5238 aros_host_cpu
="$host_cpu"
5243 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
5247 base_ar_name
=${HOST_TOOLCHAIN_PREFIX}ar${HOST_TOOLCHAIN_SUFFIX}
5248 # Extract the first word of "$base_ar_name", so it can be a program name with args.
5249 set dummy
$base_ar_name; ac_word
=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if ${ac_cv_prog_aros_host_cmd_ar+:} false
; then :
5253 $as_echo_n "(cached) " >&6
5255 if test -n "$aros_host_cmd_ar"; then
5256 ac_cv_prog_aros_host_cmd_ar
="$aros_host_cmd_ar" # Let the user override the test.
5258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir
=.
5263 for ac_exec_ext
in '' $ac_executable_extensions; do
5264 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5265 ac_cv_prog_aros_host_cmd_ar
="$base_ar_name cr"
5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 aros_host_cmd_ar
=$ac_cv_prog_aros_host_cmd_ar
5276 if test -n "$aros_host_cmd_ar"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_cmd_ar" >&5
5278 $as_echo "$aros_host_cmd_ar" >&6; }
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5285 # Extract the first word of "$aros_host_cmd_ar", so it can be a program name with args.
5286 set dummy
$aros_host_cmd_ar; ac_word
=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_path_aros_host_plain_ar+:} false
; then :
5290 $as_echo_n "(cached) " >&6
5292 case $aros_host_plain_ar in
5294 ac_cv_path_aros_host_plain_ar
="$aros_host_plain_ar" # Let the user override the test with a path.
5297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5301 test -z "$as_dir" && as_dir
=.
5302 for ac_exec_ext
in '' $ac_executable_extensions; do
5303 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_path_aros_host_plain_ar
="$as_dir/$ac_word$ac_exec_ext"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 test -z "$ac_cv_path_aros_host_plain_ar" && ac_cv_path_aros_host_plain_ar
="$aros_host_cmd_ar "
5316 aros_host_plain_ar
=$ac_cv_path_aros_host_plain_ar
5317 if test -n "$aros_host_plain_ar"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_plain_ar" >&5
5319 $as_echo "$aros_host_plain_ar" >&6; }
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5326 aros_host_ar
=`echo $aros_host_cmd_ar | sed -e "s|$base_ar_name|$aros_host_plain_ar|g"`
5328 if test "$aros_host_ar" = ""; then
5331 if test "$aros_host_ar" = "no"; then
5334 if test "$req_avail" = "no"; then
5335 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5337 base_ranlib_name
=${HOST_TOOLCHAIN_PREFIX}ranlib
${HOST_TOOLCHAIN_SUFFIX}
5338 # Extract the first word of "$base_ranlib_name", so it can be a program name with args.
5339 set dummy
$base_ranlib_name; ac_word
=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_path_aros_host_ranlib+:} false
; then :
5343 $as_echo_n "(cached) " >&6
5345 case $aros_host_ranlib in
5347 ac_cv_path_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test with a path.
5350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir
=.
5355 for ac_exec_ext
in '' $ac_executable_extensions; do
5356 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_path_aros_host_ranlib
="$as_dir/$ac_word$ac_exec_ext"
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 test -z "$ac_cv_path_aros_host_ranlib" && ac_cv_path_aros_host_ranlib
="$base_ranlib_name "
5369 aros_host_ranlib
=$ac_cv_path_aros_host_ranlib
5370 if test -n "$aros_host_ranlib"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5372 $as_echo "$aros_host_ranlib" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5380 if test "$aros_host_ranlib" = ""; then
5383 if test "$aros_host_ranlib" = "no"; then
5386 if test "$req_avail" = "no"; then
5387 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5389 # Extract the first word of "strip", so it can be a program name with args.
5390 set dummy strip
; ac_word
=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_aros_host_strip+:} false
; then :
5394 $as_echo_n "(cached) " >&6
5396 if test -n "$aros_host_strip"; then
5397 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
5399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5403 test -z "$as_dir" && as_dir
=.
5404 for ac_exec_ext
in '' $ac_executable_extensions; do
5405 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_aros_host_strip
="strip "
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 aros_host_strip
=$ac_cv_prog_aros_host_strip
5417 if test -n "$aros_host_strip"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5419 $as_echo "$aros_host_strip" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5427 if test "$aros_host_strip" = ""; then
5430 if test "$aros_host_strip" = "no"; then
5433 if test "$req_avail" = "no"; then
5434 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5437 # Extract the first word of "rm", so it can be a program name with args.
5438 set dummy
rm; ac_word
=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_prog_RM+:} false
; then :
5442 $as_echo_n "(cached) " >&6
5444 if test -n "$RM"; then
5445 ac_cv_prog_RM
="$RM" # Let the user override the test.
5447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5451 test -z "$as_dir" && as_dir
=.
5452 for ac_exec_ext
in '' $ac_executable_extensions; do
5453 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5454 ac_cv_prog_RM
="rm -rf"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 if test -n "$RM"; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5467 $as_echo "$RM" >&6; }
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5475 if test "$RM" = ""; then
5478 if test "$RM" = "no"; then
5481 if test "$req_avail" = "no"; then
5482 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5484 # Extract the first word of "cp", so it can be a program name with args.
5485 set dummy
cp; ac_word
=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_CP+:} false
; then :
5489 $as_echo_n "(cached) " >&6
5491 if test -n "$CP"; then
5492 ac_cv_prog_CP
="$CP" # Let the user override the test.
5494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir
=.
5499 for ac_exec_ext
in '' $ac_executable_extensions; do
5500 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 if test -n "$CP"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5514 $as_echo "$CP" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5522 if test "$CP" = ""; then
5525 if test "$CP" = "no"; then
5528 if test "$req_avail" = "no"; then
5529 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5531 # Extract the first word of "mv", so it can be a program name with args.
5532 set dummy
mv; ac_word
=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_MV+:} false
; then :
5536 $as_echo_n "(cached) " >&6
5538 if test -n "$MV"; then
5539 ac_cv_prog_MV
="$MV" # Let the user override the test.
5541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5545 test -z "$as_dir" && as_dir
=.
5546 for ac_exec_ext
in '' $ac_executable_extensions; do
5547 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 if test -n "$MV"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5561 $as_echo "$MV" >&6; }
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5569 if test "$MV" = ""; then
5572 if test "$MV" = "no"; then
5575 if test "$req_avail" = "no"; then
5576 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5578 # Extract the first word of "echo", so it can be a program name with args.
5579 set dummy
echo; ac_word
=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if ${ac_cv_prog_ECHO+:} false
; then :
5583 $as_echo_n "(cached) " >&6
5585 if test -n "$ECHO"; then
5586 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5592 test -z "$as_dir" && as_dir
=.
5593 for ac_exec_ext
in '' $ac_executable_extensions; do
5594 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5595 ac_cv_prog_ECHO
="echo "
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 ECHO
=$ac_cv_prog_ECHO
5606 if test -n "$ECHO"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5608 $as_echo "$ECHO" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5616 if test "$ECHO" = ""; then
5619 if test "$ECHO" = "no"; then
5622 if test "$req_avail" = "no"; then
5623 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5625 # Extract the first word of "mkdir", so it can be a program name with args.
5626 set dummy mkdir
; ac_word
=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if ${ac_cv_prog_MKDIR+:} false
; then :
5630 $as_echo_n "(cached) " >&6
5632 if test -n "$MKDIR"; then
5633 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5639 test -z "$as_dir" && as_dir
=.
5640 for ac_exec_ext
in '' $ac_executable_extensions; do
5641 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5642 ac_cv_prog_MKDIR
="mkdir -p"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 MKDIR
=$ac_cv_prog_MKDIR
5653 if test -n "$MKDIR"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5655 $as_echo "$MKDIR" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5663 if test "$MKDIR" = ""; then
5666 if test "$MKDIR" = "no"; then
5669 if test "$req_avail" = "no"; then
5670 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5672 # Extract the first word of "touch", so it can be a program name with args.
5673 set dummy
touch; ac_word
=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if ${ac_cv_prog_TOUCH+:} false
; then :
5677 $as_echo_n "(cached) " >&6
5679 if test -n "$TOUCH"; then
5680 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5686 test -z "$as_dir" && as_dir
=.
5687 for ac_exec_ext
in '' $ac_executable_extensions; do
5688 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5689 ac_cv_prog_TOUCH
="touch "
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 TOUCH
=$ac_cv_prog_TOUCH
5700 if test -n "$TOUCH"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5702 $as_echo "$TOUCH" >&6; }
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }
5710 if test "$TOUCH" = ""; then
5713 if test "$TOUCH" = "no"; then
5716 if test "$req_avail" = "no"; then
5717 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5719 # Extract the first word of "sort", so it can be a program name with args.
5720 set dummy
sort; ac_word
=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if ${ac_cv_prog_SORT+:} false
; then :
5724 $as_echo_n "(cached) " >&6
5726 if test -n "$SORT"; then
5727 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5733 test -z "$as_dir" && as_dir
=.
5734 for ac_exec_ext
in '' $ac_executable_extensions; do
5735 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5736 ac_cv_prog_SORT
="sort "
5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 SORT
=$ac_cv_prog_SORT
5747 if test -n "$SORT"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5749 $as_echo "$SORT" >&6; }
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5757 if test "$SORT" = ""; then
5760 if test "$SORT" = "no"; then
5763 if test "$req_avail" = "no"; then
5764 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5766 # Extract the first word of "uniq", so it can be a program name with args.
5767 set dummy
uniq; ac_word
=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if ${ac_cv_prog_UNIQ+:} false
; then :
5771 $as_echo_n "(cached) " >&6
5773 if test -n "$UNIQ"; then
5774 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5780 test -z "$as_dir" && as_dir
=.
5781 for ac_exec_ext
in '' $ac_executable_extensions; do
5782 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5783 ac_cv_prog_UNIQ
="uniq "
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 UNIQ
=$ac_cv_prog_UNIQ
5794 if test -n "$UNIQ"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5796 $as_echo "$UNIQ" >&6; }
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5804 if test "$UNIQ" = ""; then
5807 if test "$UNIQ" = "no"; then
5810 if test "$req_avail" = "no"; then
5811 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5813 # Extract the first word of "true", so it can be a program name with args.
5814 set dummy true
; ac_word
=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if ${ac_cv_prog_NOP+:} false
; then :
5818 $as_echo_n "(cached) " >&6
5820 if test -n "$NOP"; then
5821 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5827 test -z "$as_dir" && as_dir
=.
5828 for ac_exec_ext
in '' $ac_executable_extensions; do
5829 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_NOP
="true "
5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 if test -n "$NOP"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5843 $as_echo "$NOP" >&6; }
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5851 if test "$NOP" = ""; then
5854 if test "$NOP" = "no"; then
5857 if test "$req_avail" = "no"; then
5858 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5860 # Extract the first word of "cat", so it can be a program name with args.
5861 set dummy
cat; ac_word
=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if ${ac_cv_prog_CAT+:} false
; then :
5865 $as_echo_n "(cached) " >&6
5867 if test -n "$CAT"; then
5868 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5874 test -z "$as_dir" && as_dir
=.
5875 for ac_exec_ext
in '' $ac_executable_extensions; do
5876 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5877 ac_cv_prog_CAT
="cat "
5878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 if test -n "$CAT"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5890 $as_echo "$CAT" >&6; }
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5898 if test "$CAT" = ""; then
5901 if test "$CAT" = "no"; then
5904 if test "$req_avail" = "no"; then
5905 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5907 # Extract the first word of "bison", so it can be a program name with args.
5908 set dummy bison
; ac_word
=$2
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 $as_echo_n "checking for $ac_word... " >&6; }
5911 if ${ac_cv_prog_BISON+:} false
; then :
5912 $as_echo_n "(cached) " >&6
5914 if test -n "$BISON"; then
5915 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5921 test -z "$as_dir" && as_dir
=.
5922 for ac_exec_ext
in '' $ac_executable_extensions; do
5923 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5924 ac_cv_prog_BISON
="bison "
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 BISON
=$ac_cv_prog_BISON
5935 if test -n "$BISON"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5937 $as_echo "$BISON" >&6; }
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 $as_echo "no" >&6; }
5945 if test "$BISON" = ""; then
5948 if test "$BISON" = "no"; then
5951 if test "$req_avail" = "no"; then
5952 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5954 # Extract the first word of "flex", so it can be a program name with args.
5955 set dummy flex
; ac_word
=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_prog_FLEX+:} false
; then :
5959 $as_echo_n "(cached) " >&6
5961 if test -n "$FLEX"; then
5962 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir
=.
5969 for ac_exec_ext
in '' $ac_executable_extensions; do
5970 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_FLEX
="flex "
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 FLEX
=$ac_cv_prog_FLEX
5982 if test -n "$FLEX"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5984 $as_echo "$FLEX" >&6; }
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5992 if test "$FLEX" = ""; then
5995 if test "$FLEX" = "no"; then
5998 if test "$req_avail" = "no"; then
5999 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
6002 $as_echo_n "checking version of $FLEX... " >&6; }
6003 ax_cv_flex_version
="`$FLEX --version | cut -d\" \" -f2`"
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
6005 $as_echo "$ax_cv_flex_version" >&6; }
6006 # Extract the first word of "pngtopnm", so it can be a program name with args.
6007 set dummy pngtopnm
; ac_word
=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
6011 $as_echo_n "(cached) " >&6
6013 if test -n "$PNGTOPNM"; then
6014 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
6016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6020 test -z "$as_dir" && as_dir
=.
6021 for ac_exec_ext
in '' $ac_executable_extensions; do
6022 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_PNGTOPNM
="pngtopnm "
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
6034 if test -n "$PNGTOPNM"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
6036 $as_echo "$PNGTOPNM" >&6; }
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6044 if test "$PNGTOPNM" = ""; then
6047 if test "$PNGTOPNM" = "no"; then
6050 if test "$req_avail" = "no"; then
6051 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
6053 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
6054 set dummy ppmtoilbm
; ac_word
=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
6058 $as_echo_n "(cached) " >&6
6060 if test -n "$PPMTOILBM"; then
6061 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
6063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6067 test -z "$as_dir" && as_dir
=.
6068 for ac_exec_ext
in '' $ac_executable_extensions; do
6069 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6070 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
6081 if test -n "$PPMTOILBM"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
6083 $as_echo "$PPMTOILBM" >&6; }
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6091 if test "$PPMTOILBM" = ""; then
6094 if test "$PPMTOILBM" = "no"; then
6097 if test "$req_avail" = "no"; then
6098 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
6100 # Extract the first word of "sed", so it can be a program name with args.
6101 set dummy
sed; ac_word
=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if ${ac_cv_prog_SED+:} false
; then :
6105 $as_echo_n "(cached) " >&6
6107 if test -n "$SED"; then
6108 ac_cv_prog_SED
="$SED" # Let the user override the test.
6110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6114 test -z "$as_dir" && as_dir
=.
6115 for ac_exec_ext
in '' $ac_executable_extensions; do
6116 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6117 ac_cv_prog_SED
="sed "
6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 if test -n "$SED"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6130 $as_echo "$SED" >&6; }
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6138 if test "$SED" = ""; then
6141 if test "$SED" = "no"; then
6144 if test "$req_avail" = "no"; then
6145 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
6147 # Extract the first word of "chmod", so it can be a program name with args.
6148 set dummy
chmod; ac_word
=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_CHMOD+:} false
; then :
6152 $as_echo_n "(cached) " >&6
6154 if test -n "$CHMOD"; then
6155 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
6157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir
=.
6162 for ac_exec_ext
in '' $ac_executable_extensions; do
6163 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6164 ac_cv_prog_CHMOD
="chmod "
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 CHMOD
=$ac_cv_prog_CHMOD
6175 if test -n "$CHMOD"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6177 $as_echo "$CHMOD" >&6; }
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6185 if test "$CHMOD" = ""; then
6188 if test "$CHMOD" = "no"; then
6191 if test "$req_avail" = "no"; then
6192 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
6194 # Extract the first word of "patch", so it can be a program name with args.
6195 set dummy
patch; ac_word
=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if ${ac_cv_prog_PATCH+:} false
; then :
6199 $as_echo_n "(cached) " >&6
6201 if test -n "$PATCH"; then
6202 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
6204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6208 test -z "$as_dir" && as_dir
=.
6209 for ac_exec_ext
in '' $ac_executable_extensions; do
6210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6211 ac_cv_prog_PATCH
="patch "
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 PATCH
=$ac_cv_prog_PATCH
6222 if test -n "$PATCH"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
6224 $as_echo "$PATCH" >&6; }
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6232 if test "$PATCH" = ""; then
6235 if test "$PATCH" = "no"; then
6238 if test "$req_avail" = "no"; then
6239 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
6248 if test -n "$PYTHON"; then
6249 # If the user set $PYTHON, use it and don't search something else.
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
6251 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
6253 # split strings by '.' and convert to numeric. Append some zeros
6254 # because we need at least 4 digits for the hex conversion.
6255 # map returns an iterator in Python 3.0 and a list in 2.x
6256 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6258 # xrange is not present in Python 3.0 and range returns an iterator
6259 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6260 sys.exit(sys.hexversion < minverhex)"
6261 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
6262 ($PYTHON -c "$prog") >&5 2>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; then :
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6267 $as_echo "yes" >&6; }
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6271 as_fn_error $?
"Python interpreter is too old" "$LINENO" 5
6273 am_display_PYTHON
=$PYTHON
6275 # Otherwise, try each interpreter until we find one that satisfies
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
6278 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
6279 if ${am_cv_pathless_PYTHON+:} false
; then :
6280 $as_echo_n "(cached) " >&6
6283 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
6284 test "$am_cv_pathless_PYTHON" = none
&& break
6286 # split strings by '.' and convert to numeric. Append some zeros
6287 # because we need at least 4 digits for the hex conversion.
6288 # map returns an iterator in Python 3.0 and a list in 2.x
6289 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6291 # xrange is not present in Python 3.0 and range returns an iterator
6292 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6293 sys.exit(sys.hexversion < minverhex)"
6294 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
6295 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; then :
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
6304 $as_echo "$am_cv_pathless_PYTHON" >&6; }
6305 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
6306 if test "$am_cv_pathless_PYTHON" = none
; then
6309 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
6310 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if ${ac_cv_path_PYTHON+:} false
; then :
6314 $as_echo_n "(cached) " >&6
6318 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
6321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6325 test -z "$as_dir" && as_dir
=.
6326 for ac_exec_ext
in '' $ac_executable_extensions; do
6327 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6328 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
6329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 PYTHON
=$ac_cv_path_PYTHON
6340 if test -n "$PYTHON"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6342 $as_echo "$PYTHON" >&6; }
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6350 am_display_PYTHON
=$am_cv_pathless_PYTHON
6354 if test "$PYTHON" = :; then
6355 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
6360 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
6361 if ${am_cv_python_version+:} false
; then :
6362 $as_echo_n "(cached) " >&6
6364 am_cv_python_version
=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
6367 $as_echo "$am_cv_python_version" >&6; }
6368 PYTHON_VERSION
=$am_cv_python_version
6372 PYTHON_PREFIX
='${prefix}'
6374 PYTHON_EXEC_PREFIX
='${exec_prefix}'
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6379 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
6380 if ${am_cv_python_platform+:} false
; then :
6381 $as_echo_n "(cached) " >&6
6383 am_cv_python_platform
=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6386 $as_echo "$am_cv_python_platform" >&6; }
6387 PYTHON_PLATFORM
=$am_cv_python_platform
6390 # Just factor out some code duplication.
6391 am_python_setup_sysconfig
="\
6393 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6394 # with python 3.x. See automake bug#10227.
6398 can_use_sysconfig = 0
6400 can_use_sysconfig = 1
6401 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6402 # <https://github.com/pypa/virtualenv/issues/118>
6404 from platform import python_implementation
6405 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6406 can_use_sysconfig = 0
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6412 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6413 if ${am_cv_python_pythondir+:} false
; then :
6414 $as_echo_n "(cached) " >&6
6416 if test "x$prefix" = xNONE
6418 am_py_prefix
=$ac_default_prefix
6420 am_py_prefix
=$prefix
6422 am_cv_python_pythondir
=`$PYTHON -c "
6423 $am_python_setup_sysconfig
6424 if can_use_sysconfig:
6425 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6427 from distutils import sysconfig
6428 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6429 sys.stdout.write(sitedir)"`
6430 case $am_cv_python_pythondir in
6432 am__strip_prefix
=`echo "$am_py_prefix" | sed 's|.|.|g'`
6433 am_cv_python_pythondir
=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6436 case $am_py_prefix in
6439 am_cv_python_pythondir
=$PYTHON_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6447 $as_echo "$am_cv_python_pythondir" >&6; }
6448 pythondir
=$am_cv_python_pythondir
6452 pkgpythondir
=\
${pythondir}/$PACKAGE
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6456 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6457 if ${am_cv_python_pyexecdir+:} false
; then :
6458 $as_echo_n "(cached) " >&6
6460 if test "x$exec_prefix" = xNONE
6462 am_py_exec_prefix
=$am_py_prefix
6464 am_py_exec_prefix
=$exec_prefix
6466 am_cv_python_pyexecdir
=`$PYTHON -c "
6467 $am_python_setup_sysconfig
6468 if can_use_sysconfig:
6469 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6471 from distutils import sysconfig
6472 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6473 sys.stdout.write(sitedir)"`
6474 case $am_cv_python_pyexecdir in
6475 $am_py_exec_prefix*)
6476 am__strip_prefix
=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6477 am_cv_python_pyexecdir
=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6480 case $am_py_exec_prefix in
6483 am_cv_python_pyexecdir
=$PYTHON_EXEC_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6491 $as_echo "$am_cv_python_pyexecdir" >&6; }
6492 pyexecdir
=$am_cv_python_pyexecdir
6496 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
6504 # Check whether --enable-libpng-config was given.
6505 if test "${enable_libpng_config+set}" = set; then :
6506 enableval
=$enable_libpng_config;
6509 if test "$enable_libpng_config" != "no"; then
6510 # Extract the first word of "libpng-config", so it can be a program name with args.
6511 set dummy libpng-config
; ac_word
=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false
; then :
6515 $as_echo_n "(cached) " >&6
6517 if test -n "$arosconfig_use_libpngconfig"; then
6518 ac_cv_prog_arosconfig_use_libpngconfig
="$arosconfig_use_libpngconfig" # Let the user override the test.
6520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6524 test -z "$as_dir" && as_dir
=.
6525 for ac_exec_ext
in '' $ac_executable_extensions; do
6526 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6527 ac_cv_prog_arosconfig_use_libpngconfig
="yes"
6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig
="no"
6538 arosconfig_use_libpngconfig
=$ac_cv_prog_arosconfig_use_libpngconfig
6539 if test -n "$arosconfig_use_libpngconfig"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6541 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6549 if test "$arosconfig_use_libpngconfig" = "yes"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6551 $as_echo_n "checking libpng-config library... " >&6; }
6552 libpng_incdir
="`libpng-config --cflags`"
6553 libpng_libextra
="$libpng_libextra `libpng-config --ldflags`"
6554 libpng
="`libpng-config --libs`"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6556 $as_echo "$libpng" >&6; }
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6560 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6561 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6562 $as_echo_n "(cached) " >&6
6564 ac_check_lib_save_LIBS
=$LIBS
6566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6569 /* Override any GCC internal prototype to avoid an error.
6570 Use char because int might match the return type of a GCC
6571 builtin and then its argument prototype would still apply. */
6575 char png_read_png ();
6579 return png_read_png ();
6584 if ac_fn_c_try_link
"$LINENO"; then :
6585 ac_cv_lib_png_png_read_png
=yes
6587 ac_cv_lib_png_png_read_png
=no
6589 rm -f core conftest.err conftest.
$ac_objext \
6590 conftest
$ac_exeext conftest.
$ac_ext
6591 LIBS
=$ac_check_lib_save_LIBS
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6594 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6595 if test "x$ac_cv_lib_png_png_read_png" = xyes
; then :
6601 if test "$libpng_libextra" != ""; then
6602 if test "$libpng" != "no"; then
6603 libpng_libextra
="$libpng_libextra $libpng"
6608 if test "$libpng" = ""; then
6611 if test "$libpng" = "no"; then
6614 if test "$req_avail" = "no"; then
6615 as_fn_error $?
"libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6631 # Check for some includes for the X11 HIDD and the kernel
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6634 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6635 if ${ac_cv_path_GREP+:} false
; then :
6636 $as_echo_n "(cached) " >&6
6638 if test -z "$GREP"; then
6639 ac_path_GREP_found
=false
6640 # Loop through the user's path and test for each of PROGNAME-LIST
6641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6642 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6645 test -z "$as_dir" && as_dir
=.
6646 for ac_prog
in grep ggrep
; do
6647 for ac_exec_ext
in '' $ac_executable_extensions; do
6648 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6649 as_fn_executable_p
"$ac_path_GREP" ||
continue
6650 # Check for GNU ac_path_GREP and select it if it is found.
6651 # Check for GNU $ac_path_GREP
6652 case `"$ac_path_GREP" --version 2>&1` in
6654 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6657 $as_echo_n 0123456789 >"conftest.in"
6660 cat "conftest.in" "conftest.in" >"conftest.tmp"
6661 mv "conftest.tmp" "conftest.in"
6662 cp "conftest.in" "conftest.nl"
6663 $as_echo 'GREP' >> "conftest.nl"
6664 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6665 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6666 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6667 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6668 # Best one so far, save it but keep looking for a better one
6669 ac_cv_path_GREP
="$ac_path_GREP"
6670 ac_path_GREP_max
=$ac_count
6672 # 10*(2^10) chars as input seems more than enough
6673 test $ac_count -gt 10 && break
6675 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6678 $ac_path_GREP_found && break 3
6683 if test -z "$ac_cv_path_GREP"; then
6684 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6687 ac_cv_path_GREP
=$GREP
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6692 $as_echo "$ac_cv_path_GREP" >&6; }
6693 GREP
="$ac_cv_path_GREP"
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6697 $as_echo_n "checking for egrep... " >&6; }
6698 if ${ac_cv_path_EGREP+:} false
; then :
6699 $as_echo_n "(cached) " >&6
6701 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6702 then ac_cv_path_EGREP
="$GREP -E"
6704 if test -z "$EGREP"; then
6705 ac_path_EGREP_found
=false
6706 # Loop through the user's path and test for each of PROGNAME-LIST
6707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6708 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6711 test -z "$as_dir" && as_dir
=.
6712 for ac_prog
in egrep; do
6713 for ac_exec_ext
in '' $ac_executable_extensions; do
6714 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6715 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6716 # Check for GNU ac_path_EGREP and select it if it is found.
6717 # Check for GNU $ac_path_EGREP
6718 case `"$ac_path_EGREP" --version 2>&1` in
6720 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6723 $as_echo_n 0123456789 >"conftest.in"
6726 cat "conftest.in" "conftest.in" >"conftest.tmp"
6727 mv "conftest.tmp" "conftest.in"
6728 cp "conftest.in" "conftest.nl"
6729 $as_echo 'EGREP' >> "conftest.nl"
6730 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6731 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6732 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6733 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6734 # Best one so far, save it but keep looking for a better one
6735 ac_cv_path_EGREP
="$ac_path_EGREP"
6736 ac_path_EGREP_max
=$ac_count
6738 # 10*(2^10) chars as input seems more than enough
6739 test $ac_count -gt 10 && break
6741 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6744 $ac_path_EGREP_found && break 3
6749 if test -z "$ac_cv_path_EGREP"; then
6750 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6753 ac_cv_path_EGREP
=$EGREP
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6759 $as_echo "$ac_cv_path_EGREP" >&6; }
6760 EGREP
="$ac_cv_path_EGREP"
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6764 $as_echo_n "checking for ANSI C header files... " >&6; }
6765 if ${ac_cv_header_stdc+:} false
; then :
6766 $as_echo_n "(cached) " >&6
6768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6783 if ac_fn_c_try_compile
"$LINENO"; then :
6784 ac_cv_header_stdc
=yes
6786 ac_cv_header_stdc
=no
6788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6790 if test $ac_cv_header_stdc = yes; then
6791 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6798 $EGREP "memchr" >/dev
/null
2>&1; then :
6801 ac_cv_header_stdc
=no
6807 if test $ac_cv_header_stdc = yes; then
6808 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6815 $EGREP "free" >/dev
/null
2>&1; then :
6818 ac_cv_header_stdc
=no
6824 if test $ac_cv_header_stdc = yes; then
6825 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6826 if test "$cross_compiling" = yes; then :
6829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6833 #if ((' ' & 0x0FF) == 0x020)
6834 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6835 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6837 # define ISLOWER(c) \
6838 (('a' <= (c) && (c) <= 'i') \
6839 || ('j' <= (c) && (c) <= 'r') \
6840 || ('s' <= (c) && (c) <= 'z'))
6841 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6844 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6849 for (i = 0; i < 256; i++)
6850 if (XOR (islower (i), ISLOWER (i))
6851 || toupper (i) != TOUPPER (i))
6856 if ac_fn_c_try_run
"$LINENO"; then :
6859 ac_cv_header_stdc
=no
6861 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6862 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6868 $as_echo "$ac_cv_header_stdc" >&6; }
6869 if test $ac_cv_header_stdc = yes; then
6871 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6875 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6876 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6877 inttypes.h stdint.h unistd.h
6879 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6880 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6882 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6883 cat >>confdefs.h
<<_ACEOF
6884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6892 for ac_header
in sys
/ipc.h sys
/shm.h \
6893 sys
/mmap.h sys
/mman.h sysexits.h \
6894 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6897 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6898 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6899 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6900 cat >>confdefs.h
<<_ACEOF
6901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6909 for ac_header
in sys
/mount.h
6911 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6913 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6914 cat >>confdefs.h
<<_ACEOF
6915 #define HAVE_SYS_MOUNT_H 1
6922 for ac_header
in GL
/glx.h
6924 ac_fn_c_check_header_mongrel
"$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
6925 if test "x$ac_cv_header_GL_glx_h" = xyes
; then :
6926 cat >>confdefs.h
<<_ACEOF
6927 #define HAVE_GL_GLX_H 1
6929 host_feature_glx
=yes
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
6938 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
6939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6942 #define __unused __attribute__((unused))
6943 #include <sys/stat.h>
6953 if ac_fn_c_try_compile
"$LINENO"; then :
6954 host_stat_h__unused_used
=no
6956 host_stat_h__unused_used
=yes
6958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
6960 $as_echo "$host_stat_h__unused_used" >&6; }
6963 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6964 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6966 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6967 if eval \
${$as_ac_Header+:} false
; then :
6968 $as_echo_n "(cached) " >&6
6970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6972 #include <sys/types.h>
6984 if ac_fn_c_try_compile
"$LINENO"; then :
6985 eval "$as_ac_Header=yes"
6987 eval "$as_ac_Header=no"
6989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6991 eval ac_res
=\$
$as_ac_Header
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6993 $as_echo "$ac_res" >&6; }
6994 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6995 cat >>confdefs.h
<<_ACEOF
6996 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6999 ac_header_dirent
=$ac_hdr; break
7003 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7004 if test $ac_header_dirent = dirent.h
; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7006 $as_echo_n "checking for library containing opendir... " >&6; }
7007 if ${ac_cv_search_opendir+:} false
; then :
7008 $as_echo_n "(cached) " >&6
7010 ac_func_search_save_LIBS
=$LIBS
7011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7014 /* Override any GCC internal prototype to avoid an error.
7015 Use char because int might match the return type of a GCC
7016 builtin and then its argument prototype would still apply. */
7029 for ac_lib
in '' dir
; do
7030 if test -z "$ac_lib"; then
7031 ac_res
="none required"
7034 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7036 if ac_fn_c_try_link
"$LINENO"; then :
7037 ac_cv_search_opendir
=$ac_res
7039 rm -f core conftest.err conftest.
$ac_objext \
7041 if ${ac_cv_search_opendir+:} false
; then :
7045 if ${ac_cv_search_opendir+:} false
; then :
7048 ac_cv_search_opendir
=no
7051 LIBS
=$ac_func_search_save_LIBS
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7054 $as_echo "$ac_cv_search_opendir" >&6; }
7055 ac_res
=$ac_cv_search_opendir
7056 if test "$ac_res" != no
; then :
7057 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7063 $as_echo_n "checking for library containing opendir... " >&6; }
7064 if ${ac_cv_search_opendir+:} false
; then :
7065 $as_echo_n "(cached) " >&6
7067 ac_func_search_save_LIBS
=$LIBS
7068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7071 /* Override any GCC internal prototype to avoid an error.
7072 Use char because int might match the return type of a GCC
7073 builtin and then its argument prototype would still apply. */
7086 for ac_lib
in '' x
; do
7087 if test -z "$ac_lib"; then
7088 ac_res
="none required"
7091 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7093 if ac_fn_c_try_link
"$LINENO"; then :
7094 ac_cv_search_opendir
=$ac_res
7096 rm -f core conftest.err conftest.
$ac_objext \
7098 if ${ac_cv_search_opendir+:} false
; then :
7102 if ${ac_cv_search_opendir+:} false
; then :
7105 ac_cv_search_opendir
=no
7108 LIBS
=$ac_func_search_save_LIBS
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7111 $as_echo "$ac_cv_search_opendir" >&6; }
7112 ac_res
=$ac_cv_search_opendir
7113 if test "$ac_res" != no
; then :
7114 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
7121 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7122 if ${ac_cv_header_stat_broken+:} false
; then :
7123 $as_echo_n "(cached) " >&6
7125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 #include <sys/types.h>
7128 #include <sys/stat.h>
7130 #if defined S_ISBLK && defined S_IFDIR
7131 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7134 #if defined S_ISBLK && defined S_IFCHR
7135 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7138 #if defined S_ISLNK && defined S_IFREG
7139 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7142 #if defined S_ISSOCK && defined S_IFREG
7143 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7147 if ac_fn_c_try_compile
"$LINENO"; then :
7148 ac_cv_header_stat_broken
=no
7150 ac_cv_header_stat_broken
=yes
7152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
7155 $as_echo "$ac_cv_header_stat_broken" >&6; }
7156 if test $ac_cv_header_stat_broken = yes; then
7158 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7163 $as_echo_n "checking for ANSI C header files... " >&6; }
7164 if ${ac_cv_header_stdc+:} false
; then :
7165 $as_echo_n "(cached) " >&6
7167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7182 if ac_fn_c_try_compile
"$LINENO"; then :
7183 ac_cv_header_stdc
=yes
7185 ac_cv_header_stdc
=no
7187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7189 if test $ac_cv_header_stdc = yes; then
7190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197 $EGREP "memchr" >/dev
/null
2>&1; then :
7200 ac_cv_header_stdc
=no
7206 if test $ac_cv_header_stdc = yes; then
7207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7214 $EGREP "free" >/dev
/null
2>&1; then :
7217 ac_cv_header_stdc
=no
7223 if test $ac_cv_header_stdc = yes; then
7224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7225 if test "$cross_compiling" = yes; then :
7228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7232 #if ((' ' & 0x0FF) == 0x020)
7233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7236 # define ISLOWER(c) \
7237 (('a' <= (c) && (c) <= 'i') \
7238 || ('j' <= (c) && (c) <= 'r') \
7239 || ('s' <= (c) && (c) <= 'z'))
7240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7248 for (i = 0; i < 256; i++)
7249 if (XOR (islower (i), ISLOWER (i))
7250 || toupper (i) != TOUPPER (i))
7255 if ac_fn_c_try_run
"$LINENO"; then :
7258 ac_cv_header_stdc
=no
7260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7261 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7267 $as_echo "$ac_cv_header_stdc" >&6; }
7268 if test $ac_cv_header_stdc = yes; then
7270 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7275 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7276 if ${ac_cv_header_sys_wait_h+:} false
; then :
7277 $as_echo_n "(cached) " >&6
7279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281 #include <sys/types.h>
7282 #include <sys/wait.h>
7284 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7287 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7295 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7300 if ac_fn_c_try_compile
"$LINENO"; then :
7301 ac_cv_header_sys_wait_h
=yes
7303 ac_cv_header_sys_wait_h
=no
7305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7308 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7309 if test $ac_cv_header_sys_wait_h = yes; then
7311 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7316 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7317 if ${ac_cv_header_time+:} false
; then :
7318 $as_echo_n "(cached) " >&6
7320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 #include <sys/types.h>
7323 #include <sys/time.h>
7329 if ((struct tm *) 0)
7335 if ac_fn_c_try_compile
"$LINENO"; then :
7336 ac_cv_header_time
=yes
7338 ac_cv_header_time
=no
7340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7343 $as_echo "$ac_cv_header_time" >&6; }
7344 if test $ac_cv_header_time = yes; then
7346 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7350 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7351 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
7353 cat >>confdefs.h
<<_ACEOF
7354 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7358 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7363 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7364 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
7366 cat >>confdefs.h
<<_ACEOF
7367 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7371 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7374 case " $LIBOBJS " in
7375 *" fileblocks.$ac_objext "* ) ;;
7376 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
7383 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7384 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
7386 cat >>confdefs.h
<<_ACEOF
7387 #define HAVE_STRUCT_STAT_ST_RDEV 1
7391 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7397 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7398 if ${ac_cv_struct_tm+:} false
; then :
7399 $as_echo_n "(cached) " >&6
7401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403 #include <sys/types.h>
7410 int *p = &tm.tm_sec;
7416 if ac_fn_c_try_compile
"$LINENO"; then :
7417 ac_cv_struct_tm
=time.h
7419 ac_cv_struct_tm
=sys
/time.h
7421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7424 $as_echo "$ac_cv_struct_tm" >&6; }
7425 if test $ac_cv_struct_tm = sys
/time.h
; then
7427 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7431 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7432 #include <$ac_cv_struct_tm>
7435 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
7437 cat >>confdefs.h
<<_ACEOF
7438 #define HAVE_STRUCT_TM_TM_ZONE 1
7444 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7446 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7449 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7451 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
7457 cat >>confdefs.h
<<_ACEOF
7458 #define HAVE_DECL_TZNAME $ac_have_decl
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7462 $as_echo_n "checking for tzname... " >&6; }
7463 if ${ac_cv_var_tzname+:} false
; then :
7464 $as_echo_n "(cached) " >&6
7466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7469 #if !HAVE_DECL_TZNAME
7470 extern char *tzname[];
7476 return tzname[0][0];
7481 if ac_fn_c_try_link
"$LINENO"; then :
7482 ac_cv_var_tzname
=yes
7486 rm -f core conftest.err conftest.
$ac_objext \
7487 conftest
$ac_exeext conftest.
$ac_ext
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7490 $as_echo "$ac_cv_var_tzname" >&6; }
7491 if test $ac_cv_var_tzname = yes; then
7493 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7498 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7499 if test "x$ac_cv_type_off_t" = xyes
; then :
7503 cat >>confdefs.h
<<_ACEOF
7504 #define off_t long int
7509 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7510 if test "x$ac_cv_type_pid_t" = xyes
; then :
7514 cat >>confdefs.h
<<_ACEOF
7520 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7521 if test "x$ac_cv_type_size_t" = xyes
; then :
7525 cat >>confdefs.h
<<_ACEOF
7526 #define size_t unsigned int
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7532 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7533 if ${ac_cv_type_uid_t+:} false
; then :
7534 $as_echo_n "(cached) " >&6
7536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7538 #include <sys/types.h>
7541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7542 $EGREP "uid_t" >/dev
/null
2>&1; then :
7543 ac_cv_type_uid_t
=yes
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7551 $as_echo "$ac_cv_type_uid_t" >&6; }
7552 if test $ac_cv_type_uid_t = no
; then
7554 $as_echo "#define uid_t int" >>confdefs.h
7557 $as_echo "#define gid_t int" >>confdefs.h
7562 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7563 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7565 cat >>confdefs.h
<<_ACEOF
7566 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7573 # Look for some functions
7574 for ac_func
in getpagesize kqueue statfs statvfs \
7575 clone kse_create rfork_thread thr_create sa_register \
7576 getcontext makecontext setcontext sigaltstack swapcontext
7578 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7579 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7580 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7581 cat >>confdefs.h
<<_ACEOF
7582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7592 for ac_header
in $ac_header_list
7594 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7595 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7597 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7598 cat >>confdefs.h
<<_ACEOF
7599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7613 for ac_func
in getpagesize
7615 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7616 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7617 cat >>confdefs.h
<<_ACEOF
7618 #define HAVE_GETPAGESIZE 1
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7625 $as_echo_n "checking for working mmap... " >&6; }
7626 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7627 $as_echo_n "(cached) " >&6
7629 if test "$cross_compiling" = yes; then :
7630 ac_cv_func_mmap_fixed_mapped
=no
7632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7634 $ac_includes_default
7635 /* malloc might have been renamed as rpl_malloc. */
7638 /* Thanks to Mike Haertel and Jim Avera for this test.
7639 Here is a matrix of mmap possibilities:
7640 mmap private not fixed
7641 mmap private fixed at somewhere currently unmapped
7642 mmap private fixed at somewhere already mapped
7643 mmap shared not fixed
7644 mmap shared fixed at somewhere currently unmapped
7645 mmap shared fixed at somewhere already mapped
7646 For private mappings, we should verify that changes cannot be read()
7647 back from the file, nor mmap's back from the file at a different
7648 address. (There have been systems where private was not correctly
7649 implemented like the infamous i386 svr4.0, and systems where the
7650 VM page cache was not coherent with the file system buffer cache
7651 like early versions of FreeBSD and possibly contemporary NetBSD.)
7652 For shared mappings, we should conversely verify that changes get
7653 propagated back to all the places they're supposed to be.
7655 Grep wants private fixed already mapped.
7656 The main things grep needs to know about mmap are:
7657 * does it exist and is it safe to write into the mmap'd area
7658 * how to use it (BSD variants) */
7661 #include <sys/mman.h>
7663 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7667 /* This mess was copied from the GNU getpagesize.h. */
7668 #ifndef HAVE_GETPAGESIZE
7669 # ifdef _SC_PAGESIZE
7670 # define getpagesize() sysconf(_SC_PAGESIZE)
7671 # else /* no _SC_PAGESIZE */
7672 # ifdef HAVE_SYS_PARAM_H
7673 # include <sys/param.h>
7674 # ifdef EXEC_PAGESIZE
7675 # define getpagesize() EXEC_PAGESIZE
7676 # else /* no EXEC_PAGESIZE */
7678 # define getpagesize() NBPG * CLSIZE
7681 # endif /* no CLSIZE */
7682 # else /* no NBPG */
7684 # define getpagesize() NBPC
7685 # else /* no NBPC */
7687 # define getpagesize() PAGESIZE
7688 # endif /* PAGESIZE */
7689 # endif /* no NBPC */
7690 # endif /* no NBPG */
7691 # endif /* no EXEC_PAGESIZE */
7692 # else /* no HAVE_SYS_PARAM_H */
7693 # define getpagesize() 8192 /* punt totally */
7694 # endif /* no HAVE_SYS_PARAM_H */
7695 # endif /* no _SC_PAGESIZE */
7697 #endif /* no HAVE_GETPAGESIZE */
7702 char *data, *data2, *data3;
7707 pagesize = getpagesize ();
7709 /* First, make a file with some known garbage in it. */
7710 data = (char *) malloc (pagesize);
7713 for (i = 0; i < pagesize; ++i)
7714 *(data + i) = rand ();
7716 fd = creat ("conftest.mmap", 0600);
7719 if (write (fd, data, pagesize) != pagesize)
7723 /* Next, check that the tail of a page is zero-filled. File must have
7724 non-zero length, otherwise we risk SIGBUS for entire page. */
7725 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7729 if (write (fd2, cdata2, 1) != 1)
7731 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7732 if (data2 == MAP_FAILED)
7734 for (i = 0; i < pagesize; ++i)
7738 if (munmap (data2, pagesize))
7741 /* Next, try to mmap the file at a fixed address which already has
7742 something else allocated at it. If we can, also make sure that
7743 we see the same garbage. */
7744 fd = open ("conftest.mmap", O_RDWR);
7747 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7748 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7750 for (i = 0; i < pagesize; ++i)
7751 if (*(data + i) != *(data2 + i))
7754 /* Finally, make sure that changes to the mapped area do not
7755 percolate back to the file as seen by read(). (This is a bug on
7756 some variants of i386 svr4.0.) */
7757 for (i = 0; i < pagesize; ++i)
7758 *(data2 + i) = *(data2 + i) + 1;
7759 data3 = (char *) malloc (pagesize);
7762 if (read (fd, data3, pagesize) != pagesize)
7764 for (i = 0; i < pagesize; ++i)
7765 if (*(data + i) != *(data3 + i))
7773 if ac_fn_c_try_run
"$LINENO"; then :
7774 ac_cv_func_mmap_fixed_mapped
=yes
7776 ac_cv_func_mmap_fixed_mapped
=no
7778 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7779 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7784 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7785 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7787 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7790 rm -f conftest.mmap conftest.txt
7793 #-----------------------------------------------------------------------------
7796 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7797 # it switched on by default, and we use the host compiler, so it compiles AROS
7798 # code with this enabled resulting in link failures as we don't have support
7801 # We use two methods to disable it. For the host compiler (used to compile
7802 # some hosted modules), we test to see if the compiler supports stack
7803 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7804 # work on all platforms.
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fno-stack-protector" >&5
7808 $as_echo_n "checking whether ${CC_BASE} accepts -fno-stack-protector... " >&6; }
7809 save_cflags
="$CFLAGS"
7810 CFLAGS
="$CFLAGS -fno-stack-protector"
7811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7822 if ac_fn_c_try_compile
"$LINENO"; then :
7823 use_no_stack_protector
="yes"
7825 use_no_stack_protector
="no"
7827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7829 $as_echo "$use_no_stack_protector" >&6; }
7830 if test "x-$use_no_stack_protector" = "x-yes" ; then
7831 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7833 CFLAGS
="$save_cflags"
7835 #-----------------------------------------------------------------------------
7837 # Disable pointer-signedness warnings if the compiler recognises the option
7838 # (this only works for the host compiler at the moment)
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -Wno-pointer-sign" >&5
7841 $as_echo_n "checking whether ${CC_BASE} accepts -Wno-pointer-sign... " >&6; }
7842 save_cflags
="$CFLAGS"
7843 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7855 if ac_fn_c_try_compile
"$LINENO"; then :
7856 use_no_sign_warning
="yes"
7858 use_no_sign_warning
="no"
7860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7862 $as_echo "$use_no_sign_warning" >&6; }
7863 if test "x-$use_no_sign_warning" = "x-yes" ; then
7864 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7866 CFLAGS
="$save_cflags"
7868 #-----------------------------------------------------------------------------
7870 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fgnu89-inline" >&5
7873 $as_echo_n "checking whether ${CC_BASE} accepts -fgnu89-inline... " >&6; }
7874 save_cflags
="$CFLAGS"
7875 CFLAGS
="$CFLAGS -fgnu89-inline"
7876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7887 if ac_fn_c_try_compile
"$LINENO"; then :
7888 use_gnu89_inline
="yes"
7890 use_gnu89_inline
="no"
7892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7894 $as_echo "$use_gnu89_inline" >&6; }
7895 if test "x-$use_gnu89_inline" = "x-yes" ; then
7896 gnu89_inline
="-fgnu89-inline"
7898 CFLAGS
="$save_cflags"
7901 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7902 # On GCC >= 4.0 -iquote should be used
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -iquote" >&5
7905 $as_echo_n "checking whether ${CC_BASE} accepts -iquote... " >&6; }
7906 CFLAGS
="$CFLAGS -iquote."
7907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7918 if ac_fn_c_try_compile
"$LINENO"; then :
7923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7925 $as_echo "$has_iquote" >&6; }
7926 if test "x-$has_iquote" = "x-yes" ; then
7927 host_cflags_iquote
=-iquote
7928 host_cflags_iquote_end
=
7930 host_cflags_iquote
=-I
7931 host_cflags_iquote_end
=-I-
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7935 $as_echo "$as_me: Performing target configuration..." >&6;}
7940 aros_nowarn_flags
="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7948 aros_kernel_isaflags
=
7949 aros_config_cppflags
=
7951 aros_config_cxxflags
=
7952 aros_config_aflags
="$""(WARN_ALL) -x assembler-with-cpp -c"
7953 aros_config_ldflags
=""
7955 aros_shared_default
=yes
7957 aros_shared_cflags
="-fPIC"
7958 aros_shared_aflags
=""
7959 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7960 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7962 aros_kernel_ar_flags
="cr"
7963 aros_target_ar_flags
="cr"
7964 aros_target_nm_flags
="-C -ul"
7965 aros_target_strip_flags
="--strip-unneeded -R.comment"
7970 aros_target_genmap
="-Wl,-Map -Xlinker"
7972 # Native flavour stuff
7973 aros_serial_debug
="0"
7975 # Palm native flavour stuff
7976 aros_palm_debug_hack
="0"
7978 # Unix flavour stuff
7979 aros_nesting_supervisor
="0"
7981 # Collect-aros stuff: "-ius" to ignore undefined symbols
7982 ignore_undefined_symbols
=""
7984 # Check for X11 by default
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7988 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7990 # Check whether --with-toolchain was given.
7991 if test "${with_toolchain+set}" = set; then :
7992 withval
=$with_toolchain; aros_toolchain
="$withval"
7994 aros_toolchain
="$default_toolchain_family"
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7998 $as_echo "$aros_toolchain" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
8002 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
8003 # Check whether --enable-lto was given.
8004 if test "${enable_lto+set}" = set; then :
8005 enableval
=$enable_lto; aros_config_lto
="$enableval"
8007 aros_config_lto
="no"
8010 if test "$aros_config_lto" != "no"; then
8011 aros_config_lto
="yes"
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
8014 $as_echo "$aros_config_lto" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
8017 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
8018 # Check whether --enable-coverage was given.
8019 if test "${enable_coverage+set}" = set; then :
8020 enableval
=$enable_coverage; aros_config_coverage
="$enableval"
8022 aros_config_coverage
="no"
8025 if test "$aros_config_coverage" != "no"; then
8026 aros_config_coverage
="yes"
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
8029 $as_echo "$aros_config_coverage" >&6; }
8033 case "$aros_toolchain" in
8035 toolchain_c_compiler
="clang"
8036 toolchain_cxx_compiler
="clang++"
8037 toolchain_cpp_preprocessor
="clang"
8038 toolchain_cpp_opts
=" -E"
8039 toolchain_ld
="ld.lld"
8041 toolchain_as
="llvm-as"
8042 toolchain_ar
="llvm-ar"
8043 toolchain_ranlib
="llvm-ranlib"
8044 toolchain_nm
="llvm-nm"
8045 toolchain_strip
="true"
8046 toolchain_objcopy
="llvm-objcopy"
8047 toolchain_objdump
="llvm-objdump"
8049 toolchain_def_opt_lvl
="-O2"
8050 toolchain_debug_opt_lvl
="-O0"
8051 toolchain_size_opt_lvl
="-Os"
8054 toolchain_c_compiler
="gcc"
8055 toolchain_cxx_compiler
="g++"
8056 toolchain_cpp_preprocessor
="gcc"
8057 toolchain_cpp_opts
=" -E"
8060 if test "$aros_config_lto" != "yes"; then
8063 toolchain_ranlib
="ranlib"
8066 toolchain_ld
="ld.bfd"
8067 toolchain_ar
="gcc-ar"
8068 toolchain_ranlib
="gcc-ranlib"
8069 toolchain_nm
="gcc-nm"
8071 toolchain_strip
="strip"
8072 toolchain_objcopy
="objcopy"
8073 toolchain_objdump
="objdump"
8075 toolchain_def_opt_lvl
="-O2"
8076 toolchain_debug_opt_lvl
="-O0"
8077 toolchain_size_opt_lvl
="-Os"
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
8081 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
8082 toolchain_c_compiler
="cc"
8083 toolchain_cxx_compiler
="c++"
8084 toolchain_cpp_preprocessor
="cpp"
8090 toolchain_ranlib
="ranlib"
8092 toolchain_strip
="strip"
8093 toolchain_objcopy
="objcopy"
8094 toolchain_objdump
="objdump"
8098 #-----------------------------------------------------------------------------
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
8101 $as_echo_n "checking which type of build to do... " >&6; }
8102 # Check whether --enable-build_type was given.
8103 if test "${enable_build_type+set}" = set; then :
8104 enableval
=$enable_build_type; build_type
=$enableval
8106 build_type
="personal"
8110 if test "$build_type" = "nightly"; then
8111 build_type_string
="NIGHTLY"
8112 elif test "$build_type" = "snapshot"; then
8113 build_type_string
="SNAPSHOT"
8114 elif test "$build_type" = "milestone"; then
8115 build_type_string
="MILESTONE"
8116 elif test "$build_type" = "release"; then
8117 build_type_string
="RELEASE"
8119 build_type_string
="PERSONAL"
8120 build_type
="personal"
8123 aros_config_cppflags
="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
8126 $as_echo "$build_type" >&6; }
8128 #-----------------------------------------------------------------------------
8129 all_debug_types
="messages stack modules mungwall symbols"
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
8132 $as_echo_n "checking which debug types to enable... " >&6; }
8133 # Check whether --enable-debug was given.
8134 if test "${enable_debug+set}" = set; then :
8135 enableval
=$enable_debug; debug
="$enableval"
8141 if test "$debug" = "" -o "$debug" = "no"; then
8143 elif test "$debug" = "yes"; then
8147 if test "$debug" = "all" ; then
8148 debug
="messages stack modules symbols"
8149 for d
in $all_debug_types; do
8150 export aros_
${d}_debug
="1"
8153 for d
in $all_debug_types; do
8154 export aros_
${d}_debug
="0"
8158 if test "$debug" != "none"; then
8159 debug
=`echo $debug | sed s/,/\ /g`
8162 for d2
in $all_debug_types; do
8163 if test "$d2" = "$d"; then
8168 if test "$found" = "0"; then
8169 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
8171 export aros_
${d}_debug
="1"
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
8176 $as_echo "$debug" >&6; }
8178 if test "$aros_messages_debug" = "1"; then
8179 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
8181 aros_messages_debug
=""
8183 if test "$aros_symbols_debug" = "1"; then
8184 aros_symbols_debug
="-g"
8186 aros_symbols_debug
=""
8189 # These are the flags to pass when compiling debugged programs
8190 aros_debug_cppflags
="$aros_messages_debug"
8191 aros_debug_cflags
="$aros_symbols_debug"
8192 aros_debug_cxxflags
=
8193 aros_debug_aflags
=""
8194 aros_debug_ldflags
="$aros_symbols_debug"
8196 #-----------------------------------------------------------------------------
8197 # Checking for distcc and ccache.
8199 # Always apply the transforms in this particular order. Basically you should
8200 # always run 'ccache distcc compiler' in that order for the best performance.
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
8203 $as_echo_n "checking whether to enable distcc... " >&6; }
8204 # Check whether --enable-distcc was given.
8205 if test "${enable_distcc+set}" = set; then :
8206 enableval
=$enable_distcc; distcc
="$enableval"
8211 if test "$distcc" != "" -a "$distcc" != "no"; then
8212 # AC_CHECK_PROG will print out the result in this case
8213 # Extract the first word of "distcc", so it can be a program name with args.
8214 set dummy distcc
; ac_word
=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if ${ac_cv_path_DISTCC+:} false
; then :
8218 $as_echo_n "(cached) " >&6
8222 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
8225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8229 test -z "$as_dir" && as_dir
=.
8230 for ac_exec_ext
in '' $ac_executable_extensions; do
8231 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8232 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
8244 DISTCC
=$ac_cv_path_DISTCC
8245 if test -n "$DISTCC"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
8247 $as_echo "$DISTCC" >&6; }
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
8260 $as_echo_n "checking whether to enable ccache... " >&6; }
8261 # Check whether --enable-ccache was given.
8262 if test "${enable_ccache+set}" = set; then :
8263 enableval
=$enable_ccache; ccache
="$enableval"
8268 if test "$ccache" != "" -a "$ccache" != "no"; then
8269 # AC_CHECK_PROG will print out the result in this case
8270 # Extract the first word of "ccache", so it can be a program name with args.
8271 set dummy ccache
; ac_word
=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if ${ac_cv_prog_CCACHE+:} false
; then :
8275 $as_echo_n "(cached) " >&6
8277 if test -n "$CCACHE"; then
8278 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
8280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8284 test -z "$as_dir" && as_dir
=.
8285 for ac_exec_ext
in '' $ac_executable_extensions; do
8286 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_CCACHE
="ccache"
8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 CCACHE
=$ac_cv_prog_CCACHE
8298 if test -n "$CCACHE"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
8300 $as_echo "$CCACHE" >&6; }
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8312 #-----------------------------------------------------------------------------
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
8314 $as_echo_n "checking what specific host gcc version to use... " >&6; }
8316 # Check whether --with-kernel-gcc-version was given.
8317 if test "${with_kernel_gcc_version+set}" = set; then :
8318 withval
=$with_kernel_gcc_version; kernel_tool_version
="$withval"
8320 kernel_tool_version
=""
8323 if test "$kernel_tool_version" != "" ; then
8324 msg_result
=$kernel_tool_version
8326 msg_result
="default"
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8329 $as_echo "$msg_result" >&6; }
8331 #-----------------------------------------------------------------------------
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
8333 $as_echo_n "checking what optimization flags to use... " >&6; }
8335 # Check whether --with-optimization was given.
8336 if test "${with_optimization+set}" = set; then :
8337 withval
=$with_optimization; optimization_level
="$withval"
8339 optimization_level
="unknown"
8342 if test "$optimization_level" = "unknown"; then
8343 optimization
="default"
8344 if test "$debug" != "none"; then
8345 optimization_level
=$toolchain_debug_opt_lvl
8347 optimization_level
=$toolchain_def_opt_lvl
8350 optimization
="$optimization_level"
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
8353 $as_echo "$optimization" >&6; }
8355 paranoia_default
=yes
8356 #-----------------------------------------------------------------------------
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
8358 $as_echo_n "checking which paranoia flags to use... " >&6; }
8360 # Check whether --with-paranoia was given.
8361 if test "${with_paranoia+set}" = set; then :
8362 withval
=$with_paranoia; paranoia_flags
="$withval"
8364 paranoia_flags
="$paranoia_default"
8367 if test "$paranoia_flags" = "no"; then
8368 paranoia_flags
="$""(WARN_ALL) -Werror-implicit-function-declaration"
8371 if test "$paranoia_flags" = "yes"; then
8372 paranoia_flags
="$""(WARN_ALL) $""(WARN_ERROR)"
8374 msg_result
="$paranoia_flags"
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8377 $as_echo "$msg_result" >&6; }
8378 aros_warn_flags
="$aros_warn_flags $paranoia_flags"
8380 #-----------------------------------------------------------------------------
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
8382 $as_echo_n "checking what target variant to enable... " >&6; }
8383 # Check whether --enable-target_variant was given.
8384 if test "${enable_target_variant+set}" = set; then :
8385 enableval
=$enable_target_variant; target_variant
=$enableval
8390 if test "$target_variant" = ""; then
8391 aros_target_variant
=""
8392 aros_target_suffix
=""
8395 aros_target_variant
="$target_variant"
8396 aros_target_suffix
="-$target_variant"
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8399 $as_echo "$enableval" >&6; }
8401 #-----------------------------------------------------------------------------
8402 # Target-specific defaults. You can override then on a per-target basis.
8404 # Bootloader name. Currently used by PC target.
8405 target_bootloader
="none"
8409 #-----------------------------------------------------------------------------
8410 # Additional options for some specific targets
8412 case "$aros_target_variant" in
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8415 $as_echo_n "checking XCode path... " >&6; }
8417 # Check whether --with-xcode was given.
8418 if test "${with_xcode+set}" = set; then :
8419 withval
=$with_xcode; aros_xcode_path
="$withval"
8421 aros_xcode_path
="/Developer"
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8425 $as_echo "$aros_xcode_path" >&6; }
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8428 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8430 # Check whether --with-sdk-version was given.
8431 if test "${with_sdk_version+set}" = set; then :
8432 withval
=$with_sdk_version; aros_sdk_version
="$withval"
8434 aros_sdk_version
="4.1"
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8438 $as_echo "$aros_sdk_version" >&6; }
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8444 $as_echo_n "checking Android SDK path... " >&6; }
8446 # Check whether --with-sdk was given.
8447 if test "${with_sdk+set}" = set; then :
8448 withval
=$with_sdk; aros_android_sdk
="$withval"
8450 aros_android_sdk
=$default_android_sdk
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8454 $as_echo "$aros_android_sdk" >&6; }
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8457 $as_echo_n "checking Android NDK path... " >&6; }
8459 # Check whether --with-ndk was given.
8460 if test "${with_ndk+set}" = set; then :
8461 withval
=$with_ndk; aros_android_ndk
="$withval"
8463 aros_android_ndk
="none"
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8467 $as_echo "$aros_android_ndk" >&6; }
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8470 $as_echo_n "checking what Android SDK version to use... " >&6; }
8472 # Check whether --with-sdk-version was given.
8473 if test "${with_sdk_version+set}" = set; then :
8474 withval
=$with_sdk_version; aros_sdk_version
="$withval"
8476 aros_sdk_version
="12"
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8480 $as_echo "$aros_sdk_version" >&6; }
8482 aros_android_level
=android-
$aros_sdk_version
8483 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
8484 echo "Platform $aros_android_level is not installed in your SDK"
8485 echo "Use --with-sdk-version=<API level number> to select another platform version"
8486 echo "You can check what plaform versions are installed in your SDK"
8487 echo "by examining contents of $aros_android_sdk/platforms directory"
8488 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
8491 export PATH
="$aros_android_sdk/tools:$PATH"
8492 # Extract the first word of "$android_tool", so it can be a program name with args.
8493 set dummy
$android_tool; ac_word
=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if ${ac_cv_path_android_tool+:} false
; then :
8497 $as_echo_n "(cached) " >&6
8499 case $android_tool in
8501 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
8504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8508 test -z "$as_dir" && as_dir
=.
8509 for ac_exec_ext
in '' $ac_executable_extensions; do
8510 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8511 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 android_tool
=$ac_cv_path_android_tool
8523 if test -n "$android_tool"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8525 $as_echo "$android_tool" >&6; }
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 $as_echo "no" >&6; }
8533 if test "$android_tool" = ""; then
8536 if test "$android_tool" = "no"; then
8539 if test "$req_avail" = "no"; then
8540 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
8543 if test "$aros_android_ndk" != "none"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8545 $as_echo_n "checking what Android NDK version to use... " >&6; }
8547 # Check whether --with-ndk-version was given.
8548 if test "${with_ndk_version+set}" = set; then :
8549 withval
=$with_ndk_version; aros_ndk_version
="$withval"
8551 aros_ndk_version
="9"
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8555 $as_echo "$aros_ndk_version" >&6; }
8558 # Extract the first word of "ant", so it can be a program name with args.
8559 set dummy ant
; ac_word
=$2
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561 $as_echo_n "checking for $ac_word... " >&6; }
8562 if ${ac_cv_path_ant+:} false
; then :
8563 $as_echo_n "(cached) " >&6
8567 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
8570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8574 test -z "$as_dir" && as_dir
=.
8575 for ac_exec_ext
in '' $ac_executable_extensions; do
8576 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
8578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8589 if test -n "$ant"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8591 $as_echo "$ant" >&6; }
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8598 if test "$ant" = ""; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8600 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8604 $as_echo_n "checking Build debug or release apk... " >&6; }
8606 # Check whether --with-apk-version was given.
8607 if test "${with_apk_version+set}" = set; then :
8608 withval
=$with_apk_version; aros_android_antapk
=$withval
8610 aros_android_antapk
=release
8613 if test $aros_android_antapk != release
-a $aros_android_antapk != debug
; then
8614 as_fn_error $?
"apk-version has to be release or debug" "$LINENO" 5
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8617 $as_echo "$aros_android_antapk" >&6; }
8619 target_extra_cfg
+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8620 host_extra_cfg
+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8621 aros_target_options
+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8623 if test "$host_os" = "mingw32"; then
8624 android_tool
="cmd //c $android_tool"
8632 #-----------------------------------------------------------------------------
8633 # External toolchains
8634 kernel_tool_prefix
="none"
8635 aros_tool_prefix
="none"
8636 elf_tool_prefix
="${target_cpu}-elf-"
8638 # Base target cpu ISA configuration switch.
8639 case "$target_cpu" in
8645 m68k_isa_extra
="ISA_MC68000_FLAGS = -march=68000"
8646 m68k_020_isa_extra
="ISA_MC68020_FLAGS = -march=68020"
8647 m68k_030_isa_extra
="ISA_MC68030_FLAGS = -march=68030"
8648 m68k_040_isa_extra
="ISA_MC68040_FLAGS = -march=68040"
8649 m68k_060_isa_extra
="ISA_MC68060_FLAGS = -march=68060"
8650 m68k_ac080_isa_extra
="ISA_AC68080_FLAGS = -march=68040"
8651 m68k_020_ext
="ISA_MC68020_EXT :=020"
8652 m68k_030_ext
="ISA_MC68030_EXT :=030"
8653 m68k_040_ext
="ISA_MC68040_EXT :=040"
8654 m68k_060_ext
="ISA_MC68060_EXT :=060"
8655 m68k_020_cflags
="ISA_MC68020_CFLAGS ="
8656 m68k_030_cflags
="ISA_MC68030_CFLAGS ="
8657 m68k_040_cflags
="ISA_MC68040_CFLAGS ="
8658 m68k_060_cflags
="ISA_MC68060_CFLAGS ="
8659 m68k_020_cppflags
="ISA_MC68020_CPPFLAGS ="
8660 m68k_030_cppflags
="ISA_MC68030_CPPFLAGS ="
8661 m68k_040_cppflags
="ISA_MC68040_CPPFLAGS ="
8662 m68k_060_cppflags
="ISA_MC68060_CPPFLAGS ="
8663 m68k_020_ldflags
="ISA_MC68020_LDFLAGS ="
8664 m68k_030_ldflags
="ISA_MC68030_LDFLAGS ="
8665 m68k_040_ldflags
="ISA_MC68040_LDFLAGS ="
8666 m68k_060_ldflags
="ISA_MC68060_LDFLAGS ="
8669 x86_isa_extra
="ISA_X86_FLAGS = -m32 -march=i486"
8670 x86_64_isa_extra
="ISA_X8664_FLAGS = -mcmodel=large"
8676 # This is the target configuration switch.
8677 case "$target_os" in
8683 HOST_WANTS_DLOPEN
=yes
8684 aros_target_arch
="linux"
8685 aros_target_family
="unix"
8686 case "$target_cpu" in
8688 aros_target_cpu
="m68k"
8689 aros_object_format
="m68kelf"
8690 aros_flavour
="emulcompat"
8691 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8692 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8693 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8694 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8695 gcc_target_cpu
="mc68000"
8698 aros_target_cpu
="i386"
8699 aros_object_format
="elf_i386"
8700 aros_flavour
="emulation"
8701 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8702 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8703 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8704 aros_kernel_ldflags
="-Wl,-melf_i386"
8705 aros_nominal_depth
=8
8706 gcc_target_cpu
="i386"
8707 pci_hidd_target
="hidd-pci-linux"
8708 android_tool_dir_prefix
="x86"
8709 android_tool_prefix
="i686-android-linux"
8710 android_ndk_arch
="x86"
8713 aros_target_cpu
="x86_64"
8714 aros_object_format
="elf_x86_64"
8715 aros_flavour
="emulation"
8716 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8717 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8718 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8719 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8720 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8721 aros_nominal_depth
=8
8722 pci_hidd_target
="hidd-pci-linux"
8725 aros_target_cpu
="ppc"
8726 aros_object_format
="elf32ppc"
8727 aros_flavour
="emulation"
8728 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8729 aros_nominal_depth
=8
8730 gcc_target_cpu
="ppc"
8733 # Same as powerpc, but I need this for the nightly build to work again.
8734 # Actually, the nightly should be made working with powerpc target.
8735 # That just was too much work for the moment, another week or two.
8737 aros_target_cpu
="ppc"
8738 aros_object_format
="elf32ppc"
8739 aros_flavour
="emulation"
8740 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8741 aros_nominal_depth
=8
8742 gcc_target_cpu
="ppc"
8745 aros_target_cpu
="aarch64"
8746 target_cpu
="aarch64"
8747 aros_object_format
="aarch64elf_aros"
8748 aros_flavour
="emulation"
8749 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8750 gcc_target_cpu
="aarch64"
8751 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8752 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8753 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8754 aros_c_libs
="$aros_c_libs -laeabi"
8755 gcc_default_float_abi
="hard"
8756 kernel_tool_prefix
="aarch64-linux-gnueabihf-"
8759 aros_target_cpu
="arm"
8761 aros_object_format
="armelf_aros"
8762 aros_flavour
="emulation"
8763 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8764 gcc_target_cpu
="arm"
8765 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8766 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8767 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8768 aros_c_libs
="$aros_c_libs -laeabi"
8769 gcc_default_float_abi
="hard"
8770 android_tool_dir_prefix
="arm-linux-androideabi"
8771 android_tool_prefix
="arm-linux-androideabi"
8772 android_ndk_arch
="arm"
8773 kernel_tool_prefix
="arm-linux-gnueabihf-"
8776 aros_target_cpu
="arm"
8777 aros_object_format
="armelf_aros"
8778 aros_flavour
="emulation"
8779 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8780 gcc_target_cpu
="arm"
8781 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8782 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8783 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8784 aros_c_libs
="$aros_c_libs -laeabi"
8785 android_tool_dir_prefix
="arm-linux-androideabi"
8786 android_tool_prefix
="arm-linux-androideabi"
8787 android_ndk_arch
="arm"
8788 kernel_tool_prefix
="arm-linux-gnueabi-"
8791 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8794 case "$aros_target_variant" in
8797 if test "$android_ndk_arch" = ""; then
8798 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8801 aros_nominal_width
=320
8802 aros_nominal_height
=480
8803 if test "$aros_android_ndk" = "none"; then
8804 aros_kernel_cflags
="-mandroid"
8805 aros_kernel_ldflags
="-mandroid"
8808 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8809 kernel_tool_version
=""
8810 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8811 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
8812 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
8813 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8814 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
8817 # Disable implicit PIC mode
8818 aros_config_cflags
="$aros_config_cflags -fno-pic"
8819 kernel_tool_prefix
="$android_tool_prefix-"
8825 aros_target_arch
="pc"
8826 aros_shared_default
="no"
8827 target_bootloader
="grub2"
8828 case "$target_cpu" in
8830 aros_target_cpu
="i386"
8833 if test "$aros_object_format" = "" ; then
8834 aros_object_format
="elf_i386"
8836 aros_flavour
="standalone"
8837 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8838 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8839 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8840 aros_kernel_ldflags
="-Wl,-melf_i386"
8841 aros_nominal_width
=640
8842 aros_nominal_height
=480
8843 gcc_target_cpu
="i386"
8846 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
8847 aros_target_cpu
="x86_64"
8849 if test "$aros_object_format" = "" ; then
8850 aros_object_format
="elf_x86_64"
8852 aros_flavour
="standalone"
8853 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8854 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8855 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8856 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8857 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8858 aros_kernel_ldflags
=""
8859 aros_nominal_width
=640
8860 aros_nominal_height
=480
8861 case "$aros_target_variant" in
8863 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8868 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8874 aros_target_arch
="prep"
8875 aros_shared_default
="no"
8876 aros_target_cpu
="ppc"
8877 aros_object_format
="elf32ppc"
8878 aros_flavour
="ppcnative"
8879 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8880 aros_kernel_ldflags
=""
8881 aros_nominal_width
=640
8882 aros_nominal_height
=480
8883 gcc_target_cpu
="ppc"
8891 HOST_WANTS_DLOPEN
=yes
8892 aros_target_arch
="freebsd"
8893 aros_target_family
="unix"
8894 aros_target_cpu
="i386"
8895 aros_flavour
="emulation"
8896 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8897 gcc_target_cpu
="i386"
8899 aros_target_strip_flags
="-x"
8907 HOST_WANTS_DLOPEN
=yes
8908 aros_target_arch
="darwin"
8909 aros_target_family
="unix"
8910 aros_flavour
="emulation"
8911 case "$target_cpu" in
8913 aros_ios_platform
="iPhoneSimulator"
8914 aros_target_cpu
="i386"
8915 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8916 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8917 aros_kernel_ldflags
=""
8918 aros_macosx_version
="10.4"
8919 aros_nominal_depth
=8
8920 gcc_target_cpu
="i386"
8921 aros_object_format
="elf_i386"
8922 aros_kernel_ar_flags
="-cr"
8923 aros_target_strip_flags
="-x"
8924 kernel_tool_flags
="-m32"
8927 aros_target_cpu
="x86_64"
8928 aros_object_format
="elf_x86_64"
8929 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8930 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8931 aros_macosx_version
="10.6"
8932 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8933 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8934 aros_kernel_cflags
="-m64"
8935 aros_kernel_ldflags
="-m64"
8936 aros_nominal_depth
=8
8937 aros_kernel_rs
="$toolchain_ar"
8938 aros_kernel_ar_flags
="-cr"
8939 aros_kernel_ld
="$toolchain_ld"
8940 aros_kernel_as
="$toolchain_as"
8941 aros_kernel_ranlib
="$toolchain_ranlib"
8942 aros_kernel_nm
="$toolchain_nm"
8943 aros_kernel_strip
="strip"
8944 kernel_tool_prefix
="i686-apple-darwin10-"
8947 aros_target_cpu
="ppc"
8948 aros_object_format
="elf32ppc"
8949 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8950 aros_kernel_ldflags
=""
8951 aros_macosx_version
="10.0"
8952 aros_nominal_depth
=8
8953 gcc_target_cpu
="ppc"
8954 aros_kernel_rs
="$toolchain_ar"
8955 aros_kernel_ar_flags
="-cr"
8956 aros_kernel_ld
="$toolchain_ld -arch ppc"
8957 aros_kernel_as
="$toolchain_as -arch ppc"
8958 aros_kernel_ranlib
="$toolchain_ranlib -arch ppc"
8959 aros_kernel_nm
="$toolchain_nm -arch ppc"
8960 aros_kernel_strip
="strip -arch ppc"
8961 kernel_tool_prefix
="powerpc-apple-darwin10-"
8964 aros_ios_platform
="iPhoneOS"
8965 aros_target_cpu
="arm"
8966 aros_object_format
="armelf_aros"
8967 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8968 aros_c_libs
="$aros_c_libs -laeabi"
8969 aros_nominal_depth
=8
8970 gcc_target_cpu
="arm"
8971 aros_kernel_rs
="$toolchain_ar"
8972 aros_kernel_ar_flags
="-cr"
8973 aros_kernel_ld
="$toolchain_ld -arch arm"
8974 aros_kernel_ranlib
="$toolchain_ranlib -arch arm"
8975 kernel_tool_prefix
="arm-apple-darwin10-"
8976 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8979 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8982 case "$aros_target_variant" in
8984 make_extra_targetcfg
="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8985 aros_ios_version
="3.0"
8986 aros_nominal_width
=320
8987 aros_nominal_height
=480
8988 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8989 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"
8990 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
8991 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
8993 # This is here because it may depend on iOS or SDK version
8994 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8995 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8996 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8999 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
9000 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
9010 HOST_WANTS_DLOPEN
=yes
9011 aros_target_arch
="dragonfly"
9012 aros_target_family
="unix"
9013 aros_flavour
="emulation"
9014 case "$target_cpu" in
9016 aros_target_cpu
="i386"
9017 aros_object_format
="elf_i386"
9018 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
9019 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9022 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9023 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9024 aros_target_cpu
="x86_64"
9025 aros_object_format
="elf_x86_64"
9026 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
9027 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
9030 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
9040 HOST_WANTS_DLOPEN
=yes
9041 aros_target_arch
="netbsd"
9042 aros_target_family
="unix"
9043 case "$target_cpu" in
9045 aros_target_cpu
="m68k"
9046 aros_object_format
="m68kelf"
9047 aros_flavour
="emulcompat"
9048 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
9049 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9050 gcc_target_cpu
="mc68000"
9053 aros_target_cpu
="i386"
9054 aros_object_format
="elf_i386"
9055 aros_flavour
="emulation"
9056 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
9057 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9058 aros_nominal_depth
=8
9059 gcc_target_cpu
="i386"
9062 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
9065 aros_target_genmap
="-Wl,-M -Xlinker >"
9066 aros_flavour
="emulation"
9067 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
9075 HOST_WANTS_DLOPEN
=yes
9076 aros_target_arch
="openbsd"
9077 aros_target_family
="unix"
9078 case "$target_cpu" in
9080 aros_target_cpu
="i386"
9081 aros_object_format
="elf_i386"
9082 aros_flavour
="emulation"
9083 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
9084 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9085 gcc_target_cpu
="i386"
9088 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
9091 aros_target_genmap
="-Wl,-M -Xlinker >"
9092 aros_target_nm_flags
="-u"
9093 aros_flavour
="emulation"
9097 aros_target_arch
="solaris"
9098 aros_target_family
="unix"
9099 case "$target_cpu" in
9101 aros_target_cpu
="i386"
9102 aros_object_format
="elf_i386"
9103 aros_flavour
="emulation"
9104 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
9105 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9106 aros_nominal_depth
=8
9107 gcc_target_cpu
="i386"
9110 aros_target_cpu
="sparc"
9111 aros_object_format
="elf_sparc"
9112 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
9113 gcc_target_cpu
="sparc"
9116 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
9119 aros_config_cppflags
="$aros_config_cppflags -D$aros_target_cpu"
9120 aros_flavour
="emulation"
9124 aros_target_arch
="morphos"
9125 aros_shared_default
="no"
9126 aros_target_cpu
="ppc"
9127 aros_object_format
="elf_ppc"
9128 aros_flavour
="nativecompat"
9129 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
9130 gcc_target_cpu
="ppc"
9134 aros_target_arch
="sam440"
9135 aros_shared_default
="no"
9136 aros_target_cpu
="ppc"
9137 aros_object_format
="elf32ppc"
9138 aros_flavour
="ppcnative"
9139 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
9140 aros_kernel_ldflags
=""
9141 aros_nominal_width
=1024
9142 aros_nominal_height
=768
9143 aros_nominal_depth
=24
9144 aros_isa_flags
="$aros_isa_flags -mcpu=440fp -mno-toc"
9145 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9146 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9147 gcc_target_cpu
="powerpc"
9151 aros_target_arch
="efika"
9152 aros_shared_default
="no"
9153 aros_target_cpu
="arm"
9154 aros_object_format
="armelf_aros"
9155 aros_flavour
="standalone"
9156 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
9157 aros_kernel_ldflags
=""
9158 aros_nominal_width
=1024
9159 aros_nominal_height
=600
9160 aros_c_libs
="$aros_c_libs -laeabi"
9161 gcc_default_cpu
="armv7-a"
9162 gcc_default_fpu
="vfpv3"
9163 aros_isa_flags
="$aros_isa_flags -mtune=cortex-a8"
9164 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9165 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9166 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9167 if test "$optimization" = "default"; then
9168 optimization_level
=$toolchain_size_opt_lvl
9170 case "$target_cpu" in
9172 gcc_default_float_abi
="hard"
9177 gcc_default_float_abi
="softfp"
9180 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
9186 aros_target_arch
="chrp"
9187 aros_shared_default
="no"
9188 aros_target_cpu
="ppc"
9189 aros_object_format
="elf32ppc"
9190 aros_flavour
="ppcnative"
9191 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
9192 aros_kernel_ldflags
=""
9193 aros_nominal_width
=640
9194 aros_nominal_height
=480
9195 aros_isa_flags
="$aros_isa_flags -mno-toc"
9196 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9197 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9198 gcc_target_cpu
="powerpc"
9199 case "$aros_target_variant" in
9201 aros_isa_flags
="$aros_isa_flags -mcpu=603e"
9202 aros_config_cppflags
="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
9208 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
9209 aros_flavour
="standalone"
9210 aros_target_arch
="raspi"
9212 aros_shared_default
="no"
9214 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__"
9216 case "$target_cpu" in
9218 aros_target_cpu
="aarch64"
9219 gcc_default_cpu
="aarch64"
9220 aros_object_format
="aarch64elf_aros"
9223 aros_target_cpu
="arm"
9224 gcc_default_cpu
="armv6zk"
9225 gcc_default_cpu_tune
="arm1176jzf-s"
9226 aros_object_format
="armelf_aros"
9227 aros_isa_flags
="$aros_isa_flags -marm"
9228 aros_config_cflags
="$aros_config_cflags"
9229 aros_config_cxxflags
="$aros_config_cxxflags"
9230 aros_config_aflags
="$aros_config_aflags -marm"
9231 aros_kernel_cflags
="$aros_kernel_cflags -marm"
9232 aros_target_mkdep
="$aros_target_mkdep -Darm"
9233 aros_c_libs
="$aros_c_libs -laeabi"
9236 aros_flavour
="standcompat"
9237 aros_target_cpu
="armeb"
9238 gcc_default_float_abi
="hard"
9239 gcc_default_cpu
="armv7ve"
9240 gcc_default_cpu_tune
="cortex-a7"
9241 aros_object_format
="armelfb_aros"
9242 aros_isa_flags
="$aros_isa_flags -marm"
9243 aros_config_cflags
="$aros_config_cflags"
9244 aros_config_cxxflags
="$aros_config_cxxflags"
9245 aros_config_aflags
="$aros_config_aflags -marm"
9246 aros_kernel_cflags
="$aros_kernel_cflags -marm"
9247 aros_target_mkdep
="$aros_target_mkdep -Darm"
9248 aros_c_libs
="$aros_c_libs -laeabi"
9251 aros_target_cpu
="arm"
9252 gcc_default_cpu
="armv6zk"
9253 gcc_default_cpu_tune
="arm1176jzf-s"
9254 aros_object_format
="armelf_aros"
9255 aros_isa_flags
="$aros_isa_flags -marm"
9256 aros_config_cflags
="$aros_config_cflags"
9257 aros_config_cxxflags
="$aros_config_cxxflags"
9258 aros_config_aflags
="$aros_config_aflags -marm"
9259 aros_kernel_cflags
="$aros_kernel_cflags -marm"
9260 aros_target_mkdep
="$aros_target_mkdep -Darm"
9261 aros_c_libs
="$aros_c_libs -laeabi"
9264 as_fn_error $?
"\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
9268 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9269 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9270 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9271 aros_kernel_cflags
="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9273 case "$aros_target_variant" in
9275 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
9281 aros_flavour
="standalone"
9282 aros_target_arch
="stm32f7_discovery"
9283 aros_target_cpu
="arm"
9284 aros_target_cpu_mode
="thumb2"
9285 aros_object_format
="armelf_aros"
9286 aros_shared_default
="no"
9288 gcc_default_cpu
="armv7e-m"
9289 gcc_default_cpu_tune
="cortex-m7"
9290 gcc_default_fpu
="fpv5-sp-d16"
9291 gcc_default_float_abi
="hard"
9293 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dthumb"
9297 aros_elf_translate
="$""(ELF2HUNK)"
9298 make_extra_commands
="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
9299 aros_target_arch
="amiga"
9300 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9301 aros_shared_default
="no"
9303 case "$target_cpu" in
9305 # Check whether --enable-amigaos_compliance was given.
9306 if test "${enable_amigaos_compliance+set}" = set; then :
9307 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
9311 aros_target_cpu
="m68k"
9312 aros_object_format
="m68kelf"
9313 aros_flavour
="standcompat"
9314 gcc_target_cpu
="m68000"
9315 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9316 aros_nowarn_flags
="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
9317 aros_config_cppflags
="$aros_config_cppflags -DNOLIBINLINE"
9318 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9319 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9320 if test "$optimization" = "default"; then
9321 optimization_level
=$toolchain_size_opt_lvl
9323 aros_config_aflags
="$aros_config_aflags"
9324 aros_target_strip_flags
="-R.comment --strip-debug"
9325 aros_nominal_width
=640
9326 aros_nominal_height
=256
9327 aros_nominal_depth
=2
9331 aros_flavour
="native"
9332 gcc_target_cpu
="ppc"
9335 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
9341 aros_target_arch
="mingw32"
9342 aros_shared_default
="no"
9343 aros_flavour
="emulation"
9344 aros_shared_cflags
=""
9345 need_crosstools
="yes"
9348 case "$target_cpu" in
9350 aros_target_cpu
="i386"
9351 aros_object_format
="elf_i386"
9352 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
9353 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9354 aros_nominal_depth
=8
9355 gcc_target_cpu
="i386"
9357 kernel_tool_prefix
="i386-mingw32-"
9360 aros_target_cpu
="x86_64"
9361 aros_object_format
="elf_x86_64"
9362 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9363 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
9364 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9365 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9366 aros_nominal_depth
=8
9367 kernel_tool_prefix
="x86_64-w64-mingw32-"
9370 aros_target_cpu
="arm"
9371 aros_object_format
="armelf_aros"
9372 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
9373 aros_c_libs
="$aros_c_libs -laeabi"
9374 aros_nominal_depth
=8
9375 gcc_target_cpu
="arm"
9376 gcc_default_float_abi
="soft"
9377 kernel_tool_prefix
="arm-mingw32ce-"
9378 aros_nominal_width
=160
9379 aros_nominal_height
=160
9382 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
9385 if test $host_os = "cygwin"; then
9386 aros_kernel_cflags
="-mno-cygwin"
9390 aros_target_arch
="pp"
9391 aros_shared_default
="no"
9392 case "$target_cpu" in
9394 aros_target_cpu
="m68k"
9395 aros_object_format
="m68kelf"
9396 aros_flavour
="palmnative"
9397 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
9398 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9399 aros_nominal_width
=160
9400 aros_nominal_height
=160
9401 aros_nominal_depth
=1
9402 aros_target_ar_flags
="cru"
9403 aros_c_libs
="$aros_c_libs -lgcc1"
9404 aros_shared_default
=no
9405 aros_shared_cflags
="-fpic"
9406 aros_shared_aflags
=""
9407 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
9408 aros_kernel_ldflags
="-Wl,-rpath,./lib"
9409 aros_debug_cppflags
="$aros_messages_debug"
9410 aros_debug_cflags
="$aros_symbols_debug"
9411 aros_debug_aflags
=""
9412 aros_debug_ldflags
="$aros_symbols_debug"
9413 aros_mungwall_debug
="0"
9414 aros_modules_debug
="0"
9415 gcc_target_cpu
="mc68000"
9416 ignore_undefined_symbols
="-ius"
9419 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9425 aros_target_arch
="mac"
9426 aros_shared_default
="no"
9427 case "$target_cpu" in
9429 aros_target_cpu
="m68k"
9430 aros_object_format
="m68kelf"
9431 aros_flavour
="mac68knative"
9432 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
9433 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9434 aros_nominal_width
=512
9435 aros_nominal_height
=384
9436 aros_nominal_depth
=8
9437 aros_target_ar_flags
="cru"
9438 aros_c_libs
="$aros_c_libs -lgcc1"
9439 aros_shared_default
=no
9440 aros_shared_cflags
="-fpic"
9441 aros_shared_aflags
=""
9442 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
9443 aros_kernel_ldflags
="-Wl,-rpath,./lib"
9444 aros_debug_cppflags
="$aros_messages_debug"
9445 aros_debug_cflags
="$aros_symbols_debug"
9446 aros_debug_aflags
=""
9447 aros_debug_ldflags
="$aros_symbols_debug"
9448 aros_mungwall_debug
="0"
9449 aros_modules_debug
="0"
9450 gcc_target_cpu
="mc68000"
9451 ignore_undefined_symbols
="-ius"
9454 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9460 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
9464 #-----------------------------------------------------------------------------
9465 crosstools_guess
="yes"
9466 aros_target_toolchain
="no"
9467 aros_kernel_sysroot
=""
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9470 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9472 # Check whether --with-kernel-toolchain-prefix was given.
9473 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9474 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9478 $as_echo "$kernel_tool_prefix" >&6; }
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9481 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9483 # Check whether --with-elf-toolchain-prefix was given.
9484 if test "${with_elf_toolchain_prefix+set}" = set; then :
9485 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
9486 crosstools_guess
="no"
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9490 $as_echo "$elf_tool_prefix" >&6; }
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9493 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9495 # Check whether --with-aros-toolchain was given.
9496 if test "${with_aros_toolchain+set}" = set; then :
9497 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
9498 crosstools_guess
="no"
9501 if test "$aros_tool_prefix" = "yes" ; then
9502 aros_tool_prefix
=$aros_target_cpu-aros-
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9505 $as_echo "$aros_tool_prefix" >&6; }
9507 #-----------------------------------------------------------------------------
9508 # Checking if we should build crosstools..
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9510 $as_echo_n "checking whether to build crosstools... " >&6; }
9511 # Check whether --enable-crosstools was given.
9512 if test "${enable_crosstools+set}" = set; then :
9513 enableval
=$enable_crosstools; crosstools
="$enableval"
9515 crosstools
="$crosstools_guess"
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9519 $as_echo "$crosstools" >&6; }
9521 if test "${crosstools}" = "yes"; then
9522 if test "${crosstools_guess}" = "no"; then
9523 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9527 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
9528 aros_target_toolchain
="yes"
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9532 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9534 # Check whether --with-aros-toolchain-install was given.
9535 if test "${with_aros_toolchain_install+set}" = set; then :
9536 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
9539 if test "x$aros_toolchain_install" = "x"; then
9540 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9542 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
9543 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
9544 if test "$crosstools_guess" = "no" ; then
9545 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9546 aros_kernel_sysroot
="$""(TARGET_SYSROOT)"
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9551 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9553 #-----------------------------------------------------------------------------
9554 if test "$aros_toolchain" = "gnu" ; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9556 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9559 # Check whether --with-binutils-version was given.
9560 if test "${with_binutils_version+set}" = set; then :
9561 withval
=$with_binutils_version; use_binutils_version
="$withval"
9563 use_binutils_version
=""
9566 if test "$use_binutils_version" = ""; then
9567 target_binutils_version
="$default_binutils_version"
9569 target_binutils_version
="$use_binutils_version"
9571 if test "$aros_toolchain" = "gnu" ; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9573 $as_echo "$target_binutils_version" >&6; }
9577 # Helper to identify gcc version
9580 #-----------------------------------------------------------------------------
9581 if test "$aros_toolchain" = "gnu" ; then
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9583 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9586 # Check whether --with-gcc-version was given.
9587 if test "${with_gcc_version+set}" = set; then :
9588 withval
=$with_gcc_version; use_gcc_version
="$withval"
9593 if test "$use_gcc_version" = ""; then
9594 if test "${crosstools}" = "no"; then
9595 if test "x$aros_toolchain_install" != "x"; then
9597 target_gcc_version
=""
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9599 $as_echo_n "checking gcc version... " >&6; }
9600 if ${ax_cv_gcc_version+:} false
; then :
9601 $as_echo_n "(cached) " >&6
9604 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor}$(toolchain_cpp_opts) -dumpversion`"
9605 if test "x$ax_cv_gcc_version" = "x"; then :
9607 ax_cv_gcc_version
=""
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9613 $as_echo "$ax_cv_gcc_version" >&6; }
9614 target_gcc_version
=$ax_cv_gcc_version
9619 if test "$use_gcc_version" = ""; then
9620 target_gcc_version
="$default_gcc_version"
9623 target_gcc_version
="$use_gcc_version"
9625 if test "$aros_toolchain" = "gnu" ; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9627 $as_echo "$target_gcc_version" >&6; }
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
9630 $as_echo_n "checking version string style... " >&6; }
9631 if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
9633 $as_echo "snapshot" >&6; }
9634 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'-' -f1)
9635 GCC_VERSION_MINOR
=-1
9636 GCC_VERSION_PATCH
=-1
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
9639 $as_echo "release" >&6; }
9640 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'.' -f1)
9641 GCC_VERSION_MINOR
=$
(echo $target_gcc_version | cut
-d'.' -f2)
9642 GCC_VERSION_PATCH
=$
(echo $target_gcc_version | cut
-d'.' -f3)
9645 gcc_fix_bitfields
="false"
9646 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9647 gcc_fix_bitfields
="true"
9649 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9650 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9651 gcc_fix_bitfields
="true"
9656 if test "$gcc_fix_bitfields" = "true" ; then
9657 case "$aros_target_cpu" in
9659 x86_isa_extra
="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9660 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9667 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9668 # Check whether --enable-objc was given.
9669 if test "${enable_objc+set}" = set; then :
9670 enableval
=$enable_objc; objc
="$enableval"
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9676 $as_echo "$objc" >&6; }
9677 if test "x$objc" = "xyes"; then
9680 objc_target
="no-objc"
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9684 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9685 # Check whether --enable-java was given.
9686 if test "${enable_java+set}" = set; then :
9687 enableval
=$enable_java; java
="$enableval"
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9693 $as_echo "$java" >&6; }
9694 if test "x$java" != "xno"; then
9697 java_target
="no-java"
9700 spec_obj_format
="-m $aros_object_format"
9701 # Now process extra architecture-specific options.
9702 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9703 # as well as floating-point ABI.
9704 case "$aros_target_cpu" in
9706 aros_isa_targets
="M68K_ISA_TARGETS :=MC68020 MC68040"
9707 aros_isa_extra
="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9708 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"
9709 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"
9710 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"
9711 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"
9712 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"
9715 aros_isa_extra
="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9716 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9719 if test "$gcc_default_cpu" = ""; then
9720 gcc_default_cpu
="armv6"
9722 if test "$gcc_default_fpu" = ""; then
9723 gcc_default_fpu
="vfp"
9725 if test "$gcc_default_endian" = ""; then
9726 if test "$target_cpu" = "armeb"; then
9727 gcc_default_endian
="big-endian"
9729 gcc_default_endian
="little-endian"
9732 if test "$gcc_default_float_abi" = ""; then
9733 if test "$target_cpu" = "armhf"; then
9734 gcc_default_float_abi
="hard"
9736 gcc_default_float_abi
="softfp"
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9741 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9743 # Check whether --with-cpu was given.
9744 if test "${with_cpu+set}" = set; then :
9745 withval
=$with_cpu; aros_gcc_cpu
="$withval"
9747 aros_gcc_cpu
=$gcc_default_cpu
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9751 $as_echo "$aros_gcc_cpu" >&6; }
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9754 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9756 # Check whether --with-fpu was given.
9757 if test "${with_fpu+set}" = set; then :
9758 withval
=$with_fpu; aros_gcc_fpu
="$withval"
9760 aros_gcc_fpu
=$gcc_default_fpu
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9764 $as_echo "$aros_gcc_fpu" >&6; }
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9767 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9769 # Check whether --with-float was given.
9770 if test "${with_float+set}" = set; then :
9771 withval
=$with_float; aros_gcc_float_abi
="$withval"
9773 aros_gcc_float_abi
=$gcc_default_float_abi
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9777 $as_echo "$aros_gcc_float_abi" >&6; }
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9780 $as_echo_n "checking Which ARM mode to use... " >&6; }
9781 if test "$aros_target_cpu_mode" = ""; then
9782 aros_target_cpu_mode
="arm32"
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9784 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9787 $as_echo "$aros_target_cpu_mode" >&6; }
9790 case "$aros_target_cpu_mode" in
9792 gcc_default_mode
="arm"
9793 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"
9796 as_fn_error $?
"ARM 64-bit mode is unsupported" "$LINENO" 5
9799 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9802 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9805 gcc_default_mode
="thumb"
9806 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9807 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"
9810 as_fn_error $?
"Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9814 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9815 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9816 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9819 aros_isa_extra
="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9820 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
9824 # Some architectures may need custom ELF specs.
9825 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
9826 elf_specs_in
=config
/${aros_object_format}-specs.
in
9828 elf_specs_in
=config
/elf-specs.
in
9831 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9832 # Since we override specs, we may need to put these defines there
9833 if test "$gcc_target_cpu" != ""; then
9834 gcc_target_cpu
="-D__${gcc_target_cpu}__"
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9838 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9840 # Check whether --with-portssources was given.
9841 if test "${with_portssources+set}" = set; then :
9842 withval
=$with_portssources; with_portssrcdir
=$withval
9844 with_portssrcdir
="default"
9847 if test "$with_portssrcdir" = "default"; then
9848 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9850 AROS_PORTSSRCDIR
="$with_portssrcdir"
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9853 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9856 $as_echo_n "checking which bootloader to use... " >&6; }
9858 # Check whether --with-bootloader was given.
9859 if test "${with_bootloader+set}" = set; then :
9860 withval
=$with_bootloader; target_bootloader
=$withval
9862 target_bootloader
=$target_bootloader
9865 if test "$target_bootloader" = "none"; then
9866 aros_target_bootloader
=""
9868 aros_target_bootloader
="$target_bootloader"
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9871 $as_echo "$target_bootloader" >&6; }
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9874 $as_echo_n "checking which icon-set to use... " >&6; }
9876 # Check whether --with-iconset was given.
9877 if test "${with_iconset+set}" = set; then :
9878 withval
=$with_iconset; target_iconset
=$withval
9880 target_iconset
="default"
9883 if test "$target_iconset" = "default"; then
9884 aros_target_iconset
="Gorilla"
9885 target_iconset
="default (Gorilla)"
9887 aros_target_iconset
="$target_iconset"
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9890 $as_echo "$target_iconset" >&6; }
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9893 $as_echo_n "checking which GUI Theme to use... " >&6; }
9895 # Check whether --with-theme was given.
9896 if test "${with_theme+set}" = set; then :
9897 withval
=$with_theme; target_guitheme
=$withval
9899 target_guitheme
="default"
9902 if test "$target_guitheme" = "default"; then
9903 aros_target_guitheme
="Ice"
9905 aros_target_guitheme
="$target_guitheme"
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9908 $as_echo "$aros_target_guitheme" >&6; }
9910 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9914 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9918 if test "$aros_host_cpu" == "x86_64" ; then
9919 if test "$aros_target_cpu" == "i386" ; then
9924 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9925 if test "$aros_host_arch" != "$aros_target_arch" ; then
9932 if test "$cross_compiling" = "no" ; then
9933 kernel_tool_prefix
=""
9934 if test "$host_cc_elf" = "yes" ; then
9939 if test "$kernel_tool_version" != ""; then
9940 kernel_tool_version
="-$kernel_tool_version"
9943 #######################################################################
9944 ## Compute what toolchains to use, and their paths ##
9945 #######################################################################
9947 # This takes, as input:
9948 # crosstools {yes,no}
9949 # kernel_tool_version {"",[version]}
9950 # target_tool_version {"",[version]}
9951 # kernel_tool_prefix {none,[some-arch-os-]}
9953 # target_tool_prefix ${aros_target_cpu}-aros-
9954 # aros_tool_prefix ${aros_target_cpu}-aros-
9957 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9958 # Where the 'kernel' binaries are located
9959 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9960 # Where the 'target' binaries are located
9961 # (not the symlink farm - that is aros_target_*!)
9964 # if crosstools then
9965 # if kernel_tools_prefix = "no-kernel-prefix-"
9966 # aros_kernel_* = crosstools cc paths
9967 # aros_kernel_cc = elf cc wrapper around crosstools cc
9969 # VALIDATE(${kernel_tools_prefix}*)
9970 # aros_kernel_* = ${kernel_tools_prefix}*
9971 # if ${kernel_tools_prefix}cc is an AROS gcc
9972 # aros_kernel_cc = ${kernel_tools_prefix}cc
9974 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9978 # orig_target_* = aros built crosstools
9979 # orig_target_cc = elf cc wrapper around crosstools cc
9981 # VALIDATE(${kernel_tools_prefix}*)
9983 # orig_target_* = aros_kernel_*
9984 # if aros_kernel_cc is an AROS gcc
9985 # orig_target_cc = aros_kernel_cc
9987 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9991 if test "$aros_toolchain" = "gnu" ; then
9992 target_tool_prefix
="${aros_target_cpu}-aros-"
9993 elif test "$aros_toolchain" = "llvm" ; then
9994 target_tool_prefix
="bin/"
9997 if test "$kernel_tool_prefix" != "" ; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9999 $as_echo_n "checking which kernel tools... " >&6; }
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
10001 $as_echo "$kernel_tool_prefix" >&6; };
10004 if test "$kernel_tool_prefix" = "none" ; then
10005 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10006 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
10009 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
10010 # Kernel tools required - find them
10011 # Note that 'normally', aros_kernel_* overrides will be
10012 # empty, unless specified in the per-arch sections above.
10014 if test "x$aros_kernel_cpp" = "x"; then
10015 aros_kernel_cpp
=${kernel_tool_prefix}${CPP_BASE}
10017 if test "${kernel_tool_version}" != ""; then
10018 if test "$aros_kernel_cpp" != ""; then
10019 ac_prog_args
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10020 ac_prog_cmd
=`expr "X$aros_kernel_cpp" : '^\S*'`
10021 aros_kernel_cpp
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10025 if test "$aros_kernel_cpp" = ""; then
10026 if test "$cross_compiling" = "yes" ; then
10027 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
10028 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030 $as_echo_n "checking for $ac_word... " >&6; }
10031 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10032 $as_echo_n "(cached) " >&6
10034 case $aros_kernel_cpp in
10036 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10040 for as_dir
in $PATH
10043 test -z "$as_dir" && as_dir
=.
10044 for ac_exec_ext
in '' $ac_executable_extensions; do
10045 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10046 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10058 if test -n "$aros_kernel_cpp"; then
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10060 $as_echo "$aros_kernel_cpp" >&6; }
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10063 $as_echo "no" >&6; }
10069 if test "" = ""; then
10074 if test "$GCC" = "yes"; then
10075 aros_gcc_cpp
=`$CC -print-prog-name=$ac_tool_cpp`
10076 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10077 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10081 $as_echo_n "(cached) " >&6
10083 case $aros_kernel_cpp in
10085 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10089 for as_dir
in `dirname $aros_gcc_cpp`
10092 test -z "$as_dir" && as_dir
=.
10093 for ac_exec_ext
in '' $ac_executable_extensions; do
10094 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10095 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10107 if test -n "$aros_kernel_cpp"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10109 $as_echo "$aros_kernel_cpp" >&6; }
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10117 if test "$aros_kernel_cpp" = ""; then
10118 for ac_prog
in $ac_tool_cpp
10120 # Extract the first word of "$ac_prog", so it can be a program name with args.
10121 set dummy
$ac_prog; ac_word
=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10125 $as_echo_n "(cached) " >&6
10127 case $aros_kernel_cpp in
10129 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10133 for as_dir
in $PATH
10136 test -z "$as_dir" && as_dir
=.
10137 for ac_exec_ext
in '' $ac_executable_extensions; do
10138 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10139 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10151 if test -n "$aros_kernel_cpp"; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10153 $as_echo "$aros_kernel_cpp" >&6; }
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156 $as_echo "no" >&6; }
10160 test -n "$aros_kernel_cpp" && break
10167 ac_tool_optarg
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10168 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
10169 set dummy
$aros_kernel_cpp; ac_word
=$2
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171 $as_echo_n "checking for $ac_word... " >&6; }
10172 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
10173 $as_echo_n "(cached) " >&6
10175 case $aros_kernel_cpp in
10177 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
10180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10181 for as_dir
in $PATH
10184 test -z "$as_dir" && as_dir
=.
10185 for ac_exec_ext
in '' $ac_executable_extensions; do
10186 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10187 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
10188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10198 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
10199 if test -n "$aros_kernel_cpp"; then
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10201 $as_echo "$aros_kernel_cpp" >&6; }
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10208 aros_kernel_cpp
="$aros_kernel_cpp $ac_tool_optarg"
10212 if test "$aros_kernel_cpp" = ""; then
10215 if test "$aros_kernel_cpp" = "no"; then
10218 if test "$req_avail" = "no"; then
10219 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10222 if test "x$aros_kernel_cc" = "x"; then
10223 aros_kernel_cc
=${kernel_tool_prefix}${CC_BASE}
10225 if test "${kernel_tool_version}" != ""; then
10226 if test "$aros_kernel_cc" != ""; then
10227 ac_prog_args
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10228 ac_prog_cmd
=`expr "X$aros_kernel_cc" : '^\S*'`
10229 aros_kernel_cc
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10233 if test "$aros_kernel_cc" = ""; then
10234 if test "$cross_compiling" = "yes" ; then
10235 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
10236 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10238 $as_echo_n "checking for $ac_word... " >&6; }
10239 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10240 $as_echo_n "(cached) " >&6
10242 case $aros_kernel_cc in
10244 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10248 for as_dir
in $PATH
10251 test -z "$as_dir" && as_dir
=.
10252 for ac_exec_ext
in '' $ac_executable_extensions; do
10253 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10254 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10266 if test -n "$aros_kernel_cc"; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10268 $as_echo "$aros_kernel_cc" >&6; }
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 $as_echo "no" >&6; }
10277 if test "" = ""; then
10282 if test "$GCC" = "yes"; then
10283 aros_gcc_cc
=`$CC -print-prog-name=$ac_tool_cc`
10284 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
10285 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10287 $as_echo_n "checking for $ac_word... " >&6; }
10288 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10289 $as_echo_n "(cached) " >&6
10291 case $aros_kernel_cc in
10293 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10297 for as_dir
in `dirname $aros_gcc_cc`
10300 test -z "$as_dir" && as_dir
=.
10301 for ac_exec_ext
in '' $ac_executable_extensions; do
10302 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10303 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10314 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10315 if test -n "$aros_kernel_cc"; then
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10317 $as_echo "$aros_kernel_cc" >&6; }
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320 $as_echo "no" >&6; }
10325 if test "$aros_kernel_cc" = ""; then
10326 for ac_prog
in $ac_tool_cc
10328 # Extract the first word of "$ac_prog", so it can be a program name with args.
10329 set dummy
$ac_prog; ac_word
=$2
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331 $as_echo_n "checking for $ac_word... " >&6; }
10332 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10333 $as_echo_n "(cached) " >&6
10335 case $aros_kernel_cc in
10337 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10341 for as_dir
in $PATH
10344 test -z "$as_dir" && as_dir
=.
10345 for ac_exec_ext
in '' $ac_executable_extensions; do
10346 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10347 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10358 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10359 if test -n "$aros_kernel_cc"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10361 $as_echo "$aros_kernel_cc" >&6; }
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10368 test -n "$aros_kernel_cc" && break
10375 ac_tool_optarg
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10376 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
10377 set dummy
$aros_kernel_cc; ac_word
=$2
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379 $as_echo_n "checking for $ac_word... " >&6; }
10380 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10381 $as_echo_n "(cached) " >&6
10383 case $aros_kernel_cc in
10385 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10389 for as_dir
in $PATH
10392 test -z "$as_dir" && as_dir
=.
10393 for ac_exec_ext
in '' $ac_executable_extensions; do
10394 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10395 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10407 if test -n "$aros_kernel_cc"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10409 $as_echo "$aros_kernel_cc" >&6; }
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10416 aros_kernel_cc
="$aros_kernel_cc $ac_tool_optarg"
10420 if test "$aros_kernel_cc" = ""; then
10423 if test "$aros_kernel_cc" = "no"; then
10426 if test "$req_avail" = "no"; then
10427 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10430 if test "x$aros_kernel_cxx" = "x"; then
10431 aros_kernel_cxx
=${kernel_tool_prefix}${CXX_BASE}
10433 if test "${kernel_tool_version}" != ""; then
10434 if test "$aros_kernel_cxx" != ""; then
10435 ac_prog_args
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10436 ac_prog_cmd
=`expr "X$aros_kernel_cxx" : '^\S*'`
10437 aros_kernel_cxx
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10441 if test "$aros_kernel_cxx" = ""; then
10442 if test "$cross_compiling" = "yes" ; then
10443 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
10444 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10446 $as_echo_n "checking for $ac_word... " >&6; }
10447 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10448 $as_echo_n "(cached) " >&6
10450 case $aros_kernel_cxx in
10452 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10456 for as_dir
in $PATH
10459 test -z "$as_dir" && as_dir
=.
10460 for ac_exec_ext
in '' $ac_executable_extensions; do
10461 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10462 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10474 if test -n "$aros_kernel_cxx"; then
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10476 $as_echo "$aros_kernel_cxx" >&6; }
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10485 if test "" = ""; then
10490 if test "$GCC" = "yes"; then
10491 aros_gcc_cxx
=`$CC -print-prog-name=$ac_tool_cxx`
10492 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10493 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495 $as_echo_n "checking for $ac_word... " >&6; }
10496 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10497 $as_echo_n "(cached) " >&6
10499 case $aros_kernel_cxx in
10501 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10505 for as_dir
in `dirname $aros_gcc_cxx`
10508 test -z "$as_dir" && as_dir
=.
10509 for ac_exec_ext
in '' $ac_executable_extensions; do
10510 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10523 if test -n "$aros_kernel_cxx"; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10525 $as_echo "$aros_kernel_cxx" >&6; }
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10533 if test "$aros_kernel_cxx" = ""; then
10534 for ac_prog
in $ac_tool_cxx
10536 # Extract the first word of "$ac_prog", so it can be a program name with args.
10537 set dummy
$ac_prog; ac_word
=$2
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539 $as_echo_n "checking for $ac_word... " >&6; }
10540 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10541 $as_echo_n "(cached) " >&6
10543 case $aros_kernel_cxx in
10545 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10549 for as_dir
in $PATH
10552 test -z "$as_dir" && as_dir
=.
10553 for ac_exec_ext
in '' $ac_executable_extensions; do
10554 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10555 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10567 if test -n "$aros_kernel_cxx"; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10569 $as_echo "$aros_kernel_cxx" >&6; }
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; }
10576 test -n "$aros_kernel_cxx" && break
10583 ac_tool_optarg
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10584 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10585 set dummy
$aros_kernel_cxx; ac_word
=$2
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587 $as_echo_n "checking for $ac_word... " >&6; }
10588 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10589 $as_echo_n "(cached) " >&6
10591 case $aros_kernel_cxx in
10593 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10597 for as_dir
in $PATH
10600 test -z "$as_dir" && as_dir
=.
10601 for ac_exec_ext
in '' $ac_executable_extensions; do
10602 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10603 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10614 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10615 if test -n "$aros_kernel_cxx"; then
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10617 $as_echo "$aros_kernel_cxx" >&6; }
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 $as_echo "no" >&6; }
10624 aros_kernel_cxx
="$aros_kernel_cxx $ac_tool_optarg"
10627 # If it's set, make sure it's really there
10628 if test "x$aros_kernel_cxx" != "x" ; then
10630 if test "$aros_kernel_cxx" = ""; then
10633 if test "$aros_kernel_cxx" = "no"; then
10636 if test "$req_avail" = "no"; then
10637 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10640 if test "x$aros_kernel_ld" = "x"; then
10641 aros_kernel_ld
=$aros_host_ld
10644 if test "$aros_kernel_ld" = ""; then
10645 if test "$cross_compiling" = "yes" ; then
10646 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10647 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649 $as_echo_n "checking for $ac_word... " >&6; }
10650 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10651 $as_echo_n "(cached) " >&6
10653 case $aros_kernel_ld in
10655 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10659 for as_dir
in $PATH
10662 test -z "$as_dir" && as_dir
=.
10663 for ac_exec_ext
in '' $ac_executable_extensions; do
10664 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10665 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10677 if test -n "$aros_kernel_ld"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10679 $as_echo "$aros_kernel_ld" >&6; }
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10688 if test "" = ""; then
10693 if test "$GCC" = "yes"; then
10694 aros_gcc_ld
=`$CC -print-prog-name=$ac_tool_ld`
10695 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10696 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10698 $as_echo_n "checking for $ac_word... " >&6; }
10699 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10700 $as_echo_n "(cached) " >&6
10702 case $aros_kernel_ld in
10704 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10708 for as_dir
in `dirname $aros_gcc_ld`
10711 test -z "$as_dir" && as_dir
=.
10712 for ac_exec_ext
in '' $ac_executable_extensions; do
10713 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10714 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10726 if test -n "$aros_kernel_ld"; then
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10728 $as_echo "$aros_kernel_ld" >&6; }
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731 $as_echo "no" >&6; }
10736 if test "$aros_kernel_ld" = ""; then
10737 for ac_prog
in $ac_tool_ld
10739 # Extract the first word of "$ac_prog", so it can be a program name with args.
10740 set dummy
$ac_prog; ac_word
=$2
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10742 $as_echo_n "checking for $ac_word... " >&6; }
10743 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10744 $as_echo_n "(cached) " >&6
10746 case $aros_kernel_ld in
10748 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10752 for as_dir
in $PATH
10755 test -z "$as_dir" && as_dir
=.
10756 for ac_exec_ext
in '' $ac_executable_extensions; do
10757 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10758 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10769 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10770 if test -n "$aros_kernel_ld"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10772 $as_echo "$aros_kernel_ld" >&6; }
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775 $as_echo "no" >&6; }
10779 test -n "$aros_kernel_ld" && break
10786 ac_tool_optarg
=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10787 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10788 set dummy
$aros_kernel_ld; ac_word
=$2
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10790 $as_echo_n "checking for $ac_word... " >&6; }
10791 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10792 $as_echo_n "(cached) " >&6
10794 case $aros_kernel_ld in
10796 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10800 for as_dir
in $PATH
10803 test -z "$as_dir" && as_dir
=.
10804 for ac_exec_ext
in '' $ac_executable_extensions; do
10805 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10806 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10818 if test -n "$aros_kernel_ld"; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10820 $as_echo "$aros_kernel_ld" >&6; }
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10827 aros_kernel_ld
="$aros_kernel_ld $ac_tool_optarg"
10831 if test "$aros_kernel_ld" = ""; then
10834 if test "$aros_kernel_ld" = "no"; then
10837 if test "$req_avail" = "no"; then
10838 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10840 if test "x$aros_kernel_as" = "x"; then
10841 aros_kernel_as
=$aros_host_as
10842 if test "x$aros_kernel_as" = "x"; then
10843 aros_kernel_as
=${HOST_TOOLCHAIN_PREFIX}as
${HOST_TOOLCHAIN_SUFFIX}
10847 if test "$aros_kernel_as" = ""; then
10848 if test "$cross_compiling" = "yes" ; then
10849 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10850 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852 $as_echo_n "checking for $ac_word... " >&6; }
10853 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10854 $as_echo_n "(cached) " >&6
10856 case $aros_kernel_as in
10858 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10862 for as_dir
in $PATH
10865 test -z "$as_dir" && as_dir
=.
10866 for ac_exec_ext
in '' $ac_executable_extensions; do
10867 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10868 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10879 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10880 if test -n "$aros_kernel_as"; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10882 $as_echo "$aros_kernel_as" >&6; }
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885 $as_echo "no" >&6; }
10891 if test "" = ""; then
10896 if test "$GCC" = "yes"; then
10897 aros_gcc_as
=`$CC -print-prog-name=$ac_tool_as`
10898 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10899 set dummy
`basename $aros_gcc_as`; ac_word
=$2
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10901 $as_echo_n "checking for $ac_word... " >&6; }
10902 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10903 $as_echo_n "(cached) " >&6
10905 case $aros_kernel_as in
10907 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10911 for as_dir
in `dirname $aros_gcc_as`
10914 test -z "$as_dir" && as_dir
=.
10915 for ac_exec_ext
in '' $ac_executable_extensions; do
10916 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10917 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10928 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10929 if test -n "$aros_kernel_as"; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10931 $as_echo "$aros_kernel_as" >&6; }
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934 $as_echo "no" >&6; }
10939 if test "$aros_kernel_as" = ""; then
10940 for ac_prog
in $ac_tool_as
10942 # Extract the first word of "$ac_prog", so it can be a program name with args.
10943 set dummy
$ac_prog; ac_word
=$2
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945 $as_echo_n "checking for $ac_word... " >&6; }
10946 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10947 $as_echo_n "(cached) " >&6
10949 case $aros_kernel_as in
10951 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10955 for as_dir
in $PATH
10958 test -z "$as_dir" && as_dir
=.
10959 for ac_exec_ext
in '' $ac_executable_extensions; do
10960 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10961 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10972 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10973 if test -n "$aros_kernel_as"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10975 $as_echo "$aros_kernel_as" >&6; }
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10982 test -n "$aros_kernel_as" && break
10989 ac_tool_optarg
=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10990 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10991 set dummy
$aros_kernel_as; ac_word
=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10995 $as_echo_n "(cached) " >&6
10997 case $aros_kernel_as in
10999 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
11002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11003 for as_dir
in $PATH
11006 test -z "$as_dir" && as_dir
=.
11007 for ac_exec_ext
in '' $ac_executable_extensions; do
11008 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11009 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11020 aros_kernel_as
=$ac_cv_path_aros_kernel_as
11021 if test -n "$aros_kernel_as"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
11023 $as_echo "$aros_kernel_as" >&6; }
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026 $as_echo "no" >&6; }
11030 aros_kernel_as
="$aros_kernel_as $ac_tool_optarg"
11034 if test "$aros_kernel_as" = ""; then
11037 if test "$aros_kernel_as" = "no"; then
11040 if test "$req_avail" = "no"; then
11041 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
11043 if test "x$aros_kernel_ar" = "x"; then
11044 aros_kernel_ar
=$aros_host_plain_ar
11047 if test "$aros_kernel_ar" = ""; then
11048 if test "$cross_compiling" = "yes" ; then
11049 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
11050 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11052 $as_echo_n "checking for $ac_word... " >&6; }
11053 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
11054 $as_echo_n "(cached) " >&6
11056 case $aros_kernel_ar in
11058 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
11061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11062 for as_dir
in $PATH
11065 test -z "$as_dir" && as_dir
=.
11066 for ac_exec_ext
in '' $ac_executable_extensions; do
11067 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11068 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
11080 if test -n "$aros_kernel_ar"; then
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11082 $as_echo "$aros_kernel_ar" >&6; }
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11091 if test "" = ""; then
11096 if test "$GCC" = "yes"; then
11097 aros_gcc_ar
=`$CC -print-prog-name=$ac_tool_ar`
11098 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11099 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11101 $as_echo_n "checking for $ac_word... " >&6; }
11102 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
11103 $as_echo_n "(cached) " >&6
11105 case $aros_kernel_ar in
11107 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
11110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11111 for as_dir
in `dirname $aros_gcc_ar`
11114 test -z "$as_dir" && as_dir
=.
11115 for ac_exec_ext
in '' $ac_executable_extensions; do
11116 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11117 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
11129 if test -n "$aros_kernel_ar"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11131 $as_echo "$aros_kernel_ar" >&6; }
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11139 if test "$aros_kernel_ar" = ""; then
11140 for ac_prog
in $ac_tool_ar
11142 # Extract the first word of "$ac_prog", so it can be a program name with args.
11143 set dummy
$ac_prog; ac_word
=$2
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145 $as_echo_n "checking for $ac_word... " >&6; }
11146 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
11147 $as_echo_n "(cached) " >&6
11149 case $aros_kernel_ar in
11151 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
11154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11155 for as_dir
in $PATH
11158 test -z "$as_dir" && as_dir
=.
11159 for ac_exec_ext
in '' $ac_executable_extensions; do
11160 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11161 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
11162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
11173 if test -n "$aros_kernel_ar"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11175 $as_echo "$aros_kernel_ar" >&6; }
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11182 test -n "$aros_kernel_ar" && break
11189 ac_tool_optarg
=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11190 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
11191 set dummy
$aros_kernel_ar; ac_word
=$2
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193 $as_echo_n "checking for $ac_word... " >&6; }
11194 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
11195 $as_echo_n "(cached) " >&6
11197 case $aros_kernel_ar in
11199 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
11202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11203 for as_dir
in $PATH
11206 test -z "$as_dir" && as_dir
=.
11207 for ac_exec_ext
in '' $ac_executable_extensions; do
11208 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11209 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11220 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
11221 if test -n "$aros_kernel_ar"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11223 $as_echo "$aros_kernel_ar" >&6; }
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11230 aros_kernel_ar
="$aros_kernel_ar $ac_tool_optarg"
11234 if test "$aros_kernel_ar" = ""; then
11237 if test "$aros_kernel_ar" = "no"; then
11240 if test "$req_avail" = "no"; then
11241 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11243 if test "x$aros_kernel_ranlib" = "x"; then
11244 aros_kernel_ranlib
=$aros_host_ranlib
11247 if test "$aros_kernel_ranlib" = ""; then
11248 if test "$cross_compiling" = "yes" ; then
11249 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
11250 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11254 $as_echo_n "(cached) " >&6
11256 case $aros_kernel_ranlib in
11258 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11262 for as_dir
in $PATH
11265 test -z "$as_dir" && as_dir
=.
11266 for ac_exec_ext
in '' $ac_executable_extensions; do
11267 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11268 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11280 if test -n "$aros_kernel_ranlib"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11282 $as_echo "$aros_kernel_ranlib" >&6; }
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11291 if test "" = ""; then
11292 ac_tool_ranlib
=ranlib
11296 if test "$GCC" = "yes"; then
11297 aros_gcc_ranlib
=`$CC -print-prog-name=$ac_tool_ranlib`
11298 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11299 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11301 $as_echo_n "checking for $ac_word... " >&6; }
11302 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11303 $as_echo_n "(cached) " >&6
11305 case $aros_kernel_ranlib in
11307 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11311 for as_dir
in `dirname $aros_gcc_ranlib`
11314 test -z "$as_dir" && as_dir
=.
11315 for ac_exec_ext
in '' $ac_executable_extensions; do
11316 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11317 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11328 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11329 if test -n "$aros_kernel_ranlib"; then
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11331 $as_echo "$aros_kernel_ranlib" >&6; }
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334 $as_echo "no" >&6; }
11339 if test "$aros_kernel_ranlib" = ""; then
11340 for ac_prog
in $ac_tool_ranlib
11342 # Extract the first word of "$ac_prog", so it can be a program name with args.
11343 set dummy
$ac_prog; ac_word
=$2
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345 $as_echo_n "checking for $ac_word... " >&6; }
11346 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11347 $as_echo_n "(cached) " >&6
11349 case $aros_kernel_ranlib in
11351 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11355 for as_dir
in $PATH
11358 test -z "$as_dir" && as_dir
=.
11359 for ac_exec_ext
in '' $ac_executable_extensions; do
11360 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11361 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11373 if test -n "$aros_kernel_ranlib"; then
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11375 $as_echo "$aros_kernel_ranlib" >&6; }
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 $as_echo "no" >&6; }
11382 test -n "$aros_kernel_ranlib" && break
11389 ac_tool_optarg
=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11390 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
11391 set dummy
$aros_kernel_ranlib; ac_word
=$2
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393 $as_echo_n "checking for $ac_word... " >&6; }
11394 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11395 $as_echo_n "(cached) " >&6
11397 case $aros_kernel_ranlib in
11399 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11403 for as_dir
in $PATH
11406 test -z "$as_dir" && as_dir
=.
11407 for ac_exec_ext
in '' $ac_executable_extensions; do
11408 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11409 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11420 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11421 if test -n "$aros_kernel_ranlib"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11423 $as_echo "$aros_kernel_ranlib" >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11430 aros_kernel_ranlib
="$aros_kernel_ranlib $ac_tool_optarg"
11434 if test "$aros_kernel_ranlib" = ""; then
11437 if test "$aros_kernel_ranlib" = "no"; then
11440 if test "$req_avail" = "no"; then
11441 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11443 if test "x$aros_kernel_nm" = "x"; then
11444 aros_kernel_nm
=$aros_host_nm
11445 if test "x$aros_kernel_nm" = "x"; then
11446 aros_kernel_nm
=${HOST_TOOLCHAIN_PREFIX}nm
${HOST_TOOLCHAIN_SUFFIX}
11450 if test "$aros_kernel_nm" = ""; then
11451 if test "$cross_compiling" = "yes" ; then
11452 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
11453 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11457 $as_echo_n "(cached) " >&6
11459 case $aros_kernel_nm in
11461 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11465 for as_dir
in $PATH
11468 test -z "$as_dir" && as_dir
=.
11469 for ac_exec_ext
in '' $ac_executable_extensions; do
11470 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11471 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11483 if test -n "$aros_kernel_nm"; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11485 $as_echo "$aros_kernel_nm" >&6; }
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488 $as_echo "no" >&6; }
11494 if test "" = ""; then
11499 if test "$GCC" = "yes"; then
11500 aros_gcc_nm
=`$CC -print-prog-name=$ac_tool_nm`
11501 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11502 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504 $as_echo_n "checking for $ac_word... " >&6; }
11505 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11506 $as_echo_n "(cached) " >&6
11508 case $aros_kernel_nm in
11510 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11514 for as_dir
in `dirname $aros_gcc_nm`
11517 test -z "$as_dir" && as_dir
=.
11518 for ac_exec_ext
in '' $ac_executable_extensions; do
11519 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11520 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11532 if test -n "$aros_kernel_nm"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11534 $as_echo "$aros_kernel_nm" >&6; }
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11542 if test "$aros_kernel_nm" = ""; then
11543 for ac_prog
in $ac_tool_nm
11545 # Extract the first word of "$ac_prog", so it can be a program name with args.
11546 set dummy
$ac_prog; ac_word
=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11550 $as_echo_n "(cached) " >&6
11552 case $aros_kernel_nm in
11554 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11558 for as_dir
in $PATH
11561 test -z "$as_dir" && as_dir
=.
11562 for ac_exec_ext
in '' $ac_executable_extensions; do
11563 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11564 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11576 if test -n "$aros_kernel_nm"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11578 $as_echo "$aros_kernel_nm" >&6; }
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11585 test -n "$aros_kernel_nm" && break
11592 ac_tool_optarg
=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11593 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11594 set dummy
$aros_kernel_nm; ac_word
=$2
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11596 $as_echo_n "checking for $ac_word... " >&6; }
11597 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11598 $as_echo_n "(cached) " >&6
11600 case $aros_kernel_nm in
11602 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11606 for as_dir
in $PATH
11609 test -z "$as_dir" && as_dir
=.
11610 for ac_exec_ext
in '' $ac_executable_extensions; do
11611 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11623 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11624 if test -n "$aros_kernel_nm"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11626 $as_echo "$aros_kernel_nm" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11633 aros_kernel_nm
="$aros_kernel_nm $ac_tool_optarg"
11637 if test "$aros_kernel_nm" = ""; then
11640 if test "$aros_kernel_nm" = "no"; then
11643 if test "$req_avail" = "no"; then
11644 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11647 if test "$aros_kernel_strip" = ""; then
11648 if test "$cross_compiling" = "yes" ; then
11649 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11650 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652 $as_echo_n "checking for $ac_word... " >&6; }
11653 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11654 $as_echo_n "(cached) " >&6
11656 case $aros_kernel_strip in
11658 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11662 for as_dir
in $PATH
11665 test -z "$as_dir" && as_dir
=.
11666 for ac_exec_ext
in '' $ac_executable_extensions; do
11667 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11668 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11679 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11680 if test -n "$aros_kernel_strip"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11682 $as_echo "$aros_kernel_strip" >&6; }
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11691 if test "" = ""; then
11692 ac_tool_strip
=strip
11696 if test "$GCC" = "yes"; then
11697 aros_gcc_strip
=`$CC -print-prog-name=$ac_tool_strip`
11698 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11699 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11703 $as_echo_n "(cached) " >&6
11705 case $aros_kernel_strip in
11707 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11711 for as_dir
in `dirname $aros_gcc_strip`
11714 test -z "$as_dir" && as_dir
=.
11715 for ac_exec_ext
in '' $ac_executable_extensions; do
11716 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11717 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11729 if test -n "$aros_kernel_strip"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11731 $as_echo "$aros_kernel_strip" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11739 if test "$aros_kernel_strip" = ""; then
11740 for ac_prog
in $ac_tool_strip
11742 # Extract the first word of "$ac_prog", so it can be a program name with args.
11743 set dummy
$ac_prog; ac_word
=$2
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745 $as_echo_n "checking for $ac_word... " >&6; }
11746 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11747 $as_echo_n "(cached) " >&6
11749 case $aros_kernel_strip in
11751 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11755 for as_dir
in $PATH
11758 test -z "$as_dir" && as_dir
=.
11759 for ac_exec_ext
in '' $ac_executable_extensions; do
11760 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11761 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11772 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11773 if test -n "$aros_kernel_strip"; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11775 $as_echo "$aros_kernel_strip" >&6; }
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11782 test -n "$aros_kernel_strip" && break
11789 ac_tool_optarg
=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11790 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11791 set dummy
$aros_kernel_strip; ac_word
=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11795 $as_echo_n "(cached) " >&6
11797 case $aros_kernel_strip in
11799 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11803 for as_dir
in $PATH
11806 test -z "$as_dir" && as_dir
=.
11807 for ac_exec_ext
in '' $ac_executable_extensions; do
11808 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11809 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11821 if test -n "$aros_kernel_strip"; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11823 $as_echo "$aros_kernel_strip" >&6; }
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11830 aros_kernel_strip
="$aros_kernel_strip $ac_tool_optarg"
11834 if test "$aros_kernel_strip" = ""; then
11837 if test "$aros_kernel_strip" = "no"; then
11840 if test "$req_avail" = "no"; then
11841 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11844 # Objcopy and objdump are not required for the kernel
11845 # toolchain on many architectures.
11846 # So we'll look for them, but not make them strictly required.
11847 if test "x$aros_kernel_objcopy" = "x"; then
11848 aros_kernel_objcopy
=$aros_host_objcopy
11849 if test "x$aros_kernel_objcopy" = "x"; then
11850 aros_kernel_objcopy
=${HOST_TOOLCHAIN_PREFIX}objcopy
${HOST_TOOLCHAIN_SUFFIX}
11854 if test "$aros_kernel_objcopy" = ""; then
11855 if test "$cross_compiling" = "yes" ; then
11856 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11857 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11859 $as_echo_n "checking for $ac_word... " >&6; }
11860 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11861 $as_echo_n "(cached) " >&6
11863 case $aros_kernel_objcopy in
11865 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11869 for as_dir
in $PATH
11872 test -z "$as_dir" && as_dir
=.
11873 for ac_exec_ext
in '' $ac_executable_extensions; do
11874 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11875 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11886 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11887 if test -n "$aros_kernel_objcopy"; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11889 $as_echo "$aros_kernel_objcopy" >&6; }
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892 $as_echo "no" >&6; }
11898 if test "" = ""; then
11899 ac_tool_objcopy
=objcopy
11903 if test "$GCC" = "yes"; then
11904 aros_gcc_objcopy
=`$CC -print-prog-name=$ac_tool_objcopy`
11905 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11906 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11910 $as_echo_n "(cached) " >&6
11912 case $aros_kernel_objcopy in
11914 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11918 for as_dir
in `dirname $aros_gcc_objcopy`
11921 test -z "$as_dir" && as_dir
=.
11922 for ac_exec_ext
in '' $ac_executable_extensions; do
11923 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11924 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11935 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11936 if test -n "$aros_kernel_objcopy"; then
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11938 $as_echo "$aros_kernel_objcopy" >&6; }
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 $as_echo "no" >&6; }
11946 if test "$aros_kernel_objcopy" = ""; then
11947 for ac_prog
in $ac_tool_objcopy
11949 # Extract the first word of "$ac_prog", so it can be a program name with args.
11950 set dummy
$ac_prog; ac_word
=$2
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952 $as_echo_n "checking for $ac_word... " >&6; }
11953 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11954 $as_echo_n "(cached) " >&6
11956 case $aros_kernel_objcopy in
11958 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11962 for as_dir
in $PATH
11965 test -z "$as_dir" && as_dir
=.
11966 for ac_exec_ext
in '' $ac_executable_extensions; do
11967 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11968 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11980 if test -n "$aros_kernel_objcopy"; then
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11982 $as_echo "$aros_kernel_objcopy" >&6; }
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11989 test -n "$aros_kernel_objcopy" && break
11996 ac_tool_optarg
=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11997 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11998 set dummy
$aros_kernel_objcopy; ac_word
=$2
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000 $as_echo_n "checking for $ac_word... " >&6; }
12001 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
12002 $as_echo_n "(cached) " >&6
12004 case $aros_kernel_objcopy in
12006 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
12009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12010 for as_dir
in $PATH
12013 test -z "$as_dir" && as_dir
=.
12014 for ac_exec_ext
in '' $ac_executable_extensions; do
12015 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12016 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
12028 if test -n "$aros_kernel_objcopy"; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
12030 $as_echo "$aros_kernel_objcopy" >&6; }
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12037 aros_kernel_objcopy
="$aros_kernel_objcopy $ac_tool_optarg"
12040 if test "x$aros_kernel_objdump" = "x"; then
12041 aros_kernel_objdump
=$aros_host_objdump
12042 if test "x$aros_kernel_objdump" = "x"; then
12043 aros_kernel_objdump
=${HOST_TOOLCHAIN_PREFIX}objdump
${HOST_TOOLCHAIN_SUFFIX}
12047 if test "$aros_kernel_objdump" = ""; then
12048 if test "$cross_compiling" = "yes" ; then
12049 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
12050 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
12054 $as_echo_n "(cached) " >&6
12056 case $aros_kernel_objdump in
12058 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
12061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12062 for as_dir
in $PATH
12065 test -z "$as_dir" && as_dir
=.
12066 for ac_exec_ext
in '' $ac_executable_extensions; do
12067 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12068 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
12080 if test -n "$aros_kernel_objdump"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12082 $as_echo "$aros_kernel_objdump" >&6; }
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12091 if test "" = ""; then
12092 ac_tool_objdump
=objdump
12096 if test "$GCC" = "yes"; then
12097 aros_gcc_objdump
=`$CC -print-prog-name=$ac_tool_objdump`
12098 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12099 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
12103 $as_echo_n "(cached) " >&6
12105 case $aros_kernel_objdump in
12107 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
12110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12111 for as_dir
in `dirname $aros_gcc_objdump`
12114 test -z "$as_dir" && as_dir
=.
12115 for ac_exec_ext
in '' $ac_executable_extensions; do
12116 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12117 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
12118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12128 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
12129 if test -n "$aros_kernel_objdump"; then
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12131 $as_echo "$aros_kernel_objdump" >&6; }
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12139 if test "$aros_kernel_objdump" = ""; then
12140 for ac_prog
in $ac_tool_objdump
12142 # Extract the first word of "$ac_prog", so it can be a program name with args.
12143 set dummy
$ac_prog; ac_word
=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
12147 $as_echo_n "(cached) " >&6
12149 case $aros_kernel_objdump in
12151 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
12154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12155 for as_dir
in $PATH
12158 test -z "$as_dir" && as_dir
=.
12159 for ac_exec_ext
in '' $ac_executable_extensions; do
12160 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12161 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12172 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
12173 if test -n "$aros_kernel_objdump"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12175 $as_echo "$aros_kernel_objdump" >&6; }
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12182 test -n "$aros_kernel_objdump" && break
12189 ac_tool_optarg
=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
12190 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
12191 set dummy
$aros_kernel_objdump; ac_word
=$2
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193 $as_echo_n "checking for $ac_word... " >&6; }
12194 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
12195 $as_echo_n "(cached) " >&6
12197 case $aros_kernel_objdump in
12199 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
12202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12203 for as_dir
in $PATH
12206 test -z "$as_dir" && as_dir
=.
12207 for ac_exec_ext
in '' $ac_executable_extensions; do
12208 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12209 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
12221 if test -n "$aros_kernel_objdump"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12223 $as_echo "$aros_kernel_objdump" >&6; }
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12230 aros_kernel_objdump
="$aros_kernel_objdump $ac_tool_optarg"
12233 if test "x${crosstools}" != "xyes" ; then
12235 if test "$aros_kernel_objcopy" = ""; then
12238 if test "$aros_kernel_objcopy" = "no"; then
12241 if test "$req_avail" = "no"; then
12242 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12245 if test "$aros_kernel_objdump" = ""; then
12248 if test "$aros_kernel_objdump" = "no"; then
12251 if test "$req_avail" = "no"; then
12252 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
12259 $as_echo_n "checking which target tools to use... " >&6; }
12260 if test "$aros_target_toolchain" = "yes"; then
12261 if test "$aros_toolchain" = "llvm" ; then
12264 msg_result
=$target_tool_prefix
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
12267 $as_echo "$msg_result" >&6; }
12268 # We are building AROS crosstools
12269 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
12270 orig_target_cc
="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
12271 orig_target_cxx
="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
12272 orig_target_cpp
="${tmp_tool_prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
12273 orig_target_ld
="${tmp_tool_prefix}${toolchain_ld}"
12274 orig_target_as
="${tmp_tool_prefix}${toolchain_as}"
12275 orig_target_ar
="${tmp_tool_prefix}${toolchain_ar}"
12276 orig_target_ranlib
="${tmp_tool_prefix}${toolchain_ranlib}"
12277 orig_target_nm
="${tmp_tool_prefix}${toolchain_nm}"
12278 orig_target_strip
="${tmp_tool_prefix}${toolchain_strip}"
12279 orig_target_objcopy
="${tmp_tool_prefix}${toolchain_objcopy}"
12280 orig_target_objdump
="${tmp_tool_prefix}${toolchain_objdump}"
12282 # Determine whether AROS or ELF tools should be used
12283 if test "$aros_tool_prefix" = "none"; then
12284 aros_tool_prefix
="${elf_tool_prefix}"
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
12288 $as_echo "$aros_tool_prefix" >&6; }
12289 # We are *not* building AROS crosstools - use the AROS or ELF tools
12291 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" = ""; then
12292 if test "$cross_compiling" = "yes" ; then
12293 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
12294 set dummy
${target_tool_prefix}cpp
; 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_orig_target_cpp+:} false
; then :
12298 $as_echo_n "(cached) " >&6
12300 case $orig_target_cpp in
12302 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # 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_orig_target_cpp
="$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 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12324 if test -n "$orig_target_cpp"; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12326 $as_echo "$orig_target_cpp" >&6; }
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12335 if test "" = ""; then
12340 if test "$GCC" = "yes"; then
12341 aros_gcc_cpp
=`$CC -print-prog-name=$ac_tool_cpp`
12342 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
12343 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345 $as_echo_n "checking for $ac_word... " >&6; }
12346 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12347 $as_echo_n "(cached) " >&6
12349 case $orig_target_cpp in
12351 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12355 for as_dir
in `dirname $aros_gcc_cpp`
12358 test -z "$as_dir" && as_dir
=.
12359 for ac_exec_ext
in '' $ac_executable_extensions; do
12360 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12361 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12372 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12373 if test -n "$orig_target_cpp"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12375 $as_echo "$orig_target_cpp" >&6; }
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12383 if test "$orig_target_cpp" = ""; then
12384 for ac_prog
in $ac_tool_cpp
12386 # Extract the first word of "$ac_prog", so it can be a program name with args.
12387 set dummy
$ac_prog; ac_word
=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12391 $as_echo_n "(cached) " >&6
12393 case $orig_target_cpp in
12395 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12399 for as_dir
in $PATH
12402 test -z "$as_dir" && as_dir
=.
12403 for ac_exec_ext
in '' $ac_executable_extensions; do
12404 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12405 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12416 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12417 if test -n "$orig_target_cpp"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12419 $as_echo "$orig_target_cpp" >&6; }
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12426 test -n "$orig_target_cpp" && break
12433 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" : '[^ ]* \(.*\)'`
12434 # 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.
12435 set dummy
${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}; ac_word
=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 $as_echo_n "checking for $ac_word... " >&6; }
12438 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12439 $as_echo_n "(cached) " >&6
12441 case $orig_target_cpp in
12443 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12447 for as_dir
in $PATH
12450 test -z "$as_dir" && as_dir
=.
12451 for ac_exec_ext
in '' $ac_executable_extensions; do
12452 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12453 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12464 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12465 if test -n "$orig_target_cpp"; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12467 $as_echo "$orig_target_cpp" >&6; }
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470 $as_echo "no" >&6; }
12474 orig_target_cpp
="$orig_target_cpp $ac_tool_optarg"
12478 if test "$orig_target_cpp" = ""; then
12481 if test "$orig_target_cpp" = "no"; then
12484 if test "$req_avail" = "no"; then
12485 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
12488 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
12489 if test "$cross_compiling" = "yes" ; then
12490 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12491 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493 $as_echo_n "checking for $ac_word... " >&6; }
12494 if ${ac_cv_path_orig_target_cc+:} false
; then :
12495 $as_echo_n "(cached) " >&6
12497 case $orig_target_cc in
12499 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12503 for as_dir
in $PATH
12506 test -z "$as_dir" && as_dir
=.
12507 for ac_exec_ext
in '' $ac_executable_extensions; do
12508 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12509 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12520 orig_target_cc
=$ac_cv_path_orig_target_cc
12521 if test -n "$orig_target_cc"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12523 $as_echo "$orig_target_cc" >&6; }
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12532 if test "" = ""; then
12537 if test "$GCC" = "yes"; then
12538 aros_gcc_gcc
=`$CC -print-prog-name=$ac_tool_gcc`
12539 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12540 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if ${ac_cv_path_orig_target_cc+:} false
; then :
12544 $as_echo_n "(cached) " >&6
12546 case $orig_target_cc in
12548 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12552 for as_dir
in `dirname $aros_gcc_gcc`
12555 test -z "$as_dir" && as_dir
=.
12556 for ac_exec_ext
in '' $ac_executable_extensions; do
12557 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12558 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 orig_target_cc
=$ac_cv_path_orig_target_cc
12570 if test -n "$orig_target_cc"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12572 $as_echo "$orig_target_cc" >&6; }
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12580 if test "$orig_target_cc" = ""; then
12581 for ac_prog
in $ac_tool_gcc
12583 # Extract the first word of "$ac_prog", so it can be a program name with args.
12584 set dummy
$ac_prog; ac_word
=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if ${ac_cv_path_orig_target_cc+:} false
; then :
12588 $as_echo_n "(cached) " >&6
12590 case $orig_target_cc in
12592 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12596 for as_dir
in $PATH
12599 test -z "$as_dir" && as_dir
=.
12600 for ac_exec_ext
in '' $ac_executable_extensions; do
12601 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12602 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613 orig_target_cc
=$ac_cv_path_orig_target_cc
12614 if test -n "$orig_target_cc"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12616 $as_echo "$orig_target_cc" >&6; }
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12623 test -n "$orig_target_cc" && break
12630 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12631 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12632 set dummy
${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word
=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if ${ac_cv_path_orig_target_cc+:} false
; then :
12636 $as_echo_n "(cached) " >&6
12638 case $orig_target_cc in
12640 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12644 for as_dir
in $PATH
12647 test -z "$as_dir" && as_dir
=.
12648 for ac_exec_ext
in '' $ac_executable_extensions; do
12649 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12650 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661 orig_target_cc
=$ac_cv_path_orig_target_cc
12662 if test -n "$orig_target_cc"; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12664 $as_echo "$orig_target_cc" >&6; }
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12671 orig_target_cc
="$orig_target_cc $ac_tool_optarg"
12675 if test "$orig_target_cc" = ""; then
12678 if test "$orig_target_cc" = "no"; then
12681 if test "$req_avail" = "no"; then
12682 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12685 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12686 if test "$cross_compiling" = "yes" ; then
12687 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12688 set dummy
${target_tool_prefix}g
++; ac_word
=$2
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12690 $as_echo_n "checking for $ac_word... " >&6; }
12691 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12692 $as_echo_n "(cached) " >&6
12694 case $orig_target_cxx in
12696 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12700 for as_dir
in $PATH
12703 test -z "$as_dir" && as_dir
=.
12704 for ac_exec_ext
in '' $ac_executable_extensions; do
12705 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12706 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12717 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12718 if test -n "$orig_target_cxx"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12720 $as_echo "$orig_target_cxx" >&6; }
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12729 if test "" = ""; then
12734 if test "$GCC" = "yes"; then
12735 aros_gcc_g
++=`$CC -print-prog-name=$ac_tool_g++`
12736 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12737 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12739 $as_echo_n "checking for $ac_word... " >&6; }
12740 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12741 $as_echo_n "(cached) " >&6
12743 case $orig_target_cxx in
12745 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12749 for as_dir
in `dirname $aros_gcc_g++`
12752 test -z "$as_dir" && as_dir
=.
12753 for ac_exec_ext
in '' $ac_executable_extensions; do
12754 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12755 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12766 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12767 if test -n "$orig_target_cxx"; then
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12769 $as_echo "$orig_target_cxx" >&6; }
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772 $as_echo "no" >&6; }
12777 if test "$orig_target_cxx" = ""; then
12778 for ac_prog
in $ac_tool_g++
12780 # Extract the first word of "$ac_prog", so it can be a program name with args.
12781 set dummy
$ac_prog; ac_word
=$2
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783 $as_echo_n "checking for $ac_word... " >&6; }
12784 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12785 $as_echo_n "(cached) " >&6
12787 case $orig_target_cxx in
12789 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12793 for as_dir
in $PATH
12796 test -z "$as_dir" && as_dir
=.
12797 for ac_exec_ext
in '' $ac_executable_extensions; do
12798 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12799 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12810 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12811 if test -n "$orig_target_cxx"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12813 $as_echo "$orig_target_cxx" >&6; }
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12820 test -n "$orig_target_cxx" && break
12827 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12828 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12829 set dummy
${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word
=$2
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 $as_echo_n "checking for $ac_word... " >&6; }
12832 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12833 $as_echo_n "(cached) " >&6
12835 case $orig_target_cxx in
12837 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12841 for as_dir
in $PATH
12844 test -z "$as_dir" && as_dir
=.
12845 for ac_exec_ext
in '' $ac_executable_extensions; do
12846 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12847 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12858 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12859 if test -n "$orig_target_cxx"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12861 $as_echo "$orig_target_cxx" >&6; }
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12868 orig_target_cxx
="$orig_target_cxx $ac_tool_optarg"
12872 if test "$orig_target_cxx" = ""; then
12875 if test "$orig_target_cxx" = "no"; then
12878 if test "$req_avail" = "no"; then
12879 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12882 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12883 if test "$cross_compiling" = "yes" ; then
12884 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12885 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if ${ac_cv_path_orig_target_ld+:} false
; then :
12889 $as_echo_n "(cached) " >&6
12891 case $orig_target_ld in
12893 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12897 for as_dir
in $PATH
12900 test -z "$as_dir" && as_dir
=.
12901 for ac_exec_ext
in '' $ac_executable_extensions; do
12902 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12903 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 orig_target_ld
=$ac_cv_path_orig_target_ld
12915 if test -n "$orig_target_ld"; then
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12917 $as_echo "$orig_target_ld" >&6; }
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12926 if test "" = ""; then
12931 if test "$GCC" = "yes"; then
12932 aros_gcc_gcc
=`$CC -print-prog-name=$ac_tool_gcc`
12933 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12934 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12936 $as_echo_n "checking for $ac_word... " >&6; }
12937 if ${ac_cv_path_orig_target_ld+:} false
; then :
12938 $as_echo_n "(cached) " >&6
12940 case $orig_target_ld in
12942 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12946 for as_dir
in `dirname $aros_gcc_gcc`
12949 test -z "$as_dir" && as_dir
=.
12950 for ac_exec_ext
in '' $ac_executable_extensions; do
12951 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12952 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12963 orig_target_ld
=$ac_cv_path_orig_target_ld
12964 if test -n "$orig_target_ld"; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12966 $as_echo "$orig_target_ld" >&6; }
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 $as_echo "no" >&6; }
12974 if test "$orig_target_ld" = ""; then
12975 for ac_prog
in $ac_tool_gcc
12977 # Extract the first word of "$ac_prog", so it can be a program name with args.
12978 set dummy
$ac_prog; ac_word
=$2
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12980 $as_echo_n "checking for $ac_word... " >&6; }
12981 if ${ac_cv_path_orig_target_ld+:} false
; then :
12982 $as_echo_n "(cached) " >&6
12984 case $orig_target_ld in
12986 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12990 for as_dir
in $PATH
12993 test -z "$as_dir" && as_dir
=.
12994 for ac_exec_ext
in '' $ac_executable_extensions; do
12995 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12996 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 orig_target_ld
=$ac_cv_path_orig_target_ld
13008 if test -n "$orig_target_ld"; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13010 $as_echo "$orig_target_ld" >&6; }
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013 $as_echo "no" >&6; }
13017 test -n "$orig_target_ld" && break
13024 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
13025 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
13026 set dummy
${aros_tool_prefix}${toolchain_ld}; ac_word
=$2
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13028 $as_echo_n "checking for $ac_word... " >&6; }
13029 if ${ac_cv_path_orig_target_ld+:} false
; then :
13030 $as_echo_n "(cached) " >&6
13032 case $orig_target_ld in
13034 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
13037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13038 for as_dir
in $PATH
13041 test -z "$as_dir" && as_dir
=.
13042 for ac_exec_ext
in '' $ac_executable_extensions; do
13043 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13044 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
13045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 orig_target_ld
=$ac_cv_path_orig_target_ld
13056 if test -n "$orig_target_ld"; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
13058 $as_echo "$orig_target_ld" >&6; }
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061 $as_echo "no" >&6; }
13065 orig_target_ld
="$orig_target_ld $ac_tool_optarg"
13069 if test "$orig_target_ld" = ""; then
13072 if test "$orig_target_ld" = "no"; then
13075 if test "$req_avail" = "no"; then
13076 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
13079 if test "aros_tool_prefix}${toolchain_as}" = ""; then
13080 if test "$cross_compiling" = "yes" ; then
13081 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
13082 set dummy
${target_tool_prefix}as
; ac_word
=$2
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if ${ac_cv_path_orig_target_as+:} false
; then :
13086 $as_echo_n "(cached) " >&6
13088 case $orig_target_as in
13090 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
13093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13094 for as_dir
in $PATH
13097 test -z "$as_dir" && as_dir
=.
13098 for ac_exec_ext
in '' $ac_executable_extensions; do
13099 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13100 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
13101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13111 orig_target_as
=$ac_cv_path_orig_target_as
13112 if test -n "$orig_target_as"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13114 $as_echo "$orig_target_as" >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13123 if test "" = ""; then
13128 if test "$GCC" = "yes"; then
13129 aros_gcc_as
=`$CC -print-prog-name=$ac_tool_as`
13130 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
13131 set dummy
`basename $aros_gcc_as`; ac_word
=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if ${ac_cv_path_orig_target_as+:} false
; then :
13135 $as_echo_n "(cached) " >&6
13137 case $orig_target_as in
13139 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
13142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13143 for as_dir
in `dirname $aros_gcc_as`
13146 test -z "$as_dir" && as_dir
=.
13147 for ac_exec_ext
in '' $ac_executable_extensions; do
13148 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13149 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
13150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13160 orig_target_as
=$ac_cv_path_orig_target_as
13161 if test -n "$orig_target_as"; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13163 $as_echo "$orig_target_as" >&6; }
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 $as_echo "no" >&6; }
13171 if test "$orig_target_as" = ""; then
13172 for ac_prog
in $ac_tool_as
13174 # Extract the first word of "$ac_prog", so it can be a program name with args.
13175 set dummy
$ac_prog; ac_word
=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if ${ac_cv_path_orig_target_as+:} false
; then :
13179 $as_echo_n "(cached) " >&6
13181 case $orig_target_as in
13183 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
13186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13187 for as_dir
in $PATH
13190 test -z "$as_dir" && as_dir
=.
13191 for ac_exec_ext
in '' $ac_executable_extensions; do
13192 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13193 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13204 orig_target_as
=$ac_cv_path_orig_target_as
13205 if test -n "$orig_target_as"; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13207 $as_echo "$orig_target_as" >&6; }
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 $as_echo "no" >&6; }
13214 test -n "$orig_target_as" && break
13221 ac_tool_optarg
=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
13222 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
13223 set dummy aros_tool_prefix
}${toolchain_as}; ac_word
=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if ${ac_cv_path_orig_target_as+:} false
; then :
13227 $as_echo_n "(cached) " >&6
13229 case $orig_target_as in
13231 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
13234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13235 for as_dir
in $PATH
13238 test -z "$as_dir" && as_dir
=.
13239 for ac_exec_ext
in '' $ac_executable_extensions; do
13240 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13241 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 orig_target_as
=$ac_cv_path_orig_target_as
13253 if test -n "$orig_target_as"; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13255 $as_echo "$orig_target_as" >&6; }
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258 $as_echo "no" >&6; }
13262 orig_target_as
="$orig_target_as $ac_tool_optarg"
13266 if test "$orig_target_as" = ""; then
13269 if test "$orig_target_as" = "no"; then
13272 if test "$req_avail" = "no"; then
13273 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
13276 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
13277 if test "$cross_compiling" = "yes" ; then
13278 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13279 set dummy
${target_tool_prefix}ar; ac_word
=$2
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13281 $as_echo_n "checking for $ac_word... " >&6; }
13282 if ${ac_cv_path_orig_target_ar+:} false
; then :
13283 $as_echo_n "(cached) " >&6
13285 case $orig_target_ar in
13287 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13291 for as_dir
in $PATH
13294 test -z "$as_dir" && as_dir
=.
13295 for ac_exec_ext
in '' $ac_executable_extensions; do
13296 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13297 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13308 orig_target_ar
=$ac_cv_path_orig_target_ar
13309 if test -n "$orig_target_ar"; then
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13311 $as_echo "$orig_target_ar" >&6; }
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 $as_echo "no" >&6; }
13320 if test "" = ""; then
13325 if test "$GCC" = "yes"; then
13326 aros_gcc_ar
=`$CC -print-prog-name=$ac_tool_ar`
13327 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13328 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13330 $as_echo_n "checking for $ac_word... " >&6; }
13331 if ${ac_cv_path_orig_target_ar+:} false
; then :
13332 $as_echo_n "(cached) " >&6
13334 case $orig_target_ar in
13336 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13340 for as_dir
in `dirname $aros_gcc_ar`
13343 test -z "$as_dir" && as_dir
=.
13344 for ac_exec_ext
in '' $ac_executable_extensions; do
13345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13346 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13357 orig_target_ar
=$ac_cv_path_orig_target_ar
13358 if test -n "$orig_target_ar"; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13360 $as_echo "$orig_target_ar" >&6; }
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13368 if test "$orig_target_ar" = ""; then
13369 for ac_prog
in $ac_tool_ar
13371 # Extract the first word of "$ac_prog", so it can be a program name with args.
13372 set dummy
$ac_prog; ac_word
=$2
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13374 $as_echo_n "checking for $ac_word... " >&6; }
13375 if ${ac_cv_path_orig_target_ar+:} false
; then :
13376 $as_echo_n "(cached) " >&6
13378 case $orig_target_ar in
13380 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13384 for as_dir
in $PATH
13387 test -z "$as_dir" && as_dir
=.
13388 for ac_exec_ext
in '' $ac_executable_extensions; do
13389 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13390 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13401 orig_target_ar
=$ac_cv_path_orig_target_ar
13402 if test -n "$orig_target_ar"; then
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13404 $as_echo "$orig_target_ar" >&6; }
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13411 test -n "$orig_target_ar" && break
13418 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
13419 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
13420 set dummy
${aros_tool_prefix}${toolchain_ar}; ac_word
=$2
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13422 $as_echo_n "checking for $ac_word... " >&6; }
13423 if ${ac_cv_path_orig_target_ar+:} false
; then :
13424 $as_echo_n "(cached) " >&6
13426 case $orig_target_ar in
13428 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13432 for as_dir
in $PATH
13435 test -z "$as_dir" && as_dir
=.
13436 for ac_exec_ext
in '' $ac_executable_extensions; do
13437 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13438 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13449 orig_target_ar
=$ac_cv_path_orig_target_ar
13450 if test -n "$orig_target_ar"; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13452 $as_echo "$orig_target_ar" >&6; }
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 $as_echo "no" >&6; }
13459 orig_target_ar
="$orig_target_ar $ac_tool_optarg"
13463 if test "$orig_target_ar" = ""; then
13466 if test "$orig_target_ar" = "no"; then
13469 if test "$req_avail" = "no"; then
13470 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
13473 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
13474 if test "$cross_compiling" = "yes" ; then
13475 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13476 set dummy
${target_tool_prefix}ar; ac_word
=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13480 $as_echo_n "(cached) " >&6
13482 case $orig_target_ranlib in
13484 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13488 for as_dir
in $PATH
13491 test -z "$as_dir" && as_dir
=.
13492 for ac_exec_ext
in '' $ac_executable_extensions; do
13493 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13494 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13506 if test -n "$orig_target_ranlib"; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13508 $as_echo "$orig_target_ranlib" >&6; }
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13517 if test "" = ""; then
13522 if test "$GCC" = "yes"; then
13523 aros_gcc_ar
=`$CC -print-prog-name=$ac_tool_ar`
13524 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13525 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13529 $as_echo_n "(cached) " >&6
13531 case $orig_target_ranlib in
13533 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13537 for as_dir
in `dirname $aros_gcc_ar`
13540 test -z "$as_dir" && as_dir
=.
13541 for ac_exec_ext
in '' $ac_executable_extensions; do
13542 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13543 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13554 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13555 if test -n "$orig_target_ranlib"; then
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13557 $as_echo "$orig_target_ranlib" >&6; }
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13560 $as_echo "no" >&6; }
13565 if test "$orig_target_ranlib" = ""; then
13566 for ac_prog
in $ac_tool_ar
13568 # Extract the first word of "$ac_prog", so it can be a program name with args.
13569 set dummy
$ac_prog; ac_word
=$2
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13571 $as_echo_n "checking for $ac_word... " >&6; }
13572 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13573 $as_echo_n "(cached) " >&6
13575 case $orig_target_ranlib in
13577 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13581 for as_dir
in $PATH
13584 test -z "$as_dir" && as_dir
=.
13585 for ac_exec_ext
in '' $ac_executable_extensions; do
13586 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13587 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13598 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13599 if test -n "$orig_target_ranlib"; then
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13601 $as_echo "$orig_target_ranlib" >&6; }
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13604 $as_echo "no" >&6; }
13608 test -n "$orig_target_ranlib" && break
13615 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
13616 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
13617 set dummy
${aros_tool_prefix}${toolchain_ranlib}; ac_word
=$2
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13621 $as_echo_n "(cached) " >&6
13623 case $orig_target_ranlib in
13625 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13629 for as_dir
in $PATH
13632 test -z "$as_dir" && as_dir
=.
13633 for ac_exec_ext
in '' $ac_executable_extensions; do
13634 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13635 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13647 if test -n "$orig_target_ranlib"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13649 $as_echo "$orig_target_ranlib" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13656 orig_target_ranlib
="$orig_target_ranlib $ac_tool_optarg"
13660 if test "$orig_target_ranlib" = ""; then
13663 if test "$orig_target_ranlib" = "no"; then
13666 if test "$req_avail" = "no"; then
13667 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
13670 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
13671 if test "$cross_compiling" = "yes" ; then
13672 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
13673 set dummy
${target_tool_prefix}nm
; ac_word
=$2
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13675 $as_echo_n "checking for $ac_word... " >&6; }
13676 if ${ac_cv_path_orig_target_nm+:} false
; then :
13677 $as_echo_n "(cached) " >&6
13679 case $orig_target_nm in
13681 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13685 for as_dir
in $PATH
13688 test -z "$as_dir" && as_dir
=.
13689 for ac_exec_ext
in '' $ac_executable_extensions; do
13690 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13691 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13702 orig_target_nm
=$ac_cv_path_orig_target_nm
13703 if test -n "$orig_target_nm"; then
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13705 $as_echo "$orig_target_nm" >&6; }
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13714 if test "" = ""; then
13719 if test "$GCC" = "yes"; then
13720 aros_gcc_nm
=`$CC -print-prog-name=$ac_tool_nm`
13721 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13722 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13724 $as_echo_n "checking for $ac_word... " >&6; }
13725 if ${ac_cv_path_orig_target_nm+:} false
; then :
13726 $as_echo_n "(cached) " >&6
13728 case $orig_target_nm in
13730 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13734 for as_dir
in `dirname $aros_gcc_nm`
13737 test -z "$as_dir" && as_dir
=.
13738 for ac_exec_ext
in '' $ac_executable_extensions; do
13739 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13740 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13751 orig_target_nm
=$ac_cv_path_orig_target_nm
13752 if test -n "$orig_target_nm"; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13754 $as_echo "$orig_target_nm" >&6; }
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13762 if test "$orig_target_nm" = ""; then
13763 for ac_prog
in $ac_tool_nm
13765 # Extract the first word of "$ac_prog", so it can be a program name with args.
13766 set dummy
$ac_prog; ac_word
=$2
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13768 $as_echo_n "checking for $ac_word... " >&6; }
13769 if ${ac_cv_path_orig_target_nm+:} false
; then :
13770 $as_echo_n "(cached) " >&6
13772 case $orig_target_nm in
13774 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13778 for as_dir
in $PATH
13781 test -z "$as_dir" && as_dir
=.
13782 for ac_exec_ext
in '' $ac_executable_extensions; do
13783 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13784 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13795 orig_target_nm
=$ac_cv_path_orig_target_nm
13796 if test -n "$orig_target_nm"; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13798 $as_echo "$orig_target_nm" >&6; }
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13801 $as_echo "no" >&6; }
13805 test -n "$orig_target_nm" && break
13812 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13813 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13814 set dummy
${aros_tool_prefix}${toolchain_nm}; ac_word
=$2
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13816 $as_echo_n "checking for $ac_word... " >&6; }
13817 if ${ac_cv_path_orig_target_nm+:} false
; then :
13818 $as_echo_n "(cached) " >&6
13820 case $orig_target_nm in
13822 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13826 for as_dir
in $PATH
13829 test -z "$as_dir" && as_dir
=.
13830 for ac_exec_ext
in '' $ac_executable_extensions; do
13831 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13832 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13843 orig_target_nm
=$ac_cv_path_orig_target_nm
13844 if test -n "$orig_target_nm"; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13846 $as_echo "$orig_target_nm" >&6; }
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 $as_echo "no" >&6; }
13853 orig_target_nm
="$orig_target_nm $ac_tool_optarg"
13857 if test "$orig_target_nm" = ""; then
13860 if test "$orig_target_nm" = "no"; then
13863 if test "$req_avail" = "no"; then
13864 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13867 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13868 if test "$cross_compiling" = "yes" ; then
13869 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13870 set dummy
${target_tool_prefix}strip
; ac_word
=$2
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13872 $as_echo_n "checking for $ac_word... " >&6; }
13873 if ${ac_cv_path_orig_target_strip+:} false
; then :
13874 $as_echo_n "(cached) " >&6
13876 case $orig_target_strip in
13878 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13882 for as_dir
in $PATH
13885 test -z "$as_dir" && as_dir
=.
13886 for ac_exec_ext
in '' $ac_executable_extensions; do
13887 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13888 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13899 orig_target_strip
=$ac_cv_path_orig_target_strip
13900 if test -n "$orig_target_strip"; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13902 $as_echo "$orig_target_strip" >&6; }
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13905 $as_echo "no" >&6; }
13911 if test "" = ""; then
13912 ac_tool_strip
=strip
13916 if test "$GCC" = "yes"; then
13917 aros_gcc_strip
=`$CC -print-prog-name=$ac_tool_strip`
13918 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13919 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13921 $as_echo_n "checking for $ac_word... " >&6; }
13922 if ${ac_cv_path_orig_target_strip+:} false
; then :
13923 $as_echo_n "(cached) " >&6
13925 case $orig_target_strip in
13927 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13931 for as_dir
in `dirname $aros_gcc_strip`
13934 test -z "$as_dir" && as_dir
=.
13935 for ac_exec_ext
in '' $ac_executable_extensions; do
13936 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13937 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13948 orig_target_strip
=$ac_cv_path_orig_target_strip
13949 if test -n "$orig_target_strip"; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13951 $as_echo "$orig_target_strip" >&6; }
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13954 $as_echo "no" >&6; }
13959 if test "$orig_target_strip" = ""; then
13960 for ac_prog
in $ac_tool_strip
13962 # Extract the first word of "$ac_prog", so it can be a program name with args.
13963 set dummy
$ac_prog; ac_word
=$2
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13965 $as_echo_n "checking for $ac_word... " >&6; }
13966 if ${ac_cv_path_orig_target_strip+:} false
; then :
13967 $as_echo_n "(cached) " >&6
13969 case $orig_target_strip in
13971 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13975 for as_dir
in $PATH
13978 test -z "$as_dir" && as_dir
=.
13979 for ac_exec_ext
in '' $ac_executable_extensions; do
13980 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13981 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13992 orig_target_strip
=$ac_cv_path_orig_target_strip
13993 if test -n "$orig_target_strip"; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13995 $as_echo "$orig_target_strip" >&6; }
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998 $as_echo "no" >&6; }
14002 test -n "$orig_target_strip" && break
14009 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
14010 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
14011 set dummy
${aros_tool_prefix}${toolchain_strip}; ac_word
=$2
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14013 $as_echo_n "checking for $ac_word... " >&6; }
14014 if ${ac_cv_path_orig_target_strip+:} false
; then :
14015 $as_echo_n "(cached) " >&6
14017 case $orig_target_strip in
14019 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
14022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14023 for as_dir
in $PATH
14026 test -z "$as_dir" && as_dir
=.
14027 for ac_exec_ext
in '' $ac_executable_extensions; do
14028 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14029 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
14030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14040 orig_target_strip
=$ac_cv_path_orig_target_strip
14041 if test -n "$orig_target_strip"; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
14043 $as_echo "$orig_target_strip" >&6; }
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 $as_echo "no" >&6; }
14050 orig_target_strip
="$orig_target_strip $ac_tool_optarg"
14054 if test "$orig_target_strip" = ""; then
14057 if test "$orig_target_strip" = "no"; then
14060 if test "$req_avail" = "no"; then
14061 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
14064 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
14065 if test "$cross_compiling" = "yes" ; then
14066 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
14067 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14069 $as_echo_n "checking for $ac_word... " >&6; }
14070 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
14071 $as_echo_n "(cached) " >&6
14073 case $orig_target_objcopy in
14075 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
14078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14079 for as_dir
in $PATH
14082 test -z "$as_dir" && as_dir
=.
14083 for ac_exec_ext
in '' $ac_executable_extensions; do
14084 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14085 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
14086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14096 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
14097 if test -n "$orig_target_objcopy"; then
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14099 $as_echo "$orig_target_objcopy" >&6; }
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102 $as_echo "no" >&6; }
14108 if test "" = ""; then
14109 ac_tool_objcopy
=objcopy
14113 if test "$GCC" = "yes"; then
14114 aros_gcc_objcopy
=`$CC -print-prog-name=$ac_tool_objcopy`
14115 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
14116 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14118 $as_echo_n "checking for $ac_word... " >&6; }
14119 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
14120 $as_echo_n "(cached) " >&6
14122 case $orig_target_objcopy in
14124 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
14127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14128 for as_dir
in `dirname $aros_gcc_objcopy`
14131 test -z "$as_dir" && as_dir
=.
14132 for ac_exec_ext
in '' $ac_executable_extensions; do
14133 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14134 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
14135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14145 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
14146 if test -n "$orig_target_objcopy"; then
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14148 $as_echo "$orig_target_objcopy" >&6; }
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14151 $as_echo "no" >&6; }
14156 if test "$orig_target_objcopy" = ""; then
14157 for ac_prog
in $ac_tool_objcopy
14159 # Extract the first word of "$ac_prog", so it can be a program name with args.
14160 set dummy
$ac_prog; ac_word
=$2
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14162 $as_echo_n "checking for $ac_word... " >&6; }
14163 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
14164 $as_echo_n "(cached) " >&6
14166 case $orig_target_objcopy in
14168 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
14171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14172 for as_dir
in $PATH
14175 test -z "$as_dir" && as_dir
=.
14176 for ac_exec_ext
in '' $ac_executable_extensions; do
14177 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14178 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
14179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14189 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
14190 if test -n "$orig_target_objcopy"; then
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14192 $as_echo "$orig_target_objcopy" >&6; }
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14195 $as_echo "no" >&6; }
14199 test -n "$orig_target_objcopy" && break
14206 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
14207 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
14208 set dummy
${aros_tool_prefix}${toolchain_objcopy}; ac_word
=$2
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14210 $as_echo_n "checking for $ac_word... " >&6; }
14211 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
14212 $as_echo_n "(cached) " >&6
14214 case $orig_target_objcopy in
14216 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
14219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14220 for as_dir
in $PATH
14223 test -z "$as_dir" && as_dir
=.
14224 for ac_exec_ext
in '' $ac_executable_extensions; do
14225 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14226 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
14227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14237 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
14238 if test -n "$orig_target_objcopy"; then
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14240 $as_echo "$orig_target_objcopy" >&6; }
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14243 $as_echo "no" >&6; }
14247 orig_target_objcopy
="$orig_target_objcopy $ac_tool_optarg"
14251 if test "$orig_target_objcopy" = ""; then
14254 if test "$orig_target_objcopy" = "no"; then
14257 if test "$req_avail" = "no"; then
14258 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
14261 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
14262 if test "$cross_compiling" = "yes" ; then
14263 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
14264 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14266 $as_echo_n "checking for $ac_word... " >&6; }
14267 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14268 $as_echo_n "(cached) " >&6
14270 case $orig_target_objdump in
14272 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14276 for as_dir
in $PATH
14279 test -z "$as_dir" && as_dir
=.
14280 for ac_exec_ext
in '' $ac_executable_extensions; do
14281 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14282 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14293 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14294 if test -n "$orig_target_objdump"; then
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14296 $as_echo "$orig_target_objdump" >&6; }
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14299 $as_echo "no" >&6; }
14305 if test "" = ""; then
14306 ac_tool_objdump
=objdump
14310 if test "$GCC" = "yes"; then
14311 aros_gcc_objdump
=`$CC -print-prog-name=$ac_tool_objdump`
14312 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
14313 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14315 $as_echo_n "checking for $ac_word... " >&6; }
14316 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14317 $as_echo_n "(cached) " >&6
14319 case $orig_target_objdump in
14321 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14325 for as_dir
in `dirname $aros_gcc_objdump`
14328 test -z "$as_dir" && as_dir
=.
14329 for ac_exec_ext
in '' $ac_executable_extensions; do
14330 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14331 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14342 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14343 if test -n "$orig_target_objdump"; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14345 $as_echo "$orig_target_objdump" >&6; }
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14353 if test "$orig_target_objdump" = ""; then
14354 for ac_prog
in $ac_tool_objdump
14356 # Extract the first word of "$ac_prog", so it can be a program name with args.
14357 set dummy
$ac_prog; ac_word
=$2
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14359 $as_echo_n "checking for $ac_word... " >&6; }
14360 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14361 $as_echo_n "(cached) " >&6
14363 case $orig_target_objdump in
14365 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14369 for as_dir
in $PATH
14372 test -z "$as_dir" && as_dir
=.
14373 for ac_exec_ext
in '' $ac_executable_extensions; do
14374 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14375 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14386 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14387 if test -n "$orig_target_objdump"; then
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14389 $as_echo "$orig_target_objdump" >&6; }
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14392 $as_echo "no" >&6; }
14396 test -n "$orig_target_objdump" && break
14403 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
14404 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
14405 set dummy
${aros_tool_prefix}${toolchain_objdump}; ac_word
=$2
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14407 $as_echo_n "checking for $ac_word... " >&6; }
14408 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14409 $as_echo_n "(cached) " >&6
14411 case $orig_target_objdump in
14413 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14417 for as_dir
in $PATH
14420 test -z "$as_dir" && as_dir
=.
14421 for ac_exec_ext
in '' $ac_executable_extensions; do
14422 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14423 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14434 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14435 if test -n "$orig_target_objdump"; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14437 $as_echo "$orig_target_objdump" >&6; }
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440 $as_echo "no" >&6; }
14444 orig_target_objdump
="$orig_target_objdump $ac_tool_optarg"
14448 if test "$orig_target_objdump" = ""; then
14451 if test "$orig_target_objdump" = "no"; then
14454 if test "$req_avail" = "no"; then
14455 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
14459 if test "$kernel_tool_prefix" = "none" ; then
14460 # No kernel tools specified
14461 # Assume kernel tools == target tools with ELF wrapper
14462 aros_kernel_cc
=$orig_target_cc
14463 aros_kernel_cxx
=$orig_target_cxx
14464 aros_kernel_cpp
="$orig_target_cpp"
14465 aros_kernel_ld
=$orig_target_ld
14466 aros_kernel_as
=$orig_target_as
14467 aros_kernel_ar
=$orig_target_ar
14468 aros_kernel_ranlib
=$orig_target_ranlib
14469 aros_kernel_nm
=$orig_target_nm
14470 aros_kernel_strip
=$orig_target_strip
14471 aros_kernel_objcopy
=$orig_target_objcopy
14472 aros_kernel_objdump
=$orig_target_objdump
14473 aros_kernel_isa_flags
=$aros_isa_flags
14474 use_kernel_cc_wrapper
=yes
14477 # At this point, all aros_kernel_* and aros_target_*
14478 # tools should be set up correctly
14480 CC
="$aros_kernel_cc $kernel_tool_flags"
14481 CPP
="$aros_kernel_cpp"
14483 #-----------------------------------------------------------------------------
14485 # Find all the tools we need to compile. This could be cross-compiling
14486 # though! If that is the case we use the GNU form of the target and
14487 # simply add this to the front of the binary name. This is rather simple,
14488 # but it should work under most circumstances.
14490 # The default tools are to use the same as the host, but only if the
14491 # host and target CPU are the same. With GCC this is normally enough.
14495 aros_shared_ld
="$aros_host_ld"
14497 aros_target_mkdep
="$aros_host_mkdep"
14499 # The default tools executables to be linked to.
14500 if test "$rescomp" != ""; then
14501 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
14502 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14504 $as_echo_n "checking for $ac_word... " >&6; }
14505 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
14506 $as_echo_n "(cached) " >&6
14508 case $aros_kernel_rescomp in
14510 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
14513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14514 for as_dir
in $PATH
14517 test -z "$as_dir" && as_dir
=.
14518 for ac_exec_ext
in '' $ac_executable_extensions; do
14519 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14520 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
14521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14531 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
14532 if test -n "$aros_kernel_rescomp"; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
14534 $as_echo "$aros_kernel_rescomp" >&6; }
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14537 $as_echo "no" >&6; }
14542 if test "$aros_kernel_rescomp" = ""; then
14545 if test "$aros_kernel_rescomp" = "no"; then
14548 if test "$req_avail" = "no"; then
14549 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
14553 # Set up the sources for the symlink farm
14554 if test "$crosstools" = "yes"; then
14555 crosstools_target
=tools-crosstools
14558 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
14559 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
14561 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
14562 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
14563 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
14564 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
14565 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
14566 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
14567 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
14569 # aros_cc_pre is a variable that is added to the front of the compiler name
14570 # in the generated aros-gcc shell script. We need this to enable the cache
14571 # to work across cleaned builds. Also, support DISTCC using the correct
14572 # environment variable.
14575 if test "x${DISTCC}" != "x" ; then
14576 if test "x${CCACHE}" != "x" ; then
14577 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
14579 aros_cc_pre
="${DISTCC} "
14582 if test "x${CCACHE}" != "x" ; then
14583 aros_cc_pre
="${CCACHE} "
14587 aros_target_nostdinc_cflags
=-nostdinc
14589 aros_target_nostartup_ldflags
=-nostartfiles
14591 aros_target_nix_ldflags
=-nix
14593 aros_target_detach_ldflags
=-detach
14595 aros_target_nostdlib_ldflags
=-nostdlib
14598 aros_target_cc_path
=
14602 if test "$aros_target_toolchain" != "yes"; then
14603 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
14604 if test "$GCC" = "yes"; then
14605 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
14608 # We do not know which c compiler version we are going to build and what we need to know
14609 # here is different for different versions so this will be set later during the
14610 # build of crosstools.
14611 if test "$aros_toolchain" = "gnu" ; then
14612 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
14613 elif test "$aros_toolchain" = "llvm" ; then
14614 prefix
="$AROS_CROSSTOOLSDIR/bin/"
14616 aros_target_cc_path
=@aros_target_cc_path@
14618 aros_target_cpp
="${prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
14619 aros_target_cc
="${prefix}${toolchain_c_compiler}"
14620 aros_target_cxx
="${prefix}${toolchain_cxx_compiler}"
14621 aros_target_as
="${prefix}${toolchain_as}"
14622 if test "${use_ld_wrapper}" = "yes"; then
14623 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
14625 aros_target_ld
="${prefix}${toolchain_ld}"
14627 aros_toolchain_ld
="${prefix}${toolchain_ld}"
14629 aros_target_ar
="${prefix}${toolchain_ar} $aros_target_ar_flags"
14630 aros_target_objcopy
="${prefix}${toolchain_objcopy}"
14631 aros_target_objdump
="${prefix}${toolchain_objdump}"
14632 aros_target_ranlib
="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
14633 aros_target_nm
="${prefix}${toolchain_nm} $aros_target_nm_flags"
14634 aros_target_strip
="${prefix}${toolchain_strip}"
14635 aros_plain_nm
="${prefix}${toolchain_nm}"
14636 aros_plain_ar
="${prefix}${toolchain_ar}"
14638 # Check whether --enable-includes was given.
14639 if test "${enable_includes+set}" = set; then :
14640 enableval
=$enable_includes; aros_target_incl
=$enable_includes
14642 aros_target_incl
=no
14646 if test "x$aros_target_incl" = "xno"; then
14647 if test "x$test_kernel_cc" != "xno"; then
14648 aros_target_incl
=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
14654 if test "x$aros_kernel_includes" = "x"; then
14655 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14656 if test "x$aros_target_incl" != "x"; then
14657 aros_kernel_includes
="-isystem $aros_target_incl"
14662 if test "x$test_kernel_cc" != "xno"; then
14663 if test "$aros_kernel_includes" != "" ; then
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
14665 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
14666 if test "$aros_kernel_cc_includes" = "" ; then
14667 # Try to guess where the directory is.
14668 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
14669 if test -d $aros_kernel_cc_includes; then
14670 # Check if there is also an include-fixed directory and add it
14671 # to kernel compiler's include path as it may contain some of
14672 # the headers we need.
14673 if test -d "$aros_kernel_cc_includes"-fixed; then
14674 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
14676 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
14677 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
14678 aros_kernel_cc_includes
+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
14681 # The directory doesn't exist, we need to do some more work.
14682 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
14684 # These are the headers we're looking for.
14685 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14686 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14690 for h
in $headers; do
14691 # Which other headers are needed by each of the above?
14692 deps
=$
(echo "#include <$h>" | \
14693 $aros_kernel_cc -E -M - 2>/dev
/null | \
14694 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14696 # Copy all the needed headers to a directory beneath gendir.
14699 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
14700 sed -n "s,^.*/include\(/.*\),\1,p")
14701 ! test -d $dir && mkdir
-p $dir
14702 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
14708 $as_echo "$aros_kernel_cc_includes" >&6; }
14709 # Adding -nostdinc to kernel includes as they are always used together.
14710 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
14714 if test "$crosstools" != "yes"; then
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
14716 $as_echo_n "checking for the target compiler's include path... " >&6; }
14717 if test "$aros_target_cc_includes" = "" ; then
14718 #try to guess where the directory is
14719 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
14720 if ! test -d $aros_target_cc_includes; then
14721 #the directory doesn't exist, we need to do some more work
14722 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
14724 #these are the headers we're looking for
14725 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14726 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14730 for h
in $headers; do
14731 #which other headers each of the above headers needs?
14732 deps
=$
(echo "#include <$h>" | \
14733 $orig_target_cc -E -M - 2>/dev
/null | \
14734 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14736 #copy all the needed headers to a directory beneath gendir
14739 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
14740 sed -n "s,^.*/include\(/.*\),\1,p")
14741 ! test -d $dir && mkdir
-p $dir
14742 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14748 $as_echo "$aros_target_cc_includes" >&6; }
14750 # We do not know which c compiler version we are going to build and what we need to know
14751 # here is different for different versions so this will be set later during the
14752 # build of crosstools.
14753 aros_target_cc_includes
=@aros_target_cc_includes@
14757 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14758 # On GCC >= 4.0 -iquote should be used
14762 save_cflags
="$CFLAGS"
14763 if test "x$test_kernel_cc" != "xno"; then
14765 kernel_cflags_iquote
=$host_cflags_iquote
14766 kernel_cflags_iquote_end
=$host_cflags_iquote_end
14767 if test "x-$cross_compiling" = "x-yes"; then
14768 CC
="$aros_kernel_cc"
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14770 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14771 if test "x-$crosstools" != "x-yes"; then
14772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14783 if ac_fn_c_try_compile
"$LINENO"; then :
14784 use_no_stack_protector
="yes"
14786 use_no_stack_protector
="no"
14788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14790 # we do know it is supported for the smallest version of gcc we are going to build
14791 # we assume it's also supported by later versions
14792 use_no_stack_protector
=yes
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14795 $as_echo "$use_no_stack_protector" >&6; }
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14797 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14798 if test "x-$crosstools" != "x-yes"; then
14799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14810 if ac_fn_c_try_compile
"$LINENO"; then :
14815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14817 # we do know it is supported for the smallest version of gcc we are going to build
14818 # we assume it's also supported by later versions
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14822 $as_echo "$has_iquote" >&6; }
14823 if test "x-$has_iquote" = "x-yes" ; then
14824 kernel_cflags_iquote
=-iquote
14825 kernel_cflags_iquote_end
=
14827 kernel_cflags_iquote
=-I
14828 kernel_cflags_iquote_end
=-I-
14831 if test "x-$use_no_stack_protector" = "x-yes" ; then
14832 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
14835 #-----------------------------------------------------------------------------
14837 # Check if we can explicitly choose older version of symbol hashing
14839 CFLAGS
="$save_cflags -Wl,--hash-style=sysv"
14840 CC
="$aros_kernel_cc"
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14842 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14854 if ac_fn_c_try_link
"$LINENO"; then :
14855 use_hash_style
="yes"
14857 use_hash_style
="no"
14859 rm -f core conftest.err conftest.
$ac_objext \
14860 conftest
$ac_exeext conftest.
$ac_ext
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14862 $as_echo "$use_hash_style" >&6; }
14863 if test "x-$use_hash_style" = "x-yes" ; then
14864 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
14867 kernel_cflags_iquote
="$""(CFLAGS_IQUOTE)"
14868 kernel_cflags_iquote_end
="$""(CFLAGS_IQUOTE_END)"
14871 CFLAGS
="$save_cflags"
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14880 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14882 # Check whether --with-resolution was given.
14883 if test "${with_resolution+set}" = set; then :
14884 withval
=$with_resolution; resolution
=$withval
14889 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14890 if test "$resolution" = "yes" ; then
14893 if test "$resolution" = "no" ; then
14896 if test "$resolution" != "none" ; then
14897 aros_nominal_width
=`echo $resolution | cut -d'x' -f1`
14898 aros_nominal_height
=`echo $resolution | cut -d'x' -f2`
14899 aros_nominal_depth
=`echo $resolution | cut -d'x' -f3`
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14902 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14903 aros_cv_nominal_width
=$aros_nominal_width
14904 aros_cv_nominal_height
=$aros_nominal_height
14905 aros_cv_nominal_depth
=$aros_nominal_depth
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14908 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14910 # Check whether --with-serial-debug was given.
14911 if test "${with_serial_debug+set}" = set; then :
14912 withval
=$with_serial_debug; serial_debug
=$withval
14917 if test "$aros_serial_debug" = 0 ; then
14918 serial_debug_forced
=""
14919 if test "$serial_debug" = "yes" ; then
14922 if test "$serial_debug" = "no" ; then
14923 serial_debug
="none"
14926 serial_debug_forced
="(forced)"
14927 serial_debug
=$aros_serial_debug
14929 if test "$serial_debug" != "none" ; then
14930 aros_serial_debug
=$serial_debug
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14932 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14935 $as_echo "no" >&6; }
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14939 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14940 # Check whether --enable-palm_debug_hack was given.
14941 if test "${enable_palm_debug_hack+set}" = set; then :
14942 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
14944 palm_debug_hack
="no"
14947 if test "$palm_debug_hack" = "yes" ; then
14948 aros_palm_debug_hack
="1"
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14951 $as_echo "$palm_debug_hack" >&6; }
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14954 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14955 # Check whether --enable-usb30_code was given.
14956 if test "${enable_usb30_code+set}" = set; then :
14957 enableval
=$enable_usb30_code; usb30_code
="yes"
14962 if test "$usb30_code" = "yes" ; then
14963 aros_config_cppflags
="$aros_config_cppflags -DAROS_USB30_CODE"
14964 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14967 $as_echo "$usb30_code" >&6; }
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14970 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14971 # Check whether --enable-nesting_supervisor was given.
14972 if test "${enable_nesting_supervisor+set}" = set; then :
14973 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
14975 nesting_supervisor
="no"
14978 if test "$nesting_supervisor" = "yes" ; then
14979 aros_nesting_supervisor
="1"
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14982 $as_echo "$nesting_supervisor" >&6; }
14984 if test "$aros_enable_mmu" = "" ; then
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14986 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14987 # Check whether --enable-mmu was given.
14988 if test "${enable_mmu+set}" = set; then :
14989 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
14991 aros_enable_mmu
="yes"
14994 if test "$aros_enable_mmu" = "" ; then
14995 aros_enable_mmu
="yes"
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14998 $as_echo "$aros_enable_mmu" >&6; }
15000 if test "$aros_enable_mmu" = "no" ; then
15001 aros_enable_mmu
="0"
15003 aros_enable_mmu
="1"
15007 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
15009 if test "x-$need_dlopen" != "x-no" ; then
15012 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
15013 if test "x$ac_cv_func_dlopen" = xyes
; then :
15019 if test "x-$have_dl" = "x-no" ; then
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15021 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15022 if ${ac_cv_lib_dl_dlopen+:} false
; then :
15023 $as_echo_n "(cached) " >&6
15025 ac_check_lib_save_LIBS
=$LIBS
15027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15030 /* Override any GCC internal prototype to avoid an error.
15031 Use char because int might match the return type of a GCC
15032 builtin and then its argument prototype would still apply. */
15045 if ac_fn_c_try_link
"$LINENO"; then :
15046 ac_cv_lib_dl_dlopen
=yes
15048 ac_cv_lib_dl_dlopen
=no
15050 rm -f core conftest.err conftest.
$ac_objext \
15051 conftest
$ac_exeext conftest.
$ac_ext
15052 LIBS
=$ac_check_lib_save_LIBS
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15055 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15056 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
15058 aros_host_ldflags
="$aros_host_ldflags -ldl"
15064 if test "x-$have_dl" = "x-no" ; then
15065 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
15071 # Check whether --enable-x11_hidd was given.
15072 if test "${enable_x11_hidd+set}" = set; then :
15073 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
15075 x11_hidd
="$need_x11"
15078 case "x-$x11_hidd" in
15079 x-yes|x-no|x-auto
) ;;
15080 *) x11_hidd
="$need_x11" ;;
15085 if test "x-$x11_hidd" != "x-no" ; then
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15088 $as_echo_n "checking for X... " >&6; }
15091 # Check whether --with-x was given.
15092 if test "${with_x+set}" = set; then :
15096 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15097 if test "x$with_x" = xno
; then
15098 # The user explicitly disabled X.
15101 case $x_includes,$x_libraries in #(
15102 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
15103 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
15104 $as_echo_n "(cached) " >&6
15106 # One or both of the vars are not set, and there is no cached value.
15107 ac_x_includes
=no ac_x_libraries
=no
15108 rm -f -r conftest.dir
15109 if mkdir conftest.dir
; then
15111 cat >Imakefile
<<'_ACEOF'
15113 @echo incroot='${INCROOT}'
15115 @echo usrlibdir='${USRLIBDIR}'
15117 @echo libdir='${LIBDIR}'
15119 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15120 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15121 for ac_var
in incroot usrlibdir libdir
; do
15122 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15124 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15125 for ac_extension
in a so sl dylib la dll
; do
15126 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15127 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15128 ac_im_usrlibdir
=$ac_im_libdir; break
15131 # Screen out bogus values from the imake configuration. They are
15132 # bogus both because they are the default anyway, and because
15133 # using them would break gcc on systems where it needs fixed includes.
15134 case $ac_im_incroot in
15135 /usr
/include
) ac_x_includes
= ;;
15136 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15138 case $ac_im_usrlibdir in
15139 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15140 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15144 rm -f -r conftest.dir
15147 # Standard set of common directories for X headers.
15148 # Check X11 before X11Rn because it is often a symlink to the current release.
15162 /usr/local/X11/include
15163 /usr/local/X11R7/include
15164 /usr/local/X11R6/include
15165 /usr/local/X11R5/include
15166 /usr/local/X11R4/include
15168 /usr/local/include/X11
15169 /usr/local/include/X11R7
15170 /usr/local/include/X11R6
15171 /usr/local/include/X11R5
15172 /usr/local/include/X11R4
15176 /usr/XFree86/include/X11
15180 /usr/unsupported/include
15181 /usr/athena/include
15182 /usr/local/x11r5/include
15183 /usr/lpp/Xamples/include
15185 /usr/openwin/include
15186 /usr/openwin/share/include'
15188 if test "$ac_x_includes" = no
; then
15189 # Guess where to find include files, by looking for Xlib.h.
15190 # First, try using that file with no special directory specified.
15191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15193 #include <X11/Xlib.h>
15195 if ac_fn_c_try_cpp
"$LINENO"; then :
15196 # We can compile using X headers with no special include directory.
15199 for ac_dir
in $ac_x_header_dirs; do
15200 if test -r "$ac_dir/X11/Xlib.h"; then
15201 ac_x_includes
=$ac_dir
15206 rm -f conftest.err conftest.i conftest.
$ac_ext
15207 fi # $ac_x_includes = no
15209 if test "$ac_x_libraries" = no
; then
15210 # Check for the libraries.
15211 # See if we find them without any special options.
15212 # Don't add to $LIBS permanently.
15215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15217 #include <X11/Xlib.h>
15226 if ac_fn_c_try_link
"$LINENO"; then :
15228 # We can link X programs with no special library path.
15232 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15234 # Don't even attempt the hair of trying to link an X program!
15235 for ac_extension
in a so sl dylib la dll
; do
15236 if test -r "$ac_dir/libX11.$ac_extension"; then
15237 ac_x_libraries
=$ac_dir
15243 rm -f core conftest.err conftest.
$ac_objext \
15244 conftest
$ac_exeext conftest.
$ac_ext
15245 fi # $ac_x_libraries = no
15247 case $ac_x_includes,$ac_x_libraries in #(
15248 no
,* |
*,no |
*\'*)
15249 # Didn't find X, or a directory has "'" in its name.
15250 ac_cv_have_x
="have_x=no";; #(
15252 # Record where we found X for the cache.
15253 ac_cv_have_x
="have_x=yes\
15254 ac_x_includes='$ac_x_includes'\
15255 ac_x_libraries='$ac_x_libraries'"
15261 eval "$ac_cv_have_x"
15264 if test "$have_x" != yes; then
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15266 $as_echo "$have_x" >&6; }
15269 # If each of the values was on the command line, it overrides each guess.
15270 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15271 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15272 # Update the cache value to reflect the command line values.
15273 ac_cv_have_x
="have_x=yes\
15274 ac_x_includes='$x_includes'\
15275 ac_x_libraries='$x_libraries'"
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15277 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15281 if test -n "$x_includes"; then
15282 X_CFLAGS
="$X_CFLAGS -I$x_includes"
15285 if test -n "$x_libraries"; then
15286 X_LIBS
="$X_LIBS -L$x_libraries"
15289 if test "x-$no_x" = "x-yes" ; then
15291 if test "x-$x11_hidd" != "x-auto" ; then
15292 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
15296 aros_target_options
+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
15297 if test "x-$host_feature_glx" != "x-no" ; then
15298 aros_target_options
+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
15302 aros_host_x11_cflags
="$X_CFLAGS"
15303 aros_host_x11_ldflags
="$X_LIBS -lX11"
15305 # Check whether --enable-x11_shm was given.
15306 if test "${enable_x11_shm+set}" = set; then :
15307 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
15309 x11_hidd_shm
="auto"
15312 case "x-$x11_hidd_shm" in
15313 x-yes|x-no|x-auto
) ;;
15314 *) x11_hidd_shm
="auto" ;;
15319 if test "x-$x11_hidd_shm" != "x-no" ; then
15321 for ac_header
in sys
/ipc.h
15323 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15324 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
15325 cat >>confdefs.h
<<_ACEOF
15326 #define HAVE_SYS_IPC_H 1
15333 for ac_header
in sys
/shm.h
15335 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15336 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
15337 cat >>confdefs.h
<<_ACEOF
15338 #define HAVE_SYS_SHM_H 1
15346 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
15348 save_cflags
="$CFLAGS"
15349 save_ldflags
="$LDFLAGS"
15350 CFLAGS
="$CFLAGS $X_CFLAGS"
15351 LDFLAGS
="$LDFLAGS $X_LIBS"
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
15353 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
15354 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
15355 $as_echo_n "(cached) " >&6
15357 ac_check_lib_save_LIBS
=$LIBS
15358 LIBS
="-lXext $LIBS"
15359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15362 /* Override any GCC internal prototype to avoid an error.
15363 Use char because int might match the return type of a GCC
15364 builtin and then its argument prototype would still apply. */
15368 char XShmQueryExtension ();
15372 return XShmQueryExtension ();
15377 if ac_fn_c_try_link
"$LINENO"; then :
15378 ac_cv_lib_Xext_XShmQueryExtension
=yes
15380 ac_cv_lib_Xext_XShmQueryExtension
=no
15382 rm -f core conftest.err conftest.
$ac_objext \
15383 conftest
$ac_exeext conftest.
$ac_ext
15384 LIBS
=$ac_check_lib_save_LIBS
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
15387 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
15388 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
15392 CFLAGS
="$save_cflags"
15393 LDFLAGS
="$save_ldflags"
15397 if test "x-$have_xshm" = "x-yes" ; then
15398 DO_XSHM_SUPPORT
="1"
15399 elif test "x-$x11_hidd_shm" = "x-yes" ; then
15400 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
15402 DO_XSHM_SUPPORT
="0"
15406 # Check whether --enable-x11_vidmode was given.
15407 if test "${enable_x11_vidmode+set}" = set; then :
15408 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
15410 x11_hidd_vidmode
="auto"
15413 case "x-$x11_hidd_vidmode" in
15414 x-yes|x-no|x-auto
) ;;
15415 *) x11_hidd_vidmode
="auto" ;;
15420 if test "x-$x11_hidd_vidmode" != "x-no" ; then
15422 save_cflags
="$CFLAGS"
15423 save_ldflags
="$LDFLAGS"
15424 CFLAGS
="$CFLAGS $X_CFLAGS"
15425 LDFLAGS
="$LDFLAGS $X_LIBS"
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
15427 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
15428 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
15429 $as_echo_n "(cached) " >&6
15431 ac_check_lib_save_LIBS
=$LIBS
15432 LIBS
="-lXxf86vm $LIBS"
15433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15436 /* Override any GCC internal prototype to avoid an error.
15437 Use char because int might match the return type of a GCC
15438 builtin and then its argument prototype would still apply. */
15442 char XF86VidModeQueryExtension ();
15446 return XF86VidModeQueryExtension ();
15451 if ac_fn_c_try_link
"$LINENO"; then :
15452 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
15454 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
15456 rm -f core conftest.err conftest.
$ac_objext \
15457 conftest
$ac_exeext conftest.
$ac_ext
15458 LIBS
=$ac_check_lib_save_LIBS
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
15461 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
15462 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
15466 CFLAGS
="$save_cflags"
15467 LDFLAGS
="$save_ldflags"
15470 if test "x-$have_vidmode" = "x-yes" ; then
15471 DO_VIDMODE_SUPPORT
="1"
15472 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
15473 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
15475 DO_VIDMODE_SUPPORT
="0"
15480 # Check whether --enable-sdl_hidd was given.
15481 if test "${enable_sdl_hidd+set}" = set; then :
15482 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
15487 case "x-$sdl_hidd" in
15488 x-yes|x-no|x-auto
) ;;
15489 *) sdl_hidd
="auto" ;;
15492 if test "x-$sdl_hidd" != "x-no" ; then
15496 # Check whether --with-sdl-prefix was given.
15497 if test "${with_sdl_prefix+set}" = set; then :
15498 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
15504 # Check whether --with-sdl-exec-prefix was given.
15505 if test "${with_sdl_exec_prefix+set}" = set; then :
15506 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
15511 # Check whether --enable-sdltest was given.
15512 if test "${enable_sdltest+set}" = set; then :
15513 enableval
=$enable_sdltest;
15519 if test x
$sdl_exec_prefix != x
; then
15520 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15521 if test x
${SDL_CONFIG+set} != xset
; then
15522 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
15525 if test x
$sdl_prefix != x
; then
15526 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
15527 if test x
${SDL_CONFIG+set} != xset
; then
15528 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
15532 as_save_PATH
="$PATH"
15533 if test "x$prefix" != xNONE
; then
15534 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
15536 # Extract the first word of "sdl-config", so it can be a program name with args.
15537 set dummy sdl-config
; ac_word
=$2
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15539 $as_echo_n "checking for $ac_word... " >&6; }
15540 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
15541 $as_echo_n "(cached) " >&6
15543 case $SDL_CONFIG in
15545 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
15548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15549 for as_dir
in $PATH
15552 test -z "$as_dir" && as_dir
=.
15553 for ac_exec_ext
in '' $ac_executable_extensions; do
15554 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15555 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15563 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
15567 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
15568 if test -n "$SDL_CONFIG"; then
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15570 $as_echo "$SDL_CONFIG" >&6; }
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15573 $as_echo "no" >&6; }
15577 PATH
="$as_save_PATH"
15578 min_sdl_version
=$SDL_VERSION
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15580 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15582 if test "$SDL_CONFIG" = "no" ; then
15585 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
15586 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
15588 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
15589 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15590 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
15591 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15592 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
15593 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15594 if test "x$enable_sdltest" = "xyes" ; then
15595 ac_save_CFLAGS
="$CFLAGS"
15596 ac_save_CXXFLAGS
="$CXXFLAGS"
15597 ac_save_LIBS
="$LIBS"
15598 CFLAGS
="$CFLAGS $SDL_CFLAGS"
15599 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
15600 LIBS
="$LIBS $SDL_LIBS"
15602 if test "$cross_compiling" = yes; then :
15603 echo $ac_n "cross compiling; assumed OK... $ac_c"
15605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15606 /* end confdefs.h. */
15609 #include <stdlib.h>
15610 #include <string.h>
15614 my_strdup (char *str)
15620 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15621 strcpy (new_str, str);
15629 int main (int argc, char *argv[])
15631 int major, minor, micro;
15634 /* This hangs on some systems (?)
15635 system ("touch conf.sdltest");
15637 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15639 /* HP/UX 9 (%@#!) writes to sscanf strings */
15640 tmp_version = my_strdup("$min_sdl_version");
15641 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
15642 printf("%s, bad version string\n", "$min_sdl_version");
15646 if (($sdl_major_version > major) ||
15647 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15648 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15654 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15655 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15656 printf("*** best to upgrade to the required version.\n");
15657 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15658 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15659 printf("*** config.cache before re-running configure\n");
15666 if ac_fn_c_try_run
"$LINENO"; then :
15671 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15672 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15675 CFLAGS
="$ac_save_CFLAGS"
15676 CXXFLAGS
="$ac_save_CXXFLAGS"
15677 LIBS
="$ac_save_LIBS"
15680 if test "x$no_sdl" = x
; then
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15682 $as_echo "yes" >&6; }
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15686 $as_echo "no" >&6; }
15687 if test "$SDL_CONFIG" = "no" ; then
15688 echo "*** The sdl-config script installed by SDL could not be found"
15689 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15690 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15691 echo "*** full path to sdl-config."
15693 if test -f conf.sdltest
; then
15696 echo "*** Could not run SDL test program, checking why..."
15697 CFLAGS
="$CFLAGS $SDL_CFLAGS"
15698 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
15699 LIBS
="$LIBS $SDL_LIBS"
15700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15701 /* end confdefs.h. */
15706 int main(int argc, char *argv[])
15709 #define main K_and_R_C_main
15719 if ac_fn_c_try_link
"$LINENO"; then :
15720 echo "*** The test program compiled, but did not run. This usually means"
15721 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15722 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15723 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15724 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15725 echo "*** is required on your system"
15727 echo "*** If you have an old version installed, it is best to remove it, although"
15728 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15730 echo "*** The test program failed to compile or link. See the file config.log for the"
15731 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15732 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15733 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15735 rm -f core conftest.err conftest.
$ac_objext \
15736 conftest
$ac_exeext conftest.
$ac_ext
15737 CFLAGS
="$ac_save_CFLAGS"
15738 CXXFLAGS
="$ac_save_CXXFLAGS"
15739 LIBS
="$ac_save_LIBS"
15751 if test "x-$have_sdl" != "x-yes" ; then
15753 if test "x-$sdl_hidd" != "x-auto" ; then
15754 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15758 aros_target_options
+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15759 aros_host_sdl_cflags
=$SDL_CFLAGS
15760 aros_host_sdl_libs
=$SDL_LIBS
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15768 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15769 # Check whether --enable-dbus was given.
15770 if test "${enable_dbus+set}" = set; then :
15771 enableval
=$enable_dbus; dbus
="yes"
15776 if test "$dbus" = "yes" ; then
15778 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
15779 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
15780 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
15781 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15786 $as_echo "$dbus" >&6; }
15788 if test "$use_kernel_cc_wrapper" = "yes" ; then
15789 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15792 aros_kernel_cppflags
=$aros_config_cppflags
15793 aros_optimization_cflags
="$optimization_level"
15794 if test "$optimization" = "default"; then
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15796 $as_echo_n "checking default optimization level to use... " >&6; }
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15798 $as_echo "$optimization_level" >&6; }
15801 if ! test "$gcc_default_cpu" = "" ; then
15802 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"
15805 if test "$use_libatomic" = "yes" ; then
15806 aros_cxx_libs
="$aros_cxx_libs -latomic"
15809 aros_target_options
+="$export_newline""# Enable Nouveau Gfx Driver$export_newline""OPT_GFX_NOUVEAU := no$export_newline"
15826 # Compatability with other Amiga-like operating systems
15829 # Host Related ###########################
15861 # Target Related #########################
15955 # Native version related
15963 # Bootloader related
15966 # Unix/Hosted version related
15969 # ARM default GCC target related
15976 # Palm native version related
15979 # Apple iOS related
15996 # Collect-aros stuff: "-ius" to ignore undefined symbols
15999 # C compiler related
16004 #ObjC compiler related
16032 case "$aros_flavour" in
16033 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
16034 aros_flavour
="emulation" ;;
16035 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
16036 aros_flavour
="emulation" ;;
16037 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
16038 aros_flavour
="standalone";;
16039 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
16040 aros_flavour
="standalone";;
16041 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
16042 aros_flavour
="native" ;;
16043 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
16044 aros_flavour
="native" ;;
16045 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
16046 aros_flavour
="linklib" ;;
16047 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
16048 aros_flavour
="palmnative" ;;
16049 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
16050 aros_flavour
="mac68knative" ;;
16051 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
16052 aros_flavour
="ppcnative" ;;
16055 if test ! -d ${aros_inc_dir} ; then
16056 ${MKDIR} ${aros_inc_dir}
16058 if test ! -d ${aros_geninc_dir} ; then
16059 ${MKDIR} ${aros_geninc_dir}
16061 if test ! -d ${aros_hostcfg_dir} ; then
16062 ${MKDIR} ${aros_hostcfg_dir}
16064 if test ! -d ${aros_targetcfg_dir} ; then
16065 ${MKDIR} ${aros_targetcfg_dir}
16067 if test ! -d ${aros_tools_dir} ; then
16068 ${MKDIR} ${aros_tools_dir}
16070 if test ! -d ${aros_scripts_dir} ; then
16071 ${MKDIR} ${aros_scripts_dir}
16074 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
16077 # Generic build tools (metamake, etc)
16078 ac_config_commands
="$ac_config_commands genmf-executable-support"
16080 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"
16084 ac_config_commands
="$ac_config_commands binutils-support"
16086 if test "${use_ld_wrapper}" = "yes"; then
16087 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"
16090 # Bare Elf support script and spec
16091 if test "${use_kernel_cc_wrapper}" = "yes"; then
16092 ac_config_commands
="$ac_config_commands elf-compiler-support"
16094 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"
16098 # Host compiler support scripts and spec
16099 if test "${aros_target_toolchain}" = "no"; then
16100 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
16102 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"
16107 if test "$aros_target_variant" == "android"; then
16108 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
16113 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
16116 cat >confcache
<<\_ACEOF
16117 # This file is a shell script that caches the results of configure
16118 # tests run on this system so they can be shared between configure
16119 # scripts and configure runs, see configure's option --config-cache.
16120 # It is not useful on other systems. If it contains results you don't
16121 # want to keep, you may remove or edit it.
16123 # config.status only pays attention to the cache file if you give it
16124 # the --recheck option to rerun configure.
16126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16128 # following values.
16132 # The following way of writing the cache mishandles newlines in values,
16133 # but we know of no workaround that is simple, portable, and efficient.
16134 # So, we kill variables containing newlines.
16135 # Ultrix sh set writes to stderr and can't be redirected directly,
16136 # and sets the high bit in the cache file unless we assign to the vars.
16138 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16139 eval ac_val
=\$
$ac_var
16143 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16144 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16147 _ | IFS | as_nl
) ;; #(
16148 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16149 *) { eval $ac_var=; unset $ac_var;} ;;
16155 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16156 *${as_nl}ac_space
=\
*)
16157 # `set' does not quote correctly, so add quotes: double-quote
16158 # substitution turns \\\\ into \\, and sed turns \\ into \.
16161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16164 # `set' quotes correctly as required by POSIX, so do not add quotes.
16165 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16174 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16176 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16178 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16179 if test -w "$cache_file"; then
16180 if test "x$cache_file" != "x/dev/null"; then
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16182 $as_echo "$as_me: updating cache $cache_file" >&6;}
16183 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16184 cat confcache
>"$cache_file"
16186 case $cache_file in #(
16188 mv -f confcache
"$cache_file"$$
&&
16189 mv -f "$cache_file"$$
"$cache_file" ;; #(
16191 mv -f confcache
"$cache_file" ;;
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16197 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16202 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16203 # Let make expand exec_prefix.
16204 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16206 DEFS
=-DHAVE_CONFIG_H
16211 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16212 # 1. Remove the extension, and $U if already installed.
16213 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16214 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16215 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16216 # will be set to the directory where LIBOBJS objects are built.
16217 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16218 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16220 LIBOBJS
=$ac_libobjs
16222 LTLIBOBJS
=$ac_ltlibobjs
16226 : "${CONFIG_STATUS=./config.status}"
16228 ac_clean_files_save
=$ac_clean_files
16229 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16231 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16233 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16235 # Generated by $as_me.
16236 # Run this file to recreate the current configuration.
16237 # Compiler output produced by configure, useful for debugging
16238 # configure, is in config.log if it exists.
16241 ac_cs_recheck=false
16244 SHELL=\${CONFIG_SHELL-$SHELL}
16247 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16248 ## -------------------- ##
16249 ## M4sh Initialization. ##
16250 ## -------------------- ##
16252 # Be more Bourne compatible
16253 DUALCASE
=1; export DUALCASE
# for MKS sh
16254 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16257 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16258 # is contrary to our usage. Disable this feature.
16259 alias -g '${1+"$@"}'='"$@"'
16260 setopt NO_GLOB_SUBST
16262 case `(set -o) 2>/dev/null` in #(
16274 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16275 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16276 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16277 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16278 # Prefer a ksh shell builtin over an external printf program on Solaris,
16279 # but without wasting forks for bash or zsh.
16280 if test -z "$BASH_VERSION$ZSH_VERSION" \
16281 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16282 as_echo='print
-r --'
16283 as_echo_n='print
-rn --'
16284 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16285 as_echo='printf %s
\n'
16286 as_echo_n='printf %s
'
16288 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16289 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16290 as_echo_n='/usr
/ucb
/echo -n'
16292 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16293 as_echo_n_body='eval
16297 expr "X$arg" : "X\\(.*\\)$as_nl";
16298 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16300 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16302 export as_echo_n_body
16303 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16305 export as_echo_body
16306 as_echo='sh
-c $as_echo_body as_echo
'
16309 # The user is always right.
16310 if test "${PATH_SEPARATOR+set}" != set; then
16312 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16313 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16320 # We need space, tab and new line, in precisely that order. Quoting is
16321 # there to prevent editors from complaining about space-tab.
16322 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16323 # splitting by setting IFS to empty value.)
16326 # Find who we are. Look in the path if we contain no directory separator.
16329 *[\\/]* ) as_myself=$0 ;;
16330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16331 for as_dir in $PATH
16334 test -z "$as_dir" && as_dir=.
16335 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16341 # We did not find ourselves, most probably we were run as `sh COMMAND'
16342 # in which case we are not to be found in the path.
16343 if test "x$as_myself" = x
; then
16346 if test ! -f "$as_myself"; then
16347 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16351 # Unset variables that we do not need and which cause bugs (e.g. in
16352 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16353 # suppresses any "Segmentation fault" message there. '((' could
16354 # trigger a bug in pdksh 5.2.14.
16355 for as_var
in BASH_ENV ENV MAIL MAILPATH
16356 do eval test x\
${$as_var+set} = xset \
16357 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16370 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16373 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16374 # ----------------------------------------
16375 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16376 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16377 # script with STATUS, using 1 if that was 0.
16380 as_status
=$1; test $as_status -eq 0 && as_status
=1
16382 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16383 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16385 $as_echo "$as_me: error: $2" >&2
16386 as_fn_exit
$as_status
16390 # as_fn_set_status STATUS
16391 # -----------------------
16392 # Set $? to STATUS, without forking.
16393 as_fn_set_status
()
16396 } # as_fn_set_status
16398 # as_fn_exit STATUS
16399 # -----------------
16400 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16404 as_fn_set_status
$1
16410 # Portably unset VAR.
16413 { eval $1=; unset $1;}
16415 as_unset
=as_fn_unset
16416 # as_fn_append VAR VALUE
16417 # ----------------------
16418 # Append the text in VALUE to the end of the definition contained in VAR. Take
16419 # advantage of any shell optimizations that allow amortized linear growth over
16420 # repeated appends, instead of the typical quadratic growth present in naive
16422 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16423 eval 'as_fn_append ()
16434 # as_fn_arith ARG...
16435 # ------------------
16436 # Perform arithmetic evaluation on the ARGs, and store the result in the
16437 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16438 # must be portable across $(()) and expr.
16439 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16440 eval 'as_fn_arith ()
16447 as_val
=`expr "$@" || test $? -eq 1`
16452 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16453 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16459 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16460 as_basename
=basename
16465 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16471 as_me
=`$as_basename -- "$0" ||
16472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16473 X"$0" : 'X\(//\)$' \| \
16474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16476 sed '/^.*\/\([^/][^/]*\)\/*$/{
16490 # Avoid depending upon Character Ranges.
16491 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16492 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16493 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16494 as_cr_digits
='0123456789'
16495 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16497 ECHO_C
= ECHO_N
= ECHO_T
=
16498 case `echo -n x` in #(((((
16500 case `echo 'xy\c'` in
16501 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16503 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16510 rm -f conf$$ conf$$.exe conf$$.
file
16511 if test -d conf$$.dir
; then
16512 rm -f conf$$.dir
/conf$$.
file
16515 mkdir conf$$.dir
2>/dev
/null
16517 if (echo >conf$$.
file) 2>/dev
/null
; then
16518 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16520 # ... but there are two gotchas:
16521 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16522 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16523 # In both cases, we have to default to `cp -pR'.
16524 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16526 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16534 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16535 rmdir conf$$.dir
2>/dev
/null
16540 # Create "$as_dir" as a directory, including parents if necessary.
16545 -*) as_dir
=.
/$as_dir;;
16547 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16551 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16552 *) as_qdir
=$as_dir;;
16554 as_dirs
="'$as_qdir' $as_dirs"
16555 as_dir
=`$as_dirname -- "$as_dir" ||
16556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16557 X"$as_dir" : 'X\(//\)[^/]' \| \
16558 X"$as_dir" : 'X\(//\)$' \| \
16559 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16560 $as_echo X"$as_dir" |
16561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16565 /^X\(\/\/\)[^/].*/{
16578 test -d "$as_dir" && break
16580 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16581 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16585 if mkdir
-p .
2>/dev
/null
; then
16586 as_mkdir_p
='mkdir -p "$as_dir"'
16588 test -d .
/-p && rmdir .
/-p
16593 # as_fn_executable_p FILE
16594 # -----------------------
16595 # Test if FILE is an executable regular file.
16596 as_fn_executable_p
()
16598 test -f "$1" && test -x "$1"
16599 } # as_fn_executable_p
16600 as_test_x
='test -x'
16601 as_executable_p
=as_fn_executable_p
16603 # Sed expression to map a string onto a valid CPP name.
16604 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16606 # Sed expression to map a string onto a valid variable name.
16607 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16611 ## ----------------------------------- ##
16612 ## Main body of $CONFIG_STATUS script. ##
16613 ## ----------------------------------- ##
16615 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16618 # Save the log message, to keep $0 and so on meaningful, and to
16619 # report actual input values of CONFIG_FILES etc. instead of their
16620 # values after options handling.
16622 This file was extended by $as_me, which was
16623 generated by GNU Autoconf 2.69. Invocation command line was
16625 CONFIG_FILES = $CONFIG_FILES
16626 CONFIG_HEADERS = $CONFIG_HEADERS
16627 CONFIG_LINKS = $CONFIG_LINKS
16628 CONFIG_COMMANDS = $CONFIG_COMMANDS
16631 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16636 case $ac_config_files in *"
16637 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16640 case $ac_config_headers in *"
16641 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16646 # Files that config.status was made for.
16647 config_files="$ac_config_files"
16648 config_headers="$ac_config_headers"
16649 config_commands="$ac_config_commands"
16653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16655 \`$as_me' instantiates files and other configuration actions
16656 from templates according to the current configuration. Unless the files
16657 and actions are specified as TAGs, all are instantiated by default.
16659 Usage: $0 [OPTION]... [TAG]...
16661 -h, --help print this help, then exit
16662 -V, --version print version number and configuration settings, then exit
16663 --config print configuration, then exit
16664 -q, --quiet, --silent
16665 do not print progress messages
16666 -d, --debug don't remove temporary files
16667 --recheck update $as_me by reconfiguring in the same conditions
16668 --file=FILE[:TEMPLATE]
16669 instantiate the configuration file FILE
16670 --header=FILE[:TEMPLATE]
16671 instantiate the configuration header FILE
16673 Configuration files:
16676 Configuration headers:
16679 Configuration commands:
16682 Report bugs to the package provider."
16685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16686 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16689 configured by $0, generated by GNU Autoconf 2.69,
16690 with options \\"\$ac_cs_config\\"
16692 Copyright (C) 2012 Free Software Foundation, Inc.
16693 This config.status script is free software; the Free Software Foundation
16694 gives unlimited permission to copy, distribute and modify it."
16698 test -n "\$AWK" || AWK=awk
16701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16702 # The default lists apply if the user does not specify any file.
16708 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16709 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16713 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16725 # Handling of the options.
16726 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16728 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16729 $as_echo "$ac_cs_version"; exit ;;
16730 --config |
--confi |
--conf |
--con |
--co |
--c )
16731 $as_echo "$ac_cs_config"; exit ;;
16732 --debug |
--debu |
--deb |
--de |
--d |
-d )
16734 --file |
--fil |
--fi |
--f )
16737 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16738 '') as_fn_error $?
"missing file argument" ;;
16740 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16741 ac_need_defaults
=false
;;
16742 --header |
--heade |
--head |
--hea )
16745 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16747 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16748 ac_need_defaults
=false
;;
16750 # Conflict between --help and --header
16751 as_fn_error $?
"ambiguous option: \`$1'
16752 Try \`$0 --help' for more information.";;
16753 --help |
--hel |
-h )
16754 $as_echo "$ac_cs_usage"; exit ;;
16755 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16756 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16759 # This is an error.
16760 -*) as_fn_error $?
"unrecognized option: \`$1'
16761 Try \`$0 --help' for more information." ;;
16763 *) as_fn_append ac_config_targets
" $1"
16764 ac_need_defaults
=false
;;
16770 ac_configure_extra_args
=
16772 if $ac_cs_silent; then
16774 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16779 if \$ac_cs_recheck; then
16780 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16782 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16783 CONFIG_SHELL='$SHELL'
16784 export CONFIG_SHELL
16789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16794 ## Running $as_me. ##
16800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16805 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16806 aros_tools_dir=${aros_tools_dir}
16810 aros_host_exe_suffix=${aros_host_exe_suffix}
16811 aros_tools_dir=${aros_tools_dir}
16812 aros_target_cpu=${aros_target_cpu}
16813 aros_target_arch=${aros_target_arch}
16814 aros_target_suffix=${aros_target_suffix}
16815 orig_target_nm=${orig_target_nm}
16816 orig_target_as=${orig_target_as}
16817 orig_target_ar=${orig_target_ar}
16818 orig_target_ranlib=${orig_target_ranlib}
16819 orig_target_objdump=${orig_target_objdump}
16820 orig_target_objcopy=${orig_target_objcopy}
16821 orig_target_strip=${orig_target_strip}
16822 aros_kernel_ld=${aros_kernel_ld}
16826 aros_host_exe_suffix=${aros_host_exe_suffix}
16827 aros_tools_dir=${aros_tools_dir}
16828 aros_target_cpu=${aros_target_cpu}
16829 aros_target_arch=${aros_target_arch}
16830 aros_target_suffix=${aros_target_suffix}
16831 aros_kernel_ld=${aros_kernel_ld}
16835 aros_host_exe_suffix=${aros_host_exe_suffix}
16836 aros_tools_dir=${aros_tools_dir}
16837 aros_target_cpu=${aros_target_cpu}
16838 aros_target_arch=${aros_target_arch}
16839 aros_target_suffix=${aros_target_suffix}
16845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16847 # Handling of arguments.
16848 for ac_config_target
in $ac_config_targets
16850 case $ac_config_target in
16851 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16852 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
16853 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16854 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
16855 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16856 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16857 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16858 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16859 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16860 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
16861 "compiler/include/geninc.cfg") CONFIG_FILES
="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16862 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16863 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16864 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16865 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
16866 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
16867 "${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" ;;
16868 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
16869 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16870 "${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" ;;
16871 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16872 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16873 "${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" ;;
16874 "${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" ;;
16875 "${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" ;;
16876 "${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" ;;
16877 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16879 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16884 # If the user did not use the arguments to specify the items to instantiate,
16885 # then the envvar interface is used. Set only those that are not.
16886 # We use the long form for the default assignment because of an extremely
16887 # bizarre bug on SunOS 4.1.3.
16888 if $ac_need_defaults; then
16889 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16890 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16891 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16894 # Have a temporary directory for convenience. Make it in the build tree
16895 # simply because there is no reason against having it here, and in addition,
16896 # creating and moving files from /tmp can sometimes cause problems.
16897 # Hook for its removal unless debugging.
16898 # Note that there is a small window in which the directory will not be cleaned:
16899 # after its creation but before its name has been assigned to `$tmp'.
16903 trap 'exit_status=$?
16904 : "${ac_tmp:=$tmp}"
16905 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16907 trap 'as_fn_exit 1' 1 2 13 15
16909 # Create a (secure) tmp directory for tmp files.
16912 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16916 tmp
=.
/conf$$
-$RANDOM
16917 (umask 077 && mkdir
"$tmp")
16918 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16921 # Set up the scripts for CONFIG_FILES section.
16922 # No need to generate them if there are no CONFIG_FILES.
16923 # This happens for instance with `./config.status config.h'.
16924 if test -n "$CONFIG_FILES"; then
16927 ac_cr
=`echo X | tr X '\015'`
16928 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16929 # But we know of no other shell where ac_cr would be empty at this
16930 # point, so we can use a bashism as a fallback.
16931 if test "x$ac_cr" = x
; then
16932 eval ac_cr
=\$
\'\\r
\'
16934 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16935 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16938 ac_cs_awk_cr
=$ac_cr
16941 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16946 echo "cat >conf$$subs.awk <<_ACEOF" &&
16947 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16949 } >conf$$subs.sh ||
16950 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16951 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16953 for ac_last_try in false false false false false :; do
16954 . ./conf$$subs.sh ||
16955 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16957 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16958 if test $ac_delim_n = $ac_delim_num; then
16960 elif $ac_last_try; then
16961 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16963 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16966 rm -f conf$$subs.sh
16968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16969 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16973 s/^/S["/; s
/!.
*/"]=/
16983 s/\(.\{148\}\)..*/\1/
16985 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16990 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16997 s/\(.\{148\}\)..*/\1/
16999 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17003 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17008 ' <conf$$subs.awk | sed '
17013 ' >>$CONFIG_STATUS || ac_write_fail=1
17014 rm -f conf$$subs.awk
17015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17017 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17018 for (key in S) S_is_set[key] = 1
17024 nfields = split(line, field, "@
")
17026 len = length(field[1])
17027 for (i = 2; i < nfields; i++) {
17029 keylen = length(key)
17030 if (S_is_set[key]) {
17032 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17033 len += length(value) + length(field[++i])
17044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17045 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17046 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17049 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17050 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17053 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17054 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17055 # trailing colons and then remove the whole line if VPATH becomes empty
17056 # (actually we leave an empty line to preserve line numbers).
17057 if test "x
$srcdir" = x.; then
17058 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17077 fi # test -n "$CONFIG_FILES"
17079 # Set up the scripts for CONFIG_HEADERS section.
17080 # No need to generate them if there are no CONFIG_HEADERS.
17081 # This happens for instance with `./config.status Makefile'.
17082 if test -n "$CONFIG_HEADERS"; then
17083 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17087 # Transform confdefs.h into an awk script `defines.awk', embedded as
17088 # here-document in config.status, that substitutes the proper values into
17089 # config.h.in to produce config.h.
17091 # Create a delimiter string that does not exist in confdefs.h, to ease
17092 # handling of long lines.
17094 for ac_last_try in false false :; do
17095 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17096 if test -z "$ac_tt"; then
17098 elif $ac_last_try; then
17099 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17101 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17105 # For the awk script, D is an array of macro values keyed by name,
17106 # likewise P contains macro parameters if any. Preserve backslash
17107 # newline sequences.
17109 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17111 s/.\{148\}/&'"$ac_delim"'/g
17114 s/^[ ]*#[ ]*define[ ][ ]*/ /
17121 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17123 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17127 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17128 D["\
1"]=" \
3\\\\\\n
"\\/p
17130 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17135 s/.\{148\}/&'"$ac_delim"'/g
17140 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17143 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17145 ' <confdefs.h | sed '
17146 s/'"$ac_delim"'/"\\\
17147 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17150 for (key in D) D_is_set[key] = 1
17153 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17155 split(line, arg, " ")
17156 if (arg[1] == "#") {
17160 defundef
= substr
(arg
[1], 2)
17163 split(mac1
, mac2
, "(") #)
17165 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17166 if (D_is_set
[macro
]) {
17167 # Preserve the white space surrounding the "#".
17168 print prefix
"define", macro P
[macro
] D
[macro
]
17171 # Replace #undef with comments. This is necessary, for example,
17172 # in the case of _POSIX_SOURCE, which is predefined and required
17173 # on some systems where configure will not decide to define it.
17174 if (defundef
== "undef") {
17175 print
"/*", prefix defundef
, macro
, "*/"
17183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17184 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17185 fi # test -n "$CONFIG_HEADERS"
17188 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17193 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17195 case $ac_mode$ac_tag in
17197 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17198 :[FH
]-) ac_tag
=-:-;;
17199 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17216 -) ac_f
="$ac_tmp/stdin";;
17217 *) # Look for the file first in the build tree, then in the source tree
17218 # (if the path is not absolute). The absolute path cannot be DOS-style,
17219 # because $ac_f cannot contain `:'.
17223 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17225 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17227 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17228 as_fn_append ac_file_inputs
" '$ac_f'"
17231 # Let's still pretend it is `configure' which instantiates (i.e., don't
17232 # use $as_me), people would be surprised to read:
17233 # /* config.h. Generated by config.status. */
17234 configure_input
='Generated from '`
17235 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17237 if test x
"$ac_file" != x-
; then
17238 configure_input
="$ac_file. $configure_input"
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17240 $as_echo "$as_me: creating $ac_file" >&6;}
17242 # Neutralize special characters interpreted by sed in replacement strings.
17243 case $configure_input in #(
17244 *\
&* |
*\|
* |
*\\* )
17245 ac_sed_conf_input
=`$as_echo "$configure_input" |
17246 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17247 *) ac_sed_conf_input
=$configure_input;;
17251 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17252 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17257 ac_dir
=`$as_dirname -- "$ac_file" ||
17258 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17259 X"$ac_file" : 'X\(//\)[^/]' \| \
17260 X"$ac_file" : 'X\(//\)$' \| \
17261 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17262 $as_echo X"$ac_file" |
17263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17267 /^X\(\/\/\)[^/].*/{
17280 as_dir
="$ac_dir"; as_fn_mkdir_p
17284 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17286 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17287 # A ".." for each directory in $ac_dir_suffix.
17288 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17289 case $ac_top_builddir_sub in
17290 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17291 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17294 ac_abs_top_builddir
=$ac_pwd
17295 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17296 # for backward compatibility:
17297 ac_top_builddir
=$ac_top_build_prefix
17300 .
) # We are building in place.
17302 ac_top_srcdir
=$ac_top_builddir_sub
17303 ac_abs_top_srcdir
=$ac_pwd ;;
17304 [\\/]* | ?
:[\\/]* ) # Absolute name.
17305 ac_srcdir
=$srcdir$ac_dir_suffix;
17306 ac_top_srcdir
=$srcdir
17307 ac_abs_top_srcdir
=$srcdir ;;
17308 *) # Relative name.
17309 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17310 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17311 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17313 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17325 # If the template does not know about datarootdir, expand it.
17326 # FIXME: This hack should be removed a few years after 2.60.
17327 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17338 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17339 *datarootdir
*) ac_datarootdir_seen
=yes;;
17340 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17342 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17345 ac_datarootdir_hack='
17346 s&@datadir@&$datadir&g
17347 s&@docdir@&$docdir&g
17348 s&@infodir@&$infodir&g
17349 s&@localedir@&$localedir&g
17350 s&@mandir@&$mandir&g
17351 s&\\\${datarootdir}&$datarootdir&g' ;;
17355 # Neutralize VPATH when `$srcdir' = `.'.
17356 # Shell code in configure.ac might set extrasub.
17357 # FIXME: do we really want to maintain this feature?
17358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17359 ac_sed_extra="$ac_vpsub
17362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17364 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17365 s|@configure_input@|
$ac_sed_conf_input|
;t t
17366 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17367 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17368 s
&@srcdir@
&$ac_srcdir&;t t
17369 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17370 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17371 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17372 s
&@builddir@
&$ac_builddir&;t t
17373 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17374 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17375 $ac_datarootdir_hack
17377 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17378 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17380 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17381 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17382 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17383 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17385 which seems to be undefined. Please make sure it is defined" >&5
17386 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17387 which seems to be undefined. Please make sure it is defined" >&2;}
17389 rm -f "$ac_tmp/stdin"
17391 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17392 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17400 if test x"$ac_file" != x-; then
17402 $as_echo "/* $configure_input */" \
17403 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17404 } >"$ac_tmp/config.h" \
17405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17406 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17408 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17411 mv "$ac_tmp/config.h" "$ac_file" \
17412 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17415 $as_echo "/* $configure_input */" \
17416 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17417 || as_fn_error $? "could not create -" "$LINENO" 5
17421 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17422 $as_echo "$as_me: executing $ac_file commands" >&6;}
17427 case $ac_file$ac_mode in
17428 "genmf-executable-support":C)
17429 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
17430 chmod a+x ${aros_tools_dir}/genmf.py
17432 "binutils-support":C)
17433 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17435 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17437 chmod a+x ${prefix2}-ld
17439 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
17440 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
17441 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
17442 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
17443 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
17444 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
17445 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
17447 "elf-compiler-support":C)
17448 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17450 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
17452 chmod a+x ${prefix2}-gcc
17454 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
17456 "host-compiler-wrapper-support":C)
17457 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17459 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17461 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
17470 ac_clean_files=$ac_clean_files_save
17472 test $ac_write_fail = 0 ||
17473 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17476 # configure is writing to config.log, and then calls config.status.
17477 # config.status does its own redirection, appending to config.log.
17478 # Unfortunately, on DOS this fails, as config.log is still kept open
17479 # by configure, so config.status won't be able to
write to it
; its
17480 # output is simply discarded. So we exec the FD to /dev/null,
17481 # effectively closing config.log, so it can be properly (re)opened and
17482 # appended to by config.status. When coming back to configure, we
17483 # need to make the FD available again.
17484 if test "$no_create" != yes; then
17486 ac_config_status_args
=
17487 test "$silent" = yes &&
17488 ac_config_status_args
="$ac_config_status_args --quiet"
17490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17493 # would make configure fail if this is the last instruction.
17494 $ac_cs_success || as_fn_exit
1
17496 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17498 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17503 #XXX compatability...
17504 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
17506 if test -n "$aros_shared_cflags" ; then
17507 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
17508 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg