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_optimization_cflags
675 aros_target_strip_flags
683 aros_kernel_objcflags
709 aros_target_cc_includes
725 aros_target_bootloader
755 host_stat_h__unused_used
756 aros_amigaos_compliance
764 aros_target_toolchain
773 kernel_cflags_iquote_end
775 host_cflags_iquote_end
778 aros_target_nostdlib_ldflags
779 aros_target_detach_ldflags
780 aros_target_nix_ldflags
781 aros_target_nostartup_ldflags
782 aros_target_nostdinc_cflags
821 arosconfig_use_libpngconfig
906 program_transform_name
919 enable_option_checking
930 with_kernel_gcc_version
933 enable_target_variant
940 enable_amigaos_compliance
941 with_kernel_toolchain_prefix
942 with_elf_toolchain_prefix
945 with_aros_toolchain_install
946 with_binutils_version
960 enable_palm_debug_hack
962 enable_nesting_supervisor
974 ac_precious_vars
='build_alias
990 # Initialize some variables set by options.
992 ac_init_version
=false
993 ac_unrecognized_opts
=
995 # The variables have the same names as the options, with
996 # dashes changed to underlines.
1004 program_transform_name
=s
,x
,x
,
1012 # Installation directory options.
1013 # These are left unexpanded so users can "make install exec_prefix=/foo"
1014 # and all the variables that are supposed to be based on exec_prefix
1015 # by default will actually change.
1016 # Use braces instead of parens because sh, perl, etc. also accept them.
1017 # (The list follows the same order as the GNU Coding Standards.)
1018 bindir
='${exec_prefix}/bin'
1019 sbindir
='${exec_prefix}/sbin'
1020 libexecdir
='${exec_prefix}/libexec'
1021 datarootdir
='${prefix}/share'
1022 datadir
='${datarootdir}'
1023 sysconfdir
='${prefix}/etc'
1024 sharedstatedir
='${prefix}/com'
1025 localstatedir
='${prefix}/var'
1026 runstatedir
='${localstatedir}/run'
1027 includedir
='${prefix}/include'
1028 oldincludedir
='/usr/include'
1029 docdir
='${datarootdir}/doc/${PACKAGE}'
1030 infodir
='${datarootdir}/info'
1035 libdir
='${exec_prefix}/lib'
1036 localedir
='${datarootdir}/locale'
1037 mandir
='${datarootdir}/man'
1043 # If the previous option needs an argument, assign it.
1044 if test -n "$ac_prev"; then
1045 eval $ac_prev=\
$ac_option
1051 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1056 # Accept the important Cygnus configure options, so we can diagnose typos.
1058 case $ac_dashdash$ac_option in
1062 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1064 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1065 bindir
=$ac_optarg ;;
1067 -build |
--build |
--buil |
--bui |
--bu)
1068 ac_prev
=build_alias
;;
1069 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1070 build_alias
=$ac_optarg ;;
1072 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1073 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1074 ac_prev
=cache_file
;;
1075 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1076 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1077 cache_file
=$ac_optarg ;;
1079 --config-cache |
-C)
1080 cache_file
=config.cache
;;
1082 -datadir |
--datadir |
--datadi |
--datad)
1084 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1085 datadir
=$ac_optarg ;;
1087 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1088 |
--dataroo |
--dataro |
--datar)
1089 ac_prev
=datarootdir
;;
1090 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1091 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1092 datarootdir
=$ac_optarg ;;
1094 -disable-* |
--disable-*)
1095 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1098 as_fn_error $?
"invalid feature name: $ac_useropt"
1099 ac_useropt_orig
=$ac_useropt
1100 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "enable_
$ac_useropt"
1105 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1106 ac_unrecognized_sep
=', ';;
1108 eval enable_
$ac_useropt=no
;;
1110 -docdir |
--docdir |
--docdi |
--doc |
--do)
1112 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1113 docdir
=$ac_optarg ;;
1115 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1117 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1118 dvidir
=$ac_optarg ;;
1120 -enable-* |
--enable-*)
1121 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1124 as_fn_error $?
"invalid feature name: $ac_useropt"
1125 ac_useropt_orig
=$ac_useropt
1126 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "enable_
$ac_useropt"
1131 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1132 ac_unrecognized_sep
=', ';;
1134 eval enable_
$ac_useropt=\
$ac_optarg ;;
1136 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1137 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1138 |
--exec |
--exe |
--ex)
1139 ac_prev
=exec_prefix
;;
1140 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1141 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1142 |
--exec=* |
--exe=* |
--ex=*)
1143 exec_prefix
=$ac_optarg ;;
1145 -gas |
--gas |
--ga |
--g)
1146 # Obsolete; use --with-gas.
1149 -help |
--help |
--hel |
--he |
-h)
1150 ac_init_help
=long
;;
1151 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1152 ac_init_help
=recursive
;;
1153 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1154 ac_init_help
=short
;;
1156 -host |
--host |
--hos |
--ho)
1157 ac_prev
=host_alias
;;
1158 -host=* |
--host=* |
--hos=* |
--ho=*)
1159 host_alias
=$ac_optarg ;;
1161 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1163 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1165 htmldir
=$ac_optarg ;;
1167 -includedir |
--includedir |
--includedi |
--included |
--include \
1168 |
--includ |
--inclu |
--incl |
--inc)
1169 ac_prev
=includedir
;;
1170 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1171 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1172 includedir
=$ac_optarg ;;
1174 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1176 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1177 infodir
=$ac_optarg ;;
1179 -libdir |
--libdir |
--libdi |
--libd)
1181 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1182 libdir
=$ac_optarg ;;
1184 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1185 |
--libexe |
--libex |
--libe)
1186 ac_prev
=libexecdir
;;
1187 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1188 |
--libexe=* |
--libex=* |
--libe=*)
1189 libexecdir
=$ac_optarg ;;
1191 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1192 ac_prev
=localedir
;;
1193 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1194 localedir
=$ac_optarg ;;
1196 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1197 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1198 ac_prev
=localstatedir
;;
1199 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1200 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1201 localstatedir
=$ac_optarg ;;
1203 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1205 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1206 mandir
=$ac_optarg ;;
1208 -nfp |
--nfp |
--nf)
1209 # Obsolete; use --without-fp.
1212 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1213 |
--no-cr |
--no-c |
-n)
1216 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1217 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1220 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1221 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1222 |
--oldin |
--oldi |
--old |
--ol |
--o)
1223 ac_prev
=oldincludedir
;;
1224 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1225 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1226 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1227 oldincludedir
=$ac_optarg ;;
1229 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1231 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1232 prefix
=$ac_optarg ;;
1234 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1235 |
--program-pre |
--program-pr |
--program-p)
1236 ac_prev
=program_prefix
;;
1237 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1238 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1239 program_prefix
=$ac_optarg ;;
1241 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1242 |
--program-suf |
--program-su |
--program-s)
1243 ac_prev
=program_suffix
;;
1244 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1245 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1246 program_suffix
=$ac_optarg ;;
1248 -program-transform-name |
--program-transform-name \
1249 |
--program-transform-nam |
--program-transform-na \
1250 |
--program-transform-n |
--program-transform- \
1251 |
--program-transform |
--program-transfor \
1252 |
--program-transfo |
--program-transf \
1253 |
--program-trans |
--program-tran \
1254 |
--progr-tra |
--program-tr |
--program-t)
1255 ac_prev
=program_transform_name
;;
1256 -program-transform-name=* |
--program-transform-name=* \
1257 |
--program-transform-nam=* |
--program-transform-na=* \
1258 |
--program-transform-n=* |
--program-transform-=* \
1259 |
--program-transform=* |
--program-transfor=* \
1260 |
--program-transfo=* |
--program-transf=* \
1261 |
--program-trans=* |
--program-tran=* \
1262 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1263 program_transform_name
=$ac_optarg ;;
1265 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1267 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1268 pdfdir
=$ac_optarg ;;
1270 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1272 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1275 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1276 |
-silent |
--silent |
--silen |
--sile |
--sil)
1279 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1280 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1281 |
--run |
--ru |
--r)
1282 ac_prev
=runstatedir
;;
1283 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1284 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1285 |
--run=* |
--ru=* |
--r=*)
1286 runstatedir
=$ac_optarg ;;
1288 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1290 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1292 sbindir
=$ac_optarg ;;
1294 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1295 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1296 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1298 ac_prev
=sharedstatedir
;;
1299 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1300 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1301 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1303 sharedstatedir
=$ac_optarg ;;
1305 -site |
--site |
--sit)
1307 -site=* |
--site=* |
--sit=*)
1310 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1312 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1313 srcdir
=$ac_optarg ;;
1315 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1316 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1317 ac_prev
=sysconfdir
;;
1318 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1319 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1320 sysconfdir
=$ac_optarg ;;
1322 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1323 ac_prev
=target_alias
;;
1324 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1325 target_alias
=$ac_optarg ;;
1327 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1330 -version |
--version |
--versio |
--versi |
--vers |
-V)
1331 ac_init_version
=: ;;
1334 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1337 as_fn_error $?
"invalid package name: $ac_useropt"
1338 ac_useropt_orig
=$ac_useropt
1339 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340 case $ac_user_opts in
1344 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1345 ac_unrecognized_sep
=', ';;
1347 eval with_
$ac_useropt=\
$ac_optarg ;;
1349 -without-* |
--without-*)
1350 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1353 as_fn_error $?
"invalid package name: $ac_useropt"
1354 ac_useropt_orig
=$ac_useropt
1355 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1360 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1361 ac_unrecognized_sep
=', ';;
1363 eval with_
$ac_useropt=no
;;
1366 # Obsolete; use --with-x.
1369 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1370 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1371 ac_prev
=x_includes
;;
1372 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1373 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1374 x_includes
=$ac_optarg ;;
1376 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1377 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1378 ac_prev
=x_libraries
;;
1379 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1380 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1381 x_libraries
=$ac_optarg ;;
1383 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1384 Try \`$0 --help' for more information"
1388 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1389 # Reject names that are not valid shell variable names.
1390 case $ac_envvar in #(
1391 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1392 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1394 eval $ac_envvar=\
$ac_optarg
1395 export $ac_envvar ;;
1398 # FIXME: should be removed in autoconf 3.0.
1399 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1400 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1401 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1402 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1408 if test -n "$ac_prev"; then
1409 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1410 as_fn_error $?
"missing argument to $ac_option"
1413 if test -n "$ac_unrecognized_opts"; then
1414 case $enable_option_checking in
1416 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1417 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1421 # Check all directory arguments for consistency.
1422 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1423 datadir sysconfdir sharedstatedir localstatedir includedir \
1424 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1425 libdir localedir mandir runstatedir
1427 eval ac_val
=\$
$ac_var
1428 # Remove trailing slashes.
1431 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1432 eval $ac_var=\
$ac_val;;
1434 # Be sure to have absolute directory names.
1436 [\\/$
]* | ?
:[\\/]* ) continue;;
1437 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1439 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1442 # There might be people who depend on the old broken behavior: `$host'
1443 # used to hold the argument of --host etc.
1444 # FIXME: To remove some day.
1447 target
=$target_alias
1449 # FIXME: To remove some day.
1450 if test "x$host_alias" != x
; then
1451 if test "x$build_alias" = x
; then
1452 cross_compiling
=maybe
1453 elif test "x$build_alias" != "x$host_alias"; then
1459 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1461 test "$silent" = yes && exec 6>/dev
/null
1464 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1465 ac_ls_di
=`ls -di .` &&
1466 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1467 as_fn_error $?
"working directory cannot be determined"
1468 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1469 as_fn_error $?
"pwd does not report name of working directory"
1472 # Find the source files, if location was not specified.
1473 if test -z "$srcdir"; then
1474 ac_srcdir_defaulted
=yes
1475 # Try the directory containing this script, then the parent directory.
1476 ac_confdir
=`$as_dirname -- "$as_myself" ||
1477 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1478 X"$as_myself" : 'X\(//\)[^/]' \| \
1479 X"$as_myself" : 'X\(//\)$' \| \
1480 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1481 $as_echo X"$as_myself" |
1482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1504 ac_srcdir_defaulted
=no
1506 if test ! -r "$srcdir/$ac_unique_file"; then
1507 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1508 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1510 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1512 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1514 # When building in place, set srcdir=.
1515 if test "$ac_abs_confdir" = "$ac_pwd"; then
1518 # Remove unnecessary trailing slashes from srcdir.
1519 # Double slashes in file names in object file debugging info
1520 # mess up M-x gdb in Emacs.
1522 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1524 for ac_var
in $ac_precious_vars; do
1525 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1526 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1527 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1528 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1532 # Report the --help message.
1534 if test "$ac_init_help" = "long"; then
1535 # Omit some internal or obsolete options to make the list less imposing.
1536 # This message is too long to be a string in the A/UX 3.1 sh.
1538 \`configure' configures this package to adapt to many kinds of systems.
1540 Usage: $0 [OPTION]... [VAR=VALUE]...
1542 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1543 VAR=VALUE. See below for descriptions of some of the useful variables.
1545 Defaults for the options are specified in brackets.
1548 -h, --help display this help and exit
1549 --help=short display options specific to this package
1550 --help=recursive display the short help of all the included packages
1551 -V, --version display version information and exit
1552 -q, --quiet, --silent do not print \`checking ...' messages
1553 --cache-file=FILE cache test results in FILE [disabled]
1554 -C, --config-cache alias for \`--cache-file=config.cache'
1555 -n, --no-create do not create output files
1556 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1558 Installation directories:
1559 --prefix=PREFIX install architecture-independent files in PREFIX
1560 [$ac_default_prefix]
1561 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1564 By default, \`make install' will install all the files in
1565 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1566 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1567 for instance \`--prefix=\$HOME'.
1569 For better control, use the options below.
1571 Fine tuning of the installation directories:
1572 --bindir=DIR user executables [EPREFIX/bin]
1573 --sbindir=DIR system admin executables [EPREFIX/sbin]
1574 --libexecdir=DIR program executables [EPREFIX/libexec]
1575 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1576 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1577 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1578 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1579 --libdir=DIR object code libraries [EPREFIX/lib]
1580 --includedir=DIR C header files [PREFIX/include]
1581 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1582 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1583 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1584 --infodir=DIR info documentation [DATAROOTDIR/info]
1585 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1586 --mandir=DIR man documentation [DATAROOTDIR/man]
1587 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1588 --htmldir=DIR html documentation [DOCDIR]
1589 --dvidir=DIR dvi documentation [DOCDIR]
1590 --pdfdir=DIR pdf documentation [DOCDIR]
1591 --psdir=DIR ps documentation [DOCDIR]
1597 --x-includes=DIR X include files are
in DIR
1598 --x-libraries=DIR X library files are
in DIR
1601 --build=BUILD configure
for building on BUILD
[guessed
]
1602 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1606 if test -n "$ac_init_help"; then
1611 --disable-option-checking ignore unrecognized
--enable/--with options
1612 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1613 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1614 --disable-libpng-config disable libpng-config
test and configuration
1615 --enable-lto=yes|no Enable link
time optimizations
if the target
1616 compiler supports them
(default
=no
)
1617 --enable-coverage=yes|no
1618 Enable coverage instrumentation
if the target
1619 compiler supports it
(default
=no
)
1620 --enable-build-type=TYPE
1621 Select the build
type. Available types are
:
1622 personal
, nightly
, snapshot
, milestone
, release. Do
1623 NOT use this option unless you know what you are
1624 doing
! (default
=personal
)
1625 --enable-debug=list Enable different types of debug. Commas or
1626 whitespaces can be used to separate the items
in the
1627 list. Available types of debug are
: all
, none
,
1628 messages
, stack
, mungwall
, modules
, symbols. If no
1629 list is provided
then "all" is assumed.
1631 --enable-distcc Use distcc as a front end to the compiler
1633 --enable-ccache Use ccache as a front end to the compiler
1635 --enable-target-variant=NAME
1636 Enable a specific target variant
(default
=none
)
1637 --enable-amigaos-compliance=VERSION
1638 Enforce userspace AmigaOS compliance to a specific
1639 KickStart version
(default
=none
).
1640 --disable-crosstools Do not build cross-compiler toolchain
1641 --enable-objc Enable Objectve-C support
(default
=no
)
1642 --enable-java Enable Java support
(default
=no
)
1643 --enable-includes=dir Alternative system include directory
1644 --enable-palm-debug-hack
1645 Enable palm debug output hack
in palm native
1647 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1648 --enable-nesting-supervisor
1649 Enable nesting supervisor support
in unix
1651 --disable-mmu Disable MMU support
(default
=enabled
)
1652 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1653 --enable-x11-shm use X11 shared memory
(default
=auto
)
1654 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1655 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1656 --disable-sdltest Do not try to compile and run a
test SDL program
1657 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1660 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1661 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1662 --with-c-compiler=VERSION
1663 Use specified c compiler
for building AROS
1664 --with-cxx-compiler=VERSION
1665 Use specified c
++ compiler building AROS
1666 --with-toolchain=family Which toolchain family to crosscompile with
1668 --with-kernel-gcc-version=VERSION
1669 Use gcc-VERSION
for building bootstrap
1670 --with-optimization=FLAGS
1671 Use optimization flags FLAGS
(e.g
1672 --with-optimization=-O2).
1673 --with-paranoia=(yes|no|FLAGS
)
1674 Specific compiler warning FLAGS to
enable for
1675 paranoia builds
(default
=-Wall -Werror)
1676 --with-xcode=PATH Specify XCode path
for iOS targets
1677 (default
=/Developer
).
1678 --with-sdk-version=VERSION
1679 Use iOS SDK version VERSION
(default
=4.1).
1680 --with-sdk=PATH Specify Android SDK path
1681 (default
=$default_android_sdk).
1682 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1683 --with-sdk-version=LEVEL
1684 Use Android SDK
for API LEVEL
(default
=12).
1685 --with-ndk-version=LEVEL
1686 Use Android NDK
for API LEVEL
(default
=9).
1687 --with-apk-version=(release|debug
)
1688 Which version of AROSBootstrap.apk to compile.
1689 Release version needs key
for signing
, debug version
1690 will only run
in emulator.
(default
=release
)
1691 --with-kernel-toolchain-prefix=...
1692 Specify crosscompile toolchain prefix
for kernel
1694 --with-elf-toolchain-prefix=...
1695 Specify crosscompile toolchain prefix to wrap
for
1697 --with-aros-toolchain=PREFIX
1698 Specify prebuilt AROS toolchain. Use
yes for default
1700 --with-aros-toolchain-install=DIR
1701 Where to
install or search
for cross tools binaries
1702 --with-binutils-version=VERSION
1703 Use binutils-VERSION
for building AROS
1704 --with-gcc-version=VERSION
1705 Compile gcc-VERSION
for AROS
1706 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1707 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1708 --with-float=<spec
> Specify floating point ABI
1709 (default
=$gcc_default_float_abi).
1710 --with-portssources=DIR Where to download sourcecode
for external ports
1711 --with-bootloader=NAME Use a specific bootloader
1712 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1713 --with-theme=NAME Use a specific GUI Theme
1714 --with-resolution=XRESxYRESxDEPTH
1715 Default resolution of the initial WorkbenchScreen
1716 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1717 --with-x use the X Window System
1718 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1719 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1721 Some influential environment variables
:
1722 CXX C
++ compiler
command
1723 CXXFLAGS C
++ compiler flags
1724 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1725 nonstandard directory
<lib dir
>
1726 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1727 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1728 you have headers
in a nonstandard directory
<include dir
>
1729 CC C compiler
command
1730 CFLAGS C compiler flags
1732 PYTHON the Python interpreter
1733 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1735 Use these variables to override the choices made by
`configure' or to help
1736 it to find libraries and programs with nonstandard names/locations.
1738 Report bugs to the package provider.
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1746 test -d "$ac_dir" ||
1747 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1755 # A ".." for each directory in $ac_dir_suffix.
1756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1757 case $ac_top_builddir_sub in
1758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1762 ac_abs_top_builddir=$ac_pwd
1763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1764 # for backward compatibility:
1765 ac_top_builddir=$ac_top_build_prefix
1768 .) # We are building in place.
1770 ac_top_srcdir=$ac_top_builddir_sub
1771 ac_abs_top_srcdir=$ac_pwd ;;
1772 [\\/]* | ?:[\\/]* ) # Absolute name.
1773 ac_srcdir=$srcdir$ac_dir_suffix;
1774 ac_top_srcdir=$srcdir
1775 ac_abs_top_srcdir=$srcdir ;;
1777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778 ac_top_srcdir=$ac_top_build_prefix$srcdir
1779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1783 cd "$ac_dir" || { ac_status=$?; continue; }
1784 # Check for guested configure.
1785 if test -f "$ac_srcdir/configure.gnu"; then
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788 elif test -f "$ac_srcdir/configure"; then
1790 $SHELL "$ac_srcdir/configure" --help=recursive
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1794 cd "$ac_pwd" || { ac_status=$?; break; }
1798 test -n "$ac_init_help" && exit $ac_status
1799 if $ac_init_version; then
1802 generated by GNU Autoconf 2.69
1804 Copyright (C) 2012 Free Software Foundation, Inc.
1805 This configure script is free software; the Free Software Foundation
1806 gives unlimited permission to copy, distribute and modify it.
1811 ## ------------------------ ##
1812 ## Autoconf initialization. ##
1813 ## ------------------------ ##
1815 # ac_fn_cxx_try_compile LINENO
1816 # ----------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_cxx_try_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1825 *) ac_try_echo
=$ac_try;;
1827 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1831 if test -s conftest.err
; then
1832 grep -v '^ *+' conftest.err
>conftest.er1
1833 cat conftest.er1
>&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_cxx_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.
$ac_objext; then :
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.
$ac_ext >&5
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status
$ac_retval
1851 } # ac_fn_cxx_try_compile
1853 # ac_fn_c_try_compile LINENO
1854 # --------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_c_try_compile
()
1858 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1859 rm -f conftest.
$ac_objext
1860 if { { ac_try
="$ac_compile"
1862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_c_try_compile
1891 # ac_fn_c_try_cpp LINENO
1892 # ----------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { { ac_try="$ac_cpp conftest.$ac_ext"
1899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1900 *) ac_try_echo
=$ac_try;;
1902 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1906 if test -s conftest.err
; then
1907 grep -v '^ *+' conftest.err
>conftest.er1
1908 cat conftest.er1
>&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } > conftest.i
&& {
1913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.
$ac_ext >&5
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status
$ac_retval
1928 # ac_fn_c_try_link LINENO
1929 # -----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1934 rm -f conftest.
$ac_objext conftest
$ac_exeext
1935 if { { ac_try
="$ac_link"
1937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 test -x conftest$ac_exeext
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 as_fn_set_status $ac_retval
1972 } # ac_fn_c_try_link
1974 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1975 # -------------------------------------------------------
1976 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1977 # the include files in INCLUDES and setting the cache variable VAR
1979 ac_fn_c_check_header_mongrel ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if eval \${$3+:} false; then :
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1992 # Is the header compilable?
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1994 $as_echo_n "checking $2 usability... " >&6; }
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 ac_header_compiler=yes
2003 ac_header_compiler=no
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2007 $as_echo "$ac_header_compiler" >&6; }
2009 # Is the header present?
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2011 $as_echo_n "checking $2 presence... " >&6; }
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2016 if ac_fn_c_try_cpp "$LINENO"; then :
2017 ac_header_preproc=yes
2019 ac_header_preproc=no
2021 rm -f conftest.err conftest.i conftest.$ac_ext
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2023 $as_echo "$ac_header_preproc" >&6; }
2025 # So? What about this header?
2026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2029 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2031 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2035 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2037 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2039 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2041 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047 $as_echo_n "checking for $2... " >&6; }
2048 if eval \${$3+:} false; then :
2049 $as_echo_n "(cached) " >&6
2051 eval "$3=\$ac_header_compiler"
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 } # ac_fn_c_check_header_mongrel
2061 # ac_fn_c_try_run LINENO
2062 # ----------------------
2063 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2064 # that executables *can* be run.
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 if { { ac_try="$ac_link"
2070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2071 *) ac_try_echo
=$ac_try;;
2073 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074 $as_echo "$ac_try_echo"; } >&5
2075 (eval "$ac_link") 2>&5
2077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2079 { { case "(($ac_try" in
2080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2081 *) ac_try_echo=$ac_try;;
2083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2084 $as_echo "$ac_try_echo"; } >&5
2085 (eval "$ac_try") 2>&5
2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088 test $ac_status = 0; }; }; then :
2091 $as_echo "$as_me: program exited with status $ac_status" >&5
2092 $as_echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2095 ac_retval=$ac_status
2097 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 as_fn_set_status $ac_retval
2103 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2104 # -------------------------------------------------------
2105 # Tests whether HEADER exists and can be compiled using the include files in
2106 # INCLUDES, setting the cache variable VAR accordingly.
2107 ac_fn_c_check_header_compile ()
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \${$3+:} false; then :
2113 $as_echo_n "(cached) " >&6
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2120 if ac_fn_c_try_compile "$LINENO"; then :
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 } # ac_fn_c_check_header_compile
2134 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2135 # ----------------------------------------------------
2136 # Tries to find if the field MEMBER exists in type AGGR, after including
2137 # INCLUDES, setting cache variable VAR accordingly.
2138 ac_fn_c_check_member ()
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2142 $as_echo_n "checking for $2.$3... " >&6; }
2143 if eval \${$4+:} false; then :
2144 $as_echo_n "(cached) " >&6
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2159 if ac_fn_c_try_compile "$LINENO"; then :
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2169 if (sizeof ac_aggr.$3)
2175 if ac_fn_c_try_compile "$LINENO"; then :
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189 } # ac_fn_c_check_member
2191 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2192 # ---------------------------------------------
2193 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2195 ac_fn_c_check_decl ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2199 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2201 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2202 if eval \${$3+:} false; then :
2203 $as_echo_n "(cached) " >&6
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2211 #ifndef $as_decl_name
2213 (void) $as_decl_use;
2215 (void) $as_decl_name;
2223 if ac_fn_c_try_compile "$LINENO"; then :
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 } # ac_fn_c_check_decl
2237 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2238 # -------------------------------------------
2239 # Tests whether TYPE exists after having included INCLUDES, setting cache
2240 # variable VAR accordingly.
2241 ac_fn_c_check_type ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if eval \${$3+:} false; then :
2247 $as_echo_n "(cached) " >&6
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2275 if ac_fn_c_try_compile "$LINENO"; then :
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 } # ac_fn_c_check_type
2291 # ac_fn_c_check_func LINENO FUNC VAR
2292 # ----------------------------------
2293 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2294 ac_fn_c_check_func ()
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2298 $as_echo_n "checking for $2... " >&6; }
2299 if eval \${$3+:} false; then :
2300 $as_echo_n "(cached) " >&6
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2306 #define $2 innocuous_$2
2308 /* System header to define __stub macros and hopefully few prototypes,
2309 which can conflict with char $2 (); below.
2310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2311 <limits.h> exists even on freestanding compilers. */
2314 # include <limits.h>
2316 # include <assert.h>
2321 /* Override any GCC internal prototype to avoid an error.
2322 Use char because int might match the return type of a GCC
2323 builtin and then its argument prototype would still apply. */
2328 /* The GNU C library defines this for functions which it implements
2329 to always fail with ENOSYS. Some functions are actually named
2330 something starting with __ and the normal name is an alias. */
2331 #if defined __stub_$2 || defined __stub___$2
2343 if ac_fn_c_try_link "$LINENO"; then :
2348 rm -f core conftest.err conftest.$ac_objext \
2349 conftest$ac_exeext conftest.$ac_ext
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2356 } # ac_fn_c_check_func
2357 cat >config.log <<_ACEOF
2358 This file contains any messages produced by compilers while
2359 running configure, to aid debugging if configure makes a mistake.
2361 It was created by $as_me, which was
2362 generated by GNU Autoconf 2.69. Invocation command line was
2374 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2375 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2376 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2377 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2378 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2380 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2381 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2383 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2384 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2385 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2386 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2387 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2388 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2389 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 test -z "$as_dir" && as_dir=.
2398 $as_echo "PATH: $as_dir"
2414 # Keep a trace of the command line.
2415 # Strip out --no-create and --no-recursion so they do not pile up.
2416 # Strip out --silent because we don't want to record it for future runs.
2417 # Also quote any args containing shell meta-characters.
2418 # Make two passes to allow for proper duplicate-argument suppression.
2422 ac_must_keep_next=false
2428 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2430 | -silent | --silent | --silen | --sile | --sil)
2433 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2436 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2438 as_fn_append ac_configure_args1 " '$ac_arg'"
2439 if test $ac_must_keep_next = true; then
2440 ac_must_keep_next=false # Got value, back to normal.
2443 *=* | --config-cache | -C | -disable-* | --disable-* \
2444 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2445 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2446 | -with-* | --with-* | -without-* | --without-* | --x)
2447 case "$ac_configure_args0 " in
2448 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2451 -* ) ac_must_keep_next=true ;;
2454 as_fn_append ac_configure_args " '$ac_arg'"
2459 { ac_configure_args0=; unset ac_configure_args0;}
2460 { ac_configure_args1=; unset ac_configure_args1;}
2462 # When interrupted or exit'd, cleanup temporary files, and complete
2463 # config.log. We remove comments because anyway the quotes in there
2464 # would cause problems or look ugly.
2465 # WARNING: Use '\'' to represent an apostrophe within the trap.
2466 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2467 trap 'exit_status=$?
2468 # Save into config.log some information that might help in debugging.
2472 $as_echo "## ---------------- ##
2473 ## Cache variables. ##
2474 ## ---------------- ##"
2476 # The following way of writing the cache mishandles newlines in values,
2478 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2479 eval ac_val=\$$ac_var
2483 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2484 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2487 _ | IFS | as_nl) ;; #(
2488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2489 *) { eval $ac_var=; unset $ac_var;} ;;
2494 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2495 *${as_nl}ac_space=\ *)
2497 "s/'\''/'\''\\\\'\'''\''/g;
2498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2508 $as_echo "## ----------------- ##
2509 ## Output variables. ##
2510 ## ----------------- ##"
2512 for ac_var in $ac_subst_vars
2514 eval ac_val=\$$ac_var
2516 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2518 $as_echo "$ac_var='\''$ac_val'\''"
2522 if test -n "$ac_subst_files"; then
2523 $as_echo "## ------------------- ##
2524 ## File substitutions. ##
2525 ## ------------------- ##"
2527 for ac_var in $ac_subst_files
2529 eval ac_val=\$$ac_var
2531 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2533 $as_echo "$ac_var='\''$ac_val'\''"
2538 if test -s confdefs.h; then
2539 $as_echo "## ----------- ##
2546 test "$ac_signal" != 0 &&
2547 $as_echo "$as_me: caught signal $ac_signal"
2548 $as_echo "$as_me: exit $exit_status"
2550 rm -f core *.core core.conftest.* &&
2551 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2554 for ac_signal in 1 2 13 15; do
2555 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2559 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2560 rm -f -r conftest* confdefs.h
2562 $as_echo "/* confdefs.h */" > confdefs.h
2564 # Predefined preprocessor variables.
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_NAME "$PACKAGE_NAME"
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_STRING "$PACKAGE_STRING"
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_URL "$PACKAGE_URL"
2591 # Let the site file select an alternate cache file if it wants to.
2592 # Prefer an explicitly selected file to automatically selected ones.
2595 if test -n "$CONFIG_SITE"; then
2596 # We do not want a PATH search for config.site.
2597 case $CONFIG_SITE in #((
2598 -*) ac_site_file1=./$CONFIG_SITE;;
2599 */*) ac_site_file1=$CONFIG_SITE;;
2600 *) ac_site_file1=./$CONFIG_SITE;;
2602 elif test "x$prefix" != xNONE; then
2603 ac_site_file1=$prefix/share/config.site
2604 ac_site_file2=$prefix/etc/config.site
2606 ac_site_file1=$ac_default_prefix/share/config.site
2607 ac_site_file2=$ac_default_prefix/etc/config.site
2609 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2611 test "x$ac_site_file" = xNONE && continue
2612 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2614 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2615 sed 's/^/| /' "$ac_site_file" >&5
2617 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 as_fn_error $? "failed to load site
script $ac_site_file
2620 See \
`config.log' for more details" "$LINENO" 5; }
2624 if test -r "$cache_file"; then
2625 # Some versions of bash will fail to source /dev/null (special files
2626 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2627 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2629 $as_echo "$as_me: loading cache $cache_file" >&6;}
2631 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2632 *) . "./$cache_file";;
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2637 $as_echo "$as_me: creating cache $cache_file" >&6;}
2641 as_fn_append ac_header_list " stdlib.h"
2642 as_fn_append ac_header_list " unistd.h"
2643 as_fn_append ac_header_list " sys/param.h"
2644 # Check that the precious variables saved in the cache have kept the same
2646 ac_cache_corrupted=false
2647 for ac_var in $ac_precious_vars; do
2648 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2649 eval ac_new_set=\$ac_env_${ac_var}_set
2650 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2651 eval ac_new_val=\$ac_env_${ac_var}_value
2652 case $ac_old_set,$ac_new_set in
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2655 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2656 ac_cache_corrupted=: ;;
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2659 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2660 ac_cache_corrupted=: ;;
2663 if test "x$ac_old_val" != "x$ac_new_val"; then
2664 # differences in whitespace do not lead to failure.
2665 ac_old_val_w=`echo x
$ac_old_val`
2666 ac_new_val_w=`echo x
$ac_new_val`
2667 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2669 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2670 ac_cache_corrupted=:
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2673 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2674 eval $ac_var=\$ac_old_val
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2677 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2679 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2682 # Pass precious variables to config.status.
2683 if test "$ac_new_set" = set; then
2685 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2686 *) ac_arg=$ac_var=$ac_new_val ;;
2688 case " $ac_configure_args " in
2689 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2690 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2694 if $ac_cache_corrupted; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2698 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2699 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2701 ## -------------------- ##
2702 ## Main body of script. ##
2703 ## -------------------- ##
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2715 if test -f "$ac_dir/install-sh"; then
2717 ac_install_sh="$ac_aux_dir/install-sh -c"
2719 elif test -f "$ac_dir/install.sh"; then
2721 ac_install_sh="$ac_aux_dir/install.sh -c"
2723 elif test -f "$ac_dir/shtool"; then
2725 ac_install_sh="$ac_aux_dir/shtool install -c"
2729 if test -z "$ac_aux_dir"; then
2730 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2733 # These three variables are undocumented and unsupported,
2734 # and are intended to be withdrawn in a future Autoconf release.
2735 # They can cause serious problems if a builder's source tree is in a directory
2736 # whose full name contains unusual characters.
2737 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2738 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2739 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2743 # Check what host we are running on.
2744 # If a target is not suggested, we use this one.
2745 # Note that what we call a target, Autoconf calls a host.
2746 # Make sure we can run config.sub.
2747 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2748 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2751 $as_echo_n "checking build system type... " >&6; }
2752 if ${ac_cv_build+:} false; then :
2753 $as_echo_n "(cached) " >&6
2755 ac_build_alias=$build_alias
2756 test "x$ac_build_alias" = x &&
2757 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2758 test "x$ac_build_alias" = x &&
2759 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2760 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2765 $as_echo "$ac_cv_build" >&6; }
2766 case $ac_cv_build in
2768 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2771 ac_save_IFS=$IFS; IFS='-'
2777 # Remember, the first character of IFS is used to create $*,
2778 # except with old shells:
2781 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2785 $as_echo_n "checking host system type... " >&6; }
2786 if ${ac_cv_host+:} false; then :
2787 $as_echo_n "(cached) " >&6
2789 if test "x$host_alias" = x; then
2790 ac_cv_host=$ac_cv_build
2792 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2793 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2798 $as_echo "$ac_cv_host" >&6; }
2801 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2804 ac_save_IFS=$IFS; IFS='-'
2810 # Remember, the first character of IFS is used to create $*,
2811 # except with old shells:
2814 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2818 # Default versions for the gnu tools we build
2819 default_toolchain_family=`cat ${srcdir}/config
/toolchain_def
`
2820 default_gcc_version=`cat ${srcdir}/config
/gcc_def
`
2821 exp_gcc_version=`cat ${srcdir}/config
/gcc_exp
`
2822 default_binutils_version=`cat ${srcdir}/config
/binutils_def
`
2823 exp_binutils_version=`cat ${srcdir}/config
/binutils_exp
`
2824 default_grub2_version="2.02"
2825 target_grub2_version=$default_grub2_version
2827 # The AROS target is slightly different to the normal GNU style
2828 # format. We don't have the middle part, and we reverse the order
2829 # of the $(CPU) and $(OS) bits.
2831 # Don't strip the version of the target yet, it might be
2832 # useful on some systems.
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2835 $as_echo_n "checking for AROS style target... " >&6; }
2837 if test "$target" = "NONE" ; then
2838 target=$host_os-$host_cpu
2840 if test "$target" = "" ; then
2841 target=$host_os-$host_cpu
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2845 $as_echo "$target" >&6; }
2847 if test "$host_os" = "mingw32" ; then
2851 # Don't know where else to put this...
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2853 $as_echo_n "checking building AROS in... " >&6; }
2854 AROS_BUILDDIR=`${PWDCMD-pwd}`
2855 AROS_BUILDDIR_UNIX=${PWD}
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2857 $as_echo "$AROS_BUILDDIR" >&6; }
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2860 $as_echo_n "checking AROS source in... " >&6; }
2861 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2864 $as_echo "$SRCDIR" >&6; }
2866 # Parse the target field into something useful.
2868 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2869 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2872 # Some debug output, to be removed again.
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2874 $as_echo_n "checking for target system (debug output)... " >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2876 $as_echo "$target_os" >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2878 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2880 $as_echo "$target_cpu" >&6; }
2882 aros_nominal_width=800
2883 aros_nominal_height=600
2884 aros_nominal_depth=4
2887 default_c_compilers="gcc clang cc"
2889 # Check whether --with-c-compiler was given.
2890 if test "${with_c_compiler+set}" = set; then :
2891 withval=$with_c_compiler; use_c_compiler="$withval"
2896 if test "$use_c_compiler" = ""; then
2897 host_c_compilers="$default_c_compilers"
2899 host_c_compilers="$use_c_compiler"
2902 default_cxx_compilers="g++ clang++ c++"
2904 # Check whether --with-cxx-compiler was given.
2905 if test "${with_cxx_compiler+set}" = set; then :
2906 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2911 if test "$use_cxx_compiler" = ""; then
2912 host_cxx_compilers="$default_cxx_compilers"
2914 host_cxx_compilers="$use_cxx_compiler"
2918 # The first step is to find the host binaries.
2919 # Check for a compiler.
2920 # Due to a bug in autoconf check for c++ compiler first.
2921 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2923 ac_cpp='$CXXCPP $CPPFLAGS'
2924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2927 if test -z "$CXX"; then
2928 if test -n "$CCC"; then
2931 if test -n "$ac_tool_prefix"; then
2932 for ac_prog in ${host_cxx_compilers}
2934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_CXX+:} false; then :
2939 $as_echo_n "(cached) " >&6
2941 if test -n "$CXX"; then
2942 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 if test -n "$CXX"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2964 $as_echo "$CXX" >&6; }
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2971 test -n "$CXX" && break
2974 if test -z "$CXX"; then
2976 for ac_prog in ${host_cxx_compilers}
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2983 $as_echo_n "(cached) " >&6
2985 if test -n "$ac_ct_CXX"; then
2986 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CXX="$ac_prog"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3006 if test -n "$ac_ct_CXX"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3008 $as_echo "$ac_ct_CXX" >&6; }
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3015 test -n "$ac_ct_CXX" && break
3018 if test "x$ac_ct_CXX" = x; then
3021 case $cross_compiling:$ac_tool_warned in
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025 ac_tool_warned=yes ;;
3033 # Provide some information about the compiler.
3034 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3037 for ac_option in --version -v -V -qversion; do
3038 { { ac_try="$ac_compiler $ac_option >&5"
3040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3041 *) ac_try_echo
=$ac_try;;
3043 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044 $as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3047 if test -s conftest.err
; then
3049 ... rest of stderr output deleted ...
3050 10q' conftest.err
>conftest.er1
3051 cat conftest.er1
>&5
3053 rm -f conftest.er1 conftest.err
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }
3058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3069 ac_clean_files_save
=$ac_clean_files
3070 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3071 # Try to create an executable without -o first, disregard a.out.
3072 # It will help us diagnose broken compilers, and finding out an intuition
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3075 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3076 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3078 # The possible output files:
3079 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3082 for ac_file
in $ac_files
3085 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3086 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3091 if { { ac_try
="$ac_link_default"
3093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3097 $as_echo "$ac_try_echo"; } >&5
3098 (eval "$ac_link_default") 2>&5
3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }; then :
3102 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3103 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3104 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3105 # so that the user can short-circuit this test for compilers unknown to
3107 for ac_file in $ac_files ''
3109 test -f "$ac_file" || continue
3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3114 # We found the default executable, but exeext='' is most
3118 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 # We set ac_cv_exeext here because the later test for it is not
3123 # safe: cross compilers may not add the suffix if given an `-o'
3124 # argument, so we may need to know it at that point already.
3125 # Even if this section looks crufty: it has the advantage of
3132 test "$ac_cv_exeext" = no && ac_cv_exeext=
3137 if test -z "$ac_file"; then :
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 $as_echo "$as_me: failed program was:" >&5
3141 sed 's
/^
/|
/' conftest.$ac_ext >&5
3143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3145 as_fn_error 77 "C++ compiler cannot create executables
3146 See \`config.log
' for more details" "$LINENO" 5; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3149 $as_echo "yes" >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3152 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3154 $as_echo "$ac_file" >&6; }
3155 ac_exeext=$ac_cv_exeext
3157 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3158 ac_clean_files=$ac_clean_files_save
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3160 $as_echo_n "checking for suffix of executables... " >&6; }
3161 if { { ac_try="$ac_link"
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_link") 2>&5
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; then :
3172 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3173 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3174 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3176 for ac_file
in conftest.exe conftest conftest.
*; do
3177 test -f "$ac_file" ||
continue
3179 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3180 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3189 See \`config.log' for more details" "$LINENO" 5; }
3191 rm -f conftest conftest
$ac_cv_exeext
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3193 $as_echo "$ac_cv_exeext" >&6; }
3195 rm -f conftest.
$ac_ext
3196 EXEEXT
=$ac_cv_exeext
3198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3199 /* end confdefs.h. */
3204 FILE *f = fopen ("conftest.out", "w");
3205 return ferror (f) || fclose (f) != 0;
3211 ac_clean_files
="$ac_clean_files conftest.out"
3212 # Check that the compiler produces executables we can run. If not, either
3213 # the compiler is broken, or we cross compile.
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3215 $as_echo_n "checking whether we are cross compiling... " >&6; }
3216 if test "$cross_compiling" != yes; then
3217 { { ac_try
="$ac_link"
3219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_link") 2>&5
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }
3228 if { ac_try='./conftest$ac_cv_exeext'
3229 { { case "(($ac_try" in
3230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3231 *) ac_try_echo
=$ac_try;;
3233 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_try") 2>&5
3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }; }; then
3241 if test "$cross_compiling" = maybe
; then
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error $?
"cannot run C++ compiled programs.
3247 If you meant to cross compile, use \`--host'.
3248 See \`config.log' for more details" "$LINENO" 5; }
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3253 $as_echo "$cross_compiling" >&6; }
3255 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3256 ac_clean_files
=$ac_clean_files_save
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3258 $as_echo_n "checking for suffix of object files... " >&6; }
3259 if ${ac_cv_objext+:} false
; then :
3260 $as_echo_n "(cached) " >&6
3262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3273 rm -f conftest.o conftest.obj
3274 if { { ac_try
="$ac_compile"
3276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_compile") 2>&5
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; then :
3285 for ac_file in conftest.o conftest.obj conftest.*; do
3286 test -f "$ac_file" || continue;
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3289 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3300 See \
`config.log' for more details" "$LINENO" 5; }
3302 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3305 $as_echo "$ac_cv_objext" >&6; }
3306 OBJEXT=$ac_cv_objext
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3309 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3310 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3311 $as_echo_n "(cached) " >&6
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3327 if ac_fn_cxx_try_compile "$LINENO"; then :
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3337 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3338 if test $ac_compiler_gnu = yes; then
3343 ac_test_CXXFLAGS=${CXXFLAGS+set}
3344 ac_save_CXXFLAGS=$CXXFLAGS
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3346 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3347 if ${ac_cv_prog_cxx_g+:} false; then :
3348 $as_echo_n "(cached) " >&6
3350 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3351 ac_cxx_werror_flag=yes
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3365 if ac_fn_cxx_try_compile "$LINENO"; then :
3366 ac_cv_prog_cxx_g=yes
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3380 if ac_fn_cxx_try_compile "$LINENO"; then :
3383 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3396 if ac_fn_cxx_try_compile "$LINENO"; then :
3397 ac_cv_prog_cxx_g=yes
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3407 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3408 if test "$ac_test_CXXFLAGS" = set; then
3409 CXXFLAGS=$ac_save_CXXFLAGS
3410 elif test $ac_cv_prog_cxx_g = yes; then
3411 if test "$GXX" = yes; then
3417 if test "$GXX" = yes; then
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430 # Extract the first word of "$CXX", so it can be a program name with args.
3431 set dummy $CXX; ac_word=$2
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 $as_echo_n "checking for $ac_word... " >&6; }
3434 if ${ac_cv_path_CXX+:} false; then :
3435 $as_echo_n "(cached) " >&6
3439 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 if test -n "$CXX"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3463 $as_echo "$CXX" >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475 if test -n "$ac_tool_prefix"; then
3476 for ac_prog in ${host_c_compilers}
3478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if ${ac_cv_prog_CC+:} false; then :
3483 $as_echo_n "(cached) " >&6
3485 if test -n "$CC"; then
3486 ac_cv_prog_CC="$CC" # Let the user override the test.
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 if test -n "$CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 $as_echo "$CC" >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3515 test -n "$CC" && break
3518 if test -z "$CC"; then
3520 for ac_prog in ${host_c_compilers}
3522 # Extract the first word of "$ac_prog", so it can be a program name with args.
3523 set dummy $ac_prog; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3527 $as_echo_n "(cached) " >&6
3529 if test -n "$ac_ct_CC"; then
3530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_ac_ct_CC="$ac_prog"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3550 if test -n "$ac_ct_CC"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3552 $as_echo "$ac_ct_CC" >&6; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3559 test -n "$ac_ct_CC" && break
3562 if test "x$ac_ct_CC" = x; then
3565 case $cross_compiling:$ac_tool_warned in
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3569 ac_tool_warned=yes ;;
3576 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3579 See \
`config.log' for more details" "$LINENO" 5; }
3581 # Provide some information about the compiler.
3582 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3585 for ac_option in --version -v -V -qversion; do
3586 { { ac_try="$ac_compiler $ac_option >&5"
3588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3589 *) ac_try_echo
=$ac_try;;
3591 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3595 if test -s conftest.err
; then
3597 ... rest of stderr output deleted ...
3598 10q' conftest.err
>conftest.er1
3599 cat conftest.er1
>&5
3601 rm -f conftest.er1 conftest.err
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3607 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3608 if ${ac_cv_c_compiler_gnu+:} false
; then :
3609 $as_echo_n "(cached) " >&6
3611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3625 if ac_fn_c_try_compile
"$LINENO"; then :
3630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3631 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3635 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3636 if test $ac_compiler_gnu = yes; then
3641 ac_test_CFLAGS
=${CFLAGS+set}
3642 ac_save_CFLAGS
=$CFLAGS
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3644 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3645 if ${ac_cv_prog_cc_g+:} false
; then :
3646 $as_echo_n "(cached) " >&6
3648 ac_save_c_werror_flag
=$ac_c_werror_flag
3649 ac_c_werror_flag
=yes
3652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3663 if ac_fn_c_try_compile
"$LINENO"; then :
3667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3678 if ac_fn_c_try_compile
"$LINENO"; then :
3681 ac_c_werror_flag
=$ac_save_c_werror_flag
3683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3694 if ac_fn_c_try_compile
"$LINENO"; then :
3697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3702 ac_c_werror_flag
=$ac_save_c_werror_flag
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3705 $as_echo "$ac_cv_prog_cc_g" >&6; }
3706 if test "$ac_test_CFLAGS" = set; then
3707 CFLAGS
=$ac_save_CFLAGS
3708 elif test $ac_cv_prog_cc_g = yes; then
3709 if test "$GCC" = yes; then
3715 if test "$GCC" = yes; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3722 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3723 if ${ac_cv_prog_cc_c89+:} false
; then :
3724 $as_echo_n "(cached) " >&6
3726 ac_cv_prog_cc_c89
=no
3728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3733 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3734 struct buf { int x; };
3735 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3736 static char *e (p, i)
3742 static char *f (char * (*g) (char **, int), char **p, ...)
3747 s = g (p, va_arg (v,int));
3752 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3753 function prototypes and stuff, but not '\xHH' hex character constants.
3754 These don't provoke an error unfortunately, instead are silently treated
3755 as 'x'. The following induces an error, until -std is added to get
3756 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3757 array size at least. It's necessary to write '\x00'==0 to get something
3758 that's true only with -std. */
3759 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3761 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3762 inside strings and character constants. */
3764 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3766 int test (int i, double x);
3767 struct s1 {int (*f) (int a);};
3768 struct s2 {int (*f) (double a);};
3769 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3775 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3780 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3781 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3783 CC
="$ac_save_CC $ac_arg"
3784 if ac_fn_c_try_compile
"$LINENO"; then :
3785 ac_cv_prog_cc_c89
=$ac_arg
3787 rm -f core conftest.err conftest.
$ac_objext
3788 test "x$ac_cv_prog_cc_c89" != "xno" && break
3790 rm -f conftest.
$ac_ext
3795 case "x$ac_cv_prog_cc_c89" in
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3798 $as_echo "none needed" >&6; } ;;
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3801 $as_echo "unsupported" >&6; } ;;
3803 CC
="$CC $ac_cv_prog_cc_c89"
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3805 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3807 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3812 ac_cpp
='$CPP $CPPFLAGS'
3813 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3818 # Extract the first word of "$CC", so it can be a program name with args.
3819 set dummy
$CC; ac_word
=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if ${ac_cv_path_CC+:} false
; then :
3823 $as_echo_n "(cached) " >&6
3827 ac_cv_path_CC
="$CC" # Let the user override the test with a path.
3830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3834 test -z "$as_dir" && as_dir
=.
3835 for ac_exec_ext
in '' $ac_executable_extensions; do
3836 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_path_CC
="$as_dir/$ac_word$ac_exec_ext"
3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 if test -n "$CC"; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3851 $as_echo "$CC" >&6; }
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3858 aros_host_def_cc
="$CC"
3859 case $ac_cv_prog_cc_stdc in #(
3861 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3864 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3865 if ${ac_cv_prog_cc_c99+:} false
; then :
3866 $as_echo_n "(cached) " >&6
3868 ac_cv_prog_cc_c99
=no
3870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3873 #include <stdbool.h>
3878 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3879 #define debug(...) fprintf (stderr, __VA_ARGS__)
3880 #define showlist(...) puts (#__VA_ARGS__)
3881 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3883 test_varargs_macros (void)
3888 debug ("X = %d\n", x);
3889 showlist (The first, second, and third items.);
3890 report (x>y, "x is %d but y is %d", x, y);
3893 // Check long long types.
3894 #define BIG64 18446744073709551615ull
3895 #define BIG32 4294967295ul
3896 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3898 your preprocessor is broken;
3902 your preprocessor is broken;
3904 static long long int bignum = -9223372036854775807LL;
3905 static unsigned long long int ubignum = BIG64;
3907 struct incomplete_array
3915 const wchar_t *name;
3919 typedef const char *ccp;
3922 test_restrict (ccp restrict text)
3924 // See if C++-style comments work.
3925 // Iterate through items via the restricted pointer.
3926 // Also check for declarations in for loops.
3927 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3932 // Check varargs and va_copy.
3934 test_varargs (const char *format, ...)
3937 va_start (args, format);
3939 va_copy (args_copy, args);
3950 str = va_arg (args_copy, const char *);
3953 number = va_arg (args_copy, int);
3956 fnumber = va_arg (args_copy, double);
3971 _Bool success = false;
3974 if (test_restrict ("String literal") == 0)
3976 char *restrict newvar = "Another string";
3979 test_varargs ("s, d' f .", "string", 65, 34.234);
3980 test_varargs_macros ();
3982 // Check flexible array members.
3983 struct incomplete_array *ia =
3984 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3986 for (int i = 0; i < ia->datasize; ++i)
3987 ia->data[i] = i * 1.234;
3989 // Check named initializers.
3990 struct named_init ni = {
3992 .name = L"Test wide string",
3993 .average = 543.34343,
3998 int dynamic_array[ni.number];
3999 dynamic_array[ni.number - 1] = 543;
4001 // work around unused variable warnings
4002 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4003 || dynamic_array[ni.number - 1] != 543);
4009 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4011 CC
="$ac_save_CC $ac_arg"
4012 if ac_fn_c_try_compile
"$LINENO"; then :
4013 ac_cv_prog_cc_c99
=$ac_arg
4015 rm -f core conftest.err conftest.
$ac_objext
4016 test "x$ac_cv_prog_cc_c99" != "xno" && break
4018 rm -f conftest.
$ac_ext
4023 case "x$ac_cv_prog_cc_c99" in
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4026 $as_echo "none needed" >&6; } ;;
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4029 $as_echo "unsupported" >&6; } ;;
4031 CC
="$CC $ac_cv_prog_cc_c99"
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4033 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4035 if test "x$ac_cv_prog_cc_c99" != xno
; then :
4036 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4039 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4040 if ${ac_cv_prog_cc_c89+:} false
; then :
4041 $as_echo_n "(cached) " >&6
4043 ac_cv_prog_cc_c89
=no
4045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4050 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4051 struct buf { int x; };
4052 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4053 static char *e (p, i)
4059 static char *f (char * (*g) (char **, int), char **p, ...)
4064 s = g (p, va_arg (v,int));
4069 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4070 function prototypes and stuff, but not '\xHH' hex character constants.
4071 These don't provoke an error unfortunately, instead are silently treated
4072 as 'x'. The following induces an error, until -std is added to get
4073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4074 array size at least. It's necessary to write '\x00'==0 to get something
4075 that's true only with -std. */
4076 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4078 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4079 inside strings and character constants. */
4081 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4083 int test (int i, double x);
4084 struct s1 {int (*f) (int a);};
4085 struct s2 {int (*f) (double a);};
4086 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4092 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4097 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4098 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4100 CC
="$ac_save_CC $ac_arg"
4101 if ac_fn_c_try_compile
"$LINENO"; then :
4102 ac_cv_prog_cc_c89
=$ac_arg
4104 rm -f core conftest.err conftest.
$ac_objext
4105 test "x$ac_cv_prog_cc_c89" != "xno" && break
4107 rm -f conftest.
$ac_ext
4112 case "x$ac_cv_prog_cc_c89" in
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4115 $as_echo "none needed" >&6; } ;;
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4118 $as_echo "unsupported" >&6; } ;;
4120 CC
="$CC $ac_cv_prog_cc_c89"
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4122 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4124 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4125 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4127 ac_cv_prog_cc_stdc
=no
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4134 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4135 if ${ac_cv_prog_cc_stdc+:} false
; then :
4136 $as_echo_n "(cached) " >&6
4139 case $ac_cv_prog_cc_stdc in #(
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4142 $as_echo "unsupported" >&6; } ;; #(
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4145 $as_echo "none needed" >&6; } ;; #(
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4148 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4152 ac_cpp
='$CPP $CPPFLAGS'
4153 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4157 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4158 # On Suns, sometimes $CPP names a directory.
4159 if test -n "$CPP" && test -d "$CPP"; then
4162 if test -z "$CPP"; then
4163 if ${ac_cv_prog_CPP+:} false
; then :
4164 $as_echo_n "(cached) " >&6
4166 # Double quotes because CPP needs to be expanded
4167 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4170 for ac_c_preproc_warn_flag
in '' yes
4172 # Use a header file that comes with gcc, so configuring glibc
4173 # with a fresh cross-compiler works.
4174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4175 # <limits.h> exists even on freestanding compilers.
4176 # On the NeXT, cc -E runs the code through the compiler's parser,
4177 # not just through cpp. "Syntax error" is here to catch this case.
4178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4181 # include <limits.h>
4183 # include <assert.h>
4187 if ac_fn_c_try_cpp
"$LINENO"; then :
4190 # Broken: fails on valid input.
4193 rm -f conftest.err conftest.i conftest.
$ac_ext
4195 # OK, works on sane cases. Now check whether nonexistent headers
4196 # can be detected and how.
4197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 #include <ac_nonexistent.h>
4201 if ac_fn_c_try_cpp
"$LINENO"; then :
4202 # Broken: success on invalid input.
4205 # Passes both tests.
4209 rm -f conftest.err conftest.i conftest.
$ac_ext
4212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4213 rm -f conftest.i conftest.err conftest.
$ac_ext
4214 if $ac_preproc_ok; then :
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4227 $as_echo "$CPP" >&6; }
4229 for ac_c_preproc_warn_flag
in '' yes
4231 # Use a header file that comes with gcc, so configuring glibc
4232 # with a fresh cross-compiler works.
4233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4234 # <limits.h> exists even on freestanding compilers.
4235 # On the NeXT, cc -E runs the code through the compiler's parser,
4236 # not just through cpp. "Syntax error" is here to catch this case.
4237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4240 # include <limits.h>
4242 # include <assert.h>
4246 if ac_fn_c_try_cpp
"$LINENO"; then :
4249 # Broken: fails on valid input.
4252 rm -f conftest.err conftest.i conftest.
$ac_ext
4254 # OK, works on sane cases. Now check whether nonexistent headers
4255 # can be detected and how.
4256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <ac_nonexistent.h>
4260 if ac_fn_c_try_cpp
"$LINENO"; then :
4261 # Broken: success on invalid input.
4264 # Passes both tests.
4268 rm -f conftest.err conftest.i conftest.
$ac_ext
4271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4272 rm -f conftest.i conftest.err conftest.
$ac_ext
4273 if $ac_preproc_ok; then :
4276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4278 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4279 See \`config.log' for more details" "$LINENO" 5; }
4283 ac_cpp
='$CPP $CPPFLAGS'
4284 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4289 # detect the compiler version
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which toolchain family ${CC} belongs to" >&5
4291 $as_echo_n "checking which toolchain family ${CC} belongs to... " >&6; }
4292 HOST_COMPILER_VERSION
=`"$CC" --version 2>/dev/null`
4293 if test x
"$HOST_COMPILER_VERSION" = "x"; then
4294 HOST_COMPILER_VERSION
=`"$CC" --qversion 2>/dev/null`
4296 if test x
"$HOST_COMPILER_VERSION" = "x"; then
4297 HOST_COMPILER_VERSION
=`"$CC" -V 2>/dev/null`
4300 IS_SUN_COMPILER
=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'Sun C\+\+'`
4301 if test "$IS_SUN_COMPILER" -ne "0"; then
4302 HOST_TOOLCHAIN_PREFIX
=
4303 HOST_TOOLCHAIN_SUFFIX
=
4304 HOST_TOOLCHAIN_FAMILY
=sun
4306 IS_LLVM_COMPILER
=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'LLVM|clang'`
4307 if test "$IS_LLVM_COMPILER" -ne "0"; then
4308 HOST_TOOLCHAIN_PREFIX
=llvm-
4309 if test "$CC_BASE" != "gcc"; then
4310 HOST_TOOLCHAIN_SUFFIX
="`echo $CC_BASE | sed -e \"s|clang||g\"`"
4312 HOST_TOOLCHAIN_FAMILY
=llvm
4314 IS_GNU_COMPILER
=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'gcc'`
4315 if test "$IS_GNU_COMPILER" -ne "0"; then
4316 HOST_TOOLCHAIN_PREFIX
=
4317 HOST_TOOLCHAIN_SUFFIX
=
4318 HOST_TOOLCHAIN_FAMILY
=gnu
4320 if test x
"$HOST_TOOLCHAIN_FAMILY" = "x"; then
4321 HOST_TOOLCHAIN_FAMILY
=unknown
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_TOOLCHAIN_FAMILY" >&5
4324 $as_echo "$HOST_TOOLCHAIN_FAMILY" >&6; }
4326 # Check for a compatible awk
4327 for ac_prog
in gawk nawk
4329 # Extract the first word of "$ac_prog", so it can be a program name with args.
4330 set dummy
$ac_prog; ac_word
=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if ${ac_cv_prog_AWK+:} false
; then :
4334 $as_echo_n "(cached) " >&6
4336 if test -n "$AWK"; then
4337 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir
=.
4344 for ac_exec_ext
in '' $ac_executable_extensions; do
4345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4346 ac_cv_prog_AWK
="$ac_prog"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 if test -n "$AWK"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4359 $as_echo "$AWK" >&6; }
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4366 test -n "$AWK" && break
4370 if test "$AWK" = ""; then
4373 if test "$AWK" = "no"; then
4376 if test "$req_avail" = "no"; then
4377 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4379 # Extract the first word of "mmake", so it can be a program name with args.
4380 set dummy mmake
; ac_word
=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if ${ac_cv_prog_MMAKE+:} false
; then :
4384 $as_echo_n "(cached) " >&6
4386 if test -n "$MMAKE"; then
4387 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir
=.
4394 for ac_exec_ext
in '' $ac_executable_extensions; do
4395 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_prog_MMAKE
="mmake "
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 MMAKE
=$ac_cv_prog_MMAKE
4407 if test -n "$MMAKE"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4409 $as_echo "$MMAKE" >&6; }
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4417 # Perform some default variable assignments. Note all of these will be
4418 # Regenerated from the script, so there is no need to cache them.
4420 aros_build_host
=$host
4421 aros_host_cpp
="$CPP"
4423 aros_host_cxx
="$CXX"
4424 base_ld_name
="${HOST_TOOLCHAIN_PREFIX}ld${HOST_TOOLCHAIN_SUFFIX}"
4425 if test "$HOST_TOOLCHAIN_FAMILY" = "llvm"; then
4426 base_ld_name
="ld.lld${HOST_TOOLCHAIN_SUFFIX}"
4429 if test "$base_ld_name" = ""; then
4432 ac_tool_ld
=$base_ld_name
4434 if test "$GCC" = "yes"; then
4435 aros_gcc_ld
=`$CC -print-prog-name=$ac_tool_ld`
4436 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4437 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if ${ac_cv_path_aros_host_ld+:} false
; then :
4441 $as_echo_n "(cached) " >&6
4443 case $aros_host_ld in
4445 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4449 for as_dir
in `dirname $aros_gcc_ld`
4452 test -z "$as_dir" && as_dir
=.
4453 for ac_exec_ext
in '' $ac_executable_extensions; do
4454 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 aros_host_ld
=$ac_cv_path_aros_host_ld
4467 if test -n "$aros_host_ld"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4469 $as_echo "$aros_host_ld" >&6; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4477 if test "$aros_host_ld" = ""; then
4478 for ac_prog
in $ac_tool_ld
4480 # Extract the first word of "$ac_prog", so it can be a program name with args.
4481 set dummy
$ac_prog; ac_word
=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if ${ac_cv_path_aros_host_ld+:} false
; then :
4485 $as_echo_n "(cached) " >&6
4487 case $aros_host_ld in
4489 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir
=.
4497 for ac_exec_ext
in '' $ac_executable_extensions; do
4498 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4499 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 aros_host_ld
=$ac_cv_path_aros_host_ld
4511 if test -n "$aros_host_ld"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4513 $as_echo "$aros_host_ld" >&6; }
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4520 test -n "$aros_host_ld" && break
4526 if test "$aros_host_ld" = ""; then
4529 if test "$aros_host_ld" = "no"; then
4532 if test "$req_avail" = "no"; then
4533 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4535 aros_host_make
="make"
4536 aros_host_cflags
="$CFLAGS"
4537 aros_host_cxxflags
="$CXXFLAGS"
4538 aros_host_cppflags
="$CPPFLAGS"
4539 aros_host_ldflags
="$LDFLAGS"
4540 aros_host_debug
="-g -O0"
4541 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4542 aros_host_mkargs
="--no-print-directory"
4543 aros_host_exe_suffix
="$EXEEXT"
4544 aros_host_lib_suffix
=""
4546 # Ignore all compliance, AROS ROMs = 0
4547 # KickStart v1.0 = 30
4548 # KickStart v1.3 = 34
4549 # KickStart v2.0 = 37
4550 # KickStart v3.0 = 39
4551 # KickStart v3.1 = 40
4553 aros_amigaos_compliance
=0
4555 for ac_prog
in aclocal aclocal19 aclocal-1.9
4557 # Extract the first word of "$ac_prog", so it can be a program name with args.
4558 set dummy
$ac_prog; ac_word
=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4562 $as_echo_n "(cached) " >&6
4564 if test -n "$aros_host_aclocal"; then
4565 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4571 test -z "$as_dir" && as_dir
=.
4572 for ac_exec_ext
in '' $ac_executable_extensions; do
4573 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4585 if test -n "$aros_host_aclocal"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4587 $as_echo "$aros_host_aclocal" >&6; }
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4594 test -n "$aros_host_aclocal" && break
4597 for ac_prog
in autoconf autoconf259 autoconf253
4599 # Extract the first word of "$ac_prog", so it can be a program name with args.
4600 set dummy
$ac_prog; ac_word
=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4604 $as_echo_n "(cached) " >&6
4606 if test -n "$aros_host_autoconf"; then
4607 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir
=.
4614 for ac_exec_ext
in '' $ac_executable_extensions; do
4615 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4627 if test -n "$aros_host_autoconf"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4629 $as_echo "$aros_host_autoconf" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4636 test -n "$aros_host_autoconf" && break
4639 for ac_prog
in autoheader autoheader259 autoheader253
4641 # Extract the first word of "$ac_prog", so it can be a program name with args.
4642 set dummy
$ac_prog; ac_word
=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4646 $as_echo_n "(cached) " >&6
4648 if test -n "$aros_host_autoheader"; then
4649 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4655 test -z "$as_dir" && as_dir
=.
4656 for ac_exec_ext
in '' $ac_executable_extensions; do
4657 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4658 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4669 if test -n "$aros_host_autoheader"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4671 $as_echo "$aros_host_autoheader" >&6; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4678 test -n "$aros_host_autoheader" && break
4681 for ac_prog
in automake automake19 automake-1.9
4683 # Extract the first word of "$ac_prog", so it can be a program name with args.
4684 set dummy
$ac_prog; ac_word
=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4688 $as_echo_n "(cached) " >&6
4690 if test -n "$aros_host_automake"; then
4691 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir
=.
4698 for ac_exec_ext
in '' $ac_executable_extensions; do
4699 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_aros_host_automake
="$ac_prog"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 aros_host_automake
=$ac_cv_prog_aros_host_automake
4711 if test -n "$aros_host_automake"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4713 $as_echo "$aros_host_automake" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4720 test -n "$aros_host_automake" && break
4725 if test "$aros_host_aclocal" = ""; then
4728 if test "$aros_host_aclocal" = "no"; then
4731 if test "$req_avail" = "no"; then
4732 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4735 if test "$aros_host_automake" = ""; then
4738 if test "$aros_host_automake" = "no"; then
4741 if test "$req_avail" = "no"; then
4742 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4745 case "$aros_host_cc" in
4747 aros_host_cc_pipe
=""
4750 aros_host_cc_pipe
="-pipe"
4753 aros_host_cc_pipe
=""
4756 aros_host_cc_pipe
=""
4760 aros_kernel_cc_includes
=""
4761 aros_target_cc_includes
=""
4764 # ----------------------------------------------------------------------------------------
4765 # Host-specific defaults
4767 # This is the main host configuration section. It is where the host
4768 # can change the values of any variables it needs to change. We do
4769 # not look at anything that compiles to the target yet, we'll get
4774 aros_host_arch
="aros"
4775 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4778 aros_host_cpu
="i386"
4781 aros_host_cpu
="x86_64"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4788 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4789 aros_host_cpu
="$host_cpu"
4795 aros_host_arch
="linux"
4796 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4797 android_build_os
="linux-x86"
4798 android_tool
="android"
4799 default_android_sdk
="/opt/android-sdk-linux_x86"
4802 aros_host_cpu
="i386"
4805 aros_host_cpu
="x86_64"
4808 aros_host_cpu
="m68k"
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4818 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4819 aros_host_cpu
="$host_cpu"
4825 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4826 aros_host_make
="gmake"
4827 aros_host_arch
="freebsd"
4828 aros_host_cpu
="i386"
4830 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4834 aros_object_format
="elf_i386"
4838 aros_object_format
="elf_i386_fbsd"
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4846 $as_echo_n "checking for macOS SDK files... " >&6; }
4847 LOC
=$
( xcode-select
-p )
4848 if test $?
!= 0; then :
4849 as_fn_error $?
"XCode incorrectly configured!
4850 please run 'xcode-select --install' before
4851 re-running configure" "$LINENO" 5
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4854 $as_echo "$LOC" >&6; }
4855 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4856 aros_host_arch
="darwin"
4858 if [ -z ${SED+x} ]; then SED
="gsed"; fi
4859 android_build_os
="darwin-x86"
4860 android_tool
="android"
4861 default_android_sdk
="/android-sdk-mac_x86"
4864 aros_host_cpu
="i386"
4867 aros_host_cpu
="x86_64"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4874 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4875 aros_host_cpu
="$host_cpu"
4879 aros_host_ldflags
="$aros_host_ldflags -liconv"
4884 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4885 aros_host_make
="gmake"
4886 aros_host_arch
="dragonfly"
4889 aros_host_cpu
="i386"
4892 aros_host_cpu
="x86_64"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4896 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4897 aros_host_cpu
="$host_cpu"
4903 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4904 aros_host_make
="gmake"
4905 aros_host_arch
="netbsd"
4908 aros_host_cpu
="i386"
4911 aros_host_cpu
="m68k"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4915 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4916 aros_host_cpu
="$host_cpu"
4919 aros_host_lib_suffix
=".0.0"
4923 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4924 aros_host_make
="gmake"
4925 aros_host_arch
="openbsd"
4928 aros_host_cpu
="i386"
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4932 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4933 aros_host_cpu
="$host_cpu"
4939 aros_host_arch
="solaris"
4940 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4943 aros_host_cpu
="i386"
4946 aros_host_cpu
="sparc"
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4950 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4951 aros_host_cpu
="$host_cpu"
4957 aros_host_arch
="morphos"
4963 aros_host_arch
="amiga"
4969 TOUCH
="/gg/bin/touch"
4972 aros_host_cpu
="m68k"
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4979 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4980 aros_host_cpu
="$host_cpu"
4986 aros_host_arch
="cygwin"
4987 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4989 android_build_os
="windows"
4990 android_tool
="android.bat"
4991 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4995 aros_host_cpu
="i386"
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4999 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5000 aros_host_cpu
="$host_cpu"
5006 aros_host_arch
="mingw32"
5007 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
5009 android_build_os
="windows"
5010 android_tool
="android.bat"
5011 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
5013 libpng_libextra
="-lws2_32"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
5019 $as_echo_n "checking for Windows native gcc target... " >&6; }
5020 host_cpu
=`gcc -dumpmachine`
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
5022 $as_echo "$host_cpu" >&6; }
5029 aros_host_cpu
="i386"
5033 aros_host_cpu
="i386"
5037 aros_host_cpu
="x86_64"
5038 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5043 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5044 aros_host_cpu
="$host_cpu"
5049 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
5053 base_ar_name
=${HOST_TOOLCHAIN_PREFIX}ar${HOST_TOOLCHAIN_SUFFIX}
5054 # Extract the first word of "$base_ar_name", so it can be a program name with args.
5055 set dummy
$base_ar_name; ac_word
=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_aros_host_cmd_ar+:} false
; then :
5059 $as_echo_n "(cached) " >&6
5061 if test -n "$aros_host_cmd_ar"; then
5062 ac_cv_prog_aros_host_cmd_ar
="$aros_host_cmd_ar" # Let the user override the test.
5064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir
=.
5069 for ac_exec_ext
in '' $ac_executable_extensions; do
5070 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_aros_host_cmd_ar
="$base_ar_name cr"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 aros_host_cmd_ar
=$ac_cv_prog_aros_host_cmd_ar
5082 if test -n "$aros_host_cmd_ar"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_cmd_ar" >&5
5084 $as_echo "$aros_host_cmd_ar" >&6; }
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5091 # Extract the first word of "$aros_host_cmd_ar", so it can be a program name with args.
5092 set dummy
$aros_host_cmd_ar; ac_word
=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if ${ac_cv_path_aros_host_full_ar+:} false
; then :
5096 $as_echo_n "(cached) " >&6
5098 case $aros_host_full_ar in
5100 ac_cv_path_aros_host_full_ar
="$aros_host_full_ar" # Let the user override the test with a path.
5103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir
=.
5108 for ac_exec_ext
in '' $ac_executable_extensions; do
5109 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_path_aros_host_full_ar
="$as_dir/$ac_word$ac_exec_ext"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 test -z "$ac_cv_path_aros_host_full_ar" && ac_cv_path_aros_host_full_ar
="$aros_host_cmd_ar "
5122 aros_host_full_ar
=$ac_cv_path_aros_host_full_ar
5123 if test -n "$aros_host_full_ar"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_full_ar" >&5
5125 $as_echo "$aros_host_full_ar" >&6; }
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5132 aros_host_ar
=`echo $aros_host_cmd_ar | sed -e "s|$base_ar_name|$aros_host_full_ar|g"`
5134 if test "$aros_host_ar" = ""; then
5137 if test "$aros_host_ar" = "no"; then
5140 if test "$req_avail" = "no"; then
5141 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5143 base_ranlib_name
=${HOST_TOOLCHAIN_PREFIX}ranlib
${HOST_TOOLCHAIN_SUFFIX}
5144 # Extract the first word of "$base_ranlib_name", so it can be a program name with args.
5145 set dummy
$base_ranlib_name; ac_word
=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_path_aros_host_ranlib+:} false
; then :
5149 $as_echo_n "(cached) " >&6
5151 case $aros_host_ranlib in
5153 ac_cv_path_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test with a path.
5156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir
=.
5161 for ac_exec_ext
in '' $ac_executable_extensions; do
5162 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_path_aros_host_ranlib
="$as_dir/$ac_word$ac_exec_ext"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 test -z "$ac_cv_path_aros_host_ranlib" && ac_cv_path_aros_host_ranlib
="$base_ranlib_name "
5175 aros_host_ranlib
=$ac_cv_path_aros_host_ranlib
5176 if test -n "$aros_host_ranlib"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5178 $as_echo "$aros_host_ranlib" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5186 if test "$aros_host_ranlib" = ""; then
5189 if test "$aros_host_ranlib" = "no"; then
5192 if test "$req_avail" = "no"; then
5193 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5195 # Extract the first word of "strip", so it can be a program name with args.
5196 set dummy strip
; ac_word
=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_prog_aros_host_strip+:} false
; then :
5200 $as_echo_n "(cached) " >&6
5202 if test -n "$aros_host_strip"; then
5203 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
5205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir
=.
5210 for ac_exec_ext
in '' $ac_executable_extensions; do
5211 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_aros_host_strip
="strip "
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 aros_host_strip
=$ac_cv_prog_aros_host_strip
5223 if test -n "$aros_host_strip"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5225 $as_echo "$aros_host_strip" >&6; }
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5233 if test "$aros_host_strip" = ""; then
5236 if test "$aros_host_strip" = "no"; then
5239 if test "$req_avail" = "no"; then
5240 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5243 # Extract the first word of "rm", so it can be a program name with args.
5244 set dummy
rm; ac_word
=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_prog_RM+:} false
; then :
5248 $as_echo_n "(cached) " >&6
5250 if test -n "$RM"; then
5251 ac_cv_prog_RM
="$RM" # Let the user override the test.
5253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5257 test -z "$as_dir" && as_dir
=.
5258 for ac_exec_ext
in '' $ac_executable_extensions; do
5259 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5260 ac_cv_prog_RM
="rm -rf"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 if test -n "$RM"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5273 $as_echo "$RM" >&6; }
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5281 if test "$RM" = ""; then
5284 if test "$RM" = "no"; then
5287 if test "$req_avail" = "no"; then
5288 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5290 # Extract the first word of "cp", so it can be a program name with args.
5291 set dummy
cp; ac_word
=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_CP+:} false
; then :
5295 $as_echo_n "(cached) " >&6
5297 if test -n "$CP"; then
5298 ac_cv_prog_CP
="$CP" # Let the user override the test.
5300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir
=.
5305 for ac_exec_ext
in '' $ac_executable_extensions; do
5306 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 if test -n "$CP"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5320 $as_echo "$CP" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5328 if test "$CP" = ""; then
5331 if test "$CP" = "no"; then
5334 if test "$req_avail" = "no"; then
5335 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5337 # Extract the first word of "mv", so it can be a program name with args.
5338 set dummy
mv; ac_word
=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if ${ac_cv_prog_MV+:} false
; then :
5342 $as_echo_n "(cached) " >&6
5344 if test -n "$MV"; then
5345 ac_cv_prog_MV
="$MV" # Let the user override the test.
5347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5351 test -z "$as_dir" && as_dir
=.
5352 for ac_exec_ext
in '' $ac_executable_extensions; do
5353 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 if test -n "$MV"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5367 $as_echo "$MV" >&6; }
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5375 if test "$MV" = ""; then
5378 if test "$MV" = "no"; then
5381 if test "$req_avail" = "no"; then
5382 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5384 # Extract the first word of "echo", so it can be a program name with args.
5385 set dummy
echo; ac_word
=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_prog_ECHO+:} false
; then :
5389 $as_echo_n "(cached) " >&6
5391 if test -n "$ECHO"; then
5392 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5398 test -z "$as_dir" && as_dir
=.
5399 for ac_exec_ext
in '' $ac_executable_extensions; do
5400 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5401 ac_cv_prog_ECHO
="echo "
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 ECHO
=$ac_cv_prog_ECHO
5412 if test -n "$ECHO"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5414 $as_echo "$ECHO" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5422 if test "$ECHO" = ""; then
5425 if test "$ECHO" = "no"; then
5428 if test "$req_avail" = "no"; then
5429 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5431 # Extract the first word of "mkdir", so it can be a program name with args.
5432 set dummy mkdir
; ac_word
=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_prog_MKDIR+:} false
; then :
5436 $as_echo_n "(cached) " >&6
5438 if test -n "$MKDIR"; then
5439 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir
=.
5446 for ac_exec_ext
in '' $ac_executable_extensions; do
5447 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5448 ac_cv_prog_MKDIR
="mkdir -p"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 MKDIR
=$ac_cv_prog_MKDIR
5459 if test -n "$MKDIR"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5461 $as_echo "$MKDIR" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5469 if test "$MKDIR" = ""; then
5472 if test "$MKDIR" = "no"; then
5475 if test "$req_avail" = "no"; then
5476 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5478 # Extract the first word of "touch", so it can be a program name with args.
5479 set dummy
touch; ac_word
=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_prog_TOUCH+:} false
; then :
5483 $as_echo_n "(cached) " >&6
5485 if test -n "$TOUCH"; then
5486 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir
=.
5493 for ac_exec_ext
in '' $ac_executable_extensions; do
5494 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_prog_TOUCH
="touch "
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 TOUCH
=$ac_cv_prog_TOUCH
5506 if test -n "$TOUCH"; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5508 $as_echo "$TOUCH" >&6; }
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5516 if test "$TOUCH" = ""; then
5519 if test "$TOUCH" = "no"; then
5522 if test "$req_avail" = "no"; then
5523 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5525 # Extract the first word of "sort", so it can be a program name with args.
5526 set dummy
sort; ac_word
=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_SORT+:} false
; then :
5530 $as_echo_n "(cached) " >&6
5532 if test -n "$SORT"; then
5533 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5539 test -z "$as_dir" && as_dir
=.
5540 for ac_exec_ext
in '' $ac_executable_extensions; do
5541 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_SORT
="sort "
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 SORT
=$ac_cv_prog_SORT
5553 if test -n "$SORT"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5555 $as_echo "$SORT" >&6; }
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5563 if test "$SORT" = ""; then
5566 if test "$SORT" = "no"; then
5569 if test "$req_avail" = "no"; then
5570 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5572 # Extract the first word of "uniq", so it can be a program name with args.
5573 set dummy
uniq; ac_word
=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_prog_UNIQ+:} false
; then :
5577 $as_echo_n "(cached) " >&6
5579 if test -n "$UNIQ"; then
5580 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5586 test -z "$as_dir" && as_dir
=.
5587 for ac_exec_ext
in '' $ac_executable_extensions; do
5588 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5589 ac_cv_prog_UNIQ
="uniq "
5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 UNIQ
=$ac_cv_prog_UNIQ
5600 if test -n "$UNIQ"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5602 $as_echo "$UNIQ" >&6; }
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5610 if test "$UNIQ" = ""; then
5613 if test "$UNIQ" = "no"; then
5616 if test "$req_avail" = "no"; then
5617 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5619 # Extract the first word of "true", so it can be a program name with args.
5620 set dummy true
; ac_word
=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_prog_NOP+:} false
; then :
5624 $as_echo_n "(cached) " >&6
5626 if test -n "$NOP"; then
5627 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5633 test -z "$as_dir" && as_dir
=.
5634 for ac_exec_ext
in '' $ac_executable_extensions; do
5635 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_NOP
="true "
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 if test -n "$NOP"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5649 $as_echo "$NOP" >&6; }
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5657 if test "$NOP" = ""; then
5660 if test "$NOP" = "no"; then
5663 if test "$req_avail" = "no"; then
5664 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5666 # Extract the first word of "cat", so it can be a program name with args.
5667 set dummy
cat; ac_word
=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_CAT+:} false
; then :
5671 $as_echo_n "(cached) " >&6
5673 if test -n "$CAT"; then
5674 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir
=.
5681 for ac_exec_ext
in '' $ac_executable_extensions; do
5682 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_CAT
="cat "
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 if test -n "$CAT"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5696 $as_echo "$CAT" >&6; }
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5704 if test "$CAT" = ""; then
5707 if test "$CAT" = "no"; then
5710 if test "$req_avail" = "no"; then
5711 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5713 # Extract the first word of "bison", so it can be a program name with args.
5714 set dummy bison
; ac_word
=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if ${ac_cv_prog_BISON+:} false
; then :
5718 $as_echo_n "(cached) " >&6
5720 if test -n "$BISON"; then
5721 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5727 test -z "$as_dir" && as_dir
=.
5728 for ac_exec_ext
in '' $ac_executable_extensions; do
5729 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5730 ac_cv_prog_BISON
="bison "
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 BISON
=$ac_cv_prog_BISON
5741 if test -n "$BISON"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5743 $as_echo "$BISON" >&6; }
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5751 if test "$BISON" = ""; then
5754 if test "$BISON" = "no"; then
5757 if test "$req_avail" = "no"; then
5758 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5760 # Extract the first word of "flex", so it can be a program name with args.
5761 set dummy flex
; ac_word
=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_FLEX+:} false
; then :
5765 $as_echo_n "(cached) " >&6
5767 if test -n "$FLEX"; then
5768 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir
=.
5775 for ac_exec_ext
in '' $ac_executable_extensions; do
5776 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_FLEX
="flex "
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 FLEX
=$ac_cv_prog_FLEX
5788 if test -n "$FLEX"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5790 $as_echo "$FLEX" >&6; }
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5798 if test "$FLEX" = ""; then
5801 if test "$FLEX" = "no"; then
5804 if test "$req_avail" = "no"; then
5805 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
5808 $as_echo_n "checking version of $FLEX... " >&6; }
5809 ax_cv_flex_version
="`$FLEX --version | cut -d\" \" -f2`"
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
5811 $as_echo "$ax_cv_flex_version" >&6; }
5812 # Extract the first word of "pngtopnm", so it can be a program name with args.
5813 set dummy pngtopnm
; ac_word
=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5817 $as_echo_n "(cached) " >&6
5819 if test -n "$PNGTOPNM"; then
5820 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5826 test -z "$as_dir" && as_dir
=.
5827 for ac_exec_ext
in '' $ac_executable_extensions; do
5828 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5829 ac_cv_prog_PNGTOPNM
="pngtopnm "
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5840 if test -n "$PNGTOPNM"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5842 $as_echo "$PNGTOPNM" >&6; }
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5850 if test "$PNGTOPNM" = ""; then
5853 if test "$PNGTOPNM" = "no"; then
5856 if test "$req_avail" = "no"; then
5857 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5859 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5860 set dummy ppmtoilbm
; ac_word
=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5864 $as_echo_n "(cached) " >&6
5866 if test -n "$PPMTOILBM"; then
5867 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5873 test -z "$as_dir" && as_dir
=.
5874 for ac_exec_ext
in '' $ac_executable_extensions; do
5875 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5876 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5887 if test -n "$PPMTOILBM"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5889 $as_echo "$PPMTOILBM" >&6; }
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5897 if test "$PPMTOILBM" = ""; then
5900 if test "$PPMTOILBM" = "no"; then
5903 if test "$req_avail" = "no"; then
5904 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5906 # Extract the first word of "sed", so it can be a program name with args.
5907 set dummy
sed; ac_word
=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_prog_SED+:} false
; then :
5911 $as_echo_n "(cached) " >&6
5913 if test -n "$SED"; then
5914 ac_cv_prog_SED
="$SED" # Let the user override the test.
5916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5920 test -z "$as_dir" && as_dir
=.
5921 for ac_exec_ext
in '' $ac_executable_extensions; do
5922 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5923 ac_cv_prog_SED
="sed "
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 if test -n "$SED"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5936 $as_echo "$SED" >&6; }
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5944 if test "$SED" = ""; then
5947 if test "$SED" = "no"; then
5950 if test "$req_avail" = "no"; then
5951 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5953 # Extract the first word of "chmod", so it can be a program name with args.
5954 set dummy
chmod; ac_word
=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if ${ac_cv_prog_CHMOD+:} false
; then :
5958 $as_echo_n "(cached) " >&6
5960 if test -n "$CHMOD"; then
5961 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5967 test -z "$as_dir" && as_dir
=.
5968 for ac_exec_ext
in '' $ac_executable_extensions; do
5969 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5970 ac_cv_prog_CHMOD
="chmod "
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 CHMOD
=$ac_cv_prog_CHMOD
5981 if test -n "$CHMOD"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5983 $as_echo "$CHMOD" >&6; }
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5991 if test "$CHMOD" = ""; then
5994 if test "$CHMOD" = "no"; then
5997 if test "$req_avail" = "no"; then
5998 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
6000 # Extract the first word of "patch", so it can be a program name with args.
6001 set dummy
patch; ac_word
=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_prog_PATCH+:} false
; then :
6005 $as_echo_n "(cached) " >&6
6007 if test -n "$PATCH"; then
6008 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
6010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6014 test -z "$as_dir" && as_dir
=.
6015 for ac_exec_ext
in '' $ac_executable_extensions; do
6016 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_PATCH
="patch "
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 PATCH
=$ac_cv_prog_PATCH
6028 if test -n "$PATCH"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
6030 $as_echo "$PATCH" >&6; }
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6038 if test "$PATCH" = ""; then
6041 if test "$PATCH" = "no"; then
6044 if test "$req_avail" = "no"; then
6045 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
6054 if test -n "$PYTHON"; then
6055 # If the user set $PYTHON, use it and don't search something else.
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
6057 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
6059 # split strings by '.' and convert to numeric. Append some zeros
6060 # because we need at least 4 digits for the hex conversion.
6061 # map returns an iterator in Python 3.0 and a list in 2.x
6062 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6064 # xrange is not present in Python 3.0 and range returns an iterator
6065 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6066 sys.exit(sys.hexversion < minverhex)"
6067 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
6068 ($PYTHON -c "$prog") >&5 2>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; then :
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6073 $as_echo "yes" >&6; }
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 as_fn_error $?
"Python interpreter is too old" "$LINENO" 5
6079 am_display_PYTHON
=$PYTHON
6081 # Otherwise, try each interpreter until we find one that satisfies
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
6084 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
6085 if ${am_cv_pathless_PYTHON+:} false
; then :
6086 $as_echo_n "(cached) " >&6
6089 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
6090 test "$am_cv_pathless_PYTHON" = none
&& break
6092 # split strings by '.' and convert to numeric. Append some zeros
6093 # because we need at least 4 digits for the hex conversion.
6094 # map returns an iterator in Python 3.0 and a list in 2.x
6095 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6097 # xrange is not present in Python 3.0 and range returns an iterator
6098 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6099 sys.exit(sys.hexversion < minverhex)"
6100 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
6101 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; then :
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
6110 $as_echo "$am_cv_pathless_PYTHON" >&6; }
6111 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
6112 if test "$am_cv_pathless_PYTHON" = none
; then
6115 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
6116 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_path_PYTHON+:} false
; then :
6120 $as_echo_n "(cached) " >&6
6124 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
6127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6131 test -z "$as_dir" && as_dir
=.
6132 for ac_exec_ext
in '' $ac_executable_extensions; do
6133 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6134 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 PYTHON
=$ac_cv_path_PYTHON
6146 if test -n "$PYTHON"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6148 $as_echo "$PYTHON" >&6; }
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6156 am_display_PYTHON
=$am_cv_pathless_PYTHON
6160 if test "$PYTHON" = :; then
6161 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
6166 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
6167 if ${am_cv_python_version+:} false
; then :
6168 $as_echo_n "(cached) " >&6
6170 am_cv_python_version
=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
6173 $as_echo "$am_cv_python_version" >&6; }
6174 PYTHON_VERSION
=$am_cv_python_version
6178 PYTHON_PREFIX
='${prefix}'
6180 PYTHON_EXEC_PREFIX
='${exec_prefix}'
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6185 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
6186 if ${am_cv_python_platform+:} false
; then :
6187 $as_echo_n "(cached) " >&6
6189 am_cv_python_platform
=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6192 $as_echo "$am_cv_python_platform" >&6; }
6193 PYTHON_PLATFORM
=$am_cv_python_platform
6196 # Just factor out some code duplication.
6197 am_python_setup_sysconfig
="\
6199 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6200 # with python 3.x. See automake bug#10227.
6204 can_use_sysconfig = 0
6206 can_use_sysconfig = 1
6207 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6208 # <https://github.com/pypa/virtualenv/issues/118>
6210 from platform import python_implementation
6211 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6212 can_use_sysconfig = 0
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6218 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6219 if ${am_cv_python_pythondir+:} false
; then :
6220 $as_echo_n "(cached) " >&6
6222 if test "x$prefix" = xNONE
6224 am_py_prefix
=$ac_default_prefix
6226 am_py_prefix
=$prefix
6228 am_cv_python_pythondir
=`$PYTHON -c "
6229 $am_python_setup_sysconfig
6230 if can_use_sysconfig:
6231 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6233 from distutils import sysconfig
6234 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6235 sys.stdout.write(sitedir)"`
6236 case $am_cv_python_pythondir in
6238 am__strip_prefix
=`echo "$am_py_prefix" | sed 's|.|.|g'`
6239 am_cv_python_pythondir
=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6242 case $am_py_prefix in
6245 am_cv_python_pythondir
=$PYTHON_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6253 $as_echo "$am_cv_python_pythondir" >&6; }
6254 pythondir
=$am_cv_python_pythondir
6258 pkgpythondir
=\
${pythondir}/$PACKAGE
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6262 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6263 if ${am_cv_python_pyexecdir+:} false
; then :
6264 $as_echo_n "(cached) " >&6
6266 if test "x$exec_prefix" = xNONE
6268 am_py_exec_prefix
=$am_py_prefix
6270 am_py_exec_prefix
=$exec_prefix
6272 am_cv_python_pyexecdir
=`$PYTHON -c "
6273 $am_python_setup_sysconfig
6274 if can_use_sysconfig:
6275 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6277 from distutils import sysconfig
6278 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6279 sys.stdout.write(sitedir)"`
6280 case $am_cv_python_pyexecdir in
6281 $am_py_exec_prefix*)
6282 am__strip_prefix
=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6283 am_cv_python_pyexecdir
=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6286 case $am_py_exec_prefix in
6289 am_cv_python_pyexecdir
=$PYTHON_EXEC_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6297 $as_echo "$am_cv_python_pyexecdir" >&6; }
6298 pyexecdir
=$am_cv_python_pyexecdir
6302 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
6310 # Check whether --enable-libpng-config was given.
6311 if test "${enable_libpng_config+set}" = set; then :
6312 enableval
=$enable_libpng_config;
6315 if test "$enable_libpng_config" != "no"; then
6316 # Extract the first word of "libpng-config", so it can be a program name with args.
6317 set dummy libpng-config
; ac_word
=$2
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false
; then :
6321 $as_echo_n "(cached) " >&6
6323 if test -n "$arosconfig_use_libpngconfig"; then
6324 ac_cv_prog_arosconfig_use_libpngconfig
="$arosconfig_use_libpngconfig" # Let the user override the test.
6326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6330 test -z "$as_dir" && as_dir
=.
6331 for ac_exec_ext
in '' $ac_executable_extensions; do
6332 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6333 ac_cv_prog_arosconfig_use_libpngconfig
="yes"
6334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig
="no"
6344 arosconfig_use_libpngconfig
=$ac_cv_prog_arosconfig_use_libpngconfig
6345 if test -n "$arosconfig_use_libpngconfig"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6347 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6355 if test "$arosconfig_use_libpngconfig" = "yes"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6357 $as_echo_n "checking libpng-config library... " >&6; }
6358 libpng_incdir
="`libpng-config --cflags`"
6359 libpng_libextra
="$libpng_libextra `libpng-config --ldflags`"
6360 libpng
="`libpng-config --libs`"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6362 $as_echo "$libpng" >&6; }
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6366 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6367 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6368 $as_echo_n "(cached) " >&6
6370 ac_check_lib_save_LIBS
=$LIBS
6372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6375 /* Override any GCC internal prototype to avoid an error.
6376 Use char because int might match the return type of a GCC
6377 builtin and then its argument prototype would still apply. */
6381 char png_read_png ();
6385 return png_read_png ();
6390 if ac_fn_c_try_link
"$LINENO"; then :
6391 ac_cv_lib_png_png_read_png
=yes
6393 ac_cv_lib_png_png_read_png
=no
6395 rm -f core conftest.err conftest.
$ac_objext \
6396 conftest
$ac_exeext conftest.
$ac_ext
6397 LIBS
=$ac_check_lib_save_LIBS
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6400 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6401 if test "x$ac_cv_lib_png_png_read_png" = xyes
; then :
6407 if test "$libpng_libextra" != ""; then
6408 if test "$libpng" != "no"; then
6409 libpng_libextra
="$libpng_libextra $libpng"
6414 if test "$libpng" = ""; then
6417 if test "$libpng" = "no"; then
6420 if test "$req_avail" = "no"; then
6421 as_fn_error $?
"libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6437 # Check for some includes for the X11 HIDD and the kernel
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6440 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6441 if ${ac_cv_path_GREP+:} false
; then :
6442 $as_echo_n "(cached) " >&6
6444 if test -z "$GREP"; then
6445 ac_path_GREP_found
=false
6446 # Loop through the user's path and test for each of PROGNAME-LIST
6447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6448 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6451 test -z "$as_dir" && as_dir
=.
6452 for ac_prog
in grep ggrep
; do
6453 for ac_exec_ext
in '' $ac_executable_extensions; do
6454 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6455 as_fn_executable_p
"$ac_path_GREP" ||
continue
6456 # Check for GNU ac_path_GREP and select it if it is found.
6457 # Check for GNU $ac_path_GREP
6458 case `"$ac_path_GREP" --version 2>&1` in
6460 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6463 $as_echo_n 0123456789 >"conftest.in"
6466 cat "conftest.in" "conftest.in" >"conftest.tmp"
6467 mv "conftest.tmp" "conftest.in"
6468 cp "conftest.in" "conftest.nl"
6469 $as_echo 'GREP' >> "conftest.nl"
6470 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6471 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6472 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6473 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6474 # Best one so far, save it but keep looking for a better one
6475 ac_cv_path_GREP
="$ac_path_GREP"
6476 ac_path_GREP_max
=$ac_count
6478 # 10*(2^10) chars as input seems more than enough
6479 test $ac_count -gt 10 && break
6481 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6484 $ac_path_GREP_found && break 3
6489 if test -z "$ac_cv_path_GREP"; then
6490 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6493 ac_cv_path_GREP
=$GREP
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6498 $as_echo "$ac_cv_path_GREP" >&6; }
6499 GREP
="$ac_cv_path_GREP"
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6503 $as_echo_n "checking for egrep... " >&6; }
6504 if ${ac_cv_path_EGREP+:} false
; then :
6505 $as_echo_n "(cached) " >&6
6507 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6508 then ac_cv_path_EGREP
="$GREP -E"
6510 if test -z "$EGREP"; then
6511 ac_path_EGREP_found
=false
6512 # Loop through the user's path and test for each of PROGNAME-LIST
6513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6514 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6517 test -z "$as_dir" && as_dir
=.
6518 for ac_prog
in egrep; do
6519 for ac_exec_ext
in '' $ac_executable_extensions; do
6520 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6521 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6522 # Check for GNU ac_path_EGREP and select it if it is found.
6523 # Check for GNU $ac_path_EGREP
6524 case `"$ac_path_EGREP" --version 2>&1` in
6526 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6529 $as_echo_n 0123456789 >"conftest.in"
6532 cat "conftest.in" "conftest.in" >"conftest.tmp"
6533 mv "conftest.tmp" "conftest.in"
6534 cp "conftest.in" "conftest.nl"
6535 $as_echo 'EGREP' >> "conftest.nl"
6536 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6537 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6538 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6539 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6540 # Best one so far, save it but keep looking for a better one
6541 ac_cv_path_EGREP
="$ac_path_EGREP"
6542 ac_path_EGREP_max
=$ac_count
6544 # 10*(2^10) chars as input seems more than enough
6545 test $ac_count -gt 10 && break
6547 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6550 $ac_path_EGREP_found && break 3
6555 if test -z "$ac_cv_path_EGREP"; then
6556 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6559 ac_cv_path_EGREP
=$EGREP
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6565 $as_echo "$ac_cv_path_EGREP" >&6; }
6566 EGREP
="$ac_cv_path_EGREP"
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6570 $as_echo_n "checking for ANSI C header files... " >&6; }
6571 if ${ac_cv_header_stdc+:} false
; then :
6572 $as_echo_n "(cached) " >&6
6574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6589 if ac_fn_c_try_compile
"$LINENO"; then :
6590 ac_cv_header_stdc
=yes
6592 ac_cv_header_stdc
=no
6594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6596 if test $ac_cv_header_stdc = yes; then
6597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6604 $EGREP "memchr" >/dev
/null
2>&1; then :
6607 ac_cv_header_stdc
=no
6613 if test $ac_cv_header_stdc = yes; then
6614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6621 $EGREP "free" >/dev
/null
2>&1; then :
6624 ac_cv_header_stdc
=no
6630 if test $ac_cv_header_stdc = yes; then
6631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6632 if test "$cross_compiling" = yes; then :
6635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6639 #if ((' ' & 0x0FF) == 0x020)
6640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6643 # define ISLOWER(c) \
6644 (('a' <= (c) && (c) <= 'i') \
6645 || ('j' <= (c) && (c) <= 'r') \
6646 || ('s' <= (c) && (c) <= 'z'))
6647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6655 for (i = 0; i < 256; i++)
6656 if (XOR (islower (i), ISLOWER (i))
6657 || toupper (i) != TOUPPER (i))
6662 if ac_fn_c_try_run
"$LINENO"; then :
6665 ac_cv_header_stdc
=no
6667 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6668 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6674 $as_echo "$ac_cv_header_stdc" >&6; }
6675 if test $ac_cv_header_stdc = yes; then
6677 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6681 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6682 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6683 inttypes.h stdint.h unistd.h
6685 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6686 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6688 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6689 cat >>confdefs.h
<<_ACEOF
6690 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6698 for ac_header
in sys
/ipc.h sys
/shm.h \
6699 sys
/mmap.h sys
/mman.h sysexits.h \
6700 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6703 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6704 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6705 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6706 cat >>confdefs.h
<<_ACEOF
6707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6715 for ac_header
in sys
/mount.h
6717 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6719 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6720 cat >>confdefs.h
<<_ACEOF
6721 #define HAVE_SYS_MOUNT_H 1
6728 for ac_header
in GL
/glx.h
6730 ac_fn_c_check_header_mongrel
"$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
6731 if test "x$ac_cv_header_GL_glx_h" = xyes
; then :
6732 cat >>confdefs.h
<<_ACEOF
6733 #define HAVE_GL_GLX_H 1
6735 host_feature_glx
=yes
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
6744 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
6745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6748 #define __unused __attribute__((unused))
6749 #include <sys/stat.h>
6759 if ac_fn_c_try_compile
"$LINENO"; then :
6760 host_stat_h__unused_used
=no
6762 host_stat_h__unused_used
=yes
6764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
6766 $as_echo "$host_stat_h__unused_used" >&6; }
6769 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6770 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6772 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6773 if eval \
${$as_ac_Header+:} false
; then :
6774 $as_echo_n "(cached) " >&6
6776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 #include <sys/types.h>
6790 if ac_fn_c_try_compile
"$LINENO"; then :
6791 eval "$as_ac_Header=yes"
6793 eval "$as_ac_Header=no"
6795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6797 eval ac_res
=\$
$as_ac_Header
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6799 $as_echo "$ac_res" >&6; }
6800 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6801 cat >>confdefs.h
<<_ACEOF
6802 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6805 ac_header_dirent
=$ac_hdr; break
6809 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6810 if test $ac_header_dirent = dirent.h
; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6812 $as_echo_n "checking for library containing opendir... " >&6; }
6813 if ${ac_cv_search_opendir+:} false
; then :
6814 $as_echo_n "(cached) " >&6
6816 ac_func_search_save_LIBS
=$LIBS
6817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6820 /* Override any GCC internal prototype to avoid an error.
6821 Use char because int might match the return type of a GCC
6822 builtin and then its argument prototype would still apply. */
6835 for ac_lib
in '' dir
; do
6836 if test -z "$ac_lib"; then
6837 ac_res
="none required"
6840 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6842 if ac_fn_c_try_link
"$LINENO"; then :
6843 ac_cv_search_opendir
=$ac_res
6845 rm -f core conftest.err conftest.
$ac_objext \
6847 if ${ac_cv_search_opendir+:} false
; then :
6851 if ${ac_cv_search_opendir+:} false
; then :
6854 ac_cv_search_opendir
=no
6857 LIBS
=$ac_func_search_save_LIBS
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6860 $as_echo "$ac_cv_search_opendir" >&6; }
6861 ac_res
=$ac_cv_search_opendir
6862 if test "$ac_res" != no
; then :
6863 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6869 $as_echo_n "checking for library containing opendir... " >&6; }
6870 if ${ac_cv_search_opendir+:} false
; then :
6871 $as_echo_n "(cached) " >&6
6873 ac_func_search_save_LIBS
=$LIBS
6874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6877 /* Override any GCC internal prototype to avoid an error.
6878 Use char because int might match the return type of a GCC
6879 builtin and then its argument prototype would still apply. */
6892 for ac_lib
in '' x
; do
6893 if test -z "$ac_lib"; then
6894 ac_res
="none required"
6897 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6899 if ac_fn_c_try_link
"$LINENO"; then :
6900 ac_cv_search_opendir
=$ac_res
6902 rm -f core conftest.err conftest.
$ac_objext \
6904 if ${ac_cv_search_opendir+:} false
; then :
6908 if ${ac_cv_search_opendir+:} false
; then :
6911 ac_cv_search_opendir
=no
6914 LIBS
=$ac_func_search_save_LIBS
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6917 $as_echo "$ac_cv_search_opendir" >&6; }
6918 ac_res
=$ac_cv_search_opendir
6919 if test "$ac_res" != no
; then :
6920 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6927 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6928 if ${ac_cv_header_stat_broken+:} false
; then :
6929 $as_echo_n "(cached) " >&6
6931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 #include <sys/types.h>
6934 #include <sys/stat.h>
6936 #if defined S_ISBLK && defined S_IFDIR
6937 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6940 #if defined S_ISBLK && defined S_IFCHR
6941 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6944 #if defined S_ISLNK && defined S_IFREG
6945 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6948 #if defined S_ISSOCK && defined S_IFREG
6949 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6953 if ac_fn_c_try_compile
"$LINENO"; then :
6954 ac_cv_header_stat_broken
=no
6956 ac_cv_header_stat_broken
=yes
6958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6961 $as_echo "$ac_cv_header_stat_broken" >&6; }
6962 if test $ac_cv_header_stat_broken = yes; then
6964 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6969 $as_echo_n "checking for ANSI C header files... " >&6; }
6970 if ${ac_cv_header_stdc+:} false
; then :
6971 $as_echo_n "(cached) " >&6
6973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6988 if ac_fn_c_try_compile
"$LINENO"; then :
6989 ac_cv_header_stdc
=yes
6991 ac_cv_header_stdc
=no
6993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6995 if test $ac_cv_header_stdc = yes; then
6996 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
7002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7003 $EGREP "memchr" >/dev
/null
2>&1; then :
7006 ac_cv_header_stdc
=no
7012 if test $ac_cv_header_stdc = yes; then
7013 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7020 $EGREP "free" >/dev
/null
2>&1; then :
7023 ac_cv_header_stdc
=no
7029 if test $ac_cv_header_stdc = yes; then
7030 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7031 if test "$cross_compiling" = yes; then :
7034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7038 #if ((' ' & 0x0FF) == 0x020)
7039 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7040 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7042 # define ISLOWER(c) \
7043 (('a' <= (c) && (c) <= 'i') \
7044 || ('j' <= (c) && (c) <= 'r') \
7045 || ('s' <= (c) && (c) <= 'z'))
7046 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7049 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7054 for (i = 0; i < 256; i++)
7055 if (XOR (islower (i), ISLOWER (i))
7056 || toupper (i) != TOUPPER (i))
7061 if ac_fn_c_try_run
"$LINENO"; then :
7064 ac_cv_header_stdc
=no
7066 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7067 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7073 $as_echo "$ac_cv_header_stdc" >&6; }
7074 if test $ac_cv_header_stdc = yes; then
7076 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7081 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7082 if ${ac_cv_header_sys_wait_h+:} false
; then :
7083 $as_echo_n "(cached) " >&6
7085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 #include <sys/types.h>
7088 #include <sys/wait.h>
7090 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7093 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7101 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7106 if ac_fn_c_try_compile
"$LINENO"; then :
7107 ac_cv_header_sys_wait_h
=yes
7109 ac_cv_header_sys_wait_h
=no
7111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7114 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7115 if test $ac_cv_header_sys_wait_h = yes; then
7117 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7122 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7123 if ${ac_cv_header_time+:} false
; then :
7124 $as_echo_n "(cached) " >&6
7126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128 #include <sys/types.h>
7129 #include <sys/time.h>
7135 if ((struct tm *) 0)
7141 if ac_fn_c_try_compile
"$LINENO"; then :
7142 ac_cv_header_time
=yes
7144 ac_cv_header_time
=no
7146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7149 $as_echo "$ac_cv_header_time" >&6; }
7150 if test $ac_cv_header_time = yes; then
7152 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7156 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7157 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
7159 cat >>confdefs.h
<<_ACEOF
7160 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7164 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7169 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7170 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
7172 cat >>confdefs.h
<<_ACEOF
7173 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7177 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7180 case " $LIBOBJS " in
7181 *" fileblocks.$ac_objext "* ) ;;
7182 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
7189 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7190 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
7192 cat >>confdefs.h
<<_ACEOF
7193 #define HAVE_STRUCT_STAT_ST_RDEV 1
7197 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7203 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7204 if ${ac_cv_struct_tm+:} false
; then :
7205 $as_echo_n "(cached) " >&6
7207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 #include <sys/types.h>
7216 int *p = &tm.tm_sec;
7222 if ac_fn_c_try_compile
"$LINENO"; then :
7223 ac_cv_struct_tm
=time.h
7225 ac_cv_struct_tm
=sys
/time.h
7227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7230 $as_echo "$ac_cv_struct_tm" >&6; }
7231 if test $ac_cv_struct_tm = sys
/time.h
; then
7233 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7237 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7238 #include <$ac_cv_struct_tm>
7241 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
7243 cat >>confdefs.h
<<_ACEOF
7244 #define HAVE_STRUCT_TM_TM_ZONE 1
7250 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7252 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7255 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7257 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
7263 cat >>confdefs.h
<<_ACEOF
7264 #define HAVE_DECL_TZNAME $ac_have_decl
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7268 $as_echo_n "checking for tzname... " >&6; }
7269 if ${ac_cv_var_tzname+:} false
; then :
7270 $as_echo_n "(cached) " >&6
7272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7275 #if !HAVE_DECL_TZNAME
7276 extern char *tzname[];
7282 return tzname[0][0];
7287 if ac_fn_c_try_link
"$LINENO"; then :
7288 ac_cv_var_tzname
=yes
7292 rm -f core conftest.err conftest.
$ac_objext \
7293 conftest
$ac_exeext conftest.
$ac_ext
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7296 $as_echo "$ac_cv_var_tzname" >&6; }
7297 if test $ac_cv_var_tzname = yes; then
7299 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7304 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7305 if test "x$ac_cv_type_off_t" = xyes
; then :
7309 cat >>confdefs.h
<<_ACEOF
7310 #define off_t long int
7315 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7316 if test "x$ac_cv_type_pid_t" = xyes
; then :
7320 cat >>confdefs.h
<<_ACEOF
7326 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7327 if test "x$ac_cv_type_size_t" = xyes
; then :
7331 cat >>confdefs.h
<<_ACEOF
7332 #define size_t unsigned int
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7338 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7339 if ${ac_cv_type_uid_t+:} false
; then :
7340 $as_echo_n "(cached) " >&6
7342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344 #include <sys/types.h>
7347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7348 $EGREP "uid_t" >/dev
/null
2>&1; then :
7349 ac_cv_type_uid_t
=yes
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7357 $as_echo "$ac_cv_type_uid_t" >&6; }
7358 if test $ac_cv_type_uid_t = no
; then
7360 $as_echo "#define uid_t int" >>confdefs.h
7363 $as_echo "#define gid_t int" >>confdefs.h
7368 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7369 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7371 cat >>confdefs.h
<<_ACEOF
7372 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7379 # Look for some functions
7380 for ac_func
in getpagesize kqueue statfs statvfs \
7381 clone kse_create rfork_thread thr_create sa_register \
7382 getcontext makecontext setcontext sigaltstack swapcontext
7384 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7385 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7386 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7387 cat >>confdefs.h
<<_ACEOF
7388 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7398 for ac_header
in $ac_header_list
7400 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7401 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7403 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7404 cat >>confdefs.h
<<_ACEOF
7405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7419 for ac_func
in getpagesize
7421 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7422 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7423 cat >>confdefs.h
<<_ACEOF
7424 #define HAVE_GETPAGESIZE 1
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7431 $as_echo_n "checking for working mmap... " >&6; }
7432 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7433 $as_echo_n "(cached) " >&6
7435 if test "$cross_compiling" = yes; then :
7436 ac_cv_func_mmap_fixed_mapped
=no
7438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 $ac_includes_default
7441 /* malloc might have been renamed as rpl_malloc. */
7444 /* Thanks to Mike Haertel and Jim Avera for this test.
7445 Here is a matrix of mmap possibilities:
7446 mmap private not fixed
7447 mmap private fixed at somewhere currently unmapped
7448 mmap private fixed at somewhere already mapped
7449 mmap shared not fixed
7450 mmap shared fixed at somewhere currently unmapped
7451 mmap shared fixed at somewhere already mapped
7452 For private mappings, we should verify that changes cannot be read()
7453 back from the file, nor mmap's back from the file at a different
7454 address. (There have been systems where private was not correctly
7455 implemented like the infamous i386 svr4.0, and systems where the
7456 VM page cache was not coherent with the file system buffer cache
7457 like early versions of FreeBSD and possibly contemporary NetBSD.)
7458 For shared mappings, we should conversely verify that changes get
7459 propagated back to all the places they're supposed to be.
7461 Grep wants private fixed already mapped.
7462 The main things grep needs to know about mmap are:
7463 * does it exist and is it safe to write into the mmap'd area
7464 * how to use it (BSD variants) */
7467 #include <sys/mman.h>
7469 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7473 /* This mess was copied from the GNU getpagesize.h. */
7474 #ifndef HAVE_GETPAGESIZE
7475 # ifdef _SC_PAGESIZE
7476 # define getpagesize() sysconf(_SC_PAGESIZE)
7477 # else /* no _SC_PAGESIZE */
7478 # ifdef HAVE_SYS_PARAM_H
7479 # include <sys/param.h>
7480 # ifdef EXEC_PAGESIZE
7481 # define getpagesize() EXEC_PAGESIZE
7482 # else /* no EXEC_PAGESIZE */
7484 # define getpagesize() NBPG * CLSIZE
7487 # endif /* no CLSIZE */
7488 # else /* no NBPG */
7490 # define getpagesize() NBPC
7491 # else /* no NBPC */
7493 # define getpagesize() PAGESIZE
7494 # endif /* PAGESIZE */
7495 # endif /* no NBPC */
7496 # endif /* no NBPG */
7497 # endif /* no EXEC_PAGESIZE */
7498 # else /* no HAVE_SYS_PARAM_H */
7499 # define getpagesize() 8192 /* punt totally */
7500 # endif /* no HAVE_SYS_PARAM_H */
7501 # endif /* no _SC_PAGESIZE */
7503 #endif /* no HAVE_GETPAGESIZE */
7508 char *data, *data2, *data3;
7513 pagesize = getpagesize ();
7515 /* First, make a file with some known garbage in it. */
7516 data = (char *) malloc (pagesize);
7519 for (i = 0; i < pagesize; ++i)
7520 *(data + i) = rand ();
7522 fd = creat ("conftest.mmap", 0600);
7525 if (write (fd, data, pagesize) != pagesize)
7529 /* Next, check that the tail of a page is zero-filled. File must have
7530 non-zero length, otherwise we risk SIGBUS for entire page. */
7531 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7535 if (write (fd2, cdata2, 1) != 1)
7537 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7538 if (data2 == MAP_FAILED)
7540 for (i = 0; i < pagesize; ++i)
7544 if (munmap (data2, pagesize))
7547 /* Next, try to mmap the file at a fixed address which already has
7548 something else allocated at it. If we can, also make sure that
7549 we see the same garbage. */
7550 fd = open ("conftest.mmap", O_RDWR);
7553 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7554 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7556 for (i = 0; i < pagesize; ++i)
7557 if (*(data + i) != *(data2 + i))
7560 /* Finally, make sure that changes to the mapped area do not
7561 percolate back to the file as seen by read(). (This is a bug on
7562 some variants of i386 svr4.0.) */
7563 for (i = 0; i < pagesize; ++i)
7564 *(data2 + i) = *(data2 + i) + 1;
7565 data3 = (char *) malloc (pagesize);
7568 if (read (fd, data3, pagesize) != pagesize)
7570 for (i = 0; i < pagesize; ++i)
7571 if (*(data + i) != *(data3 + i))
7579 if ac_fn_c_try_run
"$LINENO"; then :
7580 ac_cv_func_mmap_fixed_mapped
=yes
7582 ac_cv_func_mmap_fixed_mapped
=no
7584 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7585 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7590 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7591 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7593 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7596 rm -f conftest.mmap conftest.txt
7599 #-----------------------------------------------------------------------------
7602 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7603 # it switched on by default, and we use the host compiler, so it compiles AROS
7604 # code with this enabled resulting in link failures as we don't have support
7607 # We use two methods to disable it. For the host compiler (used to compile
7608 # some hosted modules), we test to see if the compiler supports stack
7609 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7610 # work on all platforms.
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7614 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7615 save_cflags
="$CFLAGS"
7616 CFLAGS
="$CFLAGS -fno-stack-protector"
7617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7628 if ac_fn_c_try_compile
"$LINENO"; then :
7629 use_no_stack_protector
="yes"
7631 use_no_stack_protector
="no"
7633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7635 $as_echo "$use_no_stack_protector" >&6; }
7636 if test "x-$use_no_stack_protector" = "x-yes" ; then
7637 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7639 CFLAGS
="$save_cflags"
7641 #-----------------------------------------------------------------------------
7643 # Disable pointer-signedness warnings if the compiler recognises the option
7644 # (this only works for the host compiler at the moment)
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7647 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7648 save_cflags
="$CFLAGS"
7649 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7661 if ac_fn_c_try_compile
"$LINENO"; then :
7662 use_no_sign_warning
="yes"
7664 use_no_sign_warning
="no"
7666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7668 $as_echo "$use_no_sign_warning" >&6; }
7669 if test "x-$use_no_sign_warning" = "x-yes" ; then
7670 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7672 CFLAGS
="$save_cflags"
7674 #-----------------------------------------------------------------------------
7676 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7679 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7680 save_cflags
="$CFLAGS"
7681 CFLAGS
="$CFLAGS -fgnu89-inline"
7682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7693 if ac_fn_c_try_compile
"$LINENO"; then :
7694 use_gnu89_inline
="yes"
7696 use_gnu89_inline
="no"
7698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7700 $as_echo "$use_gnu89_inline" >&6; }
7701 if test "x-$use_gnu89_inline" = "x-yes" ; then
7702 gnu89_inline
="-fgnu89-inline"
7704 CFLAGS
="$save_cflags"
7707 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7708 # On GCC >= 4.0 -iquote should be used
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7711 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7712 CFLAGS
="$CFLAGS -iquote."
7713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7724 if ac_fn_c_try_compile
"$LINENO"; then :
7729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7731 $as_echo "$has_iquote" >&6; }
7732 if test "x-$has_iquote" = "x-yes" ; then
7733 host_cflags_iquote
=-iquote
7734 host_cflags_iquote_end
=
7736 host_cflags_iquote
=-I
7737 host_cflags_iquote_end
=-I-
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7741 $as_echo "$as_me: Performing target configuration..." >&6;}
7746 aros_nowarn_flags
="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7754 aros_config_cppflags
=
7756 aros_config_cxxflags
=
7757 aros_config_aflags
="$""(WARN_ALL) -x assembler-with-cpp -c"
7758 aros_config_ldflags
=""
7760 aros_shared_default
=yes
7762 aros_shared_cflags
="-fPIC"
7763 aros_shared_aflags
=""
7764 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7765 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7767 aros_kernel_ar_flags
="cr"
7768 aros_target_ar_flags
="cr"
7769 aros_target_nm_flags
="-C -ul"
7770 aros_target_strip_flags
="--strip-unneeded -R.comment"
7775 aros_target_genmap
="-Wl,-Map -Xlinker"
7777 # Native flavour stuff
7778 aros_serial_debug
="0"
7780 # Palm native flavour stuff
7781 aros_palm_debug_hack
="0"
7783 # Unix flavour stuff
7784 aros_nesting_supervisor
="0"
7786 # Collect-aros stuff: "-ius" to ignore undefined symbols
7787 ignore_undefined_symbols
=""
7789 # Check for X11 by default
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7793 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7795 # Check whether --with-toolchain was given.
7796 if test "${with_toolchain+set}" = set; then :
7797 withval
=$with_toolchain; aros_toolchain
="$withval"
7799 aros_toolchain
="$default_toolchain_family"
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7803 $as_echo "$aros_toolchain" >&6; }
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7807 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7808 # Check whether --enable-lto was given.
7809 if test "${enable_lto+set}" = set; then :
7810 enableval
=$enable_lto; aros_config_lto
="$enableval"
7812 aros_config_lto
="no"
7815 if test "$aros_config_lto" != "no"; then
7816 aros_config_lto
="yes"
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7819 $as_echo "$aros_config_lto" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7822 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7823 # Check whether --enable-coverage was given.
7824 if test "${enable_coverage+set}" = set; then :
7825 enableval
=$enable_coverage; aros_config_coverage
="$enableval"
7827 aros_config_coverage
="no"
7830 if test "$aros_config_coverage" != "no"; then
7831 aros_config_coverage
="yes"
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7834 $as_echo "$aros_config_coverage" >&6; }
7838 case "$aros_toolchain" in
7840 toolchain_c_compiler
="clang"
7841 toolchain_cxx_compiler
="clang++"
7842 toolchain_cpp_preprocessor
="clang -E"
7843 toolchain_ld
="ld.lld"
7845 toolchain_as
="llvm-as"
7846 toolchain_ar
="llvm-ar"
7847 toolchain_ranlib
="llvm-ranlib"
7848 toolchain_nm
="llvm-nm"
7849 toolchain_strip
="true"
7850 toolchain_objcopy
="llvm-objcopy"
7851 toolchain_objdump
="llvm-objdump"
7855 toolchain_c_compiler
="gcc"
7856 toolchain_cxx_compiler
="g++"
7857 toolchain_cpp_preprocessor
="gcc -E"
7860 if test "$aros_config_lto" != "yes"; then
7863 toolchain_ranlib
="ranlib"
7866 toolchain_ld
="ld.bfd"
7867 toolchain_ar
="gcc-ar"
7868 toolchain_ranlib
="gcc-ranlib"
7869 toolchain_nm
="gcc-nm"
7871 toolchain_strip
="strip"
7872 toolchain_objcopy
="objcopy"
7873 toolchain_objdump
="objdump"
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7878 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7879 toolchain_c_compiler
="cc"
7880 toolchain_cxx_compiler
="c++"
7881 toolchain_cpp_preprocessor
="cpp"
7886 toolchain_ranlib
="ranlib"
7888 toolchain_strip
="strip"
7889 toolchain_objcopy
="objcopy"
7890 toolchain_objdump
="objdump"
7894 #-----------------------------------------------------------------------------
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7897 $as_echo_n "checking which type of build to do... " >&6; }
7898 # Check whether --enable-build_type was given.
7899 if test "${enable_build_type+set}" = set; then :
7900 enableval
=$enable_build_type; build_type
=$enableval
7902 build_type
="personal"
7906 if test "$build_type" = "nightly"; then
7907 build_type_string
="NIGHTLY"
7908 elif test "$build_type" = "snapshot"; then
7909 build_type_string
="SNAPSHOT"
7910 elif test "$build_type" = "milestone"; then
7911 build_type_string
="MILESTONE"
7912 elif test "$build_type" = "release"; then
7913 build_type_string
="RELEASE"
7915 build_type_string
="PERSONAL"
7916 build_type
="personal"
7919 aros_config_cppflags
="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7922 $as_echo "$build_type" >&6; }
7924 #-----------------------------------------------------------------------------
7925 all_debug_types
="messages stack modules mungwall symbols"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7928 $as_echo_n "checking which debug types to enable... " >&6; }
7929 # Check whether --enable-debug was given.
7930 if test "${enable_debug+set}" = set; then :
7931 enableval
=$enable_debug; debug
="$enableval"
7937 if test "$debug" = "" -o "$debug" = "no"; then
7939 elif test "$debug" = "yes"; then
7943 if test "$debug" = "all" ; then
7944 debug
="messages stack modules symbols"
7945 for d
in $all_debug_types; do
7946 export aros_
${d}_debug
="1"
7949 for d
in $all_debug_types; do
7950 export aros_
${d}_debug
="0"
7954 if test "$debug" != "none"; then
7955 debug
=`echo $debug | sed s/,/\ /g`
7958 for d2
in $all_debug_types; do
7959 if test "$d2" = "$d"; then
7964 if test "$found" = "0"; then
7965 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7967 export aros_
${d}_debug
="1"
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7972 $as_echo "$debug" >&6; }
7974 if test "$aros_messages_debug" = "1"; then
7975 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
7977 aros_messages_debug
=""
7979 if test "$aros_symbols_debug" = "1"; then
7980 aros_symbols_debug
="-g"
7982 aros_symbols_debug
=""
7985 # These are the flags to pass when compiling debugged programs
7986 aros_debug_cppflags
="$aros_messages_debug"
7987 aros_debug_cflags
="$aros_symbols_debug"
7988 aros_debug_cxxflags
=
7989 aros_debug_aflags
=""
7990 aros_debug_ldflags
="$aros_symbols_debug"
7992 #-----------------------------------------------------------------------------
7993 # Checking for distcc and ccache.
7995 # Always apply the transforms in this particular order. Basically you should
7996 # always run 'ccache distcc compiler' in that order for the best performance.
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7999 $as_echo_n "checking whether to enable distcc... " >&6; }
8000 # Check whether --enable-distcc was given.
8001 if test "${enable_distcc+set}" = set; then :
8002 enableval
=$enable_distcc; distcc
="$enableval"
8007 if test "$distcc" != "" -a "$distcc" != "no"; then
8008 # AC_CHECK_PROG will print out the result in this case
8009 # Extract the first word of "distcc", so it can be a program name with args.
8010 set dummy distcc
; ac_word
=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_path_DISTCC+:} false
; then :
8014 $as_echo_n "(cached) " >&6
8018 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
8021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8025 test -z "$as_dir" && as_dir
=.
8026 for ac_exec_ext
in '' $ac_executable_extensions; do
8027 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8028 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
8040 DISTCC
=$ac_cv_path_DISTCC
8041 if test -n "$DISTCC"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
8043 $as_echo "$DISTCC" >&6; }
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
8056 $as_echo_n "checking whether to enable ccache... " >&6; }
8057 # Check whether --enable-ccache was given.
8058 if test "${enable_ccache+set}" = set; then :
8059 enableval
=$enable_ccache; ccache
="$enableval"
8064 if test "$ccache" != "" -a "$ccache" != "no"; then
8065 # AC_CHECK_PROG will print out the result in this case
8066 # Extract the first word of "ccache", so it can be a program name with args.
8067 set dummy ccache
; ac_word
=$2
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 $as_echo_n "checking for $ac_word... " >&6; }
8070 if ${ac_cv_prog_CCACHE+:} false
; then :
8071 $as_echo_n "(cached) " >&6
8073 if test -n "$CCACHE"; then
8074 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
8076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8080 test -z "$as_dir" && as_dir
=.
8081 for ac_exec_ext
in '' $ac_executable_extensions; do
8082 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8083 ac_cv_prog_CCACHE
="ccache"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 CCACHE
=$ac_cv_prog_CCACHE
8094 if test -n "$CCACHE"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
8096 $as_echo "$CCACHE" >&6; }
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8108 #-----------------------------------------------------------------------------
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
8110 $as_echo_n "checking what specific host gcc version to use... " >&6; }
8112 # Check whether --with-kernel-gcc-version was given.
8113 if test "${with_kernel_gcc_version+set}" = set; then :
8114 withval
=$with_kernel_gcc_version; kernel_tool_version
="$withval"
8116 kernel_tool_version
=""
8119 if test "$kernel_tool_version" != "" ; then
8120 msg_result
=$kernel_tool_version
8122 msg_result
="default"
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8125 $as_echo "$msg_result" >&6; }
8127 #-----------------------------------------------------------------------------
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
8129 $as_echo_n "checking what optimization flags to use... " >&6; }
8131 # Check whether --with-optimization was given.
8132 if test "${with_optimization+set}" = set; then :
8133 withval
=$with_optimization; optimization_level
="$withval"
8135 optimization_level
="unknown"
8138 if test "$optimization_level" = "unknown"; then
8139 optimization
="default"
8140 if test "$debug" != "none"; then
8141 optimization_level
="-O0"
8143 optimization_level
="-O2"
8146 optimization
="$optimization_level"
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
8149 $as_echo "$optimization" >&6; }
8151 paranoia_default
=yes
8152 #-----------------------------------------------------------------------------
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
8154 $as_echo_n "checking which paranoia flags to use... " >&6; }
8156 # Check whether --with-paranoia was given.
8157 if test "${with_paranoia+set}" = set; then :
8158 withval
=$with_paranoia; paranoia_flags
="$withval"
8160 paranoia_flags
="$paranoia_default"
8163 if test "$paranoia_flags" = "no"; then
8164 paranoia_flags
="$""(WARN_ALL) -Werror-implicit-function-declaration"
8167 if test "$paranoia_flags" = "yes"; then
8168 paranoia_flags
="$""(WARN_ALL) $""(WARN_ERROR)"
8170 msg_result
="$paranoia_flags"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8173 $as_echo "$msg_result" >&6; }
8174 aros_warn_flags
="$aros_warn_flags $paranoia_flags"
8176 #-----------------------------------------------------------------------------
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
8178 $as_echo_n "checking what target variant to enable... " >&6; }
8179 # Check whether --enable-target_variant was given.
8180 if test "${enable_target_variant+set}" = set; then :
8181 enableval
=$enable_target_variant; target_variant
=$enableval
8186 if test "$target_variant" = ""; then
8187 aros_target_variant
=""
8188 aros_target_suffix
=""
8191 aros_target_variant
="$target_variant"
8192 aros_target_suffix
="-$target_variant"
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8195 $as_echo "$enableval" >&6; }
8197 #-----------------------------------------------------------------------------
8198 # Target-specific defaults. You can override then on a per-target basis.
8200 # Bootloader name. Currently used by PC target.
8201 target_bootloader
="none"
8205 #-----------------------------------------------------------------------------
8206 # Additional options for some specific targets
8208 case "$aros_target_variant" in
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8211 $as_echo_n "checking XCode path... " >&6; }
8213 # Check whether --with-xcode was given.
8214 if test "${with_xcode+set}" = set; then :
8215 withval
=$with_xcode; aros_xcode_path
="$withval"
8217 aros_xcode_path
="/Developer"
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8221 $as_echo "$aros_xcode_path" >&6; }
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8224 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8226 # Check whether --with-sdk-version was given.
8227 if test "${with_sdk_version+set}" = set; then :
8228 withval
=$with_sdk_version; aros_sdk_version
="$withval"
8230 aros_sdk_version
="4.1"
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8234 $as_echo "$aros_sdk_version" >&6; }
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8240 $as_echo_n "checking Android SDK path... " >&6; }
8242 # Check whether --with-sdk was given.
8243 if test "${with_sdk+set}" = set; then :
8244 withval
=$with_sdk; aros_android_sdk
="$withval"
8246 aros_android_sdk
=$default_android_sdk
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8250 $as_echo "$aros_android_sdk" >&6; }
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8253 $as_echo_n "checking Android NDK path... " >&6; }
8255 # Check whether --with-ndk was given.
8256 if test "${with_ndk+set}" = set; then :
8257 withval
=$with_ndk; aros_android_ndk
="$withval"
8259 aros_android_ndk
="none"
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8263 $as_echo "$aros_android_ndk" >&6; }
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8266 $as_echo_n "checking what Android SDK version to use... " >&6; }
8268 # Check whether --with-sdk-version was given.
8269 if test "${with_sdk_version+set}" = set; then :
8270 withval
=$with_sdk_version; aros_sdk_version
="$withval"
8272 aros_sdk_version
="12"
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8276 $as_echo "$aros_sdk_version" >&6; }
8278 aros_android_level
=android-
$aros_sdk_version
8279 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
8280 echo "Platform $aros_android_level is not installed in your SDK"
8281 echo "Use --with-sdk-version=<API level number> to select another platform version"
8282 echo "You can check what plaform versions are installed in your SDK"
8283 echo "by examining contents of $aros_android_sdk/platforms directory"
8284 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
8287 export PATH
="$aros_android_sdk/tools:$PATH"
8288 # Extract the first word of "$android_tool", so it can be a program name with args.
8289 set dummy
$android_tool; ac_word
=$2
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 $as_echo_n "checking for $ac_word... " >&6; }
8292 if ${ac_cv_path_android_tool+:} false
; then :
8293 $as_echo_n "(cached) " >&6
8295 case $android_tool in
8297 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
8300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8304 test -z "$as_dir" && as_dir
=.
8305 for ac_exec_ext
in '' $ac_executable_extensions; do
8306 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8307 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 android_tool
=$ac_cv_path_android_tool
8319 if test -n "$android_tool"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8321 $as_echo "$android_tool" >&6; }
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8329 if test "$android_tool" = ""; then
8332 if test "$android_tool" = "no"; then
8335 if test "$req_avail" = "no"; then
8336 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
8339 if test "$aros_android_ndk" != "none"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8341 $as_echo_n "checking what Android NDK version to use... " >&6; }
8343 # Check whether --with-ndk-version was given.
8344 if test "${with_ndk_version+set}" = set; then :
8345 withval
=$with_ndk_version; aros_ndk_version
="$withval"
8347 aros_ndk_version
="9"
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8351 $as_echo "$aros_ndk_version" >&6; }
8354 # Extract the first word of "ant", so it can be a program name with args.
8355 set dummy ant
; ac_word
=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_path_ant+:} false
; then :
8359 $as_echo_n "(cached) " >&6
8363 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
8366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8370 test -z "$as_dir" && as_dir
=.
8371 for ac_exec_ext
in '' $ac_executable_extensions; do
8372 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8373 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 if test -n "$ant"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8387 $as_echo "$ant" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8394 if test "$ant" = ""; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8396 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8400 $as_echo_n "checking Build debug or release apk... " >&6; }
8402 # Check whether --with-apk-version was given.
8403 if test "${with_apk_version+set}" = set; then :
8404 withval
=$with_apk_version; aros_android_antapk
=$withval
8406 aros_android_antapk
=release
8409 if test $aros_android_antapk != release
-a $aros_android_antapk != debug
; then
8410 as_fn_error $?
"apk-version has to be release or debug" "$LINENO" 5
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8413 $as_echo "$aros_android_antapk" >&6; }
8415 target_extra_cfg
+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8416 host_extra_cfg
+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8417 aros_target_options
+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8419 if test "$host_os" = "mingw32"; then
8420 android_tool
="cmd //c $android_tool"
8428 #-----------------------------------------------------------------------------
8429 # External toolchains
8430 kernel_tool_prefix
="none"
8431 aros_tool_prefix
="none"
8432 elf_tool_prefix
="${target_cpu}-elf-"
8434 # Base target cpu ISA configuration switch.
8435 case "$target_cpu" in
8441 m68k_isa_extra
="ISA_MC68000_FLAGS = -march=68000"
8442 m68k_020_isa_extra
="ISA_MC68020_FLAGS = -march=68020"
8443 m68k_030_isa_extra
="ISA_MC68030_FLAGS = -march=68030"
8444 m68k_040_isa_extra
="ISA_MC68040_FLAGS = -march=68040"
8445 m68k_060_isa_extra
="ISA_MC68060_FLAGS = -march=68060"
8446 m68k_ac080_isa_extra
="ISA_AC68080_FLAGS = -march=68040"
8447 m68k_020_ext
="ISA_MC68020_EXT :=020"
8448 m68k_030_ext
="ISA_MC68030_EXT :=030"
8449 m68k_040_ext
="ISA_MC68040_EXT :=040"
8450 m68k_060_ext
="ISA_MC68060_EXT :=060"
8451 m68k_020_cflags
="ISA_MC68020_CFLAGS ="
8452 m68k_030_cflags
="ISA_MC68030_CFLAGS ="
8453 m68k_040_cflags
="ISA_MC68040_CFLAGS ="
8454 m68k_060_cflags
="ISA_MC68060_CFLAGS ="
8455 m68k_020_cppflags
="ISA_MC68020_CPPFLAGS ="
8456 m68k_030_cppflags
="ISA_MC68030_CPPFLAGS ="
8457 m68k_040_cppflags
="ISA_MC68040_CPPFLAGS ="
8458 m68k_060_cppflags
="ISA_MC68060_CPPFLAGS ="
8459 m68k_020_ldflags
="ISA_MC68020_LDFLAGS ="
8460 m68k_030_ldflags
="ISA_MC68030_LDFLAGS ="
8461 m68k_040_ldflags
="ISA_MC68040_LDFLAGS ="
8462 m68k_060_ldflags
="ISA_MC68060_LDFLAGS ="
8465 x86_isa_extra
="ISA_X86_FLAGS = -m32 -march=i486"
8466 x86_64_isa_extra
="ISA_X8664_FLAGS = -mcmodel=large"
8472 # This is the target configuration switch.
8473 case "$target_os" in
8475 aros_target_arch
="linux"
8476 aros_target_family
="unix"
8477 case "$target_cpu" in
8479 aros_target_cpu
="m68k"
8480 aros_object_format
="m68kelf"
8481 aros_flavour
="emulcompat"
8482 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8483 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8484 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8485 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8486 gcc_target_cpu
="mc68000"
8489 aros_target_cpu
="i386"
8490 aros_object_format
="elf_i386"
8491 aros_flavour
="emulation"
8492 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8493 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8494 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8495 aros_kernel_ldflags
="-Wl,-melf_i386"
8496 aros_nominal_depth
=8
8497 gcc_target_cpu
="i386"
8498 pci_hidd_target
="hidd-pci-linux"
8499 android_tool_dir_prefix
="x86"
8500 android_tool_prefix
="i686-android-linux"
8501 android_ndk_arch
="x86"
8504 aros_target_cpu
="x86_64"
8505 aros_object_format
="elf_x86_64"
8506 aros_flavour
="emulation"
8507 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8508 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8509 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8510 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8511 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8512 aros_nominal_depth
=8
8513 pci_hidd_target
="hidd-pci-linux"
8516 aros_target_cpu
="ppc"
8517 aros_object_format
="elf32ppc"
8518 aros_flavour
="emulation"
8519 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8520 aros_nominal_depth
=8
8521 gcc_target_cpu
="ppc"
8524 # Same as powerpc, but I need this for the nightly build to work again.
8525 # Actually, the nightly should be made working with powerpc target.
8526 # That just was too much work for the moment, another week or two.
8528 aros_target_cpu
="ppc"
8529 aros_object_format
="elf32ppc"
8530 aros_flavour
="emulation"
8531 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8532 aros_nominal_depth
=8
8533 gcc_target_cpu
="ppc"
8536 aros_target_cpu
="aarch64"
8537 target_cpu
="aarch64"
8538 aros_object_format
="aarch64elf_aros"
8539 aros_flavour
="emulation"
8540 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8541 gcc_target_cpu
="aarch64"
8542 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8543 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8544 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8545 aros_c_libs
="$aros_c_libs -laeabi"
8546 gcc_default_float_abi
="hard"
8547 kernel_tool_prefix
="aarch64-linux-gnueabihf-"
8550 aros_target_cpu
="arm"
8552 aros_object_format
="armelf_aros"
8553 aros_flavour
="emulation"
8554 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8555 gcc_target_cpu
="arm"
8556 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8557 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8558 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8559 aros_c_libs
="$aros_c_libs -laeabi"
8560 gcc_default_float_abi
="hard"
8561 android_tool_dir_prefix
="arm-linux-androideabi"
8562 android_tool_prefix
="arm-linux-androideabi"
8563 android_ndk_arch
="arm"
8564 kernel_tool_prefix
="arm-linux-gnueabihf-"
8567 aros_target_cpu
="arm"
8568 aros_object_format
="armelf_aros"
8569 aros_flavour
="emulation"
8570 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8571 gcc_target_cpu
="arm"
8572 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8573 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8574 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8575 aros_c_libs
="$aros_c_libs -laeabi"
8576 android_tool_dir_prefix
="arm-linux-androideabi"
8577 android_tool_prefix
="arm-linux-androideabi"
8578 android_ndk_arch
="arm"
8579 kernel_tool_prefix
="arm-linux-gnueabi-"
8582 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8585 case "$aros_target_variant" in
8588 if test "$android_ndk_arch" = ""; then
8589 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8592 aros_nominal_width
=320
8593 aros_nominal_height
=480
8594 if test "$aros_android_ndk" = "none"; then
8595 aros_kernel_cflags
="-mandroid"
8596 aros_kernel_ldflags
="-mandroid"
8599 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8600 kernel_tool_version
=""
8601 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8602 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
8603 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
8604 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8605 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
8608 # Disable implicit PIC mode
8609 aros_config_cflags
="$aros_config_cflags -fno-pic"
8610 kernel_tool_prefix
="$android_tool_prefix-"
8616 aros_target_arch
="pc"
8617 aros_shared_default
="no"
8618 target_bootloader
="grub2"
8619 case "$target_cpu" in
8621 aros_target_cpu
="i386"
8624 if test "$aros_object_format" = "" ; then
8625 aros_object_format
="elf_i386"
8627 aros_flavour
="standalone"
8628 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8629 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8630 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8631 aros_kernel_ldflags
="-Wl,-melf_i386"
8632 aros_nominal_width
=640
8633 aros_nominal_height
=480
8634 gcc_target_cpu
="i386"
8637 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
8638 aros_target_cpu
="x86_64"
8640 if test "$aros_object_format" = "" ; then
8641 aros_object_format
="elf_x86_64"
8643 aros_flavour
="standalone"
8644 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8645 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8646 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8647 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8648 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8649 aros_kernel_ldflags
=""
8650 aros_nominal_width
=640
8651 aros_nominal_height
=480
8652 case "$aros_target_variant" in
8654 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8659 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8665 aros_target_arch
="prep"
8666 aros_shared_default
="no"
8667 aros_target_cpu
="ppc"
8668 aros_object_format
="elf32ppc"
8669 aros_flavour
="ppcnative"
8670 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8671 aros_kernel_ldflags
=""
8672 aros_nominal_width
=640
8673 aros_nominal_height
=480
8674 gcc_target_cpu
="ppc"
8678 aros_target_arch
="freebsd"
8679 aros_target_family
="unix"
8680 aros_target_cpu
="i386"
8681 aros_flavour
="emulation"
8682 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8683 gcc_target_cpu
="i386"
8685 aros_target_strip_flags
="-x"
8689 aros_target_arch
="darwin"
8690 aros_target_family
="unix"
8691 aros_flavour
="emulation"
8692 case "$target_cpu" in
8694 aros_ios_platform
="iPhoneSimulator"
8695 aros_target_cpu
="i386"
8696 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8697 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8698 aros_kernel_ldflags
=""
8699 aros_macosx_version
="10.4"
8700 aros_nominal_depth
=8
8701 gcc_target_cpu
="i386"
8702 aros_object_format
="elf_i386"
8703 aros_kernel_ar_flags
="-cr"
8704 aros_target_strip_flags
="-x"
8705 kernel_tool_flags
="-m32"
8708 aros_target_cpu
="x86_64"
8709 aros_object_format
="elf_x86_64"
8710 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8711 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8712 aros_macosx_version
="10.6"
8713 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8714 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8715 aros_kernel_cflags
="-m64"
8716 aros_kernel_ldflags
="-m64"
8717 aros_nominal_depth
=8
8718 aros_kernel_rs
="$AR"
8719 aros_kernel_ar_flags
="-cr"
8720 aros_kernel_ld
="$LD"
8721 aros_kernel_as
="$AS"
8722 aros_kernel_ranlib
="$RANLIB"
8723 aros_kernel_nm
="$NM"
8724 aros_kernel_strip
="strip"
8725 kernel_tool_prefix
="i686-apple-darwin10-"
8728 aros_target_cpu
="ppc"
8729 aros_object_format
="elf32ppc"
8730 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8731 aros_kernel_ldflags
=""
8732 aros_macosx_version
="10.0"
8733 aros_nominal_depth
=8
8734 gcc_target_cpu
="ppc"
8735 aros_kernel_rs
="$AR"
8736 aros_kernel_ar_flags
="-cr"
8737 aros_kernel_ld
="$LD -arch ppc"
8738 aros_kernel_as
="$AS -arch ppc"
8739 aros_kernel_ranlib
="$RANLIB -arch ppc"
8740 aros_kernel_nm
="$NM -arch ppc"
8741 aros_kernel_strip
="strip -arch ppc"
8742 kernel_tool_prefix
="powerpc-apple-darwin10-"
8745 aros_ios_platform
="iPhoneOS"
8746 aros_target_cpu
="arm"
8747 aros_object_format
="armelf_aros"
8748 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8749 aros_c_libs
="$aros_c_libs -laeabi"
8750 aros_nominal_depth
=8
8751 gcc_target_cpu
="arm"
8752 aros_kernel_rs
="$AR"
8753 aros_kernel_ar_flags
="-cr"
8754 aros_kernel_ld
="$LD -arch arm"
8755 aros_kernel_ranlib
="$RANLIB -arch arm"
8756 kernel_tool_prefix
="arm-apple-darwin10-"
8757 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8760 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8763 case "$aros_target_variant" in
8765 make_extra_targetcfg
="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8766 aros_ios_version
="3.0"
8767 aros_nominal_width
=320
8768 aros_nominal_height
=480
8769 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8770 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"
8771 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
8772 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
8774 # This is here because it may depend on iOS or SDK version
8775 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8776 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8777 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8780 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8781 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8787 aros_target_arch
="dragonfly"
8788 aros_target_family
="unix"
8789 aros_flavour
="emulation"
8790 case "$target_cpu" in
8792 aros_target_cpu
="i386"
8793 aros_object_format
="elf_i386"
8794 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8795 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8798 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8799 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8800 aros_target_cpu
="x86_64"
8801 aros_object_format
="elf_x86_64"
8802 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8803 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8806 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8812 aros_target_arch
="netbsd"
8813 aros_target_family
="unix"
8814 case "$target_cpu" in
8816 aros_target_cpu
="m68k"
8817 aros_object_format
="m68kelf"
8818 aros_flavour
="emulcompat"
8819 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8820 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8821 gcc_target_cpu
="mc68000"
8824 aros_target_cpu
="i386"
8825 aros_object_format
="elf_i386"
8826 aros_flavour
="emulation"
8827 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8828 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8829 aros_nominal_depth
=8
8830 gcc_target_cpu
="i386"
8833 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8836 aros_target_genmap
="-Wl,-M -Xlinker >"
8837 aros_flavour
="emulation"
8838 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8842 aros_target_arch
="openbsd"
8843 aros_target_family
="unix"
8844 case "$target_cpu" in
8846 aros_target_cpu
="i386"
8847 aros_object_format
="elf_i386"
8848 aros_flavour
="emulation"
8849 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8850 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8851 gcc_target_cpu
="i386"
8854 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8857 aros_target_genmap
="-Wl,-M -Xlinker >"
8858 aros_target_nm_flags
="-u"
8859 aros_flavour
="emulation"
8863 aros_target_arch
="solaris"
8864 aros_target_family
="unix"
8865 case "$target_cpu" in
8867 aros_target_cpu
="i386"
8868 aros_object_format
="elf_i386"
8869 aros_flavour
="emulation"
8870 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8871 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8872 aros_nominal_depth
=8
8873 gcc_target_cpu
="i386"
8876 aros_target_cpu
="sparc"
8877 aros_object_format
="elf_sparc"
8878 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8879 gcc_target_cpu
="sparc"
8882 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8885 aros_config_cppflags
="$aros_config_cppflags -D$aros_target_cpu"
8886 aros_flavour
="emulation"
8890 aros_target_arch
="morphos"
8891 aros_shared_default
="no"
8892 aros_target_cpu
="ppc"
8893 aros_object_format
="elf_ppc"
8894 aros_flavour
="nativecompat"
8895 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8896 gcc_target_cpu
="ppc"
8900 aros_target_arch
="sam440"
8901 aros_shared_default
="no"
8902 aros_target_cpu
="ppc"
8903 aros_object_format
="elf32ppc"
8904 aros_flavour
="ppcnative"
8905 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8906 aros_kernel_ldflags
=""
8907 aros_nominal_width
=1024
8908 aros_nominal_height
=768
8909 aros_nominal_depth
=24
8910 aros_isa_flags
="$aros_isa_flags -mcpu=440fp -mno-toc"
8911 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8912 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8913 gcc_target_cpu
="powerpc"
8917 aros_target_arch
="efika"
8918 aros_shared_default
="no"
8919 aros_target_cpu
="arm"
8920 aros_object_format
="armelf_aros"
8921 aros_flavour
="standalone"
8922 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8923 aros_kernel_ldflags
=""
8924 aros_nominal_width
=1024
8925 aros_nominal_height
=600
8926 aros_c_libs
="$aros_c_libs -laeabi"
8927 gcc_default_cpu
="armv7-a"
8928 gcc_default_fpu
="vfpv3"
8929 aros_isa_flags
="$aros_isa_flags -mtune=cortex-a8"
8930 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8931 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8932 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8933 if test "$optimization" = "default"; then
8934 optimization_level
="-Os"
8936 case "$target_cpu" in
8938 gcc_default_float_abi
="hard"
8943 gcc_default_float_abi
="softfp"
8946 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8952 aros_target_arch
="chrp"
8953 aros_shared_default
="no"
8954 aros_target_cpu
="ppc"
8955 aros_object_format
="elf32ppc"
8956 aros_flavour
="ppcnative"
8957 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8958 aros_kernel_ldflags
=""
8959 aros_nominal_width
=640
8960 aros_nominal_height
=480
8961 aros_isa_flags
="$aros_isa_flags -mno-toc"
8962 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8963 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8964 gcc_target_cpu
="powerpc"
8965 case "$aros_target_variant" in
8967 aros_isa_flags
="$aros_isa_flags -mcpu=603e"
8968 aros_config_cppflags
="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8974 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
8975 aros_flavour
="standalone"
8976 aros_target_arch
="raspi"
8978 aros_shared_default
="no"
8980 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__"
8982 case "$target_cpu" in
8984 aros_target_cpu
="aarch64"
8985 gcc_default_cpu
="aarch64"
8986 aros_object_format
="aarch64elf_aros"
8989 aros_target_cpu
="arm"
8990 gcc_default_cpu
="armv6zk"
8991 gcc_default_cpu_tune
="arm1176jzf-s"
8992 aros_object_format
="armelf_aros"
8993 aros_isa_flags
="$aros_isa_flags -marm"
8994 aros_config_cflags
="$aros_config_cflags"
8995 aros_config_cxxflags
="$aros_config_cxxflags"
8996 aros_config_aflags
="$aros_config_aflags -marm"
8997 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8998 aros_target_mkdep
="$aros_target_mkdep -Darm"
8999 aros_c_libs
="$aros_c_libs -laeabi"
9002 aros_flavour
="standcompat"
9003 aros_target_cpu
="armeb"
9004 gcc_default_float_abi
="hard"
9005 gcc_default_cpu
="armv7ve"
9006 gcc_default_cpu_tune
="cortex-a7"
9007 aros_object_format
="armelfb_aros"
9008 aros_isa_flags
="$aros_isa_flags -marm"
9009 aros_config_cflags
="$aros_config_cflags"
9010 aros_config_cxxflags
="$aros_config_cxxflags"
9011 aros_config_aflags
="$aros_config_aflags -marm"
9012 aros_kernel_cflags
="$aros_kernel_cflags -marm"
9013 aros_target_mkdep
="$aros_target_mkdep -Darm"
9014 aros_c_libs
="$aros_c_libs -laeabi"
9017 aros_target_cpu
="arm"
9018 gcc_default_cpu
="armv6zk"
9019 gcc_default_cpu_tune
="arm1176jzf-s"
9020 aros_object_format
="armelf_aros"
9021 aros_isa_flags
="$aros_isa_flags -marm"
9022 aros_config_cflags
="$aros_config_cflags"
9023 aros_config_cxxflags
="$aros_config_cxxflags"
9024 aros_config_aflags
="$aros_config_aflags -marm"
9025 aros_kernel_cflags
="$aros_kernel_cflags -marm"
9026 aros_target_mkdep
="$aros_target_mkdep -Darm"
9027 aros_c_libs
="$aros_c_libs -laeabi"
9030 as_fn_error $?
"\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
9034 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9035 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9036 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9037 aros_kernel_cflags
="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9039 case "$aros_target_variant" in
9041 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
9047 aros_flavour
="standalone"
9048 aros_target_arch
="stm32f7_discovery"
9049 aros_target_cpu
="arm"
9050 aros_target_cpu_mode
="thumb2"
9051 aros_object_format
="armelf_aros"
9052 aros_shared_default
="no"
9054 gcc_default_cpu
="armv7e-m"
9055 gcc_default_cpu_tune
="cortex-m7"
9056 gcc_default_fpu
="fpv5-sp-d16"
9057 gcc_default_float_abi
="hard"
9059 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dthumb"
9063 aros_elf_translate
="$""(ELF2HUNK)"
9064 make_extra_commands
="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
9065 aros_target_arch
="amiga"
9066 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9067 aros_shared_default
="no"
9069 case "$target_cpu" in
9071 # Check whether --enable-amigaos_compliance was given.
9072 if test "${enable_amigaos_compliance+set}" = set; then :
9073 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
9077 aros_target_cpu
="m68k"
9078 aros_object_format
="m68kelf"
9079 aros_flavour
="standcompat"
9080 gcc_target_cpu
="m68000"
9081 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9082 aros_nowarn_flags
="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
9083 aros_config_cppflags
="$aros_config_cppflags -DNOLIBINLINE"
9084 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9085 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9086 if test "$optimization" = "default"; then
9087 optimization_level
="-Os"
9089 aros_config_aflags
="$aros_config_aflags"
9090 aros_target_strip_flags
="-R.comment --strip-debug"
9091 aros_nominal_width
=640
9092 aros_nominal_height
=256
9093 aros_nominal_depth
=2
9097 aros_flavour
="native"
9098 gcc_target_cpu
="ppc"
9101 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
9107 aros_target_arch
="mingw32"
9108 aros_shared_default
="no"
9109 aros_flavour
="emulation"
9110 aros_shared_cflags
=""
9111 need_crosstools
="yes"
9114 case "$target_cpu" in
9116 aros_target_cpu
="i386"
9117 aros_object_format
="elf_i386"
9118 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
9119 aros_isa_flags
="$""(ISA_X86_FLAGS)"
9120 aros_nominal_depth
=8
9121 gcc_target_cpu
="i386"
9123 kernel_tool_prefix
="i386-mingw32-"
9126 aros_target_cpu
="x86_64"
9127 aros_object_format
="elf_x86_64"
9128 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9129 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
9130 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9131 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9132 aros_nominal_depth
=8
9133 kernel_tool_prefix
="x86_64-w64-mingw32-"
9136 aros_target_cpu
="arm"
9137 aros_object_format
="armelf_aros"
9138 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
9139 aros_c_libs
="$aros_c_libs -laeabi"
9140 aros_nominal_depth
=8
9141 gcc_target_cpu
="arm"
9142 gcc_default_float_abi
="soft"
9143 kernel_tool_prefix
="arm-mingw32ce-"
9144 aros_nominal_width
=160
9145 aros_nominal_height
=160
9148 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
9151 if test $host_os = "cygwin"; then
9152 aros_kernel_cflags
="-mno-cygwin"
9156 aros_target_arch
="pp"
9157 aros_shared_default
="no"
9158 case "$target_cpu" in
9160 aros_target_cpu
="m68k"
9161 aros_object_format
="m68kelf"
9162 aros_flavour
="palmnative"
9163 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
9164 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9165 aros_nominal_width
=160
9166 aros_nominal_height
=160
9167 aros_nominal_depth
=1
9168 aros_target_ar_flags
="cru"
9169 aros_c_libs
="$aros_c_libs -lgcc1"
9170 aros_shared_default
=no
9171 aros_shared_cflags
="-fpic"
9172 aros_shared_aflags
=""
9173 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
9174 aros_kernel_ldflags
="-Wl,-rpath,./lib"
9175 aros_debug_cppflags
="$aros_messages_debug"
9176 aros_debug_cflags
="$aros_symbols_debug"
9177 aros_debug_aflags
=""
9178 aros_debug_ldflags
="$aros_symbols_debug"
9179 aros_mungwall_debug
="0"
9180 aros_modules_debug
="0"
9181 gcc_target_cpu
="mc68000"
9182 ignore_undefined_symbols
="-ius"
9185 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9191 aros_target_arch
="mac"
9192 aros_shared_default
="no"
9193 case "$target_cpu" in
9195 aros_target_cpu
="m68k"
9196 aros_object_format
="m68kelf"
9197 aros_flavour
="mac68knative"
9198 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
9199 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9200 aros_nominal_width
=512
9201 aros_nominal_height
=384
9202 aros_nominal_depth
=8
9203 aros_target_ar_flags
="cru"
9204 aros_c_libs
="$aros_c_libs -lgcc1"
9205 aros_shared_default
=no
9206 aros_shared_cflags
="-fpic"
9207 aros_shared_aflags
=""
9208 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
9209 aros_kernel_ldflags
="-Wl,-rpath,./lib"
9210 aros_debug_cppflags
="$aros_messages_debug"
9211 aros_debug_cflags
="$aros_symbols_debug"
9212 aros_debug_aflags
=""
9213 aros_debug_ldflags
="$aros_symbols_debug"
9214 aros_mungwall_debug
="0"
9215 aros_modules_debug
="0"
9216 gcc_target_cpu
="mc68000"
9217 ignore_undefined_symbols
="-ius"
9220 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9226 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
9230 #-----------------------------------------------------------------------------
9231 crosstools_guess
="yes"
9232 aros_target_toolchain
="no"
9233 aros_kernel_sysroot
=""
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9236 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9238 # Check whether --with-kernel-toolchain-prefix was given.
9239 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9240 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9244 $as_echo "$kernel_tool_prefix" >&6; }
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9247 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9249 # Check whether --with-elf-toolchain-prefix was given.
9250 if test "${with_elf_toolchain_prefix+set}" = set; then :
9251 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
9252 crosstools_guess
="no"
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9256 $as_echo "$elf_tool_prefix" >&6; }
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9259 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9261 # Check whether --with-aros-toolchain was given.
9262 if test "${with_aros_toolchain+set}" = set; then :
9263 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
9264 crosstools_guess
="no"
9267 if test "$aros_tool_prefix" = "yes" ; then
9268 aros_tool_prefix
=$aros_target_cpu-aros-
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9271 $as_echo "$aros_tool_prefix" >&6; }
9273 #-----------------------------------------------------------------------------
9274 # Checking if we should build crosstools..
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9276 $as_echo_n "checking whether to build crosstools... " >&6; }
9277 # Check whether --enable-crosstools was given.
9278 if test "${enable_crosstools+set}" = set; then :
9279 enableval
=$enable_crosstools; crosstools
="$enableval"
9281 crosstools
="$crosstools_guess"
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9285 $as_echo "$crosstools" >&6; }
9287 if test "${crosstools}" = "yes"; then
9288 if test "${crosstools_guess}" = "no"; then
9289 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9293 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
9294 aros_target_toolchain
="yes"
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9298 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9300 # Check whether --with-aros-toolchain-install was given.
9301 if test "${with_aros_toolchain_install+set}" = set; then :
9302 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
9305 if test "x$aros_toolchain_install" = "x"; then
9306 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9308 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
9309 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
9310 if test "$crosstools_guess" = "no" ; then
9311 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9312 aros_kernel_sysroot
="$""(TARGET_SYSROOT)"
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9317 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9319 #-----------------------------------------------------------------------------
9320 if test "$aros_toolchain" = "gnu" ; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9322 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9325 # Check whether --with-binutils-version was given.
9326 if test "${with_binutils_version+set}" = set; then :
9327 withval
=$with_binutils_version; use_binutils_version
="$withval"
9329 use_binutils_version
=""
9332 if test "$use_binutils_version" = ""; then
9333 target_binutils_version
="$default_binutils_version"
9335 target_binutils_version
="$use_binutils_version"
9337 if test "$aros_toolchain" = "gnu" ; then
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9339 $as_echo "$target_binutils_version" >&6; }
9343 # Helper to identify gcc version
9346 #-----------------------------------------------------------------------------
9347 if test "$aros_toolchain" = "gnu" ; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9349 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9352 # Check whether --with-gcc-version was given.
9353 if test "${with_gcc_version+set}" = set; then :
9354 withval
=$with_gcc_version; use_gcc_version
="$withval"
9359 if test "$use_gcc_version" = ""; then
9360 if test "${crosstools}" = "no"; then
9361 if test "x$aros_toolchain_install" != "x"; then
9363 target_gcc_version
=""
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9365 $as_echo_n "checking gcc version... " >&6; }
9366 if ${ax_cv_gcc_version+:} false
; then :
9367 $as_echo_n "(cached) " >&6
9370 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9371 if test "x$ax_cv_gcc_version" = "x"; then :
9373 ax_cv_gcc_version
=""
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9379 $as_echo "$ax_cv_gcc_version" >&6; }
9380 target_gcc_version
=$ax_cv_gcc_version
9385 if test "$use_gcc_version" = ""; then
9386 target_gcc_version
="$default_gcc_version"
9389 target_gcc_version
="$use_gcc_version"
9391 if test "$aros_toolchain" = "gnu" ; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9393 $as_echo "$target_gcc_version" >&6; }
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
9396 $as_echo_n "checking version string style... " >&6; }
9397 if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
9399 $as_echo "snapshot" >&6; }
9400 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'-' -f1)
9401 GCC_VERSION_MINOR
=-1
9402 GCC_VERSION_PATCH
=-1
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
9405 $as_echo "release" >&6; }
9406 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'.' -f1)
9407 GCC_VERSION_MINOR
=$
(echo $target_gcc_version | cut
-d'.' -f2)
9408 GCC_VERSION_PATCH
=$
(echo $target_gcc_version | cut
-d'.' -f3)
9411 gcc_fix_bitfields
="false"
9412 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9413 gcc_fix_bitfields
="true"
9415 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9416 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9417 gcc_fix_bitfields
="true"
9422 if test "$gcc_fix_bitfields" = "true" ; then
9423 case "$aros_target_cpu" in
9425 x86_isa_extra
="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9426 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9433 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9434 # Check whether --enable-objc was given.
9435 if test "${enable_objc+set}" = set; then :
9436 enableval
=$enable_objc; objc
="$enableval"
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9442 $as_echo "$objc" >&6; }
9443 if test "x$objc" = "xyes"; then
9446 objc_target
="no-objc"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9450 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9451 # Check whether --enable-java was given.
9452 if test "${enable_java+set}" = set; then :
9453 enableval
=$enable_java; java
="$enableval"
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9459 $as_echo "$java" >&6; }
9460 if test "x$java" != "xno"; then
9463 java_target
="no-java"
9466 spec_obj_format
="-m $aros_object_format"
9467 # Now process extra architecture-specific options.
9468 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9469 # as well as floating-point ABI.
9470 case "$aros_target_cpu" in
9472 aros_isa_targets
="M68K_ISA_TARGETS :=MC68020 MC68040"
9473 aros_isa_extra
="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9474 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"
9475 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"
9476 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"
9477 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"
9478 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"
9481 aros_isa_extra
="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9482 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9485 if test "$gcc_default_cpu" = ""; then
9486 gcc_default_cpu
="armv6"
9488 if test "$gcc_default_fpu" = ""; then
9489 gcc_default_fpu
="vfp"
9491 if test "$gcc_default_endian" = ""; then
9492 if test "$target_cpu" = "armeb"; then
9493 gcc_default_endian
="big-endian"
9495 gcc_default_endian
="little-endian"
9498 if test "$gcc_default_float_abi" = ""; then
9499 if test "$target_cpu" = "armhf"; then
9500 gcc_default_float_abi
="hard"
9502 gcc_default_float_abi
="softfp"
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9507 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9509 # Check whether --with-cpu was given.
9510 if test "${with_cpu+set}" = set; then :
9511 withval
=$with_cpu; aros_gcc_cpu
="$withval"
9513 aros_gcc_cpu
=$gcc_default_cpu
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9517 $as_echo "$aros_gcc_cpu" >&6; }
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9520 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9522 # Check whether --with-fpu was given.
9523 if test "${with_fpu+set}" = set; then :
9524 withval
=$with_fpu; aros_gcc_fpu
="$withval"
9526 aros_gcc_fpu
=$gcc_default_fpu
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9530 $as_echo "$aros_gcc_fpu" >&6; }
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9533 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9535 # Check whether --with-float was given.
9536 if test "${with_float+set}" = set; then :
9537 withval
=$with_float; aros_gcc_float_abi
="$withval"
9539 aros_gcc_float_abi
=$gcc_default_float_abi
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9543 $as_echo "$aros_gcc_float_abi" >&6; }
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9546 $as_echo_n "checking Which ARM mode to use... " >&6; }
9547 if test "$aros_target_cpu_mode" = ""; then
9548 aros_target_cpu_mode
="arm32"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9550 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9553 $as_echo "$aros_target_cpu_mode" >&6; }
9556 case "$aros_target_cpu_mode" in
9558 gcc_default_mode
="arm"
9559 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"
9562 as_fn_error $?
"ARM 64-bit mode is unsupported" "$LINENO" 5
9565 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9568 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9571 gcc_default_mode
="thumb"
9572 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9573 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"
9576 as_fn_error $?
"Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9580 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9581 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9582 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9585 aros_isa_extra
="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9586 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
9590 # Some architectures may need custom ELF specs.
9591 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
9592 elf_specs_in
=config
/${aros_object_format}-specs.
in
9594 elf_specs_in
=config
/elf-specs.
in
9597 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9598 # Since we override specs, we may need to put these defines there
9599 if test "$gcc_target_cpu" != ""; then
9600 gcc_target_cpu
="-D__${gcc_target_cpu}__"
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9604 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9606 # Check whether --with-portssources was given.
9607 if test "${with_portssources+set}" = set; then :
9608 withval
=$with_portssources; with_portssrcdir
=$withval
9610 with_portssrcdir
="default"
9613 if test "$with_portssrcdir" = "default"; then
9614 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9616 AROS_PORTSSRCDIR
="$with_portssrcdir"
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9619 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9622 $as_echo_n "checking which bootloader to use... " >&6; }
9624 # Check whether --with-bootloader was given.
9625 if test "${with_bootloader+set}" = set; then :
9626 withval
=$with_bootloader; target_bootloader
=$withval
9628 target_bootloader
=$target_bootloader
9631 if test "$target_bootloader" = "none"; then
9632 aros_target_bootloader
=""
9634 aros_target_bootloader
="$target_bootloader"
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9637 $as_echo "$target_bootloader" >&6; }
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9640 $as_echo_n "checking which icon-set to use... " >&6; }
9642 # Check whether --with-iconset was given.
9643 if test "${with_iconset+set}" = set; then :
9644 withval
=$with_iconset; target_iconset
=$withval
9646 target_iconset
="default"
9649 if test "$target_iconset" = "default"; then
9650 aros_target_iconset
="Gorilla"
9651 target_iconset
="default (Gorilla)"
9653 aros_target_iconset
="$target_iconset"
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9656 $as_echo "$target_iconset" >&6; }
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9659 $as_echo_n "checking which GUI Theme to use... " >&6; }
9661 # Check whether --with-theme was given.
9662 if test "${with_theme+set}" = set; then :
9663 withval
=$with_theme; target_guitheme
=$withval
9665 target_guitheme
="default"
9668 if test "$target_guitheme" = "default"; then
9669 aros_target_guitheme
="Ice"
9671 aros_target_guitheme
="$target_guitheme"
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9674 $as_echo "$aros_target_guitheme" >&6; }
9676 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9680 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9684 if test "$aros_host_cpu" == "x86_64" ; then
9685 if test "$aros_target_cpu" == "i386" ; then
9690 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9691 if test "$aros_host_arch" != "$aros_target_arch" ; then
9698 if test "$cross_compiling" = "no" ; then
9699 kernel_tool_prefix
=""
9700 if test "$host_cc_elf" = "yes" ; then
9705 if test "$kernel_tool_version" != ""; then
9706 kernel_tool_version
="-$kernel_tool_version"
9709 #######################################################################
9710 ## Compute what toolchains to use, and their paths ##
9711 #######################################################################
9713 # This takes, as input:
9714 # crosstools {yes,no}
9715 # kernel_tool_version {"",[version]}
9716 # target_tool_version {"",[version]}
9717 # kernel_tool_prefix {none,[some-arch-os-]}
9719 # target_tool_prefix ${aros_target_cpu}-aros-
9720 # aros_tool_prefix ${aros_target_cpu}-aros-
9723 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9724 # Where the 'kernel' binaries are located
9725 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9726 # Where the 'target' binaries are located
9727 # (not the symlink farm - that is aros_target_*!)
9730 # if crosstools then
9731 # if kernel_tools_prefix = "no-kernel-prefix-"
9732 # aros_kernel_* = crosstools cc paths
9733 # aros_kernel_cc = elf cc wrapper around crosstools cc
9735 # VALIDATE(${kernel_tools_prefix}*)
9736 # aros_kernel_* = ${kernel_tools_prefix}*
9737 # if ${kernel_tools_prefix}cc is an AROS gcc
9738 # aros_kernel_cc = ${kernel_tools_prefix}cc
9740 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9744 # orig_target_* = aros built crosstools
9745 # orig_target_cc = elf cc wrapper around crosstools cc
9747 # VALIDATE(${kernel_tools_prefix}*)
9749 # orig_target_* = aros_kernel_*
9750 # if aros_kernel_cc is an AROS gcc
9751 # orig_target_cc = aros_kernel_cc
9753 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9757 if test "$aros_toolchain" = "gnu" ; then
9758 target_tool_prefix
="${aros_target_cpu}-aros-"
9759 elif test "$aros_toolchain" = "llvm" ; then
9760 target_tool_prefix
="bin/"
9763 if test "$kernel_tool_prefix" != "" ; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9765 $as_echo_n "checking which kernel tools... " >&6; }
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9767 $as_echo "$kernel_tool_prefix" >&6; };
9770 if test "$kernel_tool_prefix" = "none" ; then
9771 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9772 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9775 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
9776 # Kernel tools required - find them
9777 # Note that 'normally', aros_kernel_* overrides will be
9778 # empty, unless specified in the per-arch sections above.
9780 if test "x$aros_kernel_cpp" = "x"; then
9781 aros_kernel_cpp
=${kernel_tool_prefix}${CPP}
9783 if test "${kernel_tool_version}" != ""; then
9784 if test "$aros_kernel_cpp" != ""; then
9785 ac_prog_args
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9786 ac_prog_cmd
=`expr "X$aros_kernel_cpp" : '^\S*'`
9787 aros_kernel_cpp
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9791 if test "$aros_kernel_cpp" = ""; then
9792 if test "$cross_compiling" = "yes" ; then
9793 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9794 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9798 $as_echo_n "(cached) " >&6
9800 case $aros_kernel_cpp in
9802 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9809 test -z "$as_dir" && as_dir
=.
9810 for ac_exec_ext
in '' $ac_executable_extensions; do
9811 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9812 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9824 if test -n "$aros_kernel_cpp"; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9826 $as_echo "$aros_kernel_cpp" >&6; }
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829 $as_echo "no" >&6; }
9835 if test "" = ""; then
9840 if test "$GCC" = "yes"; then
9841 aros_gcc_cpp
=`$CC -print-prog-name=$ac_tool_cpp`
9842 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9843 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9845 $as_echo_n "checking for $ac_word... " >&6; }
9846 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9847 $as_echo_n "(cached) " >&6
9849 case $aros_kernel_cpp in
9851 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9855 for as_dir
in `dirname $aros_gcc_cpp`
9858 test -z "$as_dir" && as_dir
=.
9859 for ac_exec_ext
in '' $ac_executable_extensions; do
9860 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9861 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9873 if test -n "$aros_kernel_cpp"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9875 $as_echo "$aros_kernel_cpp" >&6; }
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9883 if test "$aros_kernel_cpp" = ""; then
9884 for ac_prog
in $ac_tool_cpp
9886 # Extract the first word of "$ac_prog", so it can be a program name with args.
9887 set dummy
$ac_prog; ac_word
=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 $as_echo_n "checking for $ac_word... " >&6; }
9890 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9891 $as_echo_n "(cached) " >&6
9893 case $aros_kernel_cpp in
9895 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9902 test -z "$as_dir" && as_dir
=.
9903 for ac_exec_ext
in '' $ac_executable_extensions; do
9904 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9905 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9916 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9917 if test -n "$aros_kernel_cpp"; then
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9919 $as_echo "$aros_kernel_cpp" >&6; }
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9922 $as_echo "no" >&6; }
9926 test -n "$aros_kernel_cpp" && break
9933 ac_tool_optarg
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9934 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9935 set dummy
$aros_kernel_cpp; ac_word
=$2
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9937 $as_echo_n "checking for $ac_word... " >&6; }
9938 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9939 $as_echo_n "(cached) " >&6
9941 case $aros_kernel_cpp in
9943 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9950 test -z "$as_dir" && as_dir
=.
9951 for ac_exec_ext
in '' $ac_executable_extensions; do
9952 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9953 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9964 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9965 if test -n "$aros_kernel_cpp"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9967 $as_echo "$aros_kernel_cpp" >&6; }
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9974 aros_kernel_cpp
="$aros_kernel_cpp $ac_tool_optarg"
9978 if test "$aros_kernel_cpp" = ""; then
9981 if test "$aros_kernel_cpp" = "no"; then
9984 if test "$req_avail" = "no"; then
9985 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9988 if test "x$aros_kernel_cc" = "x"; then
9989 aros_kernel_cc
=${kernel_tool_prefix}${CC}
9991 if test "${kernel_tool_version}" != ""; then
9992 if test "$aros_kernel_cc" != ""; then
9993 ac_prog_args
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9994 ac_prog_cmd
=`expr "X$aros_kernel_cc" : '^\S*'`
9995 aros_kernel_cc
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9999 if test "$aros_kernel_cc" = ""; then
10000 if test "$cross_compiling" = "yes" ; then
10001 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
10002 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004 $as_echo_n "checking for $ac_word... " >&6; }
10005 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10006 $as_echo_n "(cached) " >&6
10008 case $aros_kernel_cc in
10010 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10014 for as_dir
in $PATH
10017 test -z "$as_dir" && as_dir
=.
10018 for ac_exec_ext
in '' $ac_executable_extensions; do
10019 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10020 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10031 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10032 if test -n "$aros_kernel_cc"; then
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10034 $as_echo "$aros_kernel_cc" >&6; }
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10037 $as_echo "no" >&6; }
10043 if test "" = ""; then
10048 if test "$GCC" = "yes"; then
10049 aros_gcc_cc
=`$CC -print-prog-name=$ac_tool_cc`
10050 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
10051 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10055 $as_echo_n "(cached) " >&6
10057 case $aros_kernel_cc in
10059 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10063 for as_dir
in `dirname $aros_gcc_cc`
10066 test -z "$as_dir" && as_dir
=.
10067 for ac_exec_ext
in '' $ac_executable_extensions; do
10068 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10069 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10080 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10081 if test -n "$aros_kernel_cc"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10083 $as_echo "$aros_kernel_cc" >&6; }
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10091 if test "$aros_kernel_cc" = ""; then
10092 for ac_prog
in $ac_tool_cc
10094 # Extract the first word of "$ac_prog", so it can be a program name with args.
10095 set dummy
$ac_prog; ac_word
=$2
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 $as_echo_n "checking for $ac_word... " >&6; }
10098 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10099 $as_echo_n "(cached) " >&6
10101 case $aros_kernel_cc in
10103 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10107 for as_dir
in $PATH
10110 test -z "$as_dir" && as_dir
=.
10111 for ac_exec_ext
in '' $ac_executable_extensions; do
10112 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10113 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10125 if test -n "$aros_kernel_cc"; then
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10127 $as_echo "$aros_kernel_cc" >&6; }
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10134 test -n "$aros_kernel_cc" && break
10141 ac_tool_optarg
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10142 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
10143 set dummy
$aros_kernel_cc; ac_word
=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
10147 $as_echo_n "(cached) " >&6
10149 case $aros_kernel_cc in
10151 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
10154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10155 for as_dir
in $PATH
10158 test -z "$as_dir" && as_dir
=.
10159 for ac_exec_ext
in '' $ac_executable_extensions; do
10160 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10161 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10172 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
10173 if test -n "$aros_kernel_cc"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10175 $as_echo "$aros_kernel_cc" >&6; }
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10182 aros_kernel_cc
="$aros_kernel_cc $ac_tool_optarg"
10186 if test "$aros_kernel_cc" = ""; then
10189 if test "$aros_kernel_cc" = "no"; then
10192 if test "$req_avail" = "no"; then
10193 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10196 if test "x$aros_kernel_cxx" = "x"; then
10197 aros_kernel_cxx
=${kernel_tool_prefix}${CXX}
10199 if test "${kernel_tool_version}" != ""; then
10200 if test "$aros_kernel_cxx" != ""; then
10201 ac_prog_args
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10202 ac_prog_cmd
=`expr "X$aros_kernel_cxx" : '^\S*'`
10203 aros_kernel_cxx
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10207 if test "$aros_kernel_cxx" = ""; then
10208 if test "$cross_compiling" = "yes" ; then
10209 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
10210 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10212 $as_echo_n "checking for $ac_word... " >&6; }
10213 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10214 $as_echo_n "(cached) " >&6
10216 case $aros_kernel_cxx in
10218 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10222 for as_dir
in $PATH
10225 test -z "$as_dir" && as_dir
=.
10226 for ac_exec_ext
in '' $ac_executable_extensions; do
10227 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10228 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10240 if test -n "$aros_kernel_cxx"; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10242 $as_echo "$aros_kernel_cxx" >&6; }
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; }
10251 if test "" = ""; then
10256 if test "$GCC" = "yes"; then
10257 aros_gcc_cxx
=`$CC -print-prog-name=$ac_tool_cxx`
10258 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10259 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10261 $as_echo_n "checking for $ac_word... " >&6; }
10262 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10263 $as_echo_n "(cached) " >&6
10265 case $aros_kernel_cxx in
10267 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10271 for as_dir
in `dirname $aros_gcc_cxx`
10274 test -z "$as_dir" && as_dir
=.
10275 for ac_exec_ext
in '' $ac_executable_extensions; do
10276 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10277 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10289 if test -n "$aros_kernel_cxx"; then
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10291 $as_echo "$aros_kernel_cxx" >&6; }
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10294 $as_echo "no" >&6; }
10299 if test "$aros_kernel_cxx" = ""; then
10300 for ac_prog
in $ac_tool_cxx
10302 # Extract the first word of "$ac_prog", so it can be a program name with args.
10303 set dummy
$ac_prog; ac_word
=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10307 $as_echo_n "(cached) " >&6
10309 case $aros_kernel_cxx in
10311 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10315 for as_dir
in $PATH
10318 test -z "$as_dir" && as_dir
=.
10319 for ac_exec_ext
in '' $ac_executable_extensions; do
10320 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10321 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10333 if test -n "$aros_kernel_cxx"; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10335 $as_echo "$aros_kernel_cxx" >&6; }
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10338 $as_echo "no" >&6; }
10342 test -n "$aros_kernel_cxx" && break
10349 ac_tool_optarg
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10350 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10351 set dummy
$aros_kernel_cxx; ac_word
=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10355 $as_echo_n "(cached) " >&6
10357 case $aros_kernel_cxx in
10359 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10363 for as_dir
in $PATH
10366 test -z "$as_dir" && as_dir
=.
10367 for ac_exec_ext
in '' $ac_executable_extensions; do
10368 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10369 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10380 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10381 if test -n "$aros_kernel_cxx"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10383 $as_echo "$aros_kernel_cxx" >&6; }
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10390 aros_kernel_cxx
="$aros_kernel_cxx $ac_tool_optarg"
10393 # If it's set, make sure it's really there
10394 if test "x$aros_kernel_cxx" != "x" ; then
10396 if test "$aros_kernel_cxx" = ""; then
10399 if test "$aros_kernel_cxx" = "no"; then
10402 if test "$req_avail" = "no"; then
10403 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10406 if test "x$aros_kernel_ld" = "x"; then
10407 aros_kernel_ld
=$aros_host_ld
10410 if test "$aros_kernel_ld" = ""; then
10411 if test "$cross_compiling" = "yes" ; then
10412 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10413 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10415 $as_echo_n "checking for $ac_word... " >&6; }
10416 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10417 $as_echo_n "(cached) " >&6
10419 case $aros_kernel_ld in
10421 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10425 for as_dir
in $PATH
10428 test -z "$as_dir" && as_dir
=.
10429 for ac_exec_ext
in '' $ac_executable_extensions; do
10430 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10431 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10442 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10443 if test -n "$aros_kernel_ld"; then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10445 $as_echo "$aros_kernel_ld" >&6; }
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448 $as_echo "no" >&6; }
10454 if test "" = ""; then
10459 if test "$GCC" = "yes"; then
10460 aros_gcc_ld
=`$CC -print-prog-name=$ac_tool_ld`
10461 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10462 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464 $as_echo_n "checking for $ac_word... " >&6; }
10465 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10466 $as_echo_n "(cached) " >&6
10468 case $aros_kernel_ld in
10470 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10474 for as_dir
in `dirname $aros_gcc_ld`
10477 test -z "$as_dir" && as_dir
=.
10478 for ac_exec_ext
in '' $ac_executable_extensions; do
10479 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10480 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10492 if test -n "$aros_kernel_ld"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10494 $as_echo "$aros_kernel_ld" >&6; }
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10502 if test "$aros_kernel_ld" = ""; then
10503 for ac_prog
in $ac_tool_ld
10505 # Extract the first word of "$ac_prog", so it can be a program name with args.
10506 set dummy
$ac_prog; ac_word
=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10510 $as_echo_n "(cached) " >&6
10512 case $aros_kernel_ld in
10514 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10518 for as_dir
in $PATH
10521 test -z "$as_dir" && as_dir
=.
10522 for ac_exec_ext
in '' $ac_executable_extensions; do
10523 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10524 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10536 if test -n "$aros_kernel_ld"; then
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10538 $as_echo "$aros_kernel_ld" >&6; }
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 $as_echo "no" >&6; }
10545 test -n "$aros_kernel_ld" && break
10552 ac_tool_optarg
=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10553 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10554 set dummy
$aros_kernel_ld; ac_word
=$2
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10556 $as_echo_n "checking for $ac_word... " >&6; }
10557 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10558 $as_echo_n "(cached) " >&6
10560 case $aros_kernel_ld in
10562 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10566 for as_dir
in $PATH
10569 test -z "$as_dir" && as_dir
=.
10570 for ac_exec_ext
in '' $ac_executable_extensions; do
10571 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10572 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10584 if test -n "$aros_kernel_ld"; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10586 $as_echo "$aros_kernel_ld" >&6; }
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589 $as_echo "no" >&6; }
10593 aros_kernel_ld
="$aros_kernel_ld $ac_tool_optarg"
10597 if test "$aros_kernel_ld" = ""; then
10600 if test "$aros_kernel_ld" = "no"; then
10603 if test "$req_avail" = "no"; then
10604 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10606 if test "x$aros_kernel_as" = "x"; then
10607 aros_kernel_as
=$aros_host_as
10608 if test "x$aros_kernel_as" = "x"; then
10609 aros_kernel_as
=${HOST_TOOLCHAIN_PREFIX}as
${HOST_TOOLCHAIN_SUFFIX}
10613 if test "$aros_kernel_as" = ""; then
10614 if test "$cross_compiling" = "yes" ; then
10615 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10616 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10620 $as_echo_n "(cached) " >&6
10622 case $aros_kernel_as in
10624 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10628 for as_dir
in $PATH
10631 test -z "$as_dir" && as_dir
=.
10632 for ac_exec_ext
in '' $ac_executable_extensions; do
10633 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10634 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10645 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10646 if test -n "$aros_kernel_as"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10648 $as_echo "$aros_kernel_as" >&6; }
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10657 if test "" = ""; then
10662 if test "$GCC" = "yes"; then
10663 aros_gcc_as
=`$CC -print-prog-name=$ac_tool_as`
10664 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10665 set dummy
`basename $aros_gcc_as`; ac_word
=$2
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667 $as_echo_n "checking for $ac_word... " >&6; }
10668 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10669 $as_echo_n "(cached) " >&6
10671 case $aros_kernel_as in
10673 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10677 for as_dir
in `dirname $aros_gcc_as`
10680 test -z "$as_dir" && as_dir
=.
10681 for ac_exec_ext
in '' $ac_executable_extensions; do
10682 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10683 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10694 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10695 if test -n "$aros_kernel_as"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10697 $as_echo "$aros_kernel_as" >&6; }
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10705 if test "$aros_kernel_as" = ""; then
10706 for ac_prog
in $ac_tool_as
10708 # Extract the first word of "$ac_prog", so it can be a program name with args.
10709 set dummy
$ac_prog; ac_word
=$2
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711 $as_echo_n "checking for $ac_word... " >&6; }
10712 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10713 $as_echo_n "(cached) " >&6
10715 case $aros_kernel_as in
10717 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10721 for as_dir
in $PATH
10724 test -z "$as_dir" && as_dir
=.
10725 for ac_exec_ext
in '' $ac_executable_extensions; do
10726 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10727 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10739 if test -n "$aros_kernel_as"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10741 $as_echo "$aros_kernel_as" >&6; }
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10748 test -n "$aros_kernel_as" && break
10755 ac_tool_optarg
=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10756 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10757 set dummy
$aros_kernel_as; ac_word
=$2
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759 $as_echo_n "checking for $ac_word... " >&6; }
10760 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10761 $as_echo_n "(cached) " >&6
10763 case $aros_kernel_as in
10765 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10769 for as_dir
in $PATH
10772 test -z "$as_dir" && as_dir
=.
10773 for ac_exec_ext
in '' $ac_executable_extensions; do
10774 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10775 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10787 if test -n "$aros_kernel_as"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10789 $as_echo "$aros_kernel_as" >&6; }
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792 $as_echo "no" >&6; }
10796 aros_kernel_as
="$aros_kernel_as $ac_tool_optarg"
10800 if test "$aros_kernel_as" = ""; then
10803 if test "$aros_kernel_as" = "no"; then
10806 if test "$req_avail" = "no"; then
10807 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
10809 if test "x$aros_kernel_ar" = "x"; then
10810 aros_kernel_ar
=$aros_host_ar
10813 if test "$aros_kernel_ar" = ""; then
10814 if test "$cross_compiling" = "yes" ; then
10815 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10816 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818 $as_echo_n "checking for $ac_word... " >&6; }
10819 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10820 $as_echo_n "(cached) " >&6
10822 case $aros_kernel_ar in
10824 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10828 for as_dir
in $PATH
10831 test -z "$as_dir" && as_dir
=.
10832 for ac_exec_ext
in '' $ac_executable_extensions; do
10833 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10834 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10846 if test -n "$aros_kernel_ar"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10848 $as_echo "$aros_kernel_ar" >&6; }
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10857 if test "" = ""; then
10862 if test "$GCC" = "yes"; then
10863 aros_gcc_ar
=`$CC -print-prog-name=$ac_tool_ar`
10864 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10865 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10867 $as_echo_n "checking for $ac_word... " >&6; }
10868 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10869 $as_echo_n "(cached) " >&6
10871 case $aros_kernel_ar in
10873 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10877 for as_dir
in `dirname $aros_gcc_ar`
10880 test -z "$as_dir" && as_dir
=.
10881 for ac_exec_ext
in '' $ac_executable_extensions; do
10882 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10883 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10894 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10895 if test -n "$aros_kernel_ar"; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10897 $as_echo "$aros_kernel_ar" >&6; }
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900 $as_echo "no" >&6; }
10905 if test "$aros_kernel_ar" = ""; then
10906 for ac_prog
in $ac_tool_ar
10908 # Extract the first word of "$ac_prog", so it can be a program name with args.
10909 set dummy
$ac_prog; ac_word
=$2
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911 $as_echo_n "checking for $ac_word... " >&6; }
10912 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10913 $as_echo_n "(cached) " >&6
10915 case $aros_kernel_ar in
10917 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10921 for as_dir
in $PATH
10924 test -z "$as_dir" && as_dir
=.
10925 for ac_exec_ext
in '' $ac_executable_extensions; do
10926 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10927 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10938 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10939 if test -n "$aros_kernel_ar"; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10941 $as_echo "$aros_kernel_ar" >&6; }
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944 $as_echo "no" >&6; }
10948 test -n "$aros_kernel_ar" && break
10955 ac_tool_optarg
=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10956 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10957 set dummy
$aros_kernel_ar; ac_word
=$2
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959 $as_echo_n "checking for $ac_word... " >&6; }
10960 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10961 $as_echo_n "(cached) " >&6
10963 case $aros_kernel_ar in
10965 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10969 for as_dir
in $PATH
10972 test -z "$as_dir" && as_dir
=.
10973 for ac_exec_ext
in '' $ac_executable_extensions; do
10974 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10975 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10987 if test -n "$aros_kernel_ar"; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10989 $as_echo "$aros_kernel_ar" >&6; }
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10996 aros_kernel_ar
="$aros_kernel_ar $ac_tool_optarg"
11000 if test "$aros_kernel_ar" = ""; then
11003 if test "$aros_kernel_ar" = "no"; then
11006 if test "$req_avail" = "no"; then
11007 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11009 if test "x$aros_kernel_ranlib" = "x"; then
11010 aros_kernel_ranlib
=$aros_host_ranlib
11013 if test "$aros_kernel_ranlib" = ""; then
11014 if test "$cross_compiling" = "yes" ; then
11015 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
11016 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11018 $as_echo_n "checking for $ac_word... " >&6; }
11019 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11020 $as_echo_n "(cached) " >&6
11022 case $aros_kernel_ranlib in
11024 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11028 for as_dir
in $PATH
11031 test -z "$as_dir" && as_dir
=.
11032 for ac_exec_ext
in '' $ac_executable_extensions; do
11033 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11034 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11046 if test -n "$aros_kernel_ranlib"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11048 $as_echo "$aros_kernel_ranlib" >&6; }
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051 $as_echo "no" >&6; }
11057 if test "" = ""; then
11058 ac_tool_ranlib
=ranlib
11062 if test "$GCC" = "yes"; then
11063 aros_gcc_ranlib
=`$CC -print-prog-name=$ac_tool_ranlib`
11064 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11065 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11067 $as_echo_n "checking for $ac_word... " >&6; }
11068 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11069 $as_echo_n "(cached) " >&6
11071 case $aros_kernel_ranlib in
11073 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11077 for as_dir
in `dirname $aros_gcc_ranlib`
11080 test -z "$as_dir" && as_dir
=.
11081 for ac_exec_ext
in '' $ac_executable_extensions; do
11082 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11083 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11094 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11095 if test -n "$aros_kernel_ranlib"; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11097 $as_echo "$aros_kernel_ranlib" >&6; }
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100 $as_echo "no" >&6; }
11105 if test "$aros_kernel_ranlib" = ""; then
11106 for ac_prog
in $ac_tool_ranlib
11108 # Extract the first word of "$ac_prog", so it can be a program name with args.
11109 set dummy
$ac_prog; ac_word
=$2
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11111 $as_echo_n "checking for $ac_word... " >&6; }
11112 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11113 $as_echo_n "(cached) " >&6
11115 case $aros_kernel_ranlib in
11117 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11121 for as_dir
in $PATH
11124 test -z "$as_dir" && as_dir
=.
11125 for ac_exec_ext
in '' $ac_executable_extensions; do
11126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11127 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11138 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11139 if test -n "$aros_kernel_ranlib"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11141 $as_echo "$aros_kernel_ranlib" >&6; }
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 $as_echo "no" >&6; }
11148 test -n "$aros_kernel_ranlib" && break
11155 ac_tool_optarg
=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11156 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
11157 set dummy
$aros_kernel_ranlib; ac_word
=$2
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11159 $as_echo_n "checking for $ac_word... " >&6; }
11160 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
11161 $as_echo_n "(cached) " >&6
11163 case $aros_kernel_ranlib in
11165 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
11168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11169 for as_dir
in $PATH
11172 test -z "$as_dir" && as_dir
=.
11173 for ac_exec_ext
in '' $ac_executable_extensions; do
11174 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11175 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
11176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11186 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
11187 if test -n "$aros_kernel_ranlib"; then
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11189 $as_echo "$aros_kernel_ranlib" >&6; }
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192 $as_echo "no" >&6; }
11196 aros_kernel_ranlib
="$aros_kernel_ranlib $ac_tool_optarg"
11200 if test "$aros_kernel_ranlib" = ""; then
11203 if test "$aros_kernel_ranlib" = "no"; then
11206 if test "$req_avail" = "no"; then
11207 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11209 if test "x$aros_kernel_nm" = "x"; then
11210 aros_kernel_nm
=$aros_host_nm
11211 if test "x$aros_kernel_nm" = "x"; then
11212 aros_kernel_nm
=${HOST_TOOLCHAIN_PREFIX}nm
${HOST_TOOLCHAIN_SUFFIX}
11216 if test "$aros_kernel_nm" = ""; then
11217 if test "$cross_compiling" = "yes" ; then
11218 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
11219 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221 $as_echo_n "checking for $ac_word... " >&6; }
11222 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11223 $as_echo_n "(cached) " >&6
11225 case $aros_kernel_nm in
11227 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11231 for as_dir
in $PATH
11234 test -z "$as_dir" && as_dir
=.
11235 for ac_exec_ext
in '' $ac_executable_extensions; do
11236 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11237 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11248 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11249 if test -n "$aros_kernel_nm"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11251 $as_echo "$aros_kernel_nm" >&6; }
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11260 if test "" = ""; then
11265 if test "$GCC" = "yes"; then
11266 aros_gcc_nm
=`$CC -print-prog-name=$ac_tool_nm`
11267 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11268 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11270 $as_echo_n "checking for $ac_word... " >&6; }
11271 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11272 $as_echo_n "(cached) " >&6
11274 case $aros_kernel_nm in
11276 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11280 for as_dir
in `dirname $aros_gcc_nm`
11283 test -z "$as_dir" && as_dir
=.
11284 for ac_exec_ext
in '' $ac_executable_extensions; do
11285 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11286 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11297 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11298 if test -n "$aros_kernel_nm"; then
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11300 $as_echo "$aros_kernel_nm" >&6; }
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; }
11308 if test "$aros_kernel_nm" = ""; then
11309 for ac_prog
in $ac_tool_nm
11311 # Extract the first word of "$ac_prog", so it can be a program name with args.
11312 set dummy
$ac_prog; ac_word
=$2
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11314 $as_echo_n "checking for $ac_word... " >&6; }
11315 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11316 $as_echo_n "(cached) " >&6
11318 case $aros_kernel_nm in
11320 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11324 for as_dir
in $PATH
11327 test -z "$as_dir" && as_dir
=.
11328 for ac_exec_ext
in '' $ac_executable_extensions; do
11329 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11330 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11342 if test -n "$aros_kernel_nm"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11344 $as_echo "$aros_kernel_nm" >&6; }
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11351 test -n "$aros_kernel_nm" && break
11358 ac_tool_optarg
=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11359 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11360 set dummy
$aros_kernel_nm; ac_word
=$2
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11362 $as_echo_n "checking for $ac_word... " >&6; }
11363 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11364 $as_echo_n "(cached) " >&6
11366 case $aros_kernel_nm in
11368 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11372 for as_dir
in $PATH
11375 test -z "$as_dir" && as_dir
=.
11376 for ac_exec_ext
in '' $ac_executable_extensions; do
11377 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11378 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11389 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11390 if test -n "$aros_kernel_nm"; then
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11392 $as_echo "$aros_kernel_nm" >&6; }
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395 $as_echo "no" >&6; }
11399 aros_kernel_nm
="$aros_kernel_nm $ac_tool_optarg"
11403 if test "$aros_kernel_nm" = ""; then
11406 if test "$aros_kernel_nm" = "no"; then
11409 if test "$req_avail" = "no"; then
11410 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11413 if test "$aros_kernel_strip" = ""; then
11414 if test "$cross_compiling" = "yes" ; then
11415 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11416 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418 $as_echo_n "checking for $ac_word... " >&6; }
11419 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11420 $as_echo_n "(cached) " >&6
11422 case $aros_kernel_strip in
11424 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11428 for as_dir
in $PATH
11431 test -z "$as_dir" && as_dir
=.
11432 for ac_exec_ext
in '' $ac_executable_extensions; do
11433 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11434 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11445 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11446 if test -n "$aros_kernel_strip"; then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11448 $as_echo "$aros_kernel_strip" >&6; }
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 $as_echo "no" >&6; }
11457 if test "" = ""; then
11458 ac_tool_strip
=strip
11462 if test "$GCC" = "yes"; then
11463 aros_gcc_strip
=`$CC -print-prog-name=$ac_tool_strip`
11464 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11465 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11469 $as_echo_n "(cached) " >&6
11471 case $aros_kernel_strip in
11473 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11477 for as_dir
in `dirname $aros_gcc_strip`
11480 test -z "$as_dir" && as_dir
=.
11481 for ac_exec_ext
in '' $ac_executable_extensions; do
11482 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11495 if test -n "$aros_kernel_strip"; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11497 $as_echo "$aros_kernel_strip" >&6; }
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 $as_echo "no" >&6; }
11505 if test "$aros_kernel_strip" = ""; then
11506 for ac_prog
in $ac_tool_strip
11508 # Extract the first word of "$ac_prog", so it can be a program name with args.
11509 set dummy
$ac_prog; ac_word
=$2
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511 $as_echo_n "checking for $ac_word... " >&6; }
11512 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11513 $as_echo_n "(cached) " >&6
11515 case $aros_kernel_strip in
11517 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11521 for as_dir
in $PATH
11524 test -z "$as_dir" && as_dir
=.
11525 for ac_exec_ext
in '' $ac_executable_extensions; do
11526 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11527 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11539 if test -n "$aros_kernel_strip"; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11541 $as_echo "$aros_kernel_strip" >&6; }
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11548 test -n "$aros_kernel_strip" && break
11555 ac_tool_optarg
=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11556 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11557 set dummy
$aros_kernel_strip; ac_word
=$2
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559 $as_echo_n "checking for $ac_word... " >&6; }
11560 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11561 $as_echo_n "(cached) " >&6
11563 case $aros_kernel_strip in
11565 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11569 for as_dir
in $PATH
11572 test -z "$as_dir" && as_dir
=.
11573 for ac_exec_ext
in '' $ac_executable_extensions; do
11574 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11575 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11586 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11587 if test -n "$aros_kernel_strip"; then
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11589 $as_echo "$aros_kernel_strip" >&6; }
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 $as_echo "no" >&6; }
11596 aros_kernel_strip
="$aros_kernel_strip $ac_tool_optarg"
11600 if test "$aros_kernel_strip" = ""; then
11603 if test "$aros_kernel_strip" = "no"; then
11606 if test "$req_avail" = "no"; then
11607 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11610 # Objcopy and objdump are not required for the kernel
11611 # toolchain on many architectures.
11612 # So we'll look for them, but not make them strictly required.
11613 if test "x$aros_kernel_objcopy" = "x"; then
11614 aros_kernel_objcopy
=$aros_host_objcopy
11615 if test "x$aros_kernel_objcopy" = "x"; then
11616 aros_kernel_objcopy
=${HOST_TOOLCHAIN_PREFIX}objcopy
${HOST_TOOLCHAIN_SUFFIX}
11620 if test "$aros_kernel_objcopy" = ""; then
11621 if test "$cross_compiling" = "yes" ; then
11622 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11623 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625 $as_echo_n "checking for $ac_word... " >&6; }
11626 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11627 $as_echo_n "(cached) " >&6
11629 case $aros_kernel_objcopy in
11631 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11635 for as_dir
in $PATH
11638 test -z "$as_dir" && as_dir
=.
11639 for ac_exec_ext
in '' $ac_executable_extensions; do
11640 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11641 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11652 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11653 if test -n "$aros_kernel_objcopy"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11655 $as_echo "$aros_kernel_objcopy" >&6; }
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11664 if test "" = ""; then
11665 ac_tool_objcopy
=objcopy
11669 if test "$GCC" = "yes"; then
11670 aros_gcc_objcopy
=`$CC -print-prog-name=$ac_tool_objcopy`
11671 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11672 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 $as_echo_n "checking for $ac_word... " >&6; }
11675 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11676 $as_echo_n "(cached) " >&6
11678 case $aros_kernel_objcopy in
11680 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11684 for as_dir
in `dirname $aros_gcc_objcopy`
11687 test -z "$as_dir" && as_dir
=.
11688 for ac_exec_ext
in '' $ac_executable_extensions; do
11689 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11690 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11702 if test -n "$aros_kernel_objcopy"; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11704 $as_echo "$aros_kernel_objcopy" >&6; }
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11712 if test "$aros_kernel_objcopy" = ""; then
11713 for ac_prog
in $ac_tool_objcopy
11715 # Extract the first word of "$ac_prog", so it can be a program name with args.
11716 set dummy
$ac_prog; ac_word
=$2
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718 $as_echo_n "checking for $ac_word... " >&6; }
11719 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11720 $as_echo_n "(cached) " >&6
11722 case $aros_kernel_objcopy in
11724 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11728 for as_dir
in $PATH
11731 test -z "$as_dir" && as_dir
=.
11732 for ac_exec_ext
in '' $ac_executable_extensions; do
11733 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11734 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11746 if test -n "$aros_kernel_objcopy"; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11748 $as_echo "$aros_kernel_objcopy" >&6; }
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11755 test -n "$aros_kernel_objcopy" && break
11762 ac_tool_optarg
=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11763 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11764 set dummy
$aros_kernel_objcopy; ac_word
=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11768 $as_echo_n "(cached) " >&6
11770 case $aros_kernel_objcopy in
11772 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11776 for as_dir
in $PATH
11779 test -z "$as_dir" && as_dir
=.
11780 for ac_exec_ext
in '' $ac_executable_extensions; do
11781 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11782 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11794 if test -n "$aros_kernel_objcopy"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11796 $as_echo "$aros_kernel_objcopy" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11803 aros_kernel_objcopy
="$aros_kernel_objcopy $ac_tool_optarg"
11806 if test "x$aros_kernel_objdump" = "x"; then
11807 aros_kernel_objdump
=$aros_host_objdump
11808 if test "x$aros_kernel_objdump" = "x"; then
11809 aros_kernel_objdump
=${HOST_TOOLCHAIN_PREFIX}objdump
${HOST_TOOLCHAIN_SUFFIX}
11813 if test "$aros_kernel_objdump" = ""; then
11814 if test "$cross_compiling" = "yes" ; then
11815 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11816 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11818 $as_echo_n "checking for $ac_word... " >&6; }
11819 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11820 $as_echo_n "(cached) " >&6
11822 case $aros_kernel_objdump in
11824 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11828 for as_dir
in $PATH
11831 test -z "$as_dir" && as_dir
=.
11832 for ac_exec_ext
in '' $ac_executable_extensions; do
11833 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11834 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11846 if test -n "$aros_kernel_objdump"; then
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11848 $as_echo "$aros_kernel_objdump" >&6; }
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11857 if test "" = ""; then
11858 ac_tool_objdump
=objdump
11862 if test "$GCC" = "yes"; then
11863 aros_gcc_objdump
=`$CC -print-prog-name=$ac_tool_objdump`
11864 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11865 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867 $as_echo_n "checking for $ac_word... " >&6; }
11868 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11869 $as_echo_n "(cached) " >&6
11871 case $aros_kernel_objdump in
11873 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11877 for as_dir
in `dirname $aros_gcc_objdump`
11880 test -z "$as_dir" && as_dir
=.
11881 for ac_exec_ext
in '' $ac_executable_extensions; do
11882 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11883 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11895 if test -n "$aros_kernel_objdump"; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11897 $as_echo "$aros_kernel_objdump" >&6; }
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11905 if test "$aros_kernel_objdump" = ""; then
11906 for ac_prog
in $ac_tool_objdump
11908 # Extract the first word of "$ac_prog", so it can be a program name with args.
11909 set dummy
$ac_prog; ac_word
=$2
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911 $as_echo_n "checking for $ac_word... " >&6; }
11912 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11913 $as_echo_n "(cached) " >&6
11915 case $aros_kernel_objdump in
11917 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11921 for as_dir
in $PATH
11924 test -z "$as_dir" && as_dir
=.
11925 for ac_exec_ext
in '' $ac_executable_extensions; do
11926 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11927 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11938 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11939 if test -n "$aros_kernel_objdump"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11941 $as_echo "$aros_kernel_objdump" >&6; }
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11948 test -n "$aros_kernel_objdump" && break
11955 ac_tool_optarg
=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11956 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11957 set dummy
$aros_kernel_objdump; ac_word
=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11961 $as_echo_n "(cached) " >&6
11963 case $aros_kernel_objdump in
11965 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11969 for as_dir
in $PATH
11972 test -z "$as_dir" && as_dir
=.
11973 for ac_exec_ext
in '' $ac_executable_extensions; do
11974 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11975 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11986 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11987 if test -n "$aros_kernel_objdump"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11989 $as_echo "$aros_kernel_objdump" >&6; }
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11996 aros_kernel_objdump
="$aros_kernel_objdump $ac_tool_optarg"
11999 if test "x${crosstools}" != "xyes" ; then
12001 if test "$aros_kernel_objcopy" = ""; then
12004 if test "$aros_kernel_objcopy" = "no"; then
12007 if test "$req_avail" = "no"; then
12008 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12011 if test "$aros_kernel_objdump" = ""; then
12014 if test "$aros_kernel_objdump" = "no"; then
12017 if test "$req_avail" = "no"; then
12018 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
12025 $as_echo_n "checking which target tools to use... " >&6; }
12026 if test "$aros_target_toolchain" = "yes"; then
12027 if test "$aros_toolchain" = "llvm" ; then
12030 msg_result
=$target_tool_prefix
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
12033 $as_echo "$msg_result" >&6; }
12034 # We are building AROS crosstools
12035 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
12036 orig_target_cc
="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
12037 orig_target_cxx
="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
12038 orig_target_cpp
="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
12039 orig_target_ld
="${tmp_tool_prefix}${toolchain_ld}"
12040 orig_target_as
="${tmp_tool_prefix}${toolchain_as}"
12041 orig_target_ar
="${tmp_tool_prefix}${toolchain_ar}"
12042 orig_target_ranlib
="${tmp_tool_prefix}${toolchain_ranlib}"
12043 orig_target_nm
="${tmp_tool_prefix}${toolchain_nm}"
12044 orig_target_strip
="${tmp_tool_prefix}${toolchain_strip}"
12045 orig_target_objcopy
="${tmp_tool_prefix}${toolchain_objcopy}"
12046 orig_target_objdump
="${tmp_tool_prefix}${toolchain_objdump}"
12048 # Determine whether AROS or ELF tools should be used
12049 if test "$aros_tool_prefix" = "none"; then
12050 aros_tool_prefix
="${elf_tool_prefix}"
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
12054 $as_echo "$aros_tool_prefix" >&6; }
12055 # We are *not* building AROS crosstools - use the AROS or ELF tools
12057 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
12058 if test "$cross_compiling" = "yes" ; then
12059 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
12060 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12064 $as_echo_n "(cached) " >&6
12066 case $orig_target_cpp in
12068 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12072 for as_dir
in $PATH
12075 test -z "$as_dir" && as_dir
=.
12076 for ac_exec_ext
in '' $ac_executable_extensions; do
12077 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12078 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12090 if test -n "$orig_target_cpp"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12092 $as_echo "$orig_target_cpp" >&6; }
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12101 if test "" = ""; then
12106 if test "$GCC" = "yes"; then
12107 aros_gcc_cpp
=`$CC -print-prog-name=$ac_tool_cpp`
12108 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
12109 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12111 $as_echo_n "checking for $ac_word... " >&6; }
12112 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12113 $as_echo_n "(cached) " >&6
12115 case $orig_target_cpp in
12117 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12121 for as_dir
in `dirname $aros_gcc_cpp`
12124 test -z "$as_dir" && as_dir
=.
12125 for ac_exec_ext
in '' $ac_executable_extensions; do
12126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12127 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12138 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12139 if test -n "$orig_target_cpp"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12141 $as_echo "$orig_target_cpp" >&6; }
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12149 if test "$orig_target_cpp" = ""; then
12150 for ac_prog
in $ac_tool_cpp
12152 # Extract the first word of "$ac_prog", so it can be a program name with args.
12153 set dummy
$ac_prog; ac_word
=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155 $as_echo_n "checking for $ac_word... " >&6; }
12156 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12157 $as_echo_n "(cached) " >&6
12159 case $orig_target_cpp in
12161 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12165 for as_dir
in $PATH
12168 test -z "$as_dir" && as_dir
=.
12169 for ac_exec_ext
in '' $ac_executable_extensions; do
12170 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12171 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12182 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12183 if test -n "$orig_target_cpp"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12185 $as_echo "$orig_target_cpp" >&6; }
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12192 test -n "$orig_target_cpp" && break
12199 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
12200 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
12201 set dummy
${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word
=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if ${ac_cv_path_orig_target_cpp+:} false
; then :
12205 $as_echo_n "(cached) " >&6
12207 case $orig_target_cpp in
12209 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
12212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12213 for as_dir
in $PATH
12216 test -z "$as_dir" && as_dir
=.
12217 for ac_exec_ext
in '' $ac_executable_extensions; do
12218 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12219 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12230 orig_target_cpp
=$ac_cv_path_orig_target_cpp
12231 if test -n "$orig_target_cpp"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12233 $as_echo "$orig_target_cpp" >&6; }
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12240 orig_target_cpp
="$orig_target_cpp $ac_tool_optarg"
12244 if test "$orig_target_cpp" = ""; then
12247 if test "$orig_target_cpp" = "no"; then
12250 if test "$req_avail" = "no"; then
12251 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
12254 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
12255 if test "$cross_compiling" = "yes" ; then
12256 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12257 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259 $as_echo_n "checking for $ac_word... " >&6; }
12260 if ${ac_cv_path_orig_target_cc+:} false
; then :
12261 $as_echo_n "(cached) " >&6
12263 case $orig_target_cc in
12265 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12269 for as_dir
in $PATH
12272 test -z "$as_dir" && as_dir
=.
12273 for ac_exec_ext
in '' $ac_executable_extensions; do
12274 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12275 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12286 orig_target_cc
=$ac_cv_path_orig_target_cc
12287 if test -n "$orig_target_cc"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12289 $as_echo "$orig_target_cc" >&6; }
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12298 if test "" = ""; then
12303 if test "$GCC" = "yes"; then
12304 aros_gcc_gcc
=`$CC -print-prog-name=$ac_tool_gcc`
12305 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12306 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if ${ac_cv_path_orig_target_cc+:} false
; then :
12310 $as_echo_n "(cached) " >&6
12312 case $orig_target_cc in
12314 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12318 for as_dir
in `dirname $aros_gcc_gcc`
12321 test -z "$as_dir" && as_dir
=.
12322 for ac_exec_ext
in '' $ac_executable_extensions; do
12323 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12324 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12335 orig_target_cc
=$ac_cv_path_orig_target_cc
12336 if test -n "$orig_target_cc"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12338 $as_echo "$orig_target_cc" >&6; }
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12346 if test "$orig_target_cc" = ""; then
12347 for ac_prog
in $ac_tool_gcc
12349 # Extract the first word of "$ac_prog", so it can be a program name with args.
12350 set dummy
$ac_prog; ac_word
=$2
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352 $as_echo_n "checking for $ac_word... " >&6; }
12353 if ${ac_cv_path_orig_target_cc+:} false
; then :
12354 $as_echo_n "(cached) " >&6
12356 case $orig_target_cc in
12358 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12362 for as_dir
in $PATH
12365 test -z "$as_dir" && as_dir
=.
12366 for ac_exec_ext
in '' $ac_executable_extensions; do
12367 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12368 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12379 orig_target_cc
=$ac_cv_path_orig_target_cc
12380 if test -n "$orig_target_cc"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12382 $as_echo "$orig_target_cc" >&6; }
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12389 test -n "$orig_target_cc" && break
12396 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12397 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12398 set dummy
${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word
=$2
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12400 $as_echo_n "checking for $ac_word... " >&6; }
12401 if ${ac_cv_path_orig_target_cc+:} false
; then :
12402 $as_echo_n "(cached) " >&6
12404 case $orig_target_cc in
12406 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12410 for as_dir
in $PATH
12413 test -z "$as_dir" && as_dir
=.
12414 for ac_exec_ext
in '' $ac_executable_extensions; do
12415 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12416 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427 orig_target_cc
=$ac_cv_path_orig_target_cc
12428 if test -n "$orig_target_cc"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12430 $as_echo "$orig_target_cc" >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12437 orig_target_cc
="$orig_target_cc $ac_tool_optarg"
12441 if test "$orig_target_cc" = ""; then
12444 if test "$orig_target_cc" = "no"; then
12447 if test "$req_avail" = "no"; then
12448 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12451 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12452 if test "$cross_compiling" = "yes" ; then
12453 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12454 set dummy
${target_tool_prefix}g
++; ac_word
=$2
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12458 $as_echo_n "(cached) " >&6
12460 case $orig_target_cxx in
12462 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12466 for as_dir
in $PATH
12469 test -z "$as_dir" && as_dir
=.
12470 for ac_exec_ext
in '' $ac_executable_extensions; do
12471 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12472 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12483 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12484 if test -n "$orig_target_cxx"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12486 $as_echo "$orig_target_cxx" >&6; }
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489 $as_echo "no" >&6; }
12495 if test "" = ""; then
12500 if test "$GCC" = "yes"; then
12501 aros_gcc_g
++=`$CC -print-prog-name=$ac_tool_g++`
12502 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12503 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12505 $as_echo_n "checking for $ac_word... " >&6; }
12506 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12507 $as_echo_n "(cached) " >&6
12509 case $orig_target_cxx in
12511 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12515 for as_dir
in `dirname $aros_gcc_g++`
12518 test -z "$as_dir" && as_dir
=.
12519 for ac_exec_ext
in '' $ac_executable_extensions; do
12520 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12521 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12533 if test -n "$orig_target_cxx"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12535 $as_echo "$orig_target_cxx" >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12543 if test "$orig_target_cxx" = ""; then
12544 for ac_prog
in $ac_tool_g++
12546 # Extract the first word of "$ac_prog", so it can be a program name with args.
12547 set dummy
$ac_prog; ac_word
=$2
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549 $as_echo_n "checking for $ac_word... " >&6; }
12550 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12551 $as_echo_n "(cached) " >&6
12553 case $orig_target_cxx in
12555 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12559 for as_dir
in $PATH
12562 test -z "$as_dir" && as_dir
=.
12563 for ac_exec_ext
in '' $ac_executable_extensions; do
12564 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12577 if test -n "$orig_target_cxx"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12579 $as_echo "$orig_target_cxx" >&6; }
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12586 test -n "$orig_target_cxx" && break
12593 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12594 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12595 set dummy
${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word
=$2
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597 $as_echo_n "checking for $ac_word... " >&6; }
12598 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12599 $as_echo_n "(cached) " >&6
12601 case $orig_target_cxx in
12603 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12607 for as_dir
in $PATH
12610 test -z "$as_dir" && as_dir
=.
12611 for ac_exec_ext
in '' $ac_executable_extensions; do
12612 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12613 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12624 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12625 if test -n "$orig_target_cxx"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12627 $as_echo "$orig_target_cxx" >&6; }
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12634 orig_target_cxx
="$orig_target_cxx $ac_tool_optarg"
12638 if test "$orig_target_cxx" = ""; then
12641 if test "$orig_target_cxx" = "no"; then
12644 if test "$req_avail" = "no"; then
12645 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12648 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12649 if test "$cross_compiling" = "yes" ; then
12650 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12651 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653 $as_echo_n "checking for $ac_word... " >&6; }
12654 if ${ac_cv_path_orig_target_ld+:} false
; then :
12655 $as_echo_n "(cached) " >&6
12657 case $orig_target_ld in
12659 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12663 for as_dir
in $PATH
12666 test -z "$as_dir" && as_dir
=.
12667 for ac_exec_ext
in '' $ac_executable_extensions; do
12668 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12669 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12680 orig_target_ld
=$ac_cv_path_orig_target_ld
12681 if test -n "$orig_target_ld"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12683 $as_echo "$orig_target_ld" >&6; }
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12692 if test "" = ""; then
12697 if test "$GCC" = "yes"; then
12698 aros_gcc_gcc
=`$CC -print-prog-name=$ac_tool_gcc`
12699 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12700 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12702 $as_echo_n "checking for $ac_word... " >&6; }
12703 if ${ac_cv_path_orig_target_ld+:} false
; then :
12704 $as_echo_n "(cached) " >&6
12706 case $orig_target_ld in
12708 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12712 for as_dir
in `dirname $aros_gcc_gcc`
12715 test -z "$as_dir" && as_dir
=.
12716 for ac_exec_ext
in '' $ac_executable_extensions; do
12717 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12718 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12729 orig_target_ld
=$ac_cv_path_orig_target_ld
12730 if test -n "$orig_target_ld"; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12732 $as_echo "$orig_target_ld" >&6; }
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12740 if test "$orig_target_ld" = ""; then
12741 for ac_prog
in $ac_tool_gcc
12743 # Extract the first word of "$ac_prog", so it can be a program name with args.
12744 set dummy
$ac_prog; ac_word
=$2
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746 $as_echo_n "checking for $ac_word... " >&6; }
12747 if ${ac_cv_path_orig_target_ld+:} false
; then :
12748 $as_echo_n "(cached) " >&6
12750 case $orig_target_ld in
12752 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12756 for as_dir
in $PATH
12759 test -z "$as_dir" && as_dir
=.
12760 for ac_exec_ext
in '' $ac_executable_extensions; do
12761 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12762 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12773 orig_target_ld
=$ac_cv_path_orig_target_ld
12774 if test -n "$orig_target_ld"; then
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12776 $as_echo "$orig_target_ld" >&6; }
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779 $as_echo "no" >&6; }
12783 test -n "$orig_target_ld" && break
12790 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12791 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12792 set dummy
${aros_tool_prefix}${toolchain_ld}; ac_word
=$2
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12794 $as_echo_n "checking for $ac_word... " >&6; }
12795 if ${ac_cv_path_orig_target_ld+:} false
; then :
12796 $as_echo_n "(cached) " >&6
12798 case $orig_target_ld in
12800 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12804 for as_dir
in $PATH
12807 test -z "$as_dir" && as_dir
=.
12808 for ac_exec_ext
in '' $ac_executable_extensions; do
12809 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12810 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12821 orig_target_ld
=$ac_cv_path_orig_target_ld
12822 if test -n "$orig_target_ld"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12824 $as_echo "$orig_target_ld" >&6; }
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12831 orig_target_ld
="$orig_target_ld $ac_tool_optarg"
12835 if test "$orig_target_ld" = ""; then
12838 if test "$orig_target_ld" = "no"; then
12841 if test "$req_avail" = "no"; then
12842 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12845 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12846 if test "$cross_compiling" = "yes" ; then
12847 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12848 set dummy
${target_tool_prefix}as
; ac_word
=$2
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850 $as_echo_n "checking for $ac_word... " >&6; }
12851 if ${ac_cv_path_orig_target_as+:} false
; then :
12852 $as_echo_n "(cached) " >&6
12854 case $orig_target_as in
12856 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12860 for as_dir
in $PATH
12863 test -z "$as_dir" && as_dir
=.
12864 for ac_exec_ext
in '' $ac_executable_extensions; do
12865 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12866 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12877 orig_target_as
=$ac_cv_path_orig_target_as
12878 if test -n "$orig_target_as"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12880 $as_echo "$orig_target_as" >&6; }
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12889 if test "" = ""; then
12894 if test "$GCC" = "yes"; then
12895 aros_gcc_as
=`$CC -print-prog-name=$ac_tool_as`
12896 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12897 set dummy
`basename $aros_gcc_as`; ac_word
=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899 $as_echo_n "checking for $ac_word... " >&6; }
12900 if ${ac_cv_path_orig_target_as+:} false
; then :
12901 $as_echo_n "(cached) " >&6
12903 case $orig_target_as in
12905 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12909 for as_dir
in `dirname $aros_gcc_as`
12912 test -z "$as_dir" && as_dir
=.
12913 for ac_exec_ext
in '' $ac_executable_extensions; do
12914 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12915 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12926 orig_target_as
=$ac_cv_path_orig_target_as
12927 if test -n "$orig_target_as"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12929 $as_echo "$orig_target_as" >&6; }
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12937 if test "$orig_target_as" = ""; then
12938 for ac_prog
in $ac_tool_as
12940 # Extract the first word of "$ac_prog", so it can be a program name with args.
12941 set dummy
$ac_prog; ac_word
=$2
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943 $as_echo_n "checking for $ac_word... " >&6; }
12944 if ${ac_cv_path_orig_target_as+:} false
; then :
12945 $as_echo_n "(cached) " >&6
12947 case $orig_target_as in
12949 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12953 for as_dir
in $PATH
12956 test -z "$as_dir" && as_dir
=.
12957 for ac_exec_ext
in '' $ac_executable_extensions; do
12958 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12959 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12970 orig_target_as
=$ac_cv_path_orig_target_as
12971 if test -n "$orig_target_as"; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12973 $as_echo "$orig_target_as" >&6; }
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12980 test -n "$orig_target_as" && break
12987 ac_tool_optarg
=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12988 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12989 set dummy aros_tool_prefix
}${toolchain_as}; ac_word
=$2
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12991 $as_echo_n "checking for $ac_word... " >&6; }
12992 if ${ac_cv_path_orig_target_as+:} false
; then :
12993 $as_echo_n "(cached) " >&6
12995 case $orig_target_as in
12997 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
13000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13001 for as_dir
in $PATH
13004 test -z "$as_dir" && as_dir
=.
13005 for ac_exec_ext
in '' $ac_executable_extensions; do
13006 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13007 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
13008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018 orig_target_as
=$ac_cv_path_orig_target_as
13019 if test -n "$orig_target_as"; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13021 $as_echo "$orig_target_as" >&6; }
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 $as_echo "no" >&6; }
13028 orig_target_as
="$orig_target_as $ac_tool_optarg"
13032 if test "$orig_target_as" = ""; then
13035 if test "$orig_target_as" = "no"; then
13038 if test "$req_avail" = "no"; then
13039 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
13042 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
13043 if test "$cross_compiling" = "yes" ; then
13044 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13045 set dummy
${target_tool_prefix}ar; ac_word
=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if ${ac_cv_path_orig_target_ar+:} false
; then :
13049 $as_echo_n "(cached) " >&6
13051 case $orig_target_ar in
13053 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13057 for as_dir
in $PATH
13060 test -z "$as_dir" && as_dir
=.
13061 for ac_exec_ext
in '' $ac_executable_extensions; do
13062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13063 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074 orig_target_ar
=$ac_cv_path_orig_target_ar
13075 if test -n "$orig_target_ar"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13077 $as_echo "$orig_target_ar" >&6; }
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13086 if test "" = ""; then
13091 if test "$GCC" = "yes"; then
13092 aros_gcc_ar
=`$CC -print-prog-name=$ac_tool_ar`
13093 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13094 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096 $as_echo_n "checking for $ac_word... " >&6; }
13097 if ${ac_cv_path_orig_target_ar+:} false
; then :
13098 $as_echo_n "(cached) " >&6
13100 case $orig_target_ar in
13102 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13106 for as_dir
in `dirname $aros_gcc_ar`
13109 test -z "$as_dir" && as_dir
=.
13110 for ac_exec_ext
in '' $ac_executable_extensions; do
13111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13112 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13123 orig_target_ar
=$ac_cv_path_orig_target_ar
13124 if test -n "$orig_target_ar"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13126 $as_echo "$orig_target_ar" >&6; }
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13134 if test "$orig_target_ar" = ""; then
13135 for ac_prog
in $ac_tool_ar
13137 # Extract the first word of "$ac_prog", so it can be a program name with args.
13138 set dummy
$ac_prog; ac_word
=$2
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140 $as_echo_n "checking for $ac_word... " >&6; }
13141 if ${ac_cv_path_orig_target_ar+:} false
; then :
13142 $as_echo_n "(cached) " >&6
13144 case $orig_target_ar in
13146 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13150 for as_dir
in $PATH
13153 test -z "$as_dir" && as_dir
=.
13154 for ac_exec_ext
in '' $ac_executable_extensions; do
13155 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13156 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13167 orig_target_ar
=$ac_cv_path_orig_target_ar
13168 if test -n "$orig_target_ar"; then
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13170 $as_echo "$orig_target_ar" >&6; }
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173 $as_echo "no" >&6; }
13177 test -n "$orig_target_ar" && break
13184 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
13185 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
13186 set dummy
${aros_tool_prefix}${toolchain_ar}; ac_word
=$2
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13188 $as_echo_n "checking for $ac_word... " >&6; }
13189 if ${ac_cv_path_orig_target_ar+:} false
; then :
13190 $as_echo_n "(cached) " >&6
13192 case $orig_target_ar in
13194 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
13197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13198 for as_dir
in $PATH
13201 test -z "$as_dir" && as_dir
=.
13202 for ac_exec_ext
in '' $ac_executable_extensions; do
13203 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13204 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
13205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13215 orig_target_ar
=$ac_cv_path_orig_target_ar
13216 if test -n "$orig_target_ar"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13218 $as_echo "$orig_target_ar" >&6; }
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13225 orig_target_ar
="$orig_target_ar $ac_tool_optarg"
13229 if test "$orig_target_ar" = ""; then
13232 if test "$orig_target_ar" = "no"; then
13235 if test "$req_avail" = "no"; then
13236 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
13239 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
13240 if test "$cross_compiling" = "yes" ; then
13241 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13242 set dummy
${target_tool_prefix}ar; ac_word
=$2
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13244 $as_echo_n "checking for $ac_word... " >&6; }
13245 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13246 $as_echo_n "(cached) " >&6
13248 case $orig_target_ranlib in
13250 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13254 for as_dir
in $PATH
13257 test -z "$as_dir" && as_dir
=.
13258 for ac_exec_ext
in '' $ac_executable_extensions; do
13259 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13260 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13271 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13272 if test -n "$orig_target_ranlib"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13274 $as_echo "$orig_target_ranlib" >&6; }
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13283 if test "" = ""; then
13288 if test "$GCC" = "yes"; then
13289 aros_gcc_ar
=`$CC -print-prog-name=$ac_tool_ar`
13290 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13291 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293 $as_echo_n "checking for $ac_word... " >&6; }
13294 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13295 $as_echo_n "(cached) " >&6
13297 case $orig_target_ranlib in
13299 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13303 for as_dir
in `dirname $aros_gcc_ar`
13306 test -z "$as_dir" && as_dir
=.
13307 for ac_exec_ext
in '' $ac_executable_extensions; do
13308 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13309 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13321 if test -n "$orig_target_ranlib"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13323 $as_echo "$orig_target_ranlib" >&6; }
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13331 if test "$orig_target_ranlib" = ""; then
13332 for ac_prog
in $ac_tool_ar
13334 # Extract the first word of "$ac_prog", so it can be a program name with args.
13335 set dummy
$ac_prog; ac_word
=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13339 $as_echo_n "(cached) " >&6
13341 case $orig_target_ranlib in
13343 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13347 for as_dir
in $PATH
13350 test -z "$as_dir" && as_dir
=.
13351 for ac_exec_ext
in '' $ac_executable_extensions; do
13352 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13353 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13364 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13365 if test -n "$orig_target_ranlib"; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13367 $as_echo "$orig_target_ranlib" >&6; }
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13374 test -n "$orig_target_ranlib" && break
13381 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
13382 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
13383 set dummy
${aros_tool_prefix}${toolchain_ranlib}; ac_word
=$2
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13385 $as_echo_n "checking for $ac_word... " >&6; }
13386 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
13387 $as_echo_n "(cached) " >&6
13389 case $orig_target_ranlib in
13391 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
13394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13395 for as_dir
in $PATH
13398 test -z "$as_dir" && as_dir
=.
13399 for ac_exec_ext
in '' $ac_executable_extensions; do
13400 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13401 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
13413 if test -n "$orig_target_ranlib"; then
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13415 $as_echo "$orig_target_ranlib" >&6; }
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418 $as_echo "no" >&6; }
13422 orig_target_ranlib
="$orig_target_ranlib $ac_tool_optarg"
13426 if test "$orig_target_ranlib" = ""; then
13429 if test "$orig_target_ranlib" = "no"; then
13432 if test "$req_avail" = "no"; then
13433 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
13436 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
13437 if test "$cross_compiling" = "yes" ; then
13438 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
13439 set dummy
${target_tool_prefix}nm
; ac_word
=$2
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441 $as_echo_n "checking for $ac_word... " >&6; }
13442 if ${ac_cv_path_orig_target_nm+:} false
; then :
13443 $as_echo_n "(cached) " >&6
13445 case $orig_target_nm in
13447 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13451 for as_dir
in $PATH
13454 test -z "$as_dir" && as_dir
=.
13455 for ac_exec_ext
in '' $ac_executable_extensions; do
13456 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13457 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13468 orig_target_nm
=$ac_cv_path_orig_target_nm
13469 if test -n "$orig_target_nm"; then
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13471 $as_echo "$orig_target_nm" >&6; }
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13474 $as_echo "no" >&6; }
13480 if test "" = ""; then
13485 if test "$GCC" = "yes"; then
13486 aros_gcc_nm
=`$CC -print-prog-name=$ac_tool_nm`
13487 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13488 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13490 $as_echo_n "checking for $ac_word... " >&6; }
13491 if ${ac_cv_path_orig_target_nm+:} false
; then :
13492 $as_echo_n "(cached) " >&6
13494 case $orig_target_nm in
13496 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13500 for as_dir
in `dirname $aros_gcc_nm`
13503 test -z "$as_dir" && as_dir
=.
13504 for ac_exec_ext
in '' $ac_executable_extensions; do
13505 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13506 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13517 orig_target_nm
=$ac_cv_path_orig_target_nm
13518 if test -n "$orig_target_nm"; then
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13520 $as_echo "$orig_target_nm" >&6; }
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13523 $as_echo "no" >&6; }
13528 if test "$orig_target_nm" = ""; then
13529 for ac_prog
in $ac_tool_nm
13531 # Extract the first word of "$ac_prog", so it can be a program name with args.
13532 set dummy
$ac_prog; ac_word
=$2
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13534 $as_echo_n "checking for $ac_word... " >&6; }
13535 if ${ac_cv_path_orig_target_nm+:} false
; then :
13536 $as_echo_n "(cached) " >&6
13538 case $orig_target_nm in
13540 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13544 for as_dir
in $PATH
13547 test -z "$as_dir" && as_dir
=.
13548 for ac_exec_ext
in '' $ac_executable_extensions; do
13549 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13550 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13561 orig_target_nm
=$ac_cv_path_orig_target_nm
13562 if test -n "$orig_target_nm"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13564 $as_echo "$orig_target_nm" >&6; }
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 $as_echo "no" >&6; }
13571 test -n "$orig_target_nm" && break
13578 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13579 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13580 set dummy
${aros_tool_prefix}${toolchain_nm}; ac_word
=$2
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13582 $as_echo_n "checking for $ac_word... " >&6; }
13583 if ${ac_cv_path_orig_target_nm+:} false
; then :
13584 $as_echo_n "(cached) " >&6
13586 case $orig_target_nm in
13588 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13592 for as_dir
in $PATH
13595 test -z "$as_dir" && as_dir
=.
13596 for ac_exec_ext
in '' $ac_executable_extensions; do
13597 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13598 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13609 orig_target_nm
=$ac_cv_path_orig_target_nm
13610 if test -n "$orig_target_nm"; then
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13612 $as_echo "$orig_target_nm" >&6; }
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615 $as_echo "no" >&6; }
13619 orig_target_nm
="$orig_target_nm $ac_tool_optarg"
13623 if test "$orig_target_nm" = ""; then
13626 if test "$orig_target_nm" = "no"; then
13629 if test "$req_avail" = "no"; then
13630 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13633 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13634 if test "$cross_compiling" = "yes" ; then
13635 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13636 set dummy
${target_tool_prefix}strip
; ac_word
=$2
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13638 $as_echo_n "checking for $ac_word... " >&6; }
13639 if ${ac_cv_path_orig_target_strip+:} false
; then :
13640 $as_echo_n "(cached) " >&6
13642 case $orig_target_strip in
13644 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13648 for as_dir
in $PATH
13651 test -z "$as_dir" && as_dir
=.
13652 for ac_exec_ext
in '' $ac_executable_extensions; do
13653 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13654 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13665 orig_target_strip
=$ac_cv_path_orig_target_strip
13666 if test -n "$orig_target_strip"; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13668 $as_echo "$orig_target_strip" >&6; }
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13671 $as_echo "no" >&6; }
13677 if test "" = ""; then
13678 ac_tool_strip
=strip
13682 if test "$GCC" = "yes"; then
13683 aros_gcc_strip
=`$CC -print-prog-name=$ac_tool_strip`
13684 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13685 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13687 $as_echo_n "checking for $ac_word... " >&6; }
13688 if ${ac_cv_path_orig_target_strip+:} false
; then :
13689 $as_echo_n "(cached) " >&6
13691 case $orig_target_strip in
13693 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13697 for as_dir
in `dirname $aros_gcc_strip`
13700 test -z "$as_dir" && as_dir
=.
13701 for ac_exec_ext
in '' $ac_executable_extensions; do
13702 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13703 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 orig_target_strip
=$ac_cv_path_orig_target_strip
13715 if test -n "$orig_target_strip"; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13717 $as_echo "$orig_target_strip" >&6; }
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720 $as_echo "no" >&6; }
13725 if test "$orig_target_strip" = ""; then
13726 for ac_prog
in $ac_tool_strip
13728 # Extract the first word of "$ac_prog", so it can be a program name with args.
13729 set dummy
$ac_prog; ac_word
=$2
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13731 $as_echo_n "checking for $ac_word... " >&6; }
13732 if ${ac_cv_path_orig_target_strip+:} false
; then :
13733 $as_echo_n "(cached) " >&6
13735 case $orig_target_strip in
13737 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13741 for as_dir
in $PATH
13744 test -z "$as_dir" && as_dir
=.
13745 for ac_exec_ext
in '' $ac_executable_extensions; do
13746 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13747 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13758 orig_target_strip
=$ac_cv_path_orig_target_strip
13759 if test -n "$orig_target_strip"; then
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13761 $as_echo "$orig_target_strip" >&6; }
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764 $as_echo "no" >&6; }
13768 test -n "$orig_target_strip" && break
13775 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13776 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13777 set dummy
${aros_tool_prefix}${toolchain_strip}; ac_word
=$2
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779 $as_echo_n "checking for $ac_word... " >&6; }
13780 if ${ac_cv_path_orig_target_strip+:} false
; then :
13781 $as_echo_n "(cached) " >&6
13783 case $orig_target_strip in
13785 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13789 for as_dir
in $PATH
13792 test -z "$as_dir" && as_dir
=.
13793 for ac_exec_ext
in '' $ac_executable_extensions; do
13794 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13795 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 orig_target_strip
=$ac_cv_path_orig_target_strip
13807 if test -n "$orig_target_strip"; then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13809 $as_echo "$orig_target_strip" >&6; }
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13812 $as_echo "no" >&6; }
13816 orig_target_strip
="$orig_target_strip $ac_tool_optarg"
13820 if test "$orig_target_strip" = ""; then
13823 if test "$orig_target_strip" = "no"; then
13826 if test "$req_avail" = "no"; then
13827 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13830 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13831 if test "$cross_compiling" = "yes" ; then
13832 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13833 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13835 $as_echo_n "checking for $ac_word... " >&6; }
13836 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13837 $as_echo_n "(cached) " >&6
13839 case $orig_target_objcopy in
13841 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13845 for as_dir
in $PATH
13848 test -z "$as_dir" && as_dir
=.
13849 for ac_exec_ext
in '' $ac_executable_extensions; do
13850 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13851 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13862 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13863 if test -n "$orig_target_objcopy"; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13865 $as_echo "$orig_target_objcopy" >&6; }
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868 $as_echo "no" >&6; }
13874 if test "" = ""; then
13875 ac_tool_objcopy
=objcopy
13879 if test "$GCC" = "yes"; then
13880 aros_gcc_objcopy
=`$CC -print-prog-name=$ac_tool_objcopy`
13881 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13882 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13884 $as_echo_n "checking for $ac_word... " >&6; }
13885 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13886 $as_echo_n "(cached) " >&6
13888 case $orig_target_objcopy in
13890 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13894 for as_dir
in `dirname $aros_gcc_objcopy`
13897 test -z "$as_dir" && as_dir
=.
13898 for ac_exec_ext
in '' $ac_executable_extensions; do
13899 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13900 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13911 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13912 if test -n "$orig_target_objcopy"; then
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13914 $as_echo "$orig_target_objcopy" >&6; }
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 $as_echo "no" >&6; }
13922 if test "$orig_target_objcopy" = ""; then
13923 for ac_prog
in $ac_tool_objcopy
13925 # Extract the first word of "$ac_prog", so it can be a program name with args.
13926 set dummy
$ac_prog; ac_word
=$2
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928 $as_echo_n "checking for $ac_word... " >&6; }
13929 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13930 $as_echo_n "(cached) " >&6
13932 case $orig_target_objcopy in
13934 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13938 for as_dir
in $PATH
13941 test -z "$as_dir" && as_dir
=.
13942 for ac_exec_ext
in '' $ac_executable_extensions; do
13943 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13944 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13955 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13956 if test -n "$orig_target_objcopy"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13958 $as_echo "$orig_target_objcopy" >&6; }
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961 $as_echo "no" >&6; }
13965 test -n "$orig_target_objcopy" && break
13972 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13973 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13974 set dummy
${aros_tool_prefix}${toolchain_objcopy}; ac_word
=$2
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13976 $as_echo_n "checking for $ac_word... " >&6; }
13977 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13978 $as_echo_n "(cached) " >&6
13980 case $orig_target_objcopy in
13982 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13986 for as_dir
in $PATH
13989 test -z "$as_dir" && as_dir
=.
13990 for ac_exec_ext
in '' $ac_executable_extensions; do
13991 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13992 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14003 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
14004 if test -n "$orig_target_objcopy"; then
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14006 $as_echo "$orig_target_objcopy" >&6; }
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14013 orig_target_objcopy
="$orig_target_objcopy $ac_tool_optarg"
14017 if test "$orig_target_objcopy" = ""; then
14020 if test "$orig_target_objcopy" = "no"; then
14023 if test "$req_avail" = "no"; then
14024 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
14027 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
14028 if test "$cross_compiling" = "yes" ; then
14029 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
14030 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14032 $as_echo_n "checking for $ac_word... " >&6; }
14033 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14034 $as_echo_n "(cached) " >&6
14036 case $orig_target_objdump in
14038 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14042 for as_dir
in $PATH
14045 test -z "$as_dir" && as_dir
=.
14046 for ac_exec_ext
in '' $ac_executable_extensions; do
14047 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14048 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14059 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14060 if test -n "$orig_target_objdump"; then
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14062 $as_echo "$orig_target_objdump" >&6; }
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065 $as_echo "no" >&6; }
14071 if test "" = ""; then
14072 ac_tool_objdump
=objdump
14076 if test "$GCC" = "yes"; then
14077 aros_gcc_objdump
=`$CC -print-prog-name=$ac_tool_objdump`
14078 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
14079 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14081 $as_echo_n "checking for $ac_word... " >&6; }
14082 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14083 $as_echo_n "(cached) " >&6
14085 case $orig_target_objdump in
14087 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14091 for as_dir
in `dirname $aros_gcc_objdump`
14094 test -z "$as_dir" && as_dir
=.
14095 for ac_exec_ext
in '' $ac_executable_extensions; do
14096 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14097 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14108 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14109 if test -n "$orig_target_objdump"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14111 $as_echo "$orig_target_objdump" >&6; }
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114 $as_echo "no" >&6; }
14119 if test "$orig_target_objdump" = ""; then
14120 for ac_prog
in $ac_tool_objdump
14122 # Extract the first word of "$ac_prog", so it can be a program name with args.
14123 set dummy
$ac_prog; ac_word
=$2
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14125 $as_echo_n "checking for $ac_word... " >&6; }
14126 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14127 $as_echo_n "(cached) " >&6
14129 case $orig_target_objdump in
14131 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14135 for as_dir
in $PATH
14138 test -z "$as_dir" && as_dir
=.
14139 for ac_exec_ext
in '' $ac_executable_extensions; do
14140 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14141 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14152 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14153 if test -n "$orig_target_objdump"; then
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14155 $as_echo "$orig_target_objdump" >&6; }
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158 $as_echo "no" >&6; }
14162 test -n "$orig_target_objdump" && break
14169 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
14170 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
14171 set dummy
${aros_tool_prefix}${toolchain_objdump}; ac_word
=$2
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14173 $as_echo_n "checking for $ac_word... " >&6; }
14174 if ${ac_cv_path_orig_target_objdump+:} false
; then :
14175 $as_echo_n "(cached) " >&6
14177 case $orig_target_objdump in
14179 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
14182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14183 for as_dir
in $PATH
14186 test -z "$as_dir" && as_dir
=.
14187 for ac_exec_ext
in '' $ac_executable_extensions; do
14188 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14189 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
14190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14200 orig_target_objdump
=$ac_cv_path_orig_target_objdump
14201 if test -n "$orig_target_objdump"; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14203 $as_echo "$orig_target_objdump" >&6; }
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14206 $as_echo "no" >&6; }
14210 orig_target_objdump
="$orig_target_objdump $ac_tool_optarg"
14214 if test "$orig_target_objdump" = ""; then
14217 if test "$orig_target_objdump" = "no"; then
14220 if test "$req_avail" = "no"; then
14221 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
14225 if test "$kernel_tool_prefix" = "none" ; then
14226 # No kernel tools specified
14227 # Assume target tools == kernel tools with ELF wrapper
14228 aros_kernel_cc
=$orig_target_cc
14229 aros_kernel_cxx
=$orig_target_cxx
14230 aros_kernel_cpp
=$orig_target_cpp
14231 aros_kernel_ld
=$orig_target_ld
14232 aros_kernel_as
=$orig_target_as
14233 aros_kernel_ar
=$orig_target_ar
14234 aros_kernel_ranlib
=$orig_target_ranlib
14235 aros_kernel_nm
=$orig_target_nm
14236 aros_kernel_strip
=$orig_target_strip
14237 aros_kernel_objcopy
=$orig_target_objcopy
14238 aros_kernel_objdump
=$orig_target_objdump
14239 use_kernel_cc_wrapper
=yes
14242 # At this point, all aros_kernel_* and aros_target_*
14243 # tools should be set up correctly
14245 CC
="$aros_kernel_cc $kernel_tool_flags"
14246 CPP
="$aros_kernel_cpp"
14248 #-----------------------------------------------------------------------------
14250 # Find all the tools we need to compile. This could be cross-compiling
14251 # though! If that is the case we use the GNU form of the target and
14252 # simply add this to the front of the binary name. This is rather simple,
14253 # but it should work under most circumstances.
14255 # The default tools are to use the same as the host, but only if the
14256 # host and target CPU are the same. With GCC this is normally enough.
14260 aros_shared_ld
="$aros_host_ld"
14262 aros_target_mkdep
="$aros_host_mkdep"
14264 # The default tools executables to be linked to.
14265 if test "$rescomp" != ""; then
14266 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
14267 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14269 $as_echo_n "checking for $ac_word... " >&6; }
14270 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
14271 $as_echo_n "(cached) " >&6
14273 case $aros_kernel_rescomp in
14275 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
14278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14279 for as_dir
in $PATH
14282 test -z "$as_dir" && as_dir
=.
14283 for ac_exec_ext
in '' $ac_executable_extensions; do
14284 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14285 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
14286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14296 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
14297 if test -n "$aros_kernel_rescomp"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
14299 $as_echo "$aros_kernel_rescomp" >&6; }
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14302 $as_echo "no" >&6; }
14307 if test "$aros_kernel_rescomp" = ""; then
14310 if test "$aros_kernel_rescomp" = "no"; then
14313 if test "$req_avail" = "no"; then
14314 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
14318 # Set up the sources for the symlink farm
14319 if test "$crosstools" = "yes"; then
14320 crosstools_target
=tools-crosstools
14323 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
14324 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
14326 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
14327 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
14328 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
14329 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
14330 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
14331 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
14332 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
14334 # aros_cc_pre is a variable that is added to the front of the compiler name
14335 # in the generated aros-gcc shell script. We need this to enable the cache
14336 # to work across cleaned builds. Also, support DISTCC using the correct
14337 # environment variable.
14340 if test "x${DISTCC}" != "x" ; then
14341 if test "x${CCACHE}" != "x" ; then
14342 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
14344 aros_cc_pre
="${DISTCC} "
14347 if test "x${CCACHE}" != "x" ; then
14348 aros_cc_pre
="${CCACHE} "
14352 aros_target_nostdinc_cflags
=-nostdinc
14354 aros_target_nostartup_ldflags
=-nostartfiles
14356 aros_target_nix_ldflags
=-nix
14358 aros_target_detach_ldflags
=-detach
14360 aros_target_nostdlib_ldflags
=-nostdlib
14363 aros_target_cc_path
=
14367 if test "$aros_target_toolchain" != "yes"; then
14368 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
14369 if test "$GCC" = "yes"; then
14370 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
14373 # We do not know which c compiler version we are going to build and what we need to know
14374 # here is different for different versions so this will be set later during the
14375 # build of crosstools.
14376 if test "$aros_toolchain" = "gnu" ; then
14377 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
14378 elif test "$aros_toolchain" = "llvm" ; then
14379 prefix
="$AROS_CROSSTOOLSDIR/bin/"
14381 aros_target_cc_path
=@aros_target_cc_path@
14383 aros_target_cpp
="${prefix}${toolchain_cpp_preprocessor}"
14384 aros_target_cc
="${prefix}${toolchain_c_compiler}"
14385 aros_target_cxx
="${prefix}${toolchain_cxx_compiler}"
14386 aros_target_as
="${prefix}${toolchain_as}"
14387 if test "${use_ld_wrapper}" = "yes"; then
14388 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
14390 aros_target_ld
="${prefix}${toolchain_ld}"
14392 aros_toolchain_ld
="${prefix}${toolchain_ld}"
14394 aros_target_ar
="${prefix}${toolchain_ar} $aros_target_ar_flags"
14395 aros_target_objcopy
="${prefix}${toolchain_objcopy}"
14396 aros_target_objdump
="${prefix}${toolchain_objdump}"
14397 aros_target_ranlib
="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
14398 aros_target_nm
="${prefix}${toolchain_nm} $aros_target_nm_flags"
14399 aros_target_strip
="${prefix}${toolchain_strip}"
14400 aros_plain_nm
="${prefix}${toolchain_nm}"
14401 aros_plain_ar
="${prefix}${toolchain_ar}"
14403 # Check whether --enable-includes was given.
14404 if test "${enable_includes+set}" = set; then :
14405 enableval
=$enable_includes; aros_target_incl
=$enable_includes
14407 aros_target_incl
=no
14411 if test "x$aros_target_incl" = "xno"; then
14412 if test "x$test_kernel_cc" != "xno"; then
14413 aros_target_incl
=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
14419 if test "x$aros_kernel_includes" = "x"; then
14420 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14421 if test "x$aros_target_incl" != "x"; then
14422 aros_kernel_includes
="-isystem $aros_target_incl"
14427 if test "x$test_kernel_cc" != "xno"; then
14428 if test "$aros_kernel_includes" != "" ; then
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
14430 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
14431 if test "$aros_kernel_cc_includes" = "" ; then
14432 # Try to guess where the directory is.
14433 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
14434 if test -d $aros_kernel_cc_includes; then
14435 # Check if there is also an include-fixed directory and add it
14436 # to kernel compiler's include path as it may contain some of
14437 # the headers we need.
14438 if test -d "$aros_kernel_cc_includes"-fixed; then
14439 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
14441 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
14442 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
14443 aros_kernel_cc_includes
+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
14446 # The directory doesn't exist, we need to do some more work.
14447 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
14449 # These are the headers we're looking for.
14450 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14451 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14455 for h
in $headers; do
14456 # Which other headers are needed by each of the above?
14457 deps
=$
(echo "#include <$h>" | \
14458 $aros_kernel_cc -E -M - 2>/dev
/null | \
14459 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14461 # Copy all the needed headers to a directory beneath gendir.
14464 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
14465 sed -n "s,^.*/include\(/.*\),\1,p")
14466 ! test -d $dir && mkdir
-p $dir
14467 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
14473 $as_echo "$aros_kernel_cc_includes" >&6; }
14474 # Adding -nostdinc to kernel includes as they are always used together.
14475 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
14479 if test "$crosstools" != "yes"; then
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
14481 $as_echo_n "checking for the target compiler's include path... " >&6; }
14482 if test "$aros_target_cc_includes" = "" ; then
14483 #try to guess where the directory is
14484 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
14485 if ! test -d $aros_target_cc_includes; then
14486 #the directory doesn't exist, we need to do some more work
14487 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
14489 #these are the headers we're looking for
14490 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14491 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14495 for h
in $headers; do
14496 #which other headers each of the above headers needs?
14497 deps
=$
(echo "#include <$h>" | \
14498 $orig_target_cc -E -M - 2>/dev
/null | \
14499 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14501 #copy all the needed headers to a directory beneath gendir
14504 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
14505 sed -n "s,^.*/include\(/.*\),\1,p")
14506 ! test -d $dir && mkdir
-p $dir
14507 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14513 $as_echo "$aros_target_cc_includes" >&6; }
14515 # We do not know which c compiler version we are going to build and what we need to know
14516 # here is different for different versions so this will be set later during the
14517 # build of crosstools.
14518 aros_target_cc_includes
=@aros_target_cc_includes@
14522 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14523 # On GCC >= 4.0 -iquote should be used
14527 save_cflags
="$CFLAGS"
14528 if test "x$test_kernel_cc" != "xno"; then
14530 kernel_cflags_iquote
=$host_cflags_iquote
14531 kernel_cflags_iquote_end
=$host_cflags_iquote_end
14532 if test "x-$cross_compiling" = "x-yes"; then
14533 CC
="$aros_kernel_cc"
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14535 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14536 if test "x-$crosstools" != "x-yes"; then
14537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14548 if ac_fn_c_try_compile
"$LINENO"; then :
14549 use_no_stack_protector
="yes"
14551 use_no_stack_protector
="no"
14553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14555 # we do know it is supported for the smallest version of gcc we are going to build
14556 # we assume it's also supported by later versions
14557 use_no_stack_protector
=yes
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14560 $as_echo "$use_no_stack_protector" >&6; }
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14562 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14563 if test "x-$crosstools" != "x-yes"; then
14564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14575 if ac_fn_c_try_compile
"$LINENO"; then :
14580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14582 # we do know it is supported for the smallest version of gcc we are going to build
14583 # we assume it's also supported by later versions
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14587 $as_echo "$has_iquote" >&6; }
14588 if test "x-$has_iquote" = "x-yes" ; then
14589 kernel_cflags_iquote
=-iquote
14590 kernel_cflags_iquote_end
=
14592 kernel_cflags_iquote
=-I
14593 kernel_cflags_iquote_end
=-I-
14596 if test "x-$use_no_stack_protector" = "x-yes" ; then
14597 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
14600 #-----------------------------------------------------------------------------
14602 # Check if we can explicitly choose older version of symbol hashing
14604 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
14605 CC
="$aros_kernel_cc"
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14607 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h. */
14619 if ac_fn_c_try_link
"$LINENO"; then :
14620 use_hash_style
="yes"
14622 use_hash_style
="no"
14624 rm -f core conftest.err conftest.
$ac_objext \
14625 conftest
$ac_exeext conftest.
$ac_ext
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14627 $as_echo "$use_hash_style" >&6; }
14628 if test "x-$use_hash_style" = "x-yes" ; then
14629 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
14632 kernel_cflags_iquote
="$""(CFLAGS_IQUOTE)"
14633 kernel_cflags_iquote_end
="$""(CFLAGS_IQUOTE_END)"
14636 CFLAGS
="$save_cflags"
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14645 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14647 # Check whether --with-resolution was given.
14648 if test "${with_resolution+set}" = set; then :
14649 withval
=$with_resolution; resolution
=$withval
14654 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14655 if test "$resolution" = "yes" ; then
14658 if test "$resolution" = "no" ; then
14661 if test "$resolution" != "none" ; then
14662 aros_nominal_width
=`echo $resolution | cut -d'x' -f1`
14663 aros_nominal_height
=`echo $resolution | cut -d'x' -f2`
14664 aros_nominal_depth
=`echo $resolution | cut -d'x' -f3`
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14667 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14668 aros_cv_nominal_width
=$aros_nominal_width
14669 aros_cv_nominal_height
=$aros_nominal_height
14670 aros_cv_nominal_depth
=$aros_nominal_depth
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14673 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14675 # Check whether --with-serial-debug was given.
14676 if test "${with_serial_debug+set}" = set; then :
14677 withval
=$with_serial_debug; serial_debug
=$withval
14682 if test "$aros_serial_debug" = 0 ; then
14683 serial_debug_forced
=""
14684 if test "$serial_debug" = "yes" ; then
14687 if test "$serial_debug" = "no" ; then
14688 serial_debug
="none"
14691 serial_debug_forced
="(forced)"
14692 serial_debug
=$aros_serial_debug
14694 if test "$serial_debug" != "none" ; then
14695 aros_serial_debug
=$serial_debug
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14697 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14700 $as_echo "no" >&6; }
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14704 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14705 # Check whether --enable-palm_debug_hack was given.
14706 if test "${enable_palm_debug_hack+set}" = set; then :
14707 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
14709 palm_debug_hack
="no"
14712 if test "$palm_debug_hack" = "yes" ; then
14713 aros_palm_debug_hack
="1"
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14716 $as_echo "$palm_debug_hack" >&6; }
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14719 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14720 # Check whether --enable-usb30_code was given.
14721 if test "${enable_usb30_code+set}" = set; then :
14722 enableval
=$enable_usb30_code; usb30_code
="yes"
14727 if test "$usb30_code" = "yes" ; then
14728 aros_config_cppflags
="$aros_config_cppflags -DAROS_USB30_CODE"
14729 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14732 $as_echo "$usb30_code" >&6; }
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14735 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14736 # Check whether --enable-nesting_supervisor was given.
14737 if test "${enable_nesting_supervisor+set}" = set; then :
14738 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
14740 nesting_supervisor
="no"
14743 if test "$nesting_supervisor" = "yes" ; then
14744 aros_nesting_supervisor
="1"
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14747 $as_echo "$nesting_supervisor" >&6; }
14749 if test "$aros_enable_mmu" = "" ; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14751 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14752 # Check whether --enable-mmu was given.
14753 if test "${enable_mmu+set}" = set; then :
14754 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
14756 aros_enable_mmu
="yes"
14759 if test "$aros_enable_mmu" = "" ; then
14760 aros_enable_mmu
="yes"
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14763 $as_echo "$aros_enable_mmu" >&6; }
14765 if test "$aros_enable_mmu" = "no" ; then
14766 aros_enable_mmu
="0"
14768 aros_enable_mmu
="1"
14772 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14774 if test "x-$need_dlopen" != "x-no" ; then
14777 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
14778 if test "x$ac_cv_func_dlopen" = xyes
; then :
14784 if test "x-$have_dl" = "x-no" ; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14786 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14787 if ${ac_cv_lib_dl_dlopen+:} false
; then :
14788 $as_echo_n "(cached) " >&6
14790 ac_check_lib_save_LIBS
=$LIBS
14792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14795 /* Override any GCC internal prototype to avoid an error.
14796 Use char because int might match the return type of a GCC
14797 builtin and then its argument prototype would still apply. */
14810 if ac_fn_c_try_link
"$LINENO"; then :
14811 ac_cv_lib_dl_dlopen
=yes
14813 ac_cv_lib_dl_dlopen
=no
14815 rm -f core conftest.err conftest.
$ac_objext \
14816 conftest
$ac_exeext conftest.
$ac_ext
14817 LIBS
=$ac_check_lib_save_LIBS
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14820 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14821 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
14823 aros_host_ldflags
="$aros_host_ldflags -ldl"
14829 if test "x-$have_dl" = "x-no" ; then
14830 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
14836 # Check whether --enable-x11_hidd was given.
14837 if test "${enable_x11_hidd+set}" = set; then :
14838 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
14840 x11_hidd
="$need_x11"
14843 case "x-$x11_hidd" in
14844 x-yes|x-no|x-auto
) ;;
14845 *) x11_hidd
="$need_x11" ;;
14850 if test "x-$x11_hidd" != "x-no" ; then
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14853 $as_echo_n "checking for X... " >&6; }
14856 # Check whether --with-x was given.
14857 if test "${with_x+set}" = set; then :
14861 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14862 if test "x$with_x" = xno
; then
14863 # The user explicitly disabled X.
14866 case $x_includes,$x_libraries in #(
14867 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
14868 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
14869 $as_echo_n "(cached) " >&6
14871 # One or both of the vars are not set, and there is no cached value.
14872 ac_x_includes
=no ac_x_libraries
=no
14873 rm -f -r conftest.dir
14874 if mkdir conftest.dir
; then
14876 cat >Imakefile
<<'_ACEOF'
14878 @echo incroot='${INCROOT}'
14880 @echo usrlibdir='${USRLIBDIR}'
14882 @echo libdir='${LIBDIR}'
14884 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14885 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14886 for ac_var
in incroot usrlibdir libdir
; do
14887 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14889 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14890 for ac_extension
in a so sl dylib la dll
; do
14891 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14892 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14893 ac_im_usrlibdir
=$ac_im_libdir; break
14896 # Screen out bogus values from the imake configuration. They are
14897 # bogus both because they are the default anyway, and because
14898 # using them would break gcc on systems where it needs fixed includes.
14899 case $ac_im_incroot in
14900 /usr
/include
) ac_x_includes
= ;;
14901 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14903 case $ac_im_usrlibdir in
14904 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14905 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14909 rm -f -r conftest.dir
14912 # Standard set of common directories for X headers.
14913 # Check X11 before X11Rn because it is often a symlink to the current release.
14927 /usr/local/X11/include
14928 /usr/local/X11R7/include
14929 /usr/local/X11R6/include
14930 /usr/local/X11R5/include
14931 /usr/local/X11R4/include
14933 /usr/local/include/X11
14934 /usr/local/include/X11R7
14935 /usr/local/include/X11R6
14936 /usr/local/include/X11R5
14937 /usr/local/include/X11R4
14941 /usr/XFree86/include/X11
14945 /usr/unsupported/include
14946 /usr/athena/include
14947 /usr/local/x11r5/include
14948 /usr/lpp/Xamples/include
14950 /usr/openwin/include
14951 /usr/openwin/share/include'
14953 if test "$ac_x_includes" = no
; then
14954 # Guess where to find include files, by looking for Xlib.h.
14955 # First, try using that file with no special directory specified.
14956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h. */
14958 #include <X11/Xlib.h>
14960 if ac_fn_c_try_cpp
"$LINENO"; then :
14961 # We can compile using X headers with no special include directory.
14964 for ac_dir
in $ac_x_header_dirs; do
14965 if test -r "$ac_dir/X11/Xlib.h"; then
14966 ac_x_includes
=$ac_dir
14971 rm -f conftest.err conftest.i conftest.
$ac_ext
14972 fi # $ac_x_includes = no
14974 if test "$ac_x_libraries" = no
; then
14975 # Check for the libraries.
14976 # See if we find them without any special options.
14977 # Don't add to $LIBS permanently.
14980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h. */
14982 #include <X11/Xlib.h>
14991 if ac_fn_c_try_link
"$LINENO"; then :
14993 # We can link X programs with no special library path.
14997 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14999 # Don't even attempt the hair of trying to link an X program!
15000 for ac_extension
in a so sl dylib la dll
; do
15001 if test -r "$ac_dir/libX11.$ac_extension"; then
15002 ac_x_libraries
=$ac_dir
15008 rm -f core conftest.err conftest.
$ac_objext \
15009 conftest
$ac_exeext conftest.
$ac_ext
15010 fi # $ac_x_libraries = no
15012 case $ac_x_includes,$ac_x_libraries in #(
15013 no
,* |
*,no |
*\'*)
15014 # Didn't find X, or a directory has "'" in its name.
15015 ac_cv_have_x
="have_x=no";; #(
15017 # Record where we found X for the cache.
15018 ac_cv_have_x
="have_x=yes\
15019 ac_x_includes='$ac_x_includes'\
15020 ac_x_libraries='$ac_x_libraries'"
15026 eval "$ac_cv_have_x"
15029 if test "$have_x" != yes; then
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15031 $as_echo "$have_x" >&6; }
15034 # If each of the values was on the command line, it overrides each guess.
15035 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15036 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15037 # Update the cache value to reflect the command line values.
15038 ac_cv_have_x
="have_x=yes\
15039 ac_x_includes='$x_includes'\
15040 ac_x_libraries='$x_libraries'"
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15042 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15046 if test -n "$x_includes"; then
15047 X_CFLAGS
="$X_CFLAGS -I$x_includes"
15050 if test -n "$x_libraries"; then
15051 X_LIBS
="$X_LIBS -L$x_libraries"
15054 if test "x-$no_x" = "x-yes" ; then
15056 if test "x-$x11_hidd" != "x-auto" ; then
15057 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
15061 aros_target_options
+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
15062 if test "x-$host_feature_glx" != "x-no" ; then
15063 aros_target_options
+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
15067 aros_host_x11_cflags
="$X_CFLAGS"
15068 aros_host_x11_ldflags
="$X_LIBS -lX11"
15070 # Check whether --enable-x11_shm was given.
15071 if test "${enable_x11_shm+set}" = set; then :
15072 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
15074 x11_hidd_shm
="auto"
15077 case "x-$x11_hidd_shm" in
15078 x-yes|x-no|x-auto
) ;;
15079 *) x11_hidd_shm
="auto" ;;
15084 if test "x-$x11_hidd_shm" != "x-no" ; then
15086 for ac_header
in sys
/ipc.h
15088 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15089 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
15090 cat >>confdefs.h
<<_ACEOF
15091 #define HAVE_SYS_IPC_H 1
15098 for ac_header
in sys
/shm.h
15100 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15101 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
15102 cat >>confdefs.h
<<_ACEOF
15103 #define HAVE_SYS_SHM_H 1
15111 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
15113 save_cflags
="$CFLAGS"
15114 save_ldflags
="$LDFLAGS"
15115 CFLAGS
="$CFLAGS $X_CFLAGS"
15116 LDFLAGS
="$LDFLAGS $X_LIBS"
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
15118 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
15119 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
15120 $as_echo_n "(cached) " >&6
15122 ac_check_lib_save_LIBS
=$LIBS
15123 LIBS
="-lXext $LIBS"
15124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h. */
15127 /* Override any GCC internal prototype to avoid an error.
15128 Use char because int might match the return type of a GCC
15129 builtin and then its argument prototype would still apply. */
15133 char XShmQueryExtension ();
15137 return XShmQueryExtension ();
15142 if ac_fn_c_try_link
"$LINENO"; then :
15143 ac_cv_lib_Xext_XShmQueryExtension
=yes
15145 ac_cv_lib_Xext_XShmQueryExtension
=no
15147 rm -f core conftest.err conftest.
$ac_objext \
15148 conftest
$ac_exeext conftest.
$ac_ext
15149 LIBS
=$ac_check_lib_save_LIBS
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
15152 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
15153 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
15157 CFLAGS
="$save_cflags"
15158 LDFLAGS
="$save_ldflags"
15162 if test "x-$have_xshm" = "x-yes" ; then
15163 DO_XSHM_SUPPORT
="1"
15164 elif test "x-$x11_hidd_shm" = "x-yes" ; then
15165 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
15167 DO_XSHM_SUPPORT
="0"
15171 # Check whether --enable-x11_vidmode was given.
15172 if test "${enable_x11_vidmode+set}" = set; then :
15173 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
15175 x11_hidd_vidmode
="auto"
15178 case "x-$x11_hidd_vidmode" in
15179 x-yes|x-no|x-auto
) ;;
15180 *) x11_hidd_vidmode
="auto" ;;
15185 if test "x-$x11_hidd_vidmode" != "x-no" ; then
15187 save_cflags
="$CFLAGS"
15188 save_ldflags
="$LDFLAGS"
15189 CFLAGS
="$CFLAGS $X_CFLAGS"
15190 LDFLAGS
="$LDFLAGS $X_LIBS"
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
15192 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
15193 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
15194 $as_echo_n "(cached) " >&6
15196 ac_check_lib_save_LIBS
=$LIBS
15197 LIBS
="-lXxf86vm $LIBS"
15198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h. */
15201 /* Override any GCC internal prototype to avoid an error.
15202 Use char because int might match the return type of a GCC
15203 builtin and then its argument prototype would still apply. */
15207 char XF86VidModeQueryExtension ();
15211 return XF86VidModeQueryExtension ();
15216 if ac_fn_c_try_link
"$LINENO"; then :
15217 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
15219 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
15221 rm -f core conftest.err conftest.
$ac_objext \
15222 conftest
$ac_exeext conftest.
$ac_ext
15223 LIBS
=$ac_check_lib_save_LIBS
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
15226 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
15227 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
15231 CFLAGS
="$save_cflags"
15232 LDFLAGS
="$save_ldflags"
15235 if test "x-$have_vidmode" = "x-yes" ; then
15236 DO_VIDMODE_SUPPORT
="1"
15237 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
15238 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
15240 DO_VIDMODE_SUPPORT
="0"
15245 # Check whether --enable-sdl_hidd was given.
15246 if test "${enable_sdl_hidd+set}" = set; then :
15247 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
15252 case "x-$sdl_hidd" in
15253 x-yes|x-no|x-auto
) ;;
15254 *) sdl_hidd
="auto" ;;
15257 if test "x-$sdl_hidd" != "x-no" ; then
15261 # Check whether --with-sdl-prefix was given.
15262 if test "${with_sdl_prefix+set}" = set; then :
15263 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
15269 # Check whether --with-sdl-exec-prefix was given.
15270 if test "${with_sdl_exec_prefix+set}" = set; then :
15271 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
15276 # Check whether --enable-sdltest was given.
15277 if test "${enable_sdltest+set}" = set; then :
15278 enableval
=$enable_sdltest;
15284 if test x
$sdl_exec_prefix != x
; then
15285 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15286 if test x
${SDL_CONFIG+set} != xset
; then
15287 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
15290 if test x
$sdl_prefix != x
; then
15291 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
15292 if test x
${SDL_CONFIG+set} != xset
; then
15293 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
15297 as_save_PATH
="$PATH"
15298 if test "x$prefix" != xNONE
; then
15299 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
15301 # Extract the first word of "sdl-config", so it can be a program name with args.
15302 set dummy sdl-config
; ac_word
=$2
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15304 $as_echo_n "checking for $ac_word... " >&6; }
15305 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
15306 $as_echo_n "(cached) " >&6
15308 case $SDL_CONFIG in
15310 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
15313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15314 for as_dir
in $PATH
15317 test -z "$as_dir" && as_dir
=.
15318 for ac_exec_ext
in '' $ac_executable_extensions; do
15319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15320 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15328 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
15332 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
15333 if test -n "$SDL_CONFIG"; then
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15335 $as_echo "$SDL_CONFIG" >&6; }
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15338 $as_echo "no" >&6; }
15342 PATH
="$as_save_PATH"
15343 min_sdl_version
=$SDL_VERSION
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15345 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15347 if test "$SDL_CONFIG" = "no" ; then
15350 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
15351 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
15353 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
15354 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15355 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
15356 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15357 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
15358 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15359 if test "x$enable_sdltest" = "xyes" ; then
15360 ac_save_CFLAGS
="$CFLAGS"
15361 ac_save_CXXFLAGS
="$CXXFLAGS"
15362 ac_save_LIBS
="$LIBS"
15363 CFLAGS
="$CFLAGS $SDL_CFLAGS"
15364 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
15365 LIBS
="$LIBS $SDL_LIBS"
15367 if test "$cross_compiling" = yes; then :
15368 echo $ac_n "cross compiling; assumed OK... $ac_c"
15370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15374 #include <stdlib.h>
15375 #include <string.h>
15379 my_strdup (char *str)
15385 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15386 strcpy (new_str, str);
15394 int main (int argc, char *argv[])
15396 int major, minor, micro;
15399 /* This hangs on some systems (?)
15400 system ("touch conf.sdltest");
15402 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15404 /* HP/UX 9 (%@#!) writes to sscanf strings */
15405 tmp_version = my_strdup("$min_sdl_version");
15406 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
15407 printf("%s, bad version string\n", "$min_sdl_version");
15411 if (($sdl_major_version > major) ||
15412 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15413 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15419 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15420 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15421 printf("*** best to upgrade to the required version.\n");
15422 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15423 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15424 printf("*** config.cache before re-running configure\n");
15431 if ac_fn_c_try_run
"$LINENO"; then :
15436 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15437 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15440 CFLAGS
="$ac_save_CFLAGS"
15441 CXXFLAGS
="$ac_save_CXXFLAGS"
15442 LIBS
="$ac_save_LIBS"
15445 if test "x$no_sdl" = x
; then
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15447 $as_echo "yes" >&6; }
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15451 $as_echo "no" >&6; }
15452 if test "$SDL_CONFIG" = "no" ; then
15453 echo "*** The sdl-config script installed by SDL could not be found"
15454 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15455 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15456 echo "*** full path to sdl-config."
15458 if test -f conf.sdltest
; then
15461 echo "*** Could not run SDL test program, checking why..."
15462 CFLAGS
="$CFLAGS $SDL_CFLAGS"
15463 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
15464 LIBS
="$LIBS $SDL_LIBS"
15465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15471 int main(int argc, char *argv[])
15474 #define main K_and_R_C_main
15484 if ac_fn_c_try_link
"$LINENO"; then :
15485 echo "*** The test program compiled, but did not run. This usually means"
15486 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15487 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15488 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15489 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15490 echo "*** is required on your system"
15492 echo "*** If you have an old version installed, it is best to remove it, although"
15493 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15495 echo "*** The test program failed to compile or link. See the file config.log for the"
15496 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15497 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15498 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15500 rm -f core conftest.err conftest.
$ac_objext \
15501 conftest
$ac_exeext conftest.
$ac_ext
15502 CFLAGS
="$ac_save_CFLAGS"
15503 CXXFLAGS
="$ac_save_CXXFLAGS"
15504 LIBS
="$ac_save_LIBS"
15516 if test "x-$have_sdl" != "x-yes" ; then
15518 if test "x-$sdl_hidd" != "x-auto" ; then
15519 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15523 aros_target_options
+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15524 aros_host_sdl_cflags
=$SDL_CFLAGS
15525 aros_host_sdl_libs
=$SDL_LIBS
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15533 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15534 # Check whether --enable-dbus was given.
15535 if test "${enable_dbus+set}" = set; then :
15536 enableval
=$enable_dbus; dbus
="yes"
15541 if test "$dbus" = "yes" ; then
15543 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
15544 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
15545 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
15546 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15551 $as_echo "$dbus" >&6; }
15553 if test "$use_kernel_cc_wrapper" = "yes" ; then
15554 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15557 aros_kernel_cppflags
=$aros_config_cppflags
15558 aros_optimization_cflags
="$optimization_level"
15559 if test "$optimization" = "default"; then
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15561 $as_echo_n "checking default optimization level to use... " >&6; }
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15563 $as_echo "$optimization_level" >&6; }
15566 if ! test "$gcc_default_cpu" = "" ; then
15567 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"
15570 if test "$use_libatomic" = "yes" ; then
15571 aros_cxx_libs
="$aros_cxx_libs -latomic"
15589 # Compatability with other Amiga-like operating systems
15592 # Host Related ###########################
15624 # Target Related #########################
15717 # Native version related
15725 # Bootloader related
15728 # Unix/Hosted version related
15731 # ARM default GCC target related
15738 # Palm native version related
15741 # Apple iOS related
15758 # Collect-aros stuff: "-ius" to ignore undefined symbols
15761 # C compiler related
15766 #ObjC compiler related
15794 case "$aros_flavour" in
15795 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
15796 aros_flavour
="emulation" ;;
15797 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15798 aros_flavour
="emulation" ;;
15799 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
15800 aros_flavour
="standalone";;
15801 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15802 aros_flavour
="standalone";;
15803 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
15804 aros_flavour
="native" ;;
15805 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15806 aros_flavour
="native" ;;
15807 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
15808 aros_flavour
="linklib" ;;
15809 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15810 aros_flavour
="palmnative" ;;
15811 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15812 aros_flavour
="mac68knative" ;;
15813 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15814 aros_flavour
="ppcnative" ;;
15817 if test ! -d ${aros_inc_dir} ; then
15818 ${MKDIR} ${aros_inc_dir}
15820 if test ! -d ${aros_geninc_dir} ; then
15821 ${MKDIR} ${aros_geninc_dir}
15823 if test ! -d ${aros_hostcfg_dir} ; then
15824 ${MKDIR} ${aros_hostcfg_dir}
15826 if test ! -d ${aros_targetcfg_dir} ; then
15827 ${MKDIR} ${aros_targetcfg_dir}
15829 if test ! -d ${aros_tools_dir} ; then
15830 ${MKDIR} ${aros_tools_dir}
15832 if test ! -d ${aros_scripts_dir} ; then
15833 ${MKDIR} ${aros_scripts_dir}
15836 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15839 # Generic build tools (metamake, etc)
15840 ac_config_commands
="$ac_config_commands genmf-executable-support"
15842 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"
15846 ac_config_commands
="$ac_config_commands binutils-support"
15848 if test "${use_ld_wrapper}" = "yes"; then
15849 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"
15852 # Bare Elf support script and spec
15853 if test "${use_kernel_cc_wrapper}" = "yes"; then
15854 ac_config_commands
="$ac_config_commands elf-compiler-support"
15856 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"
15860 # Host compiler support scripts and spec
15861 if test "${aros_target_toolchain}" = "no"; then
15862 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
15864 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"
15869 if test "$aros_target_variant" == "android"; then
15870 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15875 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15878 cat >confcache
<<\_ACEOF
15879 # This file is a shell script that caches the results of configure
15880 # tests run on this system so they can be shared between configure
15881 # scripts and configure runs, see configure's option --config-cache.
15882 # It is not useful on other systems. If it contains results you don't
15883 # want to keep, you may remove or edit it.
15885 # config.status only pays attention to the cache file if you give it
15886 # the --recheck option to rerun configure.
15888 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15889 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15890 # following values.
15894 # The following way of writing the cache mishandles newlines in values,
15895 # but we know of no workaround that is simple, portable, and efficient.
15896 # So, we kill variables containing newlines.
15897 # Ultrix sh set writes to stderr and can't be redirected directly,
15898 # and sets the high bit in the cache file unless we assign to the vars.
15900 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15901 eval ac_val
=\$
$ac_var
15905 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15906 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15909 _ | IFS | as_nl
) ;; #(
15910 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15911 *) { eval $ac_var=; unset $ac_var;} ;;
15917 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15918 *${as_nl}ac_space
=\
*)
15919 # `set' does not quote correctly, so add quotes: double-quote
15920 # substitution turns \\\\ into \\, and sed turns \\ into \.
15923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15926 # `set' quotes correctly as required by POSIX, so do not add quotes.
15927 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15936 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15938 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15940 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15941 if test -w "$cache_file"; then
15942 if test "x$cache_file" != "x/dev/null"; then
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15944 $as_echo "$as_me: updating cache $cache_file" >&6;}
15945 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15946 cat confcache
>"$cache_file"
15948 case $cache_file in #(
15950 mv -f confcache
"$cache_file"$$
&&
15951 mv -f "$cache_file"$$
"$cache_file" ;; #(
15953 mv -f confcache
"$cache_file" ;;
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15959 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15964 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15965 # Let make expand exec_prefix.
15966 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15968 DEFS
=-DHAVE_CONFIG_H
15973 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15974 # 1. Remove the extension, and $U if already installed.
15975 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15976 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15977 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15978 # will be set to the directory where LIBOBJS objects are built.
15979 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15980 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15982 LIBOBJS
=$ac_libobjs
15984 LTLIBOBJS
=$ac_ltlibobjs
15988 : "${CONFIG_STATUS=./config.status}"
15990 ac_clean_files_save
=$ac_clean_files
15991 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15993 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15995 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15997 # Generated by $as_me.
15998 # Run this file to recreate the current configuration.
15999 # Compiler output produced by configure, useful for debugging
16000 # configure, is in config.log if it exists.
16003 ac_cs_recheck=false
16006 SHELL=\${CONFIG_SHELL-$SHELL}
16009 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16010 ## -------------------- ##
16011 ## M4sh Initialization. ##
16012 ## -------------------- ##
16014 # Be more Bourne compatible
16015 DUALCASE
=1; export DUALCASE
# for MKS sh
16016 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16019 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16020 # is contrary to our usage. Disable this feature.
16021 alias -g '${1+"$@"}'='"$@"'
16022 setopt NO_GLOB_SUBST
16024 case `(set -o) 2>/dev/null` in #(
16036 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16037 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16038 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16039 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16040 # Prefer a ksh shell builtin over an external printf program on Solaris,
16041 # but without wasting forks for bash or zsh.
16042 if test -z "$BASH_VERSION$ZSH_VERSION" \
16043 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16044 as_echo='print
-r --'
16045 as_echo_n='print
-rn --'
16046 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16047 as_echo='printf %s
\n'
16048 as_echo_n='printf %s
'
16050 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16051 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16052 as_echo_n='/usr
/ucb
/echo -n'
16054 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16055 as_echo_n_body='eval
16059 expr "X$arg" : "X\\(.*\\)$as_nl";
16060 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16062 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16064 export as_echo_n_body
16065 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16067 export as_echo_body
16068 as_echo='sh
-c $as_echo_body as_echo
'
16071 # The user is always right.
16072 if test "${PATH_SEPARATOR+set}" != set; then
16074 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16075 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16082 # We need space, tab and new line, in precisely that order. Quoting is
16083 # there to prevent editors from complaining about space-tab.
16084 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16085 # splitting by setting IFS to empty value.)
16088 # Find who we are. Look in the path if we contain no directory separator.
16091 *[\\/]* ) as_myself=$0 ;;
16092 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16093 for as_dir in $PATH
16096 test -z "$as_dir" && as_dir=.
16097 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16103 # We did not find ourselves, most probably we were run as `sh COMMAND'
16104 # in which case we are not to be found in the path.
16105 if test "x$as_myself" = x
; then
16108 if test ! -f "$as_myself"; then
16109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16113 # Unset variables that we do not need and which cause bugs (e.g. in
16114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16115 # suppresses any "Segmentation fault" message there. '((' could
16116 # trigger a bug in pdksh 5.2.14.
16117 for as_var
in BASH_ENV ENV MAIL MAILPATH
16118 do eval test x\
${$as_var+set} = xset \
16119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16135 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16136 # ----------------------------------------
16137 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16138 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16139 # script with STATUS, using 1 if that was 0.
16142 as_status
=$1; test $as_status -eq 0 && as_status
=1
16144 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16145 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16147 $as_echo "$as_me: error: $2" >&2
16148 as_fn_exit
$as_status
16152 # as_fn_set_status STATUS
16153 # -----------------------
16154 # Set $? to STATUS, without forking.
16155 as_fn_set_status
()
16158 } # as_fn_set_status
16160 # as_fn_exit STATUS
16161 # -----------------
16162 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16166 as_fn_set_status
$1
16172 # Portably unset VAR.
16175 { eval $1=; unset $1;}
16177 as_unset
=as_fn_unset
16178 # as_fn_append VAR VALUE
16179 # ----------------------
16180 # Append the text in VALUE to the end of the definition contained in VAR. Take
16181 # advantage of any shell optimizations that allow amortized linear growth over
16182 # repeated appends, instead of the typical quadratic growth present in naive
16184 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16185 eval 'as_fn_append ()
16196 # as_fn_arith ARG...
16197 # ------------------
16198 # Perform arithmetic evaluation on the ARGs, and store the result in the
16199 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16200 # must be portable across $(()) and expr.
16201 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16202 eval 'as_fn_arith ()
16209 as_val
=`expr "$@" || test $? -eq 1`
16214 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16215 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16221 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16222 as_basename
=basename
16227 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16233 as_me
=`$as_basename -- "$0" ||
16234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16235 X"$0" : 'X\(//\)$' \| \
16236 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16238 sed '/^.*\/\([^/][^/]*\)\/*$/{
16252 # Avoid depending upon Character Ranges.
16253 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16254 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16255 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16256 as_cr_digits
='0123456789'
16257 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16259 ECHO_C
= ECHO_N
= ECHO_T
=
16260 case `echo -n x` in #(((((
16262 case `echo 'xy\c'` in
16263 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16265 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16272 rm -f conf$$ conf$$.exe conf$$.
file
16273 if test -d conf$$.dir
; then
16274 rm -f conf$$.dir
/conf$$.
file
16277 mkdir conf$$.dir
2>/dev
/null
16279 if (echo >conf$$.
file) 2>/dev
/null
; then
16280 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16282 # ... but there are two gotchas:
16283 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16284 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16285 # In both cases, we have to default to `cp -pR'.
16286 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16288 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16296 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16297 rmdir conf$$.dir
2>/dev
/null
16302 # Create "$as_dir" as a directory, including parents if necessary.
16307 -*) as_dir
=.
/$as_dir;;
16309 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16313 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16314 *) as_qdir
=$as_dir;;
16316 as_dirs
="'$as_qdir' $as_dirs"
16317 as_dir
=`$as_dirname -- "$as_dir" ||
16318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16319 X"$as_dir" : 'X\(//\)[^/]' \| \
16320 X"$as_dir" : 'X\(//\)$' \| \
16321 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16322 $as_echo X"$as_dir" |
16323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16327 /^X\(\/\/\)[^/].*/{
16340 test -d "$as_dir" && break
16342 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16343 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16347 if mkdir
-p .
2>/dev
/null
; then
16348 as_mkdir_p
='mkdir -p "$as_dir"'
16350 test -d .
/-p && rmdir .
/-p
16355 # as_fn_executable_p FILE
16356 # -----------------------
16357 # Test if FILE is an executable regular file.
16358 as_fn_executable_p
()
16360 test -f "$1" && test -x "$1"
16361 } # as_fn_executable_p
16362 as_test_x
='test -x'
16363 as_executable_p
=as_fn_executable_p
16365 # Sed expression to map a string onto a valid CPP name.
16366 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16368 # Sed expression to map a string onto a valid variable name.
16369 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16373 ## ----------------------------------- ##
16374 ## Main body of $CONFIG_STATUS script. ##
16375 ## ----------------------------------- ##
16377 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16380 # Save the log message, to keep $0 and so on meaningful, and to
16381 # report actual input values of CONFIG_FILES etc. instead of their
16382 # values after options handling.
16384 This file was extended by $as_me, which was
16385 generated by GNU Autoconf 2.69. Invocation command line was
16387 CONFIG_FILES = $CONFIG_FILES
16388 CONFIG_HEADERS = $CONFIG_HEADERS
16389 CONFIG_LINKS = $CONFIG_LINKS
16390 CONFIG_COMMANDS = $CONFIG_COMMANDS
16393 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16398 case $ac_config_files in *"
16399 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16402 case $ac_config_headers in *"
16403 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16408 # Files that config.status was made for.
16409 config_files="$ac_config_files"
16410 config_headers="$ac_config_headers"
16411 config_commands="$ac_config_commands"
16415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16417 \`$as_me' instantiates files and other configuration actions
16418 from templates according to the current configuration. Unless the files
16419 and actions are specified as TAGs, all are instantiated by default.
16421 Usage: $0 [OPTION]... [TAG]...
16423 -h, --help print this help, then exit
16424 -V, --version print version number and configuration settings, then exit
16425 --config print configuration, then exit
16426 -q, --quiet, --silent
16427 do not print progress messages
16428 -d, --debug don't remove temporary files
16429 --recheck update $as_me by reconfiguring in the same conditions
16430 --file=FILE[:TEMPLATE]
16431 instantiate the configuration file FILE
16432 --header=FILE[:TEMPLATE]
16433 instantiate the configuration header FILE
16435 Configuration files:
16438 Configuration headers:
16441 Configuration commands:
16444 Report bugs to the package provider."
16447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16448 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16451 configured by $0, generated by GNU Autoconf 2.69,
16452 with options \\"\$ac_cs_config\\"
16454 Copyright (C) 2012 Free Software Foundation, Inc.
16455 This config.status script is free software; the Free Software Foundation
16456 gives unlimited permission to copy, distribute and modify it."
16460 test -n "\$AWK" || AWK=awk
16463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16464 # The default lists apply if the user does not specify any file.
16470 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16471 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16475 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16487 # Handling of the options.
16488 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16490 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16491 $as_echo "$ac_cs_version"; exit ;;
16492 --config |
--confi |
--conf |
--con |
--co |
--c )
16493 $as_echo "$ac_cs_config"; exit ;;
16494 --debug |
--debu |
--deb |
--de |
--d |
-d )
16496 --file |
--fil |
--fi |
--f )
16499 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16500 '') as_fn_error $?
"missing file argument" ;;
16502 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16503 ac_need_defaults
=false
;;
16504 --header |
--heade |
--head |
--hea )
16507 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16509 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16510 ac_need_defaults
=false
;;
16512 # Conflict between --help and --header
16513 as_fn_error $?
"ambiguous option: \`$1'
16514 Try \`$0 --help' for more information.";;
16515 --help |
--hel |
-h )
16516 $as_echo "$ac_cs_usage"; exit ;;
16517 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16518 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16521 # This is an error.
16522 -*) as_fn_error $?
"unrecognized option: \`$1'
16523 Try \`$0 --help' for more information." ;;
16525 *) as_fn_append ac_config_targets
" $1"
16526 ac_need_defaults
=false
;;
16532 ac_configure_extra_args
=
16534 if $ac_cs_silent; then
16536 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16541 if \$ac_cs_recheck; then
16542 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16544 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16545 CONFIG_SHELL='$SHELL'
16546 export CONFIG_SHELL
16551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16555 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16556 ## Running $as_me. ##
16562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16567 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16568 aros_tools_dir=${aros_tools_dir}
16572 aros_host_exe_suffix=${aros_host_exe_suffix}
16573 aros_tools_dir=${aros_tools_dir}
16574 aros_target_cpu=${aros_target_cpu}
16575 aros_target_arch=${aros_target_arch}
16576 aros_target_suffix=${aros_target_suffix}
16577 orig_target_nm=${orig_target_nm}
16578 orig_target_as=${orig_target_as}
16579 orig_target_ar=${orig_target_ar}
16580 orig_target_ranlib=${orig_target_ranlib}
16581 orig_target_objdump=${orig_target_objdump}
16582 orig_target_objcopy=${orig_target_objcopy}
16583 orig_target_strip=${orig_target_strip}
16584 aros_kernel_ld=${aros_kernel_ld}
16588 aros_host_exe_suffix=${aros_host_exe_suffix}
16589 aros_tools_dir=${aros_tools_dir}
16590 aros_target_cpu=${aros_target_cpu}
16591 aros_target_arch=${aros_target_arch}
16592 aros_target_suffix=${aros_target_suffix}
16593 aros_kernel_ld=${aros_kernel_ld}
16597 aros_host_exe_suffix=${aros_host_exe_suffix}
16598 aros_tools_dir=${aros_tools_dir}
16599 aros_target_cpu=${aros_target_cpu}
16600 aros_target_arch=${aros_target_arch}
16601 aros_target_suffix=${aros_target_suffix}
16607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16609 # Handling of arguments.
16610 for ac_config_target
in $ac_config_targets
16612 case $ac_config_target in
16613 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16614 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
16615 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16616 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
16617 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16618 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16619 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16620 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16621 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16622 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
16623 "compiler/include/geninc.cfg") CONFIG_FILES
="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16624 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16625 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16626 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16627 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
16628 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
16629 "${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" ;;
16630 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
16631 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16632 "${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" ;;
16633 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16634 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16635 "${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" ;;
16636 "${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" ;;
16637 "${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" ;;
16638 "${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" ;;
16639 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16641 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16646 # If the user did not use the arguments to specify the items to instantiate,
16647 # then the envvar interface is used. Set only those that are not.
16648 # We use the long form for the default assignment because of an extremely
16649 # bizarre bug on SunOS 4.1.3.
16650 if $ac_need_defaults; then
16651 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16652 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16653 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16656 # Have a temporary directory for convenience. Make it in the build tree
16657 # simply because there is no reason against having it here, and in addition,
16658 # creating and moving files from /tmp can sometimes cause problems.
16659 # Hook for its removal unless debugging.
16660 # Note that there is a small window in which the directory will not be cleaned:
16661 # after its creation but before its name has been assigned to `$tmp'.
16665 trap 'exit_status=$?
16666 : "${ac_tmp:=$tmp}"
16667 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16669 trap 'as_fn_exit 1' 1 2 13 15
16671 # Create a (secure) tmp directory for tmp files.
16674 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16678 tmp
=.
/conf$$
-$RANDOM
16679 (umask 077 && mkdir
"$tmp")
16680 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16683 # Set up the scripts for CONFIG_FILES section.
16684 # No need to generate them if there are no CONFIG_FILES.
16685 # This happens for instance with `./config.status config.h'.
16686 if test -n "$CONFIG_FILES"; then
16689 ac_cr
=`echo X | tr X '\015'`
16690 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16691 # But we know of no other shell where ac_cr would be empty at this
16692 # point, so we can use a bashism as a fallback.
16693 if test "x$ac_cr" = x
; then
16694 eval ac_cr
=\$
\'\\r
\'
16696 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16697 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16700 ac_cs_awk_cr
=$ac_cr
16703 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16708 echo "cat >conf$$subs.awk <<_ACEOF" &&
16709 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16711 } >conf$$subs.sh ||
16712 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16713 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16715 for ac_last_try in false false false false false :; do
16716 . ./conf$$subs.sh ||
16717 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16719 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16720 if test $ac_delim_n = $ac_delim_num; then
16722 elif $ac_last_try; then
16723 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16725 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16728 rm -f conf$$subs.sh
16730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16731 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16735 s/^/S["/; s
/!.
*/"]=/
16745 s/\(.\{148\}\)..*/\1/
16747 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16752 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16759 s/\(.\{148\}\)..*/\1/
16761 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16765 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16770 ' <conf$$subs.awk | sed '
16775 ' >>$CONFIG_STATUS || ac_write_fail=1
16776 rm -f conf$$subs.awk
16777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16779 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16780 for (key in S) S_is_set[key] = 1
16786 nfields = split(line, field, "@
")
16788 len = length(field[1])
16789 for (i = 2; i < nfields; i++) {
16791 keylen = length(key)
16792 if (S_is_set[key]) {
16794 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16795 len += length(value) + length(field[++i])
16806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16807 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16808 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16811 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16812 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16815 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16816 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16817 # trailing colons and then remove the whole line if VPATH becomes empty
16818 # (actually we leave an empty line to preserve line numbers).
16819 if test "x
$srcdir" = x.; then
16820 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16839 fi # test -n "$CONFIG_FILES"
16841 # Set up the scripts for CONFIG_HEADERS section.
16842 # No need to generate them if there are no CONFIG_HEADERS.
16843 # This happens for instance with `./config.status Makefile'.
16844 if test -n "$CONFIG_HEADERS"; then
16845 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16849 # Transform confdefs.h into an awk script `defines.awk', embedded as
16850 # here-document in config.status, that substitutes the proper values into
16851 # config.h.in to produce config.h.
16853 # Create a delimiter string that does not exist in confdefs.h, to ease
16854 # handling of long lines.
16856 for ac_last_try in false false :; do
16857 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16858 if test -z "$ac_tt"; then
16860 elif $ac_last_try; then
16861 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16863 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16867 # For the awk script, D is an array of macro values keyed by name,
16868 # likewise P contains macro parameters if any. Preserve backslash
16869 # newline sequences.
16871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16873 s/.\{148\}/&'"$ac_delim"'/g
16876 s/^[ ]*#[ ]*define[ ][ ]*/ /
16883 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16885 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16889 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16890 D["\
1"]=" \
3\\\\\\n
"\\/p
16892 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16897 s/.\{148\}/&'"$ac_delim"'/g
16902 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16905 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16907 ' <confdefs.h | sed '
16908 s/'"$ac_delim"'/"\\\
16909 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16912 for (key in D) D_is_set[key] = 1
16915 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16917 split(line, arg, " ")
16918 if (arg[1] == "#") {
16922 defundef
= substr
(arg
[1], 2)
16925 split(mac1
, mac2
, "(") #)
16927 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16928 if (D_is_set
[macro
]) {
16929 # Preserve the white space surrounding the "#".
16930 print prefix
"define", macro P
[macro
] D
[macro
]
16933 # Replace #undef with comments. This is necessary, for example,
16934 # in the case of _POSIX_SOURCE, which is predefined and required
16935 # on some systems where configure will not decide to define it.
16936 if (defundef
== "undef") {
16937 print
"/*", prefix defundef
, macro
, "*/"
16945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16946 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16947 fi # test -n "$CONFIG_HEADERS"
16950 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16955 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16957 case $ac_mode$ac_tag in
16959 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16960 :[FH
]-) ac_tag
=-:-;;
16961 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16978 -) ac_f
="$ac_tmp/stdin";;
16979 *) # Look for the file first in the build tree, then in the source tree
16980 # (if the path is not absolute). The absolute path cannot be DOS-style,
16981 # because $ac_f cannot contain `:'.
16985 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16987 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16989 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16990 as_fn_append ac_file_inputs
" '$ac_f'"
16993 # Let's still pretend it is `configure' which instantiates (i.e., don't
16994 # use $as_me), people would be surprised to read:
16995 # /* config.h. Generated by config.status. */
16996 configure_input
='Generated from '`
16997 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16999 if test x
"$ac_file" != x-
; then
17000 configure_input
="$ac_file. $configure_input"
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17002 $as_echo "$as_me: creating $ac_file" >&6;}
17004 # Neutralize special characters interpreted by sed in replacement strings.
17005 case $configure_input in #(
17006 *\
&* |
*\|
* |
*\\* )
17007 ac_sed_conf_input
=`$as_echo "$configure_input" |
17008 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17009 *) ac_sed_conf_input
=$configure_input;;
17013 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17014 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17019 ac_dir
=`$as_dirname -- "$ac_file" ||
17020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17021 X"$ac_file" : 'X\(//\)[^/]' \| \
17022 X"$ac_file" : 'X\(//\)$' \| \
17023 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17024 $as_echo X"$ac_file" |
17025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17029 /^X\(\/\/\)[^/].*/{
17042 as_dir
="$ac_dir"; as_fn_mkdir_p
17046 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17048 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17049 # A ".." for each directory in $ac_dir_suffix.
17050 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17051 case $ac_top_builddir_sub in
17052 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17053 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17056 ac_abs_top_builddir
=$ac_pwd
17057 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17058 # for backward compatibility:
17059 ac_top_builddir
=$ac_top_build_prefix
17062 .
) # We are building in place.
17064 ac_top_srcdir
=$ac_top_builddir_sub
17065 ac_abs_top_srcdir
=$ac_pwd ;;
17066 [\\/]* | ?
:[\\/]* ) # Absolute name.
17067 ac_srcdir
=$srcdir$ac_dir_suffix;
17068 ac_top_srcdir
=$srcdir
17069 ac_abs_top_srcdir
=$srcdir ;;
17070 *) # Relative name.
17071 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17072 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17073 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17075 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17087 # If the template does not know about datarootdir, expand it.
17088 # FIXME: This hack should be removed a few years after 2.60.
17089 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17100 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17101 *datarootdir
*) ac_datarootdir_seen
=yes;;
17102 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17104 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17107 ac_datarootdir_hack='
17108 s&@datadir@&$datadir&g
17109 s&@docdir@&$docdir&g
17110 s&@infodir@&$infodir&g
17111 s&@localedir@&$localedir&g
17112 s&@mandir@&$mandir&g
17113 s&\\\${datarootdir}&$datarootdir&g' ;;
17117 # Neutralize VPATH when `$srcdir' = `.'.
17118 # Shell code in configure.ac might set extrasub.
17119 # FIXME: do we really want to maintain this feature?
17120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17121 ac_sed_extra="$ac_vpsub
17124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17126 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17127 s|@configure_input@|
$ac_sed_conf_input|
;t t
17128 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17129 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17130 s
&@srcdir@
&$ac_srcdir&;t t
17131 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17132 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17133 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17134 s
&@builddir@
&$ac_builddir&;t t
17135 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17136 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17137 $ac_datarootdir_hack
17139 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17140 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17142 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17143 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17144 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17145 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17147 which seems to be undefined. Please make sure it is defined" >&5
17148 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17149 which seems to be undefined. Please make sure it is defined" >&2;}
17151 rm -f "$ac_tmp/stdin"
17153 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17154 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17162 if test x"$ac_file" != x-; then
17164 $as_echo "/* $configure_input */" \
17165 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17166 } >"$ac_tmp/config.h" \
17167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17168 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17170 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17173 mv "$ac_tmp/config.h" "$ac_file" \
17174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17177 $as_echo "/* $configure_input */" \
17178 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17179 || as_fn_error $? "could not create -" "$LINENO" 5
17183 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17184 $as_echo "$as_me: executing $ac_file commands" >&6;}
17189 case $ac_file$ac_mode in
17190 "genmf-executable-support":C)
17191 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
17192 chmod a+x ${aros_tools_dir}/genmf.py
17194 "binutils-support":C)
17195 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17197 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17199 chmod a+x ${prefix2}-ld
17201 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
17202 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
17203 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
17204 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
17205 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
17206 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
17207 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
17209 "elf-compiler-support":C)
17210 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17212 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
17214 chmod a+x ${prefix2}-gcc
17216 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
17218 "host-compiler-wrapper-support":C)
17219 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17221 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17223 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
17232 ac_clean_files=$ac_clean_files_save
17234 test $ac_write_fail = 0 ||
17235 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17238 # configure is writing to config.log, and then calls config.status.
17239 # config.status does its own redirection, appending to config.log.
17240 # Unfortunately, on DOS this fails, as config.log is still kept open
17241 # by configure, so config.status won't be able to
write to it
; its
17242 # output is simply discarded. So we exec the FD to /dev/null,
17243 # effectively closing config.log, so it can be properly (re)opened and
17244 # appended to by config.status. When coming back to configure, we
17245 # need to make the FD available again.
17246 if test "$no_create" != yes; then
17248 ac_config_status_args
=
17249 test "$silent" = yes &&
17250 ac_config_status_args
="$ac_config_status_args --quiet"
17252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17255 # would make configure fail if this is the last instruction.
17256 $ac_cs_success || as_fn_exit
1
17258 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17260 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17265 #XXX compatability...
17266 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
17268 if test -n "$aros_shared_cflags" ; then
17269 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
17270 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg