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 target_binutils_version
629 ignore_undefined_symbols
643 gcc_default_float_abi
651 aros_nesting_supervisor
659 aros_host_x11_ldflags
667 crosstools_cxx_target
671 aros_optimization_cflags
674 aros_target_strip_flags
682 aros_kernel_objcflags
708 aros_target_cc_includes
724 aros_target_bootloader
752 host_stat_h__unused_used
753 aros_amigaos_compliance
761 aros_target_toolchain
770 kernel_cflags_iquote_end
772 host_cflags_iquote_end
775 aros_target_nostdlib_ldflags
776 aros_target_detach_ldflags
777 aros_target_nix_ldflags
778 aros_target_nostartup_ldflags
779 aros_target_nostdinc_cflags
818 arosconfig_use_libpngconfig
902 program_transform_name
915 enable_option_checking
926 with_kernel_gcc_version
929 enable_target_variant
936 enable_amigaos_compliance
937 with_kernel_toolchain_prefix
938 with_elf_toolchain_prefix
941 with_aros_toolchain_install
942 with_binutils_version
956 enable_palm_debug_hack
958 enable_nesting_supervisor
970 ac_precious_vars
='build_alias
986 # Initialize some variables set by options.
988 ac_init_version
=false
989 ac_unrecognized_opts
=
991 # The variables have the same names as the options, with
992 # dashes changed to underlines.
1000 program_transform_name
=s
,x
,x
,
1008 # Installation directory options.
1009 # These are left unexpanded so users can "make install exec_prefix=/foo"
1010 # and all the variables that are supposed to be based on exec_prefix
1011 # by default will actually change.
1012 # Use braces instead of parens because sh, perl, etc. also accept them.
1013 # (The list follows the same order as the GNU Coding Standards.)
1014 bindir
='${exec_prefix}/bin'
1015 sbindir
='${exec_prefix}/sbin'
1016 libexecdir
='${exec_prefix}/libexec'
1017 datarootdir
='${prefix}/share'
1018 datadir
='${datarootdir}'
1019 sysconfdir
='${prefix}/etc'
1020 sharedstatedir
='${prefix}/com'
1021 localstatedir
='${prefix}/var'
1022 runstatedir
='${localstatedir}/run'
1023 includedir
='${prefix}/include'
1024 oldincludedir
='/usr/include'
1025 docdir
='${datarootdir}/doc/${PACKAGE}'
1026 infodir
='${datarootdir}/info'
1031 libdir
='${exec_prefix}/lib'
1032 localedir
='${datarootdir}/locale'
1033 mandir
='${datarootdir}/man'
1039 # If the previous option needs an argument, assign it.
1040 if test -n "$ac_prev"; then
1041 eval $ac_prev=\
$ac_option
1047 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1052 # Accept the important Cygnus configure options, so we can diagnose typos.
1054 case $ac_dashdash$ac_option in
1058 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1060 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1061 bindir
=$ac_optarg ;;
1063 -build |
--build |
--buil |
--bui |
--bu)
1064 ac_prev
=build_alias
;;
1065 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1066 build_alias
=$ac_optarg ;;
1068 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1069 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1070 ac_prev
=cache_file
;;
1071 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1072 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1073 cache_file
=$ac_optarg ;;
1075 --config-cache |
-C)
1076 cache_file
=config.cache
;;
1078 -datadir |
--datadir |
--datadi |
--datad)
1080 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1081 datadir
=$ac_optarg ;;
1083 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1084 |
--dataroo |
--dataro |
--datar)
1085 ac_prev
=datarootdir
;;
1086 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1087 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1088 datarootdir
=$ac_optarg ;;
1090 -disable-* |
--disable-*)
1091 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1094 as_fn_error $?
"invalid feature name: $ac_useropt"
1095 ac_useropt_orig
=$ac_useropt
1096 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1099 "enable_
$ac_useropt"
1101 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1102 ac_unrecognized_sep
=', ';;
1104 eval enable_
$ac_useropt=no
;;
1106 -docdir |
--docdir |
--docdi |
--doc |
--do)
1108 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1109 docdir
=$ac_optarg ;;
1111 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1113 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1114 dvidir
=$ac_optarg ;;
1116 -enable-* |
--enable-*)
1117 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1120 as_fn_error $?
"invalid feature name: $ac_useropt"
1121 ac_useropt_orig
=$ac_useropt
1122 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "enable_
$ac_useropt"
1127 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1128 ac_unrecognized_sep
=', ';;
1130 eval enable_
$ac_useropt=\
$ac_optarg ;;
1132 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1133 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1134 |
--exec |
--exe |
--ex)
1135 ac_prev
=exec_prefix
;;
1136 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1137 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1138 |
--exec=* |
--exe=* |
--ex=*)
1139 exec_prefix
=$ac_optarg ;;
1141 -gas |
--gas |
--ga |
--g)
1142 # Obsolete; use --with-gas.
1145 -help |
--help |
--hel |
--he |
-h)
1146 ac_init_help
=long
;;
1147 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1148 ac_init_help
=recursive
;;
1149 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1150 ac_init_help
=short
;;
1152 -host |
--host |
--hos |
--ho)
1153 ac_prev
=host_alias
;;
1154 -host=* |
--host=* |
--hos=* |
--ho=*)
1155 host_alias
=$ac_optarg ;;
1157 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1159 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1161 htmldir
=$ac_optarg ;;
1163 -includedir |
--includedir |
--includedi |
--included |
--include \
1164 |
--includ |
--inclu |
--incl |
--inc)
1165 ac_prev
=includedir
;;
1166 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1167 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1168 includedir
=$ac_optarg ;;
1170 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1172 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1173 infodir
=$ac_optarg ;;
1175 -libdir |
--libdir |
--libdi |
--libd)
1177 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1178 libdir
=$ac_optarg ;;
1180 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1181 |
--libexe |
--libex |
--libe)
1182 ac_prev
=libexecdir
;;
1183 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1184 |
--libexe=* |
--libex=* |
--libe=*)
1185 libexecdir
=$ac_optarg ;;
1187 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1188 ac_prev
=localedir
;;
1189 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1190 localedir
=$ac_optarg ;;
1192 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1193 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1194 ac_prev
=localstatedir
;;
1195 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1196 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1197 localstatedir
=$ac_optarg ;;
1199 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1201 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1202 mandir
=$ac_optarg ;;
1204 -nfp |
--nfp |
--nf)
1205 # Obsolete; use --without-fp.
1208 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1209 |
--no-cr |
--no-c |
-n)
1212 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1213 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1216 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1217 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1218 |
--oldin |
--oldi |
--old |
--ol |
--o)
1219 ac_prev
=oldincludedir
;;
1220 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1221 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1222 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1223 oldincludedir
=$ac_optarg ;;
1225 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1227 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1228 prefix
=$ac_optarg ;;
1230 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1231 |
--program-pre |
--program-pr |
--program-p)
1232 ac_prev
=program_prefix
;;
1233 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1234 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1235 program_prefix
=$ac_optarg ;;
1237 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1238 |
--program-suf |
--program-su |
--program-s)
1239 ac_prev
=program_suffix
;;
1240 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1241 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1242 program_suffix
=$ac_optarg ;;
1244 -program-transform-name |
--program-transform-name \
1245 |
--program-transform-nam |
--program-transform-na \
1246 |
--program-transform-n |
--program-transform- \
1247 |
--program-transform |
--program-transfor \
1248 |
--program-transfo |
--program-transf \
1249 |
--program-trans |
--program-tran \
1250 |
--progr-tra |
--program-tr |
--program-t)
1251 ac_prev
=program_transform_name
;;
1252 -program-transform-name=* |
--program-transform-name=* \
1253 |
--program-transform-nam=* |
--program-transform-na=* \
1254 |
--program-transform-n=* |
--program-transform-=* \
1255 |
--program-transform=* |
--program-transfor=* \
1256 |
--program-transfo=* |
--program-transf=* \
1257 |
--program-trans=* |
--program-tran=* \
1258 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1259 program_transform_name
=$ac_optarg ;;
1261 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1263 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1264 pdfdir
=$ac_optarg ;;
1266 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1268 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1271 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1272 |
-silent |
--silent |
--silen |
--sile |
--sil)
1275 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1276 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1277 |
--run |
--ru |
--r)
1278 ac_prev
=runstatedir
;;
1279 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1280 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1281 |
--run=* |
--ru=* |
--r=*)
1282 runstatedir
=$ac_optarg ;;
1284 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1286 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1288 sbindir
=$ac_optarg ;;
1290 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1291 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1292 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1294 ac_prev
=sharedstatedir
;;
1295 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1296 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1297 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1299 sharedstatedir
=$ac_optarg ;;
1301 -site |
--site |
--sit)
1303 -site=* |
--site=* |
--sit=*)
1306 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1308 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1309 srcdir
=$ac_optarg ;;
1311 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1312 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1313 ac_prev
=sysconfdir
;;
1314 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1315 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1316 sysconfdir
=$ac_optarg ;;
1318 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1319 ac_prev
=target_alias
;;
1320 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1321 target_alias
=$ac_optarg ;;
1323 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1326 -version |
--version |
--versio |
--versi |
--vers |
-V)
1327 ac_init_version
=: ;;
1330 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1333 as_fn_error $?
"invalid package name: $ac_useropt"
1334 ac_useropt_orig
=$ac_useropt
1335 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1340 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1341 ac_unrecognized_sep
=', ';;
1343 eval with_
$ac_useropt=\
$ac_optarg ;;
1345 -without-* |
--without-*)
1346 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1349 as_fn_error $?
"invalid package name: $ac_useropt"
1350 ac_useropt_orig
=$ac_useropt
1351 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1356 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1357 ac_unrecognized_sep
=', ';;
1359 eval with_
$ac_useropt=no
;;
1362 # Obsolete; use --with-x.
1365 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1366 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1367 ac_prev
=x_includes
;;
1368 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1369 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1370 x_includes
=$ac_optarg ;;
1372 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1373 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1374 ac_prev
=x_libraries
;;
1375 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1376 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1377 x_libraries
=$ac_optarg ;;
1379 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1380 Try \`$0 --help' for more information"
1384 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1385 # Reject names that are not valid shell variable names.
1386 case $ac_envvar in #(
1387 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1388 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1390 eval $ac_envvar=\
$ac_optarg
1391 export $ac_envvar ;;
1394 # FIXME: should be removed in autoconf 3.0.
1395 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1396 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1397 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1398 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1404 if test -n "$ac_prev"; then
1405 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1406 as_fn_error $?
"missing argument to $ac_option"
1409 if test -n "$ac_unrecognized_opts"; then
1410 case $enable_option_checking in
1412 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1413 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1417 # Check all directory arguments for consistency.
1418 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1419 datadir sysconfdir sharedstatedir localstatedir includedir \
1420 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1421 libdir localedir mandir runstatedir
1423 eval ac_val
=\$
$ac_var
1424 # Remove trailing slashes.
1427 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1428 eval $ac_var=\
$ac_val;;
1430 # Be sure to have absolute directory names.
1432 [\\/$
]* | ?
:[\\/]* ) continue;;
1433 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1435 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1438 # There might be people who depend on the old broken behavior: `$host'
1439 # used to hold the argument of --host etc.
1440 # FIXME: To remove some day.
1443 target
=$target_alias
1445 # FIXME: To remove some day.
1446 if test "x$host_alias" != x
; then
1447 if test "x$build_alias" = x
; then
1448 cross_compiling
=maybe
1449 elif test "x$build_alias" != "x$host_alias"; then
1455 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1457 test "$silent" = yes && exec 6>/dev
/null
1460 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1461 ac_ls_di
=`ls -di .` &&
1462 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1463 as_fn_error $?
"working directory cannot be determined"
1464 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1465 as_fn_error $?
"pwd does not report name of working directory"
1468 # Find the source files, if location was not specified.
1469 if test -z "$srcdir"; then
1470 ac_srcdir_defaulted
=yes
1471 # Try the directory containing this script, then the parent directory.
1472 ac_confdir
=`$as_dirname -- "$as_myself" ||
1473 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1474 X"$as_myself" : 'X\(//\)[^/]' \| \
1475 X"$as_myself" : 'X\(//\)$' \| \
1476 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1477 $as_echo X"$as_myself" |
1478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1496 if test ! -r "$srcdir/$ac_unique_file"; then
1500 ac_srcdir_defaulted
=no
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1503 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1504 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1506 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1508 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1510 # When building in place, set srcdir=.
1511 if test "$ac_abs_confdir" = "$ac_pwd"; then
1514 # Remove unnecessary trailing slashes from srcdir.
1515 # Double slashes in file names in object file debugging info
1516 # mess up M-x gdb in Emacs.
1518 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1520 for ac_var
in $ac_precious_vars; do
1521 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1522 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1523 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1524 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1528 # Report the --help message.
1530 if test "$ac_init_help" = "long"; then
1531 # Omit some internal or obsolete options to make the list less imposing.
1532 # This message is too long to be a string in the A/UX 3.1 sh.
1534 \`configure' configures this package to adapt to many kinds of systems.
1536 Usage: $0 [OPTION]... [VAR=VALUE]...
1538 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1539 VAR=VALUE. See below for descriptions of some of the useful variables.
1541 Defaults for the options are specified in brackets.
1544 -h, --help display this help and exit
1545 --help=short display options specific to this package
1546 --help=recursive display the short help of all the included packages
1547 -V, --version display version information and exit
1548 -q, --quiet, --silent do not print \`checking ...' messages
1549 --cache-file=FILE cache test results in FILE [disabled]
1550 -C, --config-cache alias for \`--cache-file=config.cache'
1551 -n, --no-create do not create output files
1552 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1554 Installation directories:
1555 --prefix=PREFIX install architecture-independent files in PREFIX
1556 [$ac_default_prefix]
1557 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1560 By default, \`make install' will install all the files in
1561 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1562 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1563 for instance \`--prefix=\$HOME'.
1565 For better control, use the options below.
1567 Fine tuning of the installation directories:
1568 --bindir=DIR user executables [EPREFIX/bin]
1569 --sbindir=DIR system admin executables [EPREFIX/sbin]
1570 --libexecdir=DIR program executables [EPREFIX/libexec]
1571 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1572 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1573 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1574 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1575 --libdir=DIR object code libraries [EPREFIX/lib]
1576 --includedir=DIR C header files [PREFIX/include]
1577 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1578 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1579 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1580 --infodir=DIR info documentation [DATAROOTDIR/info]
1581 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1582 --mandir=DIR man documentation [DATAROOTDIR/man]
1583 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1584 --htmldir=DIR html documentation [DOCDIR]
1585 --dvidir=DIR dvi documentation [DOCDIR]
1586 --pdfdir=DIR pdf documentation [DOCDIR]
1587 --psdir=DIR ps documentation [DOCDIR]
1593 --x-includes=DIR X include files are
in DIR
1594 --x-libraries=DIR X library files are
in DIR
1597 --build=BUILD configure
for building on BUILD
[guessed
]
1598 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1602 if test -n "$ac_init_help"; then
1607 --disable-option-checking ignore unrecognized
--enable/--with options
1608 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1609 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1610 --disable-libpng-config disable libpng-config
test and configuration
1611 --enable-lto=yes|no Enable link
time optimizations
if the target
1612 compiler supports them
(default
=no
)
1613 --enable-coverage=yes|no
1614 Enable coverage instrumentation
if the target
1615 compiler supports it
(default
=no
)
1616 --enable-build-type=TYPE
1617 Select the build
type. Available types are
:
1618 personal
, nightly
, snapshot
, milestone
, release. Do
1619 NOT use this option unless you know what you are
1620 doing
! (default
=personal
)
1621 --enable-debug=list Enable different types of debug. Commas or
1622 whitespaces can be used to separate the items
in the
1623 list. Available types of debug are
: all
, none
,
1624 messages
, stack
, mungwall
, modules
, symbols. If no
1625 list is provided
then "all" is assumed.
1627 --enable-distcc Use distcc as a front end to the compiler
1629 --enable-ccache Use ccache as a front end to the compiler
1631 --enable-target-variant=NAME
1632 Enable a specific target variant
(default
=none
)
1633 --enable-amigaos-compliance=VERSION
1634 Enforce userspace AmigaOS compliance to a specific
1635 KickStart version
(default
=none
).
1636 --disable-crosstools Do not build cross-compiler toolchain
1637 --enable-objc Enable Objectve-C support
(default
=no
)
1638 --enable-java Enable Java support
(default
=no
)
1639 --enable-includes=dir Alternative system include directory
1640 --enable-palm-debug-hack
1641 Enable palm debug output hack
in palm native
1643 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1644 --enable-nesting-supervisor
1645 Enable nesting supervisor support
in unix
1647 --disable-mmu Disable MMU support
(default
=enabled
)
1648 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1649 --enable-x11-shm use X11 shared memory
(default
=auto
)
1650 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1651 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1652 --disable-sdltest Do not try to compile and run a
test SDL program
1653 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1656 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1657 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1658 --with-c-compiler=VERSION
1659 Use specified c compiler
for building AROS
1660 --with-cxx-compiler=VERSION
1661 Use specified c
++ compiler building AROS
1662 --with-toolchain=family Which toolchain family to crosscompile with
1664 --with-kernel-gcc-version=VERSION
1665 Use gcc-VERSION
for building bootstrap
1666 --with-optimization=FLAGS
1667 Use optimization flags FLAGS
(e.g
1668 --with-optimization=-O2).
1669 --with-paranoia=(yes|no|FLAGS
)
1670 Specific compiler warning FLAGS to
enable for
1671 paranoia builds
(default
=-Wall -Werror)
1672 --with-xcode=PATH Specify XCode path
for iOS targets
1673 (default
=/Developer
).
1674 --with-sdk-version=VERSION
1675 Use iOS SDK version VERSION
(default
=4.1).
1676 --with-sdk=PATH Specify Android SDK path
1677 (default
=$default_android_sdk).
1678 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1679 --with-sdk-version=LEVEL
1680 Use Android SDK
for API LEVEL
(default
=12).
1681 --with-ndk-version=LEVEL
1682 Use Android NDK
for API LEVEL
(default
=9).
1683 --with-apk-version=(release|debug
)
1684 Which version of AROSBootstrap.apk to compile.
1685 Release version needs key
for signing
, debug version
1686 will only run
in emulator.
(default
=release
)
1687 --with-kernel-toolchain-prefix=...
1688 Specify crosscompile toolchain prefix
for kernel
1690 --with-elf-toolchain-prefix=...
1691 Specify crosscompile toolchain prefix to wrap
for
1693 --with-aros-toolchain=PREFIX
1694 Specify prebuilt AROS toolchain. Use
yes for default
1696 --with-aros-toolchain-install=DIR
1697 Where to
install or search
for cross tools binaries
1698 --with-binutils-version=VERSION
1699 Use binutils-VERSION
for building AROS
1700 --with-gcc-version=VERSION
1701 Compile gcc-VERSION
for AROS
1702 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1703 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1704 --with-float=<spec
> Specify floating point ABI
1705 (default
=$gcc_default_float_abi).
1706 --with-portssources=DIR Where to download sourcecode
for external ports
1707 --with-bootloader=NAME Use a specific bootloader
1708 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1709 --with-theme=NAME Use a specific GUI Theme
1710 --with-resolution=XRESxYRESxDEPTH
1711 Default resolution of the initial WorkbenchScreen
1712 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1713 --with-x use the X Window System
1714 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1715 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1717 Some influential environment variables
:
1718 CXX C
++ compiler
command
1719 CXXFLAGS C
++ compiler flags
1720 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1721 nonstandard directory
<lib dir
>
1722 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1723 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1724 you have headers
in a nonstandard directory
<include dir
>
1725 CC C compiler
command
1726 CFLAGS C compiler flags
1728 PYTHON the Python interpreter
1729 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1731 Use these variables to override the choices made by
`configure' or to help
1732 it to find libraries and programs with nonstandard names/locations.
1734 Report bugs to the package provider.
1739 if test "$ac_init_help" = "recursive"; then
1740 # If there are subdirs, report their specific --help.
1741 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1742 test -d "$ac_dir" ||
1743 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1748 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1750 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1751 # A ".." for each directory in $ac_dir_suffix.
1752 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1753 case $ac_top_builddir_sub in
1754 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1755 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1758 ac_abs_top_builddir=$ac_pwd
1759 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1760 # for backward compatibility:
1761 ac_top_builddir=$ac_top_build_prefix
1764 .) # We are building in place.
1766 ac_top_srcdir=$ac_top_builddir_sub
1767 ac_abs_top_srcdir=$ac_pwd ;;
1768 [\\/]* | ?:[\\/]* ) # Absolute name.
1769 ac_srcdir=$srcdir$ac_dir_suffix;
1770 ac_top_srcdir=$srcdir
1771 ac_abs_top_srcdir=$srcdir ;;
1773 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1774 ac_top_srcdir=$ac_top_build_prefix$srcdir
1775 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1777 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1779 cd "$ac_dir" || { ac_status=$?; continue; }
1780 # Check for guested configure.
1781 if test -f "$ac_srcdir/configure.gnu"; then
1783 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1784 elif test -f "$ac_srcdir/configure"; then
1786 $SHELL "$ac_srcdir/configure" --help=recursive
1788 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1790 cd "$ac_pwd" || { ac_status=$?; break; }
1794 test -n "$ac_init_help" && exit $ac_status
1795 if $ac_init_version; then
1798 generated by GNU Autoconf 2.69
1800 Copyright (C) 2012 Free Software Foundation, Inc.
1801 This configure script is free software; the Free Software Foundation
1802 gives unlimited permission to copy, distribute and modify it.
1807 ## ------------------------ ##
1808 ## Autoconf initialization. ##
1809 ## ------------------------ ##
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext
1818 if { { ac_try="$ac_compile"
1820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1821 *) ac_try_echo
=$ac_try;;
1823 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1827 if test -s conftest.err
; then
1828 grep -v '^ *+' conftest.err
>conftest.er1
1829 cat conftest.er1
>&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_cxx_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.
$ac_objext; then :
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.
$ac_ext >&5
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 as_fn_set_status
$ac_retval
1847 } # ac_fn_cxx_try_compile
1849 # ac_fn_c_try_compile LINENO
1850 # --------------------------
1851 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_compile
()
1854 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1855 rm -f conftest.
$ac_objext
1856 if { { ac_try
="$ac_compile"
1858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_compile") 2>conftest.err
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest.$ac_objext; then :
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1885 } # ac_fn_c_try_compile
1887 # ac_fn_c_try_cpp LINENO
1888 # ----------------------
1889 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_cpp conftest.$ac_ext"
1895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1896 *) ac_try_echo
=$ac_try;;
1898 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1902 if test -s conftest.err
; then
1903 grep -v '^ *+' conftest.err
>conftest.er1
1904 cat conftest.er1
>&5
1905 mv -f conftest.er1 conftest.err
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } > conftest.i
&& {
1909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1910 test ! -s conftest.err
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.
$ac_ext >&5
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status
$ac_retval
1924 # ac_fn_c_try_link LINENO
1925 # -----------------------
1926 # Try to link conftest.$ac_ext, and return whether this succeeded.
1929 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1930 rm -f conftest.
$ac_objext conftest
$ac_exeext
1931 if { { ac_try
="$ac_link"
1933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_link") 2>conftest.err
1940 if test -s conftest.err; then
1941 grep -v '^ *+' conftest.err >conftest.er1
1942 cat conftest.er1 >&5
1943 mv -f conftest.er1 conftest.err
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } && {
1947 test -z "$ac_c_werror_flag" ||
1948 test ! -s conftest.err
1949 } && test -s conftest$ac_exeext && {
1950 test "$cross_compiling" = yes ||
1951 test -x conftest$ac_exeext
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1960 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1961 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1962 # interfere with the next link command; also delete a directory that is
1963 # left behind by Apple's compiler. We do this before executing the actions.
1964 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status $ac_retval
1968 } # ac_fn_c_try_link
1970 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1971 # -------------------------------------------------------
1972 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1973 # the include files in INCLUDES and setting the cache variable VAR
1975 ac_fn_c_check_header_mongrel ()
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if eval \${$3+:} false; then :
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if eval \${$3+:} false; then :
1982 $as_echo_n "(cached) " >&6
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1988 # Is the header compilable?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1990 $as_echo_n "checking $2 usability... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 ac_header_compiler=yes
1999 ac_header_compiler=no
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2003 $as_echo "$ac_header_compiler" >&6; }
2005 # Is the header present?
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2007 $as_echo_n "checking $2 presence... " >&6; }
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2012 if ac_fn_c_try_cpp "$LINENO"; then :
2013 ac_header_preproc=yes
2015 ac_header_preproc=no
2017 rm -f conftest.err conftest.i conftest.$ac_ext
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2019 $as_echo "$ac_header_preproc" >&6; }
2021 # So? What about this header?
2022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2025 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2027 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2031 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2033 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2035 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2037 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2047 eval "$3=\$ac_header_compiler"
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_header_mongrel
2057 # ac_fn_c_try_run LINENO
2058 # ----------------------
2059 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2060 # that executables *can* be run.
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 if { { ac_try="$ac_link"
2066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2067 *) ac_try_echo
=$ac_try;;
2069 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 $as_echo "$ac_try_echo"; } >&5
2071 (eval "$ac_link") 2>&5
2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2075 { { case "(($ac_try" in
2076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2077 *) ac_try_echo=$ac_try;;
2079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2080 $as_echo "$ac_try_echo"; } >&5
2081 (eval "$ac_try") 2>&5
2083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084 test $ac_status = 0; }; }; then :
2087 $as_echo "$as_me: program exited with status $ac_status" >&5
2088 $as_echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2091 ac_retval=$ac_status
2093 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 as_fn_set_status $ac_retval
2099 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2100 # -------------------------------------------------------
2101 # Tests whether HEADER exists and can be compiled using the include files in
2102 # INCLUDES, setting the cache variable VAR accordingly.
2103 ac_fn_c_check_header_compile ()
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval \${$3+:} false; then :
2109 $as_echo_n "(cached) " >&6
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2116 if ac_fn_c_try_compile "$LINENO"; then :
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 } # ac_fn_c_check_header_compile
2130 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2131 # ----------------------------------------------------
2132 # Tries to find if the field MEMBER exists in type AGGR, after including
2133 # INCLUDES, setting cache variable VAR accordingly.
2134 ac_fn_c_check_member ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2138 $as_echo_n "checking for $2.$3... " >&6; }
2139 if eval \${$4+:} false; then :
2140 $as_echo_n "(cached) " >&6
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2155 if ac_fn_c_try_compile "$LINENO"; then :
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2165 if (sizeof ac_aggr.$3)
2171 if ac_fn_c_try_compile "$LINENO"; then :
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185 } # ac_fn_c_check_member
2187 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2188 # ---------------------------------------------
2189 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2191 ac_fn_c_check_decl ()
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2195 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2197 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2198 if eval \${$3+:} false; then :
2199 $as_echo_n "(cached) " >&6
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2207 #ifndef $as_decl_name
2209 (void) $as_decl_use;
2211 (void) $as_decl_name;
2219 if ac_fn_c_try_compile "$LINENO"; then :
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2228 $as_echo "$ac_res" >&6; }
2229 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231 } # ac_fn_c_check_decl
2233 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2234 # -------------------------------------------
2235 # Tests whether TYPE exists after having included INCLUDES, setting cache
2236 # variable VAR accordingly.
2237 ac_fn_c_check_type ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if eval \${$3+:} false; then :
2243 $as_echo_n "(cached) " >&6
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2271 if ac_fn_c_try_compile "$LINENO"; then :
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 } # ac_fn_c_check_type
2287 # ac_fn_c_check_func LINENO FUNC VAR
2288 # ----------------------------------
2289 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2290 ac_fn_c_check_func ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294 $as_echo_n "checking for $2... " >&6; }
2295 if eval \${$3+:} false; then :
2296 $as_echo_n "(cached) " >&6
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2302 #define $2 innocuous_$2
2304 /* System header to define __stub macros and hopefully few prototypes,
2305 which can conflict with char $2 (); below.
2306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2307 <limits.h> exists even on freestanding compilers. */
2310 # include <limits.h>
2312 # include <assert.h>
2317 /* Override any GCC internal prototype to avoid an error.
2318 Use char because int might match the return type of a GCC
2319 builtin and then its argument prototype would still apply. */
2324 /* The GNU C library defines this for functions which it implements
2325 to always fail with ENOSYS. Some functions are actually named
2326 something starting with __ and the normal name is an alias. */
2327 #if defined __stub_$2 || defined __stub___$2
2339 if ac_fn_c_try_link "$LINENO"; then :
2344 rm -f core conftest.err conftest.$ac_objext \
2345 conftest$ac_exeext conftest.$ac_ext
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352 } # ac_fn_c_check_func
2353 cat >config.log <<_ACEOF
2354 This file contains any messages produced by compilers while
2355 running configure, to aid debugging if configure makes a mistake.
2357 It was created by $as_me, which was
2358 generated by GNU Autoconf 2.69. Invocation command line was
2370 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2371 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2372 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2373 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2374 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2376 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2377 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2379 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2380 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2381 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2382 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2383 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2384 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2385 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 $as_echo "PATH: $as_dir"
2410 # Keep a trace of the command line.
2411 # Strip out --no-create and --no-recursion so they do not pile up.
2412 # Strip out --silent because we don't want to record it for future runs.
2413 # Also quote any args containing shell meta-characters.
2414 # Make two passes to allow for proper duplicate-argument suppression.
2418 ac_must_keep_next=false
2424 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2426 | -silent | --silent | --silen | --sile | --sil)
2429 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2432 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2434 as_fn_append ac_configure_args1 " '$ac_arg'"
2435 if test $ac_must_keep_next = true; then
2436 ac_must_keep_next=false # Got value, back to normal.
2439 *=* | --config-cache | -C | -disable-* | --disable-* \
2440 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2441 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2442 | -with-* | --with-* | -without-* | --without-* | --x)
2443 case "$ac_configure_args0 " in
2444 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2447 -* ) ac_must_keep_next=true ;;
2450 as_fn_append ac_configure_args " '$ac_arg'"
2455 { ac_configure_args0=; unset ac_configure_args0;}
2456 { ac_configure_args1=; unset ac_configure_args1;}
2458 # When interrupted or exit'd, cleanup temporary files, and complete
2459 # config.log. We remove comments because anyway the quotes in there
2460 # would cause problems or look ugly.
2461 # WARNING: Use '\'' to represent an apostrophe within the trap.
2462 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2463 trap 'exit_status=$?
2464 # Save into config.log some information that might help in debugging.
2468 $as_echo "## ---------------- ##
2469 ## Cache variables. ##
2470 ## ---------------- ##"
2472 # The following way of writing the cache mishandles newlines in values,
2474 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2475 eval ac_val=\$$ac_var
2479 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2480 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2483 _ | IFS | as_nl) ;; #(
2484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2485 *) { eval $ac_var=; unset $ac_var;} ;;
2490 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2491 *${as_nl}ac_space=\ *)
2493 "s/'\''/'\''\\\\'\'''\''/g;
2494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2504 $as_echo "## ----------------- ##
2505 ## Output variables. ##
2506 ## ----------------- ##"
2508 for ac_var in $ac_subst_vars
2510 eval ac_val=\$$ac_var
2512 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514 $as_echo "$ac_var='\''$ac_val'\''"
2518 if test -n "$ac_subst_files"; then
2519 $as_echo "## ------------------- ##
2520 ## File substitutions. ##
2521 ## ------------------- ##"
2523 for ac_var in $ac_subst_files
2525 eval ac_val=\$$ac_var
2527 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529 $as_echo "$ac_var='\''$ac_val'\''"
2534 if test -s confdefs.h; then
2535 $as_echo "## ----------- ##
2542 test "$ac_signal" != 0 &&
2543 $as_echo "$as_me: caught signal $ac_signal"
2544 $as_echo "$as_me: exit $exit_status"
2546 rm -f core *.core core.conftest.* &&
2547 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2550 for ac_signal in 1 2 13 15; do
2551 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2555 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2556 rm -f -r conftest* confdefs.h
2558 $as_echo "/* confdefs.h */" > confdefs.h
2560 # Predefined preprocessor variables.
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_NAME "$PACKAGE_NAME"
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_STRING "$PACKAGE_STRING"
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_URL "$PACKAGE_URL"
2587 # Let the site file select an alternate cache file if it wants to.
2588 # Prefer an explicitly selected file to automatically selected ones.
2591 if test -n "$CONFIG_SITE"; then
2592 # We do not want a PATH search for config.site.
2593 case $CONFIG_SITE in #((
2594 -*) ac_site_file1=./$CONFIG_SITE;;
2595 */*) ac_site_file1=$CONFIG_SITE;;
2596 *) ac_site_file1=./$CONFIG_SITE;;
2598 elif test "x$prefix" != xNONE; then
2599 ac_site_file1=$prefix/share/config.site
2600 ac_site_file2=$prefix/etc/config.site
2602 ac_site_file1=$ac_default_prefix/share/config.site
2603 ac_site_file2=$ac_default_prefix/etc/config.site
2605 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2607 test "x$ac_site_file" = xNONE && continue
2608 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2610 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2611 sed 's/^/| /' "$ac_site_file" >&5
2613 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 as_fn_error $? "failed to load site
script $ac_site_file
2616 See \
`config.log' for more details" "$LINENO" 5; }
2620 if test -r "$cache_file"; then
2621 # Some versions of bash will fail to source /dev/null (special files
2622 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2623 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2625 $as_echo "$as_me: loading cache $cache_file" >&6;}
2627 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2628 *) . "./$cache_file";;
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2633 $as_echo "$as_me: creating cache $cache_file" >&6;}
2637 as_fn_append ac_header_list " stdlib.h"
2638 as_fn_append ac_header_list " unistd.h"
2639 as_fn_append ac_header_list " sys/param.h"
2640 # Check that the precious variables saved in the cache have kept the same
2642 ac_cache_corrupted=false
2643 for ac_var in $ac_precious_vars; do
2644 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2645 eval ac_new_set=\$ac_env_${ac_var}_set
2646 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2647 eval ac_new_val=\$ac_env_${ac_var}_value
2648 case $ac_old_set,$ac_new_set in
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2651 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2652 ac_cache_corrupted=: ;;
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2655 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2656 ac_cache_corrupted=: ;;
2659 if test "x$ac_old_val" != "x$ac_new_val"; then
2660 # differences in whitespace do not lead to failure.
2661 ac_old_val_w=`echo x
$ac_old_val`
2662 ac_new_val_w=`echo x
$ac_new_val`
2663 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2665 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2666 ac_cache_corrupted=:
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2669 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2670 eval $ac_var=\$ac_old_val
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2673 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2675 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2678 # Pass precious variables to config.status.
2679 if test "$ac_new_set" = set; then
2681 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2682 *) ac_arg=$ac_var=$ac_new_val ;;
2684 case " $ac_configure_args " in
2685 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2686 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2690 if $ac_cache_corrupted; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2694 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2695 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2697 ## -------------------- ##
2698 ## Main body of script. ##
2699 ## -------------------- ##
2702 ac_cpp='$CPP $CPPFLAGS'
2703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2711 if test -f "$ac_dir/install-sh"; then
2713 ac_install_sh="$ac_aux_dir/install-sh -c"
2715 elif test -f "$ac_dir/install.sh"; then
2717 ac_install_sh="$ac_aux_dir/install.sh -c"
2719 elif test -f "$ac_dir/shtool"; then
2721 ac_install_sh="$ac_aux_dir/shtool install -c"
2725 if test -z "$ac_aux_dir"; then
2726 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2729 # These three variables are undocumented and unsupported,
2730 # and are intended to be withdrawn in a future Autoconf release.
2731 # They can cause serious problems if a builder's source tree is in a directory
2732 # whose full name contains unusual characters.
2733 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2734 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2735 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2739 # Check what host we are running on.
2740 # If a target is not suggested, we use this one.
2741 # Note that what we call a target, Autoconf calls a host.
2742 # Make sure we can run config.sub.
2743 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2744 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2747 $as_echo_n "checking build system type... " >&6; }
2748 if ${ac_cv_build+:} false; then :
2749 $as_echo_n "(cached) " >&6
2751 ac_build_alias=$build_alias
2752 test "x$ac_build_alias" = x &&
2753 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2754 test "x$ac_build_alias" = x &&
2755 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2756 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2757 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2761 $as_echo "$ac_cv_build" >&6; }
2762 case $ac_cv_build in
2764 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2767 ac_save_IFS=$IFS; IFS='-'
2773 # Remember, the first character of IFS is used to create $*,
2774 # except with old shells:
2777 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2781 $as_echo_n "checking host system type... " >&6; }
2782 if ${ac_cv_host+:} false; then :
2783 $as_echo_n "(cached) " >&6
2785 if test "x$host_alias" = x; then
2786 ac_cv_host=$ac_cv_build
2788 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2789 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2794 $as_echo "$ac_cv_host" >&6; }
2797 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2800 ac_save_IFS=$IFS; IFS='-'
2806 # Remember, the first character of IFS is used to create $*,
2807 # except with old shells:
2810 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2814 # Default versions for the gnu tools we build
2815 default_toolchain_family=`cat ${srcdir}/config
/toolchain_def
`
2816 default_gcc_version=`cat ${srcdir}/config
/gcc_def
`
2817 exp_gcc_version=`cat ${srcdir}/config
/gcc_exp
`
2818 default_binutils_version=`cat ${srcdir}/config
/binutils_def
`
2819 exp_binutils_version=`cat ${srcdir}/config
/binutils_exp
`
2820 default_grub2_version="2.02"
2821 target_grub2_version=$default_grub2_version
2823 # The AROS target is slightly different to the normal GNU style
2824 # format. We don't have the middle part, and we reverse the order
2825 # of the $(CPU) and $(OS) bits.
2827 # Don't strip the version of the target yet, it might be
2828 # useful on some systems.
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2831 $as_echo_n "checking for AROS style target... " >&6; }
2833 if test "$target" = "NONE" ; then
2834 target=$host_os-$host_cpu
2836 if test "$target" = "" ; then
2837 target=$host_os-$host_cpu
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2841 $as_echo "$target" >&6; }
2843 if test "$host_os" = "mingw32" ; then
2847 # Don't know where else to put this...
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2849 $as_echo_n "checking building AROS in... " >&6; }
2850 AROS_BUILDDIR=`${PWDCMD-pwd}`
2851 AROS_BUILDDIR_UNIX=${PWD}
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2853 $as_echo "$AROS_BUILDDIR" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2856 $as_echo_n "checking AROS source in... " >&6; }
2857 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2860 $as_echo "$SRCDIR" >&6; }
2862 # Parse the target field into something useful.
2864 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2865 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2868 # Some debug output, to be removed again.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2870 $as_echo_n "checking for target system (debug output)... " >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2872 $as_echo "$target_os" >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2874 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2876 $as_echo "$target_cpu" >&6; }
2878 aros_nominal_width=800
2879 aros_nominal_height=600
2880 aros_nominal_depth=4
2883 default_c_compilers="gcc clang cc"
2885 # Check whether --with-c-compiler was given.
2886 if test "${with_c_compiler+set}" = set; then :
2887 withval=$with_c_compiler; use_c_compiler="$withval"
2892 if test "$use_c_compiler" = ""; then
2893 host_c_compilers="$default_c_compilers"
2895 host_c_compilers="$use_c_compiler"
2898 default_cxx_compilers="g++ clang++ c++"
2900 # Check whether --with-cxx-compiler was given.
2901 if test "${with_cxx_compiler+set}" = set; then :
2902 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2907 if test "$use_cxx_compiler" = ""; then
2908 host_cxx_compilers="$default_cxx_compilers"
2910 host_cxx_compilers="$use_cxx_compiler"
2914 # The first step is to find the host binaries.
2915 # Check for a compiler.
2916 # Due to a bug in autoconf check for c++ compiler first.
2917 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2919 ac_cpp='$CXXCPP $CPPFLAGS'
2920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2923 if test -z "$CXX"; then
2924 if test -n "$CCC"; then
2927 if test -n "$ac_tool_prefix"; then
2928 for ac_prog in ${host_cxx_compilers}
2930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_CXX+:} false; then :
2935 $as_echo_n "(cached) " >&6
2937 if test -n "$CXX"; then
2938 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 if test -n "$CXX"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2960 $as_echo "$CXX" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2967 test -n "$CXX" && break
2970 if test -z "$CXX"; then
2972 for ac_prog in ${host_cxx_compilers}
2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
2975 set dummy $ac_prog; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2979 $as_echo_n "(cached) " >&6
2981 if test -n "$ac_ct_CXX"; then
2982 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_ac_ct_CXX="$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3002 if test -n "$ac_ct_CXX"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3004 $as_echo "$ac_ct_CXX" >&6; }
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3011 test -n "$ac_ct_CXX" && break
3014 if test "x$ac_ct_CXX" = x; then
3017 case $cross_compiling:$ac_tool_warned in
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021 ac_tool_warned=yes ;;
3029 # Provide some information about the compiler.
3030 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3033 for ac_option in --version -v -V -qversion; do
3034 { { ac_try="$ac_compiler $ac_option >&5"
3036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3037 *) ac_try_echo
=$ac_try;;
3039 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040 $as_echo "$ac_try_echo"; } >&5
3041 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3043 if test -s conftest.err
; then
3045 ... rest of stderr output deleted ...
3046 10q' conftest.err
>conftest.er1
3047 cat conftest.er1
>&5
3049 rm -f conftest.er1 conftest.err
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }
3054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3065 ac_clean_files_save
=$ac_clean_files
3066 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3067 # Try to create an executable without -o first, disregard a.out.
3068 # It will help us diagnose broken compilers, and finding out an intuition
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3071 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3072 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3074 # The possible output files:
3075 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3078 for ac_file
in $ac_files
3081 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3082 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3087 if { { ac_try
="$ac_link_default"
3089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093 $as_echo "$ac_try_echo"; } >&5
3094 (eval "$ac_link_default") 2>&5
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }; then :
3098 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3099 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3100 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3101 # so that the user can short-circuit this test for compilers unknown to
3103 for ac_file in $ac_files ''
3105 test -f "$ac_file" || continue
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3110 # We found the default executable, but exeext='' is most
3114 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3116 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3118 # We set ac_cv_exeext here because the later test for it is not
3119 # safe: cross compilers may not add the suffix if given an `-o'
3120 # argument, so we may need to know it at that point already.
3121 # Even if this section looks crufty: it has the advantage of
3128 test "$ac_cv_exeext" = no && ac_cv_exeext=
3133 if test -z "$ac_file"; then :
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 $as_echo "$as_me: failed program was:" >&5
3137 sed 's
/^
/|
/' conftest.$ac_ext >&5
3139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3141 as_fn_error 77 "C++ compiler cannot create executables
3142 See \`config.log
' for more details" "$LINENO" 5; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3145 $as_echo "yes" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3148 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3150 $as_echo "$ac_file" >&6; }
3151 ac_exeext=$ac_cv_exeext
3153 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3154 ac_clean_files=$ac_clean_files_save
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3156 $as_echo_n "checking for suffix of executables... " >&6; }
3157 if { { ac_try="$ac_link"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_link") 2>&5
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3169 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3170 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3172 for ac_file
in conftest.exe conftest conftest.
*; do
3173 test -f "$ac_file" ||
continue
3175 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3176 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3185 See \`config.log' for more details" "$LINENO" 5; }
3187 rm -f conftest conftest
$ac_cv_exeext
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3189 $as_echo "$ac_cv_exeext" >&6; }
3191 rm -f conftest.
$ac_ext
3192 EXEEXT
=$ac_cv_exeext
3194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3200 FILE *f = fopen ("conftest.out", "w");
3201 return ferror (f) || fclose (f) != 0;
3207 ac_clean_files
="$ac_clean_files conftest.out"
3208 # Check that the compiler produces executables we can run. If not, either
3209 # the compiler is broken, or we cross compile.
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3211 $as_echo_n "checking whether we are cross compiling... " >&6; }
3212 if test "$cross_compiling" != yes; then
3213 { { ac_try
="$ac_link"
3215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_link") 2>&5
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }
3224 if { ac_try='./conftest$ac_cv_exeext'
3225 { { case "(($ac_try" in
3226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3227 *) ac_try_echo
=$ac_try;;
3229 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_try") 2>&5
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; }; then
3237 if test "$cross_compiling" = maybe
; then
3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $?
"cannot run C++ compiled programs.
3243 If you meant to cross compile, use \`--host'.
3244 See \`config.log' for more details" "$LINENO" 5; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3249 $as_echo "$cross_compiling" >&6; }
3251 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3252 ac_clean_files
=$ac_clean_files_save
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3254 $as_echo_n "checking for suffix of object files... " >&6; }
3255 if ${ac_cv_objext+:} false
; then :
3256 $as_echo_n "(cached) " >&6
3258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3269 rm -f conftest.o conftest.obj
3270 if { { ac_try
="$ac_compile"
3272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_compile") 2>&5
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; then :
3281 for ac_file in conftest.o conftest.obj conftest.*; do
3282 test -f "$ac_file" || continue;
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3285 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3290 $as_echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3296 See \
`config.log' for more details" "$LINENO" 5; }
3298 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3301 $as_echo "$ac_cv_objext" >&6; }
3302 OBJEXT=$ac_cv_objext
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3305 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3306 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3307 $as_echo_n "(cached) " >&6
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3323 if ac_fn_cxx_try_compile "$LINENO"; then :
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3333 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3334 if test $ac_compiler_gnu = yes; then
3339 ac_test_CXXFLAGS=${CXXFLAGS+set}
3340 ac_save_CXXFLAGS=$CXXFLAGS
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3342 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3343 if ${ac_cv_prog_cxx_g+:} false; then :
3344 $as_echo_n "(cached) " >&6
3346 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3347 ac_cxx_werror_flag=yes
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3361 if ac_fn_cxx_try_compile "$LINENO"; then :
3362 ac_cv_prog_cxx_g=yes
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3376 if ac_fn_cxx_try_compile "$LINENO"; then :
3379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3392 if ac_fn_cxx_try_compile "$LINENO"; then :
3393 ac_cv_prog_cxx_g=yes
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3403 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3404 if test "$ac_test_CXXFLAGS" = set; then
3405 CXXFLAGS=$ac_save_CXXFLAGS
3406 elif test $ac_cv_prog_cxx_g = yes; then
3407 if test "$GXX" = yes; then
3413 if test "$GXX" = yes; then
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430 if test -n "$ac_tool_prefix"; then
3431 for ac_prog in ${host_c_compilers}
3433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_CC+:} false; then :
3438 $as_echo_n "(cached) " >&6
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 if test -n "$CC"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 $as_echo "$CC" >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3470 test -n "$CC" && break
3473 if test -z "$CC"; then
3475 for ac_prog in ${host_c_compilers}
3477 # Extract the first word of "$ac_prog", so it can be a program name with args.
3478 set dummy $ac_prog; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3484 if test -n "$ac_ct_CC"; then
3485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_ac_ct_CC="$ac_prog"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3505 if test -n "$ac_ct_CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3507 $as_echo "$ac_ct_CC" >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3514 test -n "$ac_ct_CC" && break
3517 if test "x$ac_ct_CC" = x; then
3520 case $cross_compiling:$ac_tool_warned in
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3524 ac_tool_warned=yes ;;
3531 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3534 See \
`config.log' for more details" "$LINENO" 5; }
3536 # Provide some information about the compiler.
3537 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3540 for ac_option in --version -v -V -qversion; do
3541 { { ac_try="$ac_compiler $ac_option >&5"
3543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3544 *) ac_try_echo
=$ac_try;;
3546 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3550 if test -s conftest.err
; then
3552 ... rest of stderr output deleted ...
3553 10q' conftest.err
>conftest.er1
3554 cat conftest.er1
>&5
3556 rm -f conftest.er1 conftest.err
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3562 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3563 if ${ac_cv_c_compiler_gnu+:} false
; then :
3564 $as_echo_n "(cached) " >&6
3566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3580 if ac_fn_c_try_compile
"$LINENO"; then :
3585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3586 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3590 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3591 if test $ac_compiler_gnu = yes; then
3596 ac_test_CFLAGS
=${CFLAGS+set}
3597 ac_save_CFLAGS
=$CFLAGS
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3599 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3600 if ${ac_cv_prog_cc_g+:} false
; then :
3601 $as_echo_n "(cached) " >&6
3603 ac_save_c_werror_flag
=$ac_c_werror_flag
3604 ac_c_werror_flag
=yes
3607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3618 if ac_fn_c_try_compile
"$LINENO"; then :
3622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3633 if ac_fn_c_try_compile
"$LINENO"; then :
3636 ac_c_werror_flag
=$ac_save_c_werror_flag
3638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3649 if ac_fn_c_try_compile
"$LINENO"; then :
3652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3657 ac_c_werror_flag
=$ac_save_c_werror_flag
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3660 $as_echo "$ac_cv_prog_cc_g" >&6; }
3661 if test "$ac_test_CFLAGS" = set; then
3662 CFLAGS
=$ac_save_CFLAGS
3663 elif test $ac_cv_prog_cc_g = yes; then
3664 if test "$GCC" = yes; then
3670 if test "$GCC" = yes; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3677 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3678 if ${ac_cv_prog_cc_c89+:} false
; then :
3679 $as_echo_n "(cached) " >&6
3681 ac_cv_prog_cc_c89
=no
3683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3689 struct buf { int x; };
3690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3691 static char *e (p, i)
3697 static char *f (char * (*g) (char **, int), char **p, ...)
3702 s = g (p, va_arg (v,int));
3707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3708 function prototypes and stuff, but not '\xHH' hex character constants.
3709 These don't provoke an error unfortunately, instead are silently treated
3710 as 'x'. The following induces an error, until -std is added to get
3711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3712 array size at least. It's necessary to write '\x00'==0 to get something
3713 that's true only with -std. */
3714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3717 inside strings and character constants. */
3719 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3721 int test (int i, double x);
3722 struct s1 {int (*f) (int a);};
3723 struct s2 {int (*f) (double a);};
3724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3735 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3736 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3738 CC
="$ac_save_CC $ac_arg"
3739 if ac_fn_c_try_compile
"$LINENO"; then :
3740 ac_cv_prog_cc_c89
=$ac_arg
3742 rm -f core conftest.err conftest.
$ac_objext
3743 test "x$ac_cv_prog_cc_c89" != "xno" && break
3745 rm -f conftest.
$ac_ext
3750 case "x$ac_cv_prog_cc_c89" in
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3753 $as_echo "none needed" >&6; } ;;
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3756 $as_echo "unsupported" >&6; } ;;
3758 CC
="$CC $ac_cv_prog_cc_c89"
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3760 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3762 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3767 ac_cpp
='$CPP $CPPFLAGS'
3768 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3772 aros_host_def_cc
="$CC"
3773 case $ac_cv_prog_cc_stdc in #(
3775 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3778 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3779 if ${ac_cv_prog_cc_c99+:} false
; then :
3780 $as_echo_n "(cached) " >&6
3782 ac_cv_prog_cc_c99
=no
3784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3787 #include <stdbool.h>
3792 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3793 #define debug(...) fprintf (stderr, __VA_ARGS__)
3794 #define showlist(...) puts (#__VA_ARGS__)
3795 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3797 test_varargs_macros (void)
3802 debug ("X = %d\n", x);
3803 showlist (The first, second, and third items.);
3804 report (x>y, "x is %d but y is %d", x, y);
3807 // Check long long types.
3808 #define BIG64 18446744073709551615ull
3809 #define BIG32 4294967295ul
3810 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3812 your preprocessor is broken;
3816 your preprocessor is broken;
3818 static long long int bignum = -9223372036854775807LL;
3819 static unsigned long long int ubignum = BIG64;
3821 struct incomplete_array
3829 const wchar_t *name;
3833 typedef const char *ccp;
3836 test_restrict (ccp restrict text)
3838 // See if C++-style comments work.
3839 // Iterate through items via the restricted pointer.
3840 // Also check for declarations in for loops.
3841 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3846 // Check varargs and va_copy.
3848 test_varargs (const char *format, ...)
3851 va_start (args, format);
3853 va_copy (args_copy, args);
3864 str = va_arg (args_copy, const char *);
3867 number = va_arg (args_copy, int);
3870 fnumber = va_arg (args_copy, double);
3885 _Bool success = false;
3888 if (test_restrict ("String literal") == 0)
3890 char *restrict newvar = "Another string";
3893 test_varargs ("s, d' f .", "string", 65, 34.234);
3894 test_varargs_macros ();
3896 // Check flexible array members.
3897 struct incomplete_array *ia =
3898 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3900 for (int i = 0; i < ia->datasize; ++i)
3901 ia->data[i] = i * 1.234;
3903 // Check named initializers.
3904 struct named_init ni = {
3906 .name = L"Test wide string",
3907 .average = 543.34343,
3912 int dynamic_array[ni.number];
3913 dynamic_array[ni.number - 1] = 543;
3915 // work around unused variable warnings
3916 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3917 || dynamic_array[ni.number - 1] != 543);
3923 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3925 CC
="$ac_save_CC $ac_arg"
3926 if ac_fn_c_try_compile
"$LINENO"; then :
3927 ac_cv_prog_cc_c99
=$ac_arg
3929 rm -f core conftest.err conftest.
$ac_objext
3930 test "x$ac_cv_prog_cc_c99" != "xno" && break
3932 rm -f conftest.
$ac_ext
3937 case "x$ac_cv_prog_cc_c99" in
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3940 $as_echo "none needed" >&6; } ;;
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3943 $as_echo "unsupported" >&6; } ;;
3945 CC
="$CC $ac_cv_prog_cc_c99"
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3947 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3949 if test "x$ac_cv_prog_cc_c99" != xno
; then :
3950 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3953 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3954 if ${ac_cv_prog_cc_c89+:} false
; then :
3955 $as_echo_n "(cached) " >&6
3957 ac_cv_prog_cc_c89
=no
3959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3964 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3965 struct buf { int x; };
3966 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3967 static char *e (p, i)
3973 static char *f (char * (*g) (char **, int), char **p, ...)
3978 s = g (p, va_arg (v,int));
3983 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3984 function prototypes and stuff, but not '\xHH' hex character constants.
3985 These don't provoke an error unfortunately, instead are silently treated
3986 as 'x'. The following induces an error, until -std is added to get
3987 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3988 array size at least. It's necessary to write '\x00'==0 to get something
3989 that's true only with -std. */
3990 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3992 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3993 inside strings and character constants. */
3995 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3997 int test (int i, double x);
3998 struct s1 {int (*f) (int a);};
3999 struct s2 {int (*f) (double a);};
4000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4006 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4011 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4012 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4014 CC
="$ac_save_CC $ac_arg"
4015 if ac_fn_c_try_compile
"$LINENO"; then :
4016 ac_cv_prog_cc_c89
=$ac_arg
4018 rm -f core conftest.err conftest.
$ac_objext
4019 test "x$ac_cv_prog_cc_c89" != "xno" && break
4021 rm -f conftest.
$ac_ext
4026 case "x$ac_cv_prog_cc_c89" in
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4029 $as_echo "none needed" >&6; } ;;
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4032 $as_echo "unsupported" >&6; } ;;
4034 CC
="$CC $ac_cv_prog_cc_c89"
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4036 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4038 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4039 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4041 ac_cv_prog_cc_stdc
=no
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4048 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4049 if ${ac_cv_prog_cc_stdc+:} false
; then :
4050 $as_echo_n "(cached) " >&6
4053 case $ac_cv_prog_cc_stdc in #(
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4056 $as_echo "unsupported" >&6; } ;; #(
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4059 $as_echo "none needed" >&6; } ;; #(
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4062 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4066 ac_cpp
='$CPP $CPPFLAGS'
4067 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4072 # On Suns, sometimes $CPP names a directory.
4073 if test -n "$CPP" && test -d "$CPP"; then
4076 if test -z "$CPP"; then
4077 if ${ac_cv_prog_CPP+:} false
; then :
4078 $as_echo_n "(cached) " >&6
4080 # Double quotes because CPP needs to be expanded
4081 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4084 for ac_c_preproc_warn_flag
in '' yes
4086 # Use a header file that comes with gcc, so configuring glibc
4087 # with a fresh cross-compiler works.
4088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4089 # <limits.h> exists even on freestanding compilers.
4090 # On the NeXT, cc -E runs the code through the compiler's parser,
4091 # not just through cpp. "Syntax error" is here to catch this case.
4092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4095 # include <limits.h>
4097 # include <assert.h>
4101 if ac_fn_c_try_cpp
"$LINENO"; then :
4104 # Broken: fails on valid input.
4107 rm -f conftest.err conftest.i conftest.
$ac_ext
4109 # OK, works on sane cases. Now check whether nonexistent headers
4110 # can be detected and how.
4111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #include <ac_nonexistent.h>
4115 if ac_fn_c_try_cpp
"$LINENO"; then :
4116 # Broken: success on invalid input.
4119 # Passes both tests.
4123 rm -f conftest.err conftest.i conftest.
$ac_ext
4126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4127 rm -f conftest.i conftest.err conftest.
$ac_ext
4128 if $ac_preproc_ok; then :
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4141 $as_echo "$CPP" >&6; }
4143 for ac_c_preproc_warn_flag
in '' yes
4145 # Use a header file that comes with gcc, so configuring glibc
4146 # with a fresh cross-compiler works.
4147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4148 # <limits.h> exists even on freestanding compilers.
4149 # On the NeXT, cc -E runs the code through the compiler's parser,
4150 # not just through cpp. "Syntax error" is here to catch this case.
4151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4154 # include <limits.h>
4156 # include <assert.h>
4160 if ac_fn_c_try_cpp
"$LINENO"; then :
4163 # Broken: fails on valid input.
4166 rm -f conftest.err conftest.i conftest.
$ac_ext
4168 # OK, works on sane cases. Now check whether nonexistent headers
4169 # can be detected and how.
4170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 #include <ac_nonexistent.h>
4174 if ac_fn_c_try_cpp
"$LINENO"; then :
4175 # Broken: success on invalid input.
4178 # Passes both tests.
4182 rm -f conftest.err conftest.i conftest.
$ac_ext
4185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4186 rm -f conftest.i conftest.err conftest.
$ac_ext
4187 if $ac_preproc_ok; then :
4190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4193 See \`config.log' for more details" "$LINENO" 5; }
4197 ac_cpp
='$CPP $CPPFLAGS'
4198 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4203 # Check for a compatible awk
4204 for ac_prog
in gawk nawk
4206 # Extract the first word of "$ac_prog", so it can be a program name with args.
4207 set dummy
$ac_prog; ac_word
=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if ${ac_cv_prog_AWK+:} false
; then :
4211 $as_echo_n "(cached) " >&6
4213 if test -n "$AWK"; then
4214 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir
=.
4221 for ac_exec_ext
in '' $ac_executable_extensions; do
4222 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4223 ac_cv_prog_AWK
="$ac_prog"
4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 if test -n "$AWK"; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4236 $as_echo "$AWK" >&6; }
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4243 test -n "$AWK" && break
4247 if test "$AWK" = ""; then
4250 if test "$AWK" = "no"; then
4253 if test "$req_avail" = "no"; then
4254 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4256 # Extract the first word of "mmake", so it can be a program name with args.
4257 set dummy mmake
; ac_word
=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_prog_MMAKE+:} false
; then :
4261 $as_echo_n "(cached) " >&6
4263 if test -n "$MMAKE"; then
4264 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4270 test -z "$as_dir" && as_dir
=.
4271 for ac_exec_ext
in '' $ac_executable_extensions; do
4272 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_MMAKE
="mmake "
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 MMAKE
=$ac_cv_prog_MMAKE
4284 if test -n "$MMAKE"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4286 $as_echo "$MMAKE" >&6; }
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4294 # Perform some default variable assignments. Note all of these will be
4295 # Regenerated from the script, so there is no need to cache them.
4297 aros_build_host
=$host
4298 aros_host_cpp
="$CPP"
4300 aros_host_cxx
="$CXX"
4301 if test "$GCC" = "yes"; then
4302 aros_gcc_ld
=`$CC -print-prog-name=ld`
4303 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4304 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_path_aros_host_ld+:} false
; then :
4308 $as_echo_n "(cached) " >&6
4310 case $aros_host_ld in
4312 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4316 for as_dir
in `dirname $aros_gcc_ld`
4319 test -z "$as_dir" && as_dir
=.
4320 for ac_exec_ext
in '' $ac_executable_extensions; do
4321 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 aros_host_ld
=$ac_cv_path_aros_host_ld
4334 if test -n "$aros_host_ld"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4336 $as_echo "$aros_host_ld" >&6; }
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4344 if test "$aros_host_ld" = ""; then
4345 # Extract the first word of "ld", so it can be a program name with args.
4346 set dummy ld
; ac_word
=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if ${ac_cv_path_aros_host_ld+:} false
; then :
4350 $as_echo_n "(cached) " >&6
4352 case $aros_host_ld in
4354 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4361 test -z "$as_dir" && as_dir
=.
4362 for ac_exec_ext
in '' $ac_executable_extensions; do
4363 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4364 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 aros_host_ld
=$ac_cv_path_aros_host_ld
4376 if test -n "$aros_host_ld"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4378 $as_echo "$aros_host_ld" >&6; }
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4387 if test "$aros_host_ld" = ""; then
4390 if test "$aros_host_ld" = "no"; then
4393 if test "$req_avail" = "no"; then
4394 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4396 aros_host_make
="make"
4397 aros_host_cflags
="$CFLAGS"
4398 aros_host_cxxflags
="$CXXFLAGS"
4399 aros_host_cppflags
="$CPPFLAGS"
4400 aros_host_ldflags
="$LDFLAGS"
4401 aros_host_debug
="-g -O0"
4402 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4403 aros_host_mkargs
="--no-print-directory"
4404 aros_host_exe_suffix
="$EXEEXT"
4405 aros_host_lib_suffix
=""
4407 # Ignore all compliance, AROS ROMs = 0
4408 # KickStart v1.0 = 30
4409 # KickStart v1.3 = 34
4410 # KickStart v2.0 = 37
4411 # KickStart v3.0 = 39
4412 # KickStart v3.1 = 40
4414 aros_amigaos_compliance
=0
4416 for ac_prog
in aclocal aclocal19 aclocal-1.9
4418 # Extract the first word of "$ac_prog", so it can be a program name with args.
4419 set dummy
$ac_prog; ac_word
=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4423 $as_echo_n "(cached) " >&6
4425 if test -n "$aros_host_aclocal"; then
4426 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir
=.
4433 for ac_exec_ext
in '' $ac_executable_extensions; do
4434 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4435 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4446 if test -n "$aros_host_aclocal"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4448 $as_echo "$aros_host_aclocal" >&6; }
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4455 test -n "$aros_host_aclocal" && break
4458 for ac_prog
in autoconf autoconf259 autoconf253
4460 # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy
$ac_prog; ac_word
=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4465 $as_echo_n "(cached) " >&6
4467 if test -n "$aros_host_autoconf"; then
4468 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir
=.
4475 for ac_exec_ext
in '' $ac_executable_extensions; do
4476 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4488 if test -n "$aros_host_autoconf"; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4490 $as_echo "$aros_host_autoconf" >&6; }
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 $as_echo "no" >&6; }
4497 test -n "$aros_host_autoconf" && break
4500 for ac_prog
in autoheader autoheader259 autoheader253
4502 # Extract the first word of "$ac_prog", so it can be a program name with args.
4503 set dummy
$ac_prog; ac_word
=$2
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4507 $as_echo_n "(cached) " >&6
4509 if test -n "$aros_host_autoheader"; then
4510 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir
=.
4517 for ac_exec_ext
in '' $ac_executable_extensions; do
4518 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4519 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4530 if test -n "$aros_host_autoheader"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4532 $as_echo "$aros_host_autoheader" >&6; }
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4539 test -n "$aros_host_autoheader" && break
4542 for ac_prog
in automake automake19 automake-1.9
4544 # Extract the first word of "$ac_prog", so it can be a program name with args.
4545 set dummy
$ac_prog; ac_word
=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4549 $as_echo_n "(cached) " >&6
4551 if test -n "$aros_host_automake"; then
4552 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir
=.
4559 for ac_exec_ext
in '' $ac_executable_extensions; do
4560 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_aros_host_automake
="$ac_prog"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 aros_host_automake
=$ac_cv_prog_aros_host_automake
4572 if test -n "$aros_host_automake"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4574 $as_echo "$aros_host_automake" >&6; }
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4581 test -n "$aros_host_automake" && break
4586 if test "$aros_host_aclocal" = ""; then
4589 if test "$aros_host_aclocal" = "no"; then
4592 if test "$req_avail" = "no"; then
4593 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4596 if test "$aros_host_automake" = ""; then
4599 if test "$aros_host_automake" = "no"; then
4602 if test "$req_avail" = "no"; then
4603 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4606 case "$aros_host_cc" in
4608 aros_host_cc_pipe
=""
4611 aros_host_cc_pipe
="-pipe"
4614 aros_host_cc_pipe
=""
4617 aros_host_cc_pipe
=""
4621 aros_kernel_cc_includes
=""
4622 aros_target_cc_includes
=""
4625 # ----------------------------------------------------------------------------------------
4626 # Host-specific defaults
4628 # This is the main host configuration section. It is where the host
4629 # can change the values of any variables it needs to change. We do
4630 # not look at anything that compiles to the target yet, we'll get
4635 aros_host_arch
="aros"
4636 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4639 aros_host_cpu
="i386"
4642 aros_host_cpu
="x86_64"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4649 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4650 aros_host_cpu
="$host_cpu"
4656 aros_host_arch
="linux"
4657 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4658 android_build_os
="linux-x86"
4659 android_tool
="android"
4660 default_android_sdk
="/opt/android-sdk-linux_x86"
4663 aros_host_cpu
="i386"
4666 aros_host_cpu
="x86_64"
4669 aros_host_cpu
="m68k"
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4679 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4680 aros_host_cpu
="$host_cpu"
4686 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4687 aros_host_make
="gmake"
4688 aros_host_arch
="freebsd"
4689 aros_host_cpu
="i386"
4691 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4695 aros_object_format
="elf_i386"
4699 aros_object_format
="elf_i386_fbsd"
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4707 $as_echo_n "checking for macOS SDK files... " >&6; }
4708 LOC
=$
( xcode-select
-p )
4709 if test $?
!= 0; then :
4710 as_fn_error $?
"XCode incorrectly configured!
4711 please run 'xcode-select --install' before
4712 re-running configure" "$LINENO" 5
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4715 $as_echo "$LOC" >&6; }
4716 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4717 aros_host_arch
="darwin"
4719 if [ -z ${SED+x} ]; then SED
="gsed"; fi
4720 android_build_os
="darwin-x86"
4721 android_tool
="android"
4722 default_android_sdk
="/android-sdk-mac_x86"
4725 aros_host_cpu
="i386"
4728 aros_host_cpu
="x86_64"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4735 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4736 aros_host_cpu
="$host_cpu"
4740 aros_host_ldflags
="$aros_host_ldflags -liconv"
4745 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4746 aros_host_make
="gmake"
4747 aros_host_arch
="dragonfly"
4750 aros_host_cpu
="i386"
4753 aros_host_cpu
="x86_64"
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4757 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4758 aros_host_cpu
="$host_cpu"
4764 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4765 aros_host_make
="gmake"
4766 aros_host_arch
="netbsd"
4769 aros_host_cpu
="i386"
4772 aros_host_cpu
="m68k"
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4776 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4777 aros_host_cpu
="$host_cpu"
4780 aros_host_lib_suffix
=".0.0"
4784 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4785 aros_host_make
="gmake"
4786 aros_host_arch
="openbsd"
4789 aros_host_cpu
="i386"
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4793 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4794 aros_host_cpu
="$host_cpu"
4800 aros_host_arch
="solaris"
4801 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4804 aros_host_cpu
="i386"
4807 aros_host_cpu
="sparc"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4811 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4812 aros_host_cpu
="$host_cpu"
4818 aros_host_arch
="morphos"
4824 aros_host_arch
="amiga"
4830 TOUCH
="/gg/bin/touch"
4833 aros_host_cpu
="m68k"
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4840 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4841 aros_host_cpu
="$host_cpu"
4847 aros_host_arch
="cygwin"
4848 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4850 android_build_os
="windows"
4851 android_tool
="android.bat"
4852 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4856 aros_host_cpu
="i386"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4860 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4861 aros_host_cpu
="$host_cpu"
4867 aros_host_arch
="mingw32"
4868 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4870 android_build_os
="windows"
4871 android_tool
="android.bat"
4872 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4874 libpng_libextra
="-lws2_32"
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4880 $as_echo_n "checking for Windows native gcc target... " >&6; }
4881 host_cpu
=`gcc -dumpmachine`
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4883 $as_echo "$host_cpu" >&6; }
4890 aros_host_cpu
="i386"
4894 aros_host_cpu
="i386"
4898 aros_host_cpu
="x86_64"
4899 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4904 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4905 aros_host_cpu
="$host_cpu"
4910 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4914 # Extract the first word of "ar", so it can be a program name with args.
4915 set dummy
ar; ac_word
=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if ${ac_cv_prog_aros_host_ar+:} false
; then :
4919 $as_echo_n "(cached) " >&6
4921 if test -n "$aros_host_ar"; then
4922 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4928 test -z "$as_dir" && as_dir
=.
4929 for ac_exec_ext
in '' $ac_executable_extensions; do
4930 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_aros_host_ar
="ar cr"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 aros_host_ar
=$ac_cv_prog_aros_host_ar
4942 if test -n "$aros_host_ar"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4944 $as_echo "$aros_host_ar" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4952 if test "$aros_host_ar" = ""; then
4955 if test "$aros_host_ar" = "no"; then
4958 if test "$req_avail" = "no"; then
4959 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4961 # Extract the first word of "ranlib", so it can be a program name with args.
4962 set dummy ranlib
; ac_word
=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_aros_host_ranlib+:} false
; then :
4966 $as_echo_n "(cached) " >&6
4968 if test -n "$aros_host_ranlib"; then
4969 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4975 test -z "$as_dir" && as_dir
=.
4976 for ac_exec_ext
in '' $ac_executable_extensions; do
4977 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_aros_host_ranlib
="ranlib "
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4989 if test -n "$aros_host_ranlib"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4991 $as_echo "$aros_host_ranlib" >&6; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4999 if test "$aros_host_ranlib" = ""; then
5002 if test "$aros_host_ranlib" = "no"; then
5005 if test "$req_avail" = "no"; then
5006 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5008 # Extract the first word of "strip", so it can be a program name with args.
5009 set dummy strip
; ac_word
=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_prog_aros_host_strip+:} false
; then :
5013 $as_echo_n "(cached) " >&6
5015 if test -n "$aros_host_strip"; then
5016 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
5018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5022 test -z "$as_dir" && as_dir
=.
5023 for ac_exec_ext
in '' $ac_executable_extensions; do
5024 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_aros_host_strip
="strip "
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 aros_host_strip
=$ac_cv_prog_aros_host_strip
5036 if test -n "$aros_host_strip"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5038 $as_echo "$aros_host_strip" >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5046 if test "$aros_host_strip" = ""; then
5049 if test "$aros_host_strip" = "no"; then
5052 if test "$req_avail" = "no"; then
5053 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5056 # Extract the first word of "rm", so it can be a program name with args.
5057 set dummy
rm; ac_word
=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_prog_RM+:} false
; then :
5061 $as_echo_n "(cached) " >&6
5063 if test -n "$RM"; then
5064 ac_cv_prog_RM
="$RM" # Let the user override the test.
5066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5070 test -z "$as_dir" && as_dir
=.
5071 for ac_exec_ext
in '' $ac_executable_extensions; do
5072 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_RM
="rm -rf"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 if test -n "$RM"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5086 $as_echo "$RM" >&6; }
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5094 if test "$RM" = ""; then
5097 if test "$RM" = "no"; then
5100 if test "$req_avail" = "no"; then
5101 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5103 # Extract the first word of "cp", so it can be a program name with args.
5104 set dummy
cp; ac_word
=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_CP+:} false
; then :
5108 $as_echo_n "(cached) " >&6
5110 if test -n "$CP"; then
5111 ac_cv_prog_CP
="$CP" # Let the user override the test.
5113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir
=.
5118 for ac_exec_ext
in '' $ac_executable_extensions; do
5119 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 if test -n "$CP"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5133 $as_echo "$CP" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5141 if test "$CP" = ""; then
5144 if test "$CP" = "no"; then
5147 if test "$req_avail" = "no"; then
5148 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5150 # Extract the first word of "mv", so it can be a program name with args.
5151 set dummy
mv; ac_word
=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_prog_MV+:} false
; then :
5155 $as_echo_n "(cached) " >&6
5157 if test -n "$MV"; then
5158 ac_cv_prog_MV
="$MV" # Let the user override the test.
5160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir
=.
5165 for ac_exec_ext
in '' $ac_executable_extensions; do
5166 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 if test -n "$MV"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5180 $as_echo "$MV" >&6; }
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5188 if test "$MV" = ""; then
5191 if test "$MV" = "no"; then
5194 if test "$req_avail" = "no"; then
5195 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5197 # Extract the first word of "echo", so it can be a program name with args.
5198 set dummy
echo; ac_word
=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_ECHO+:} false
; then :
5202 $as_echo_n "(cached) " >&6
5204 if test -n "$ECHO"; then
5205 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5211 test -z "$as_dir" && as_dir
=.
5212 for ac_exec_ext
in '' $ac_executable_extensions; do
5213 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_ECHO
="echo "
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 ECHO
=$ac_cv_prog_ECHO
5225 if test -n "$ECHO"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5227 $as_echo "$ECHO" >&6; }
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5235 if test "$ECHO" = ""; then
5238 if test "$ECHO" = "no"; then
5241 if test "$req_avail" = "no"; then
5242 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5244 # Extract the first word of "mkdir", so it can be a program name with args.
5245 set dummy mkdir
; ac_word
=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_prog_MKDIR+:} false
; then :
5249 $as_echo_n "(cached) " >&6
5251 if test -n "$MKDIR"; then
5252 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5258 test -z "$as_dir" && as_dir
=.
5259 for ac_exec_ext
in '' $ac_executable_extensions; do
5260 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_prog_MKDIR
="mkdir -p"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 MKDIR
=$ac_cv_prog_MKDIR
5272 if test -n "$MKDIR"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5274 $as_echo "$MKDIR" >&6; }
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5282 if test "$MKDIR" = ""; then
5285 if test "$MKDIR" = "no"; then
5288 if test "$req_avail" = "no"; then
5289 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5291 # Extract the first word of "touch", so it can be a program name with args.
5292 set dummy
touch; ac_word
=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_TOUCH+:} false
; then :
5296 $as_echo_n "(cached) " >&6
5298 if test -n "$TOUCH"; then
5299 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5305 test -z "$as_dir" && as_dir
=.
5306 for ac_exec_ext
in '' $ac_executable_extensions; do
5307 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_prog_TOUCH
="touch "
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 TOUCH
=$ac_cv_prog_TOUCH
5319 if test -n "$TOUCH"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5321 $as_echo "$TOUCH" >&6; }
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5329 if test "$TOUCH" = ""; then
5332 if test "$TOUCH" = "no"; then
5335 if test "$req_avail" = "no"; then
5336 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5338 # Extract the first word of "sort", so it can be a program name with args.
5339 set dummy
sort; ac_word
=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_SORT+:} false
; then :
5343 $as_echo_n "(cached) " >&6
5345 if test -n "$SORT"; then
5346 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5352 test -z "$as_dir" && as_dir
=.
5353 for ac_exec_ext
in '' $ac_executable_extensions; do
5354 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_SORT
="sort "
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 SORT
=$ac_cv_prog_SORT
5366 if test -n "$SORT"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5368 $as_echo "$SORT" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5376 if test "$SORT" = ""; then
5379 if test "$SORT" = "no"; then
5382 if test "$req_avail" = "no"; then
5383 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5385 # Extract the first word of "uniq", so it can be a program name with args.
5386 set dummy
uniq; ac_word
=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_prog_UNIQ+:} false
; then :
5390 $as_echo_n "(cached) " >&6
5392 if test -n "$UNIQ"; then
5393 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir
=.
5400 for ac_exec_ext
in '' $ac_executable_extensions; do
5401 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_UNIQ
="uniq "
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 UNIQ
=$ac_cv_prog_UNIQ
5413 if test -n "$UNIQ"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5415 $as_echo "$UNIQ" >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5423 if test "$UNIQ" = ""; then
5426 if test "$UNIQ" = "no"; then
5429 if test "$req_avail" = "no"; then
5430 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5432 # Extract the first word of "true", so it can be a program name with args.
5433 set dummy true
; ac_word
=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_NOP+:} false
; then :
5437 $as_echo_n "(cached) " >&6
5439 if test -n "$NOP"; then
5440 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir
=.
5447 for ac_exec_ext
in '' $ac_executable_extensions; do
5448 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_NOP
="true "
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 if test -n "$NOP"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5462 $as_echo "$NOP" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5470 if test "$NOP" = ""; then
5473 if test "$NOP" = "no"; then
5476 if test "$req_avail" = "no"; then
5477 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5479 # Extract the first word of "cat", so it can be a program name with args.
5480 set dummy
cat; ac_word
=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if ${ac_cv_prog_CAT+:} false
; then :
5484 $as_echo_n "(cached) " >&6
5486 if test -n "$CAT"; then
5487 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5493 test -z "$as_dir" && as_dir
=.
5494 for ac_exec_ext
in '' $ac_executable_extensions; do
5495 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5496 ac_cv_prog_CAT
="cat "
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 if test -n "$CAT"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5509 $as_echo "$CAT" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5517 if test "$CAT" = ""; then
5520 if test "$CAT" = "no"; then
5523 if test "$req_avail" = "no"; then
5524 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5526 # Extract the first word of "bison", so it can be a program name with args.
5527 set dummy bison
; ac_word
=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if ${ac_cv_prog_BISON+:} false
; then :
5531 $as_echo_n "(cached) " >&6
5533 if test -n "$BISON"; then
5534 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5540 test -z "$as_dir" && as_dir
=.
5541 for ac_exec_ext
in '' $ac_executable_extensions; do
5542 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_BISON
="bison "
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 BISON
=$ac_cv_prog_BISON
5554 if test -n "$BISON"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5556 $as_echo "$BISON" >&6; }
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5564 if test "$BISON" = ""; then
5567 if test "$BISON" = "no"; then
5570 if test "$req_avail" = "no"; then
5571 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5573 # Extract the first word of "flex", so it can be a program name with args.
5574 set dummy flex
; ac_word
=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_prog_FLEX+:} false
; then :
5578 $as_echo_n "(cached) " >&6
5580 if test -n "$FLEX"; then
5581 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5587 test -z "$as_dir" && as_dir
=.
5588 for ac_exec_ext
in '' $ac_executable_extensions; do
5589 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_FLEX
="flex "
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 FLEX
=$ac_cv_prog_FLEX
5601 if test -n "$FLEX"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5603 $as_echo "$FLEX" >&6; }
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5611 if test "$FLEX" = ""; then
5614 if test "$FLEX" = "no"; then
5617 if test "$req_avail" = "no"; then
5618 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5620 # Extract the first word of "pngtopnm", so it can be a program name with args.
5621 set dummy pngtopnm
; ac_word
=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5625 $as_echo_n "(cached) " >&6
5627 if test -n "$PNGTOPNM"; then
5628 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5634 test -z "$as_dir" && as_dir
=.
5635 for ac_exec_ext
in '' $ac_executable_extensions; do
5636 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_PNGTOPNM
="pngtopnm "
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5648 if test -n "$PNGTOPNM"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5650 $as_echo "$PNGTOPNM" >&6; }
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5658 if test "$PNGTOPNM" = ""; then
5661 if test "$PNGTOPNM" = "no"; then
5664 if test "$req_avail" = "no"; then
5665 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5667 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5668 set dummy ppmtoilbm
; ac_word
=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5672 $as_echo_n "(cached) " >&6
5674 if test -n "$PPMTOILBM"; then
5675 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir
=.
5682 for ac_exec_ext
in '' $ac_executable_extensions; do
5683 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5684 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5695 if test -n "$PPMTOILBM"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5697 $as_echo "$PPMTOILBM" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5705 if test "$PPMTOILBM" = ""; then
5708 if test "$PPMTOILBM" = "no"; then
5711 if test "$req_avail" = "no"; then
5712 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5714 # Extract the first word of "sed", so it can be a program name with args.
5715 set dummy
sed; ac_word
=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_SED+:} false
; then :
5719 $as_echo_n "(cached) " >&6
5721 if test -n "$SED"; then
5722 ac_cv_prog_SED
="$SED" # Let the user override the test.
5724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5728 test -z "$as_dir" && as_dir
=.
5729 for ac_exec_ext
in '' $ac_executable_extensions; do
5730 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_SED
="sed "
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 if test -n "$SED"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5744 $as_echo "$SED" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5752 if test "$SED" = ""; then
5755 if test "$SED" = "no"; then
5758 if test "$req_avail" = "no"; then
5759 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5761 # Extract the first word of "chmod", so it can be a program name with args.
5762 set dummy
chmod; ac_word
=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_prog_CHMOD+:} false
; then :
5766 $as_echo_n "(cached) " >&6
5768 if test -n "$CHMOD"; then
5769 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5775 test -z "$as_dir" && as_dir
=.
5776 for ac_exec_ext
in '' $ac_executable_extensions; do
5777 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_CHMOD
="chmod "
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 CHMOD
=$ac_cv_prog_CHMOD
5789 if test -n "$CHMOD"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5791 $as_echo "$CHMOD" >&6; }
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5799 if test "$CHMOD" = ""; then
5802 if test "$CHMOD" = "no"; then
5805 if test "$req_avail" = "no"; then
5806 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5808 # Extract the first word of "patch", so it can be a program name with args.
5809 set dummy
patch; ac_word
=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if ${ac_cv_prog_PATCH+:} false
; then :
5813 $as_echo_n "(cached) " >&6
5815 if test -n "$PATCH"; then
5816 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5822 test -z "$as_dir" && as_dir
=.
5823 for ac_exec_ext
in '' $ac_executable_extensions; do
5824 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_PATCH
="patch "
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 PATCH
=$ac_cv_prog_PATCH
5836 if test -n "$PATCH"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5838 $as_echo "$PATCH" >&6; }
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5846 if test "$PATCH" = ""; then
5849 if test "$PATCH" = "no"; then
5852 if test "$req_avail" = "no"; then
5853 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5862 if test -n "$PYTHON"; then
5863 # If the user set $PYTHON, use it and don't search something else.
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5865 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5867 # split strings by '.' and convert to numeric. Append some zeros
5868 # because we need at least 4 digits for the hex conversion.
5869 # map returns an iterator in Python 3.0 and a list in 2.x
5870 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5872 # xrange is not present in Python 3.0 and range returns an iterator
5873 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5874 sys.exit(sys.hexversion < minverhex)"
5875 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5876 ($PYTHON -c "$prog") >&5 2>&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; then :
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5881 $as_echo "yes" >&6; }
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 as_fn_error $?
"Python interpreter is too old" "$LINENO" 5
5887 am_display_PYTHON
=$PYTHON
5889 # Otherwise, try each interpreter until we find one that satisfies
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5892 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5893 if ${am_cv_pathless_PYTHON+:} false
; then :
5894 $as_echo_n "(cached) " >&6
5897 for am_cv_pathless_PYTHON
in python python2 python3 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
5898 test "$am_cv_pathless_PYTHON" = none
&& break
5900 # split strings by '.' and convert to numeric. Append some zeros
5901 # because we need at least 4 digits for the hex conversion.
5902 # map returns an iterator in Python 3.0 and a list in 2.x
5903 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5905 # xrange is not present in Python 3.0 and range returns an iterator
5906 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5907 sys.exit(sys.hexversion < minverhex)"
5908 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5909 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; then :
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5918 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5919 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5920 if test "$am_cv_pathless_PYTHON" = none
; then
5923 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5924 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if ${ac_cv_path_PYTHON+:} false
; then :
5928 $as_echo_n "(cached) " >&6
5932 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir
=.
5940 for ac_exec_ext
in '' $ac_executable_extensions; do
5941 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5942 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 PYTHON
=$ac_cv_path_PYTHON
5954 if test -n "$PYTHON"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5956 $as_echo "$PYTHON" >&6; }
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5964 am_display_PYTHON
=$am_cv_pathless_PYTHON
5968 if test "$PYTHON" = :; then
5969 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5974 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5975 if ${am_cv_python_version+:} false
; then :
5976 $as_echo_n "(cached) " >&6
5978 am_cv_python_version
=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5981 $as_echo "$am_cv_python_version" >&6; }
5982 PYTHON_VERSION
=$am_cv_python_version
5986 PYTHON_PREFIX
='${prefix}'
5988 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5993 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5994 if ${am_cv_python_platform+:} false
; then :
5995 $as_echo_n "(cached) " >&6
5997 am_cv_python_platform
=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6000 $as_echo "$am_cv_python_platform" >&6; }
6001 PYTHON_PLATFORM
=$am_cv_python_platform
6004 # Just factor out some code duplication.
6005 am_python_setup_sysconfig
="\
6007 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6008 # with python 3.x. See automake bug#10227.
6012 can_use_sysconfig = 0
6014 can_use_sysconfig = 1
6015 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6016 # <https://github.com/pypa/virtualenv/issues/118>
6018 from platform import python_implementation
6019 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6020 can_use_sysconfig = 0
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6026 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6027 if ${am_cv_python_pythondir+:} false
; then :
6028 $as_echo_n "(cached) " >&6
6030 if test "x$prefix" = xNONE
6032 am_py_prefix
=$ac_default_prefix
6034 am_py_prefix
=$prefix
6036 am_cv_python_pythondir
=`$PYTHON -c "
6037 $am_python_setup_sysconfig
6038 if can_use_sysconfig:
6039 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6041 from distutils import sysconfig
6042 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6043 sys.stdout.write(sitedir)"`
6044 case $am_cv_python_pythondir in
6046 am__strip_prefix
=`echo "$am_py_prefix" | sed 's|.|.|g'`
6047 am_cv_python_pythondir
=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6050 case $am_py_prefix in
6053 am_cv_python_pythondir
=$PYTHON_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6061 $as_echo "$am_cv_python_pythondir" >&6; }
6062 pythondir
=$am_cv_python_pythondir
6066 pkgpythondir
=\
${pythondir}/$PACKAGE
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6070 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6071 if ${am_cv_python_pyexecdir+:} false
; then :
6072 $as_echo_n "(cached) " >&6
6074 if test "x$exec_prefix" = xNONE
6076 am_py_exec_prefix
=$am_py_prefix
6078 am_py_exec_prefix
=$exec_prefix
6080 am_cv_python_pyexecdir
=`$PYTHON -c "
6081 $am_python_setup_sysconfig
6082 if can_use_sysconfig:
6083 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6085 from distutils import sysconfig
6086 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6087 sys.stdout.write(sitedir)"`
6088 case $am_cv_python_pyexecdir in
6089 $am_py_exec_prefix*)
6090 am__strip_prefix
=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6091 am_cv_python_pyexecdir
=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6094 case $am_py_exec_prefix in
6097 am_cv_python_pyexecdir
=$PYTHON_EXEC_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6105 $as_echo "$am_cv_python_pyexecdir" >&6; }
6106 pyexecdir
=$am_cv_python_pyexecdir
6110 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
6118 # Check whether --enable-libpng-config was given.
6119 if test "${enable_libpng_config+set}" = set; then :
6120 enableval
=$enable_libpng_config;
6123 if test "$enable_libpng_config" != "no"; then
6124 # Extract the first word of "libpng-config", so it can be a program name with args.
6125 set dummy libpng-config
; ac_word
=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false
; then :
6129 $as_echo_n "(cached) " >&6
6131 if test -n "$arosconfig_use_libpngconfig"; then
6132 ac_cv_prog_arosconfig_use_libpngconfig
="$arosconfig_use_libpngconfig" # Let the user override the test.
6134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6138 test -z "$as_dir" && as_dir
=.
6139 for ac_exec_ext
in '' $ac_executable_extensions; do
6140 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_arosconfig_use_libpngconfig
="yes"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig
="no"
6152 arosconfig_use_libpngconfig
=$ac_cv_prog_arosconfig_use_libpngconfig
6153 if test -n "$arosconfig_use_libpngconfig"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6155 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6163 if test "$arosconfig_use_libpngconfig" = "yes"; then
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6165 $as_echo_n "checking libpng-config library... " >&6; }
6166 libpng_incdir
="`libpng-config --cflags`"
6167 libpng_libextra
="$libpng_libextra `libpng-config --ldflags`"
6168 libpng
="`libpng-config --libs`"
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6170 $as_echo "$libpng" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6174 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6175 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6176 $as_echo_n "(cached) " >&6
6178 ac_check_lib_save_LIBS
=$LIBS
6180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6183 /* Override any GCC internal prototype to avoid an error.
6184 Use char because int might match the return type of a GCC
6185 builtin and then its argument prototype would still apply. */
6189 char png_read_png ();
6193 return png_read_png ();
6198 if ac_fn_c_try_link
"$LINENO"; then :
6199 ac_cv_lib_png_png_read_png
=yes
6201 ac_cv_lib_png_png_read_png
=no
6203 rm -f core conftest.err conftest.
$ac_objext \
6204 conftest
$ac_exeext conftest.
$ac_ext
6205 LIBS
=$ac_check_lib_save_LIBS
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6208 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6209 if test "x$ac_cv_lib_png_png_read_png" = xyes
; then :
6215 if test "$libpng_libextra" != ""; then
6216 if test "$libpng" != "no"; then
6217 libpng_libextra
="$libpng_libextra $libpng"
6222 if test "$libpng" = ""; then
6225 if test "$libpng" = "no"; then
6228 if test "$req_avail" = "no"; then
6229 as_fn_error $?
"libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6245 # Check for some includes for the X11 HIDD and the kernel
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6248 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6249 if ${ac_cv_path_GREP+:} false
; then :
6250 $as_echo_n "(cached) " >&6
6252 if test -z "$GREP"; then
6253 ac_path_GREP_found
=false
6254 # Loop through the user's path and test for each of PROGNAME-LIST
6255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6256 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6259 test -z "$as_dir" && as_dir
=.
6260 for ac_prog
in grep ggrep
; do
6261 for ac_exec_ext
in '' $ac_executable_extensions; do
6262 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6263 as_fn_executable_p
"$ac_path_GREP" ||
continue
6264 # Check for GNU ac_path_GREP and select it if it is found.
6265 # Check for GNU $ac_path_GREP
6266 case `"$ac_path_GREP" --version 2>&1` in
6268 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6271 $as_echo_n 0123456789 >"conftest.in"
6274 cat "conftest.in" "conftest.in" >"conftest.tmp"
6275 mv "conftest.tmp" "conftest.in"
6276 cp "conftest.in" "conftest.nl"
6277 $as_echo 'GREP' >> "conftest.nl"
6278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6279 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6280 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6281 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6282 # Best one so far, save it but keep looking for a better one
6283 ac_cv_path_GREP
="$ac_path_GREP"
6284 ac_path_GREP_max
=$ac_count
6286 # 10*(2^10) chars as input seems more than enough
6287 test $ac_count -gt 10 && break
6289 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6292 $ac_path_GREP_found && break 3
6297 if test -z "$ac_cv_path_GREP"; then
6298 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6301 ac_cv_path_GREP
=$GREP
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6306 $as_echo "$ac_cv_path_GREP" >&6; }
6307 GREP
="$ac_cv_path_GREP"
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6311 $as_echo_n "checking for egrep... " >&6; }
6312 if ${ac_cv_path_EGREP+:} false
; then :
6313 $as_echo_n "(cached) " >&6
6315 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6316 then ac_cv_path_EGREP
="$GREP -E"
6318 if test -z "$EGREP"; then
6319 ac_path_EGREP_found
=false
6320 # Loop through the user's path and test for each of PROGNAME-LIST
6321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6322 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6325 test -z "$as_dir" && as_dir
=.
6326 for ac_prog
in egrep; do
6327 for ac_exec_ext
in '' $ac_executable_extensions; do
6328 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6329 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6330 # Check for GNU ac_path_EGREP and select it if it is found.
6331 # Check for GNU $ac_path_EGREP
6332 case `"$ac_path_EGREP" --version 2>&1` in
6334 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6337 $as_echo_n 0123456789 >"conftest.in"
6340 cat "conftest.in" "conftest.in" >"conftest.tmp"
6341 mv "conftest.tmp" "conftest.in"
6342 cp "conftest.in" "conftest.nl"
6343 $as_echo 'EGREP' >> "conftest.nl"
6344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6345 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6346 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6348 # Best one so far, save it but keep looking for a better one
6349 ac_cv_path_EGREP
="$ac_path_EGREP"
6350 ac_path_EGREP_max
=$ac_count
6352 # 10*(2^10) chars as input seems more than enough
6353 test $ac_count -gt 10 && break
6355 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6358 $ac_path_EGREP_found && break 3
6363 if test -z "$ac_cv_path_EGREP"; then
6364 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6367 ac_cv_path_EGREP
=$EGREP
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6373 $as_echo "$ac_cv_path_EGREP" >&6; }
6374 EGREP
="$ac_cv_path_EGREP"
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6378 $as_echo_n "checking for ANSI C header files... " >&6; }
6379 if ${ac_cv_header_stdc+:} false
; then :
6380 $as_echo_n "(cached) " >&6
6382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6397 if ac_fn_c_try_compile
"$LINENO"; then :
6398 ac_cv_header_stdc
=yes
6400 ac_cv_header_stdc
=no
6402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6404 if test $ac_cv_header_stdc = yes; then
6405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6412 $EGREP "memchr" >/dev
/null
2>&1; then :
6415 ac_cv_header_stdc
=no
6421 if test $ac_cv_header_stdc = yes; then
6422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6429 $EGREP "free" >/dev
/null
2>&1; then :
6432 ac_cv_header_stdc
=no
6438 if test $ac_cv_header_stdc = yes; then
6439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6440 if test "$cross_compiling" = yes; then :
6443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6447 #if ((' ' & 0x0FF) == 0x020)
6448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6451 # define ISLOWER(c) \
6452 (('a' <= (c) && (c) <= 'i') \
6453 || ('j' <= (c) && (c) <= 'r') \
6454 || ('s' <= (c) && (c) <= 'z'))
6455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6463 for (i = 0; i < 256; i++)
6464 if (XOR (islower (i), ISLOWER (i))
6465 || toupper (i) != TOUPPER (i))
6470 if ac_fn_c_try_run
"$LINENO"; then :
6473 ac_cv_header_stdc
=no
6475 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6476 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6482 $as_echo "$ac_cv_header_stdc" >&6; }
6483 if test $ac_cv_header_stdc = yes; then
6485 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6489 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6490 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6491 inttypes.h stdint.h unistd.h
6493 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6494 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6496 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6497 cat >>confdefs.h
<<_ACEOF
6498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6506 for ac_header
in sys
/ipc.h sys
/shm.h \
6507 sys
/mmap.h sys
/mman.h sysexits.h \
6508 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6511 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6512 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6513 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6514 cat >>confdefs.h
<<_ACEOF
6515 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6523 for ac_header
in sys
/mount.h
6525 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6527 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6528 cat >>confdefs.h
<<_ACEOF
6529 #define HAVE_SYS_MOUNT_H 1
6536 for ac_header
in GL
/glx.h
6538 ac_fn_c_check_header_mongrel
"$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
6539 if test "x$ac_cv_header_GL_glx_h" = xyes
; then :
6540 cat >>confdefs.h
<<_ACEOF
6541 #define HAVE_GL_GLX_H 1
6543 host_feature_glx
=yes
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
6552 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
6553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6556 #define __unused __attribute__((unused))
6557 #include <sys/stat.h>
6567 if ac_fn_c_try_compile
"$LINENO"; then :
6568 host_stat_h__unused_used
=no
6570 host_stat_h__unused_used
=yes
6572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
6574 $as_echo "$host_stat_h__unused_used" >&6; }
6577 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6578 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6580 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6581 if eval \
${$as_ac_Header+:} false
; then :
6582 $as_echo_n "(cached) " >&6
6584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6586 #include <sys/types.h>
6598 if ac_fn_c_try_compile
"$LINENO"; then :
6599 eval "$as_ac_Header=yes"
6601 eval "$as_ac_Header=no"
6603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6605 eval ac_res
=\$
$as_ac_Header
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6607 $as_echo "$ac_res" >&6; }
6608 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6609 cat >>confdefs.h
<<_ACEOF
6610 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6613 ac_header_dirent
=$ac_hdr; break
6617 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6618 if test $ac_header_dirent = dirent.h
; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6620 $as_echo_n "checking for library containing opendir... " >&6; }
6621 if ${ac_cv_search_opendir+:} false
; then :
6622 $as_echo_n "(cached) " >&6
6624 ac_func_search_save_LIBS
=$LIBS
6625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6628 /* Override any GCC internal prototype to avoid an error.
6629 Use char because int might match the return type of a GCC
6630 builtin and then its argument prototype would still apply. */
6643 for ac_lib
in '' dir
; do
6644 if test -z "$ac_lib"; then
6645 ac_res
="none required"
6648 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6650 if ac_fn_c_try_link
"$LINENO"; then :
6651 ac_cv_search_opendir
=$ac_res
6653 rm -f core conftest.err conftest.
$ac_objext \
6655 if ${ac_cv_search_opendir+:} false
; then :
6659 if ${ac_cv_search_opendir+:} false
; then :
6662 ac_cv_search_opendir
=no
6665 LIBS
=$ac_func_search_save_LIBS
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6668 $as_echo "$ac_cv_search_opendir" >&6; }
6669 ac_res
=$ac_cv_search_opendir
6670 if test "$ac_res" != no
; then :
6671 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6677 $as_echo_n "checking for library containing opendir... " >&6; }
6678 if ${ac_cv_search_opendir+:} false
; then :
6679 $as_echo_n "(cached) " >&6
6681 ac_func_search_save_LIBS
=$LIBS
6682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6685 /* Override any GCC internal prototype to avoid an error.
6686 Use char because int might match the return type of a GCC
6687 builtin and then its argument prototype would still apply. */
6700 for ac_lib
in '' x
; do
6701 if test -z "$ac_lib"; then
6702 ac_res
="none required"
6705 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6707 if ac_fn_c_try_link
"$LINENO"; then :
6708 ac_cv_search_opendir
=$ac_res
6710 rm -f core conftest.err conftest.
$ac_objext \
6712 if ${ac_cv_search_opendir+:} false
; then :
6716 if ${ac_cv_search_opendir+:} false
; then :
6719 ac_cv_search_opendir
=no
6722 LIBS
=$ac_func_search_save_LIBS
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6725 $as_echo "$ac_cv_search_opendir" >&6; }
6726 ac_res
=$ac_cv_search_opendir
6727 if test "$ac_res" != no
; then :
6728 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6735 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6736 if ${ac_cv_header_stat_broken+:} false
; then :
6737 $as_echo_n "(cached) " >&6
6739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 #include <sys/types.h>
6742 #include <sys/stat.h>
6744 #if defined S_ISBLK && defined S_IFDIR
6745 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6748 #if defined S_ISBLK && defined S_IFCHR
6749 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6752 #if defined S_ISLNK && defined S_IFREG
6753 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6756 #if defined S_ISSOCK && defined S_IFREG
6757 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6761 if ac_fn_c_try_compile
"$LINENO"; then :
6762 ac_cv_header_stat_broken
=no
6764 ac_cv_header_stat_broken
=yes
6766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6769 $as_echo "$ac_cv_header_stat_broken" >&6; }
6770 if test $ac_cv_header_stat_broken = yes; then
6772 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6777 $as_echo_n "checking for ANSI C header files... " >&6; }
6778 if ${ac_cv_header_stdc+:} false
; then :
6779 $as_echo_n "(cached) " >&6
6781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6796 if ac_fn_c_try_compile
"$LINENO"; then :
6797 ac_cv_header_stdc
=yes
6799 ac_cv_header_stdc
=no
6801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6803 if test $ac_cv_header_stdc = yes; then
6804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6811 $EGREP "memchr" >/dev
/null
2>&1; then :
6814 ac_cv_header_stdc
=no
6820 if test $ac_cv_header_stdc = yes; then
6821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6828 $EGREP "free" >/dev
/null
2>&1; then :
6831 ac_cv_header_stdc
=no
6837 if test $ac_cv_header_stdc = yes; then
6838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6839 if test "$cross_compiling" = yes; then :
6842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6846 #if ((' ' & 0x0FF) == 0x020)
6847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6850 # define ISLOWER(c) \
6851 (('a' <= (c) && (c) <= 'i') \
6852 || ('j' <= (c) && (c) <= 'r') \
6853 || ('s' <= (c) && (c) <= 'z'))
6854 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6857 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6862 for (i = 0; i < 256; i++)
6863 if (XOR (islower (i), ISLOWER (i))
6864 || toupper (i) != TOUPPER (i))
6869 if ac_fn_c_try_run
"$LINENO"; then :
6872 ac_cv_header_stdc
=no
6874 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6875 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6881 $as_echo "$ac_cv_header_stdc" >&6; }
6882 if test $ac_cv_header_stdc = yes; then
6884 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6889 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6890 if ${ac_cv_header_sys_wait_h+:} false
; then :
6891 $as_echo_n "(cached) " >&6
6893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895 #include <sys/types.h>
6896 #include <sys/wait.h>
6898 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6901 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6909 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6914 if ac_fn_c_try_compile
"$LINENO"; then :
6915 ac_cv_header_sys_wait_h
=yes
6917 ac_cv_header_sys_wait_h
=no
6919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6922 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6923 if test $ac_cv_header_sys_wait_h = yes; then
6925 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6930 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6931 if ${ac_cv_header_time+:} false
; then :
6932 $as_echo_n "(cached) " >&6
6934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6936 #include <sys/types.h>
6937 #include <sys/time.h>
6943 if ((struct tm *) 0)
6949 if ac_fn_c_try_compile
"$LINENO"; then :
6950 ac_cv_header_time
=yes
6952 ac_cv_header_time
=no
6954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6957 $as_echo "$ac_cv_header_time" >&6; }
6958 if test $ac_cv_header_time = yes; then
6960 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6964 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6965 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
6967 cat >>confdefs.h
<<_ACEOF
6968 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6972 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6977 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6978 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
6980 cat >>confdefs.h
<<_ACEOF
6981 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6985 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6988 case " $LIBOBJS " in
6989 *" fileblocks.$ac_objext "* ) ;;
6990 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6997 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6998 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
7000 cat >>confdefs.h
<<_ACEOF
7001 #define HAVE_STRUCT_STAT_ST_RDEV 1
7005 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7011 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7012 if ${ac_cv_struct_tm+:} false
; then :
7013 $as_echo_n "(cached) " >&6
7015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7017 #include <sys/types.h>
7024 int *p = &tm.tm_sec;
7030 if ac_fn_c_try_compile
"$LINENO"; then :
7031 ac_cv_struct_tm
=time.h
7033 ac_cv_struct_tm
=sys
/time.h
7035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7038 $as_echo "$ac_cv_struct_tm" >&6; }
7039 if test $ac_cv_struct_tm = sys
/time.h
; then
7041 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7045 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7046 #include <$ac_cv_struct_tm>
7049 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
7051 cat >>confdefs.h
<<_ACEOF
7052 #define HAVE_STRUCT_TM_TM_ZONE 1
7058 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7060 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7063 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7065 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
7071 cat >>confdefs.h
<<_ACEOF
7072 #define HAVE_DECL_TZNAME $ac_have_decl
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7076 $as_echo_n "checking for tzname... " >&6; }
7077 if ${ac_cv_var_tzname+:} false
; then :
7078 $as_echo_n "(cached) " >&6
7080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7083 #if !HAVE_DECL_TZNAME
7084 extern char *tzname[];
7090 return tzname[0][0];
7095 if ac_fn_c_try_link
"$LINENO"; then :
7096 ac_cv_var_tzname
=yes
7100 rm -f core conftest.err conftest.
$ac_objext \
7101 conftest
$ac_exeext conftest.
$ac_ext
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7104 $as_echo "$ac_cv_var_tzname" >&6; }
7105 if test $ac_cv_var_tzname = yes; then
7107 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7112 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7113 if test "x$ac_cv_type_off_t" = xyes
; then :
7117 cat >>confdefs.h
<<_ACEOF
7118 #define off_t long int
7123 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7124 if test "x$ac_cv_type_pid_t" = xyes
; then :
7128 cat >>confdefs.h
<<_ACEOF
7134 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7135 if test "x$ac_cv_type_size_t" = xyes
; then :
7139 cat >>confdefs.h
<<_ACEOF
7140 #define size_t unsigned int
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7146 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7147 if ${ac_cv_type_uid_t+:} false
; then :
7148 $as_echo_n "(cached) " >&6
7150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 #include <sys/types.h>
7155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7156 $EGREP "uid_t" >/dev
/null
2>&1; then :
7157 ac_cv_type_uid_t
=yes
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7165 $as_echo "$ac_cv_type_uid_t" >&6; }
7166 if test $ac_cv_type_uid_t = no
; then
7168 $as_echo "#define uid_t int" >>confdefs.h
7171 $as_echo "#define gid_t int" >>confdefs.h
7176 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7177 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7179 cat >>confdefs.h
<<_ACEOF
7180 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7187 # Look for some functions
7188 for ac_func
in getpagesize kqueue statfs statvfs \
7189 clone kse_create rfork_thread thr_create sa_register \
7190 getcontext makecontext setcontext sigaltstack swapcontext
7192 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7193 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7194 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7195 cat >>confdefs.h
<<_ACEOF
7196 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7206 for ac_header
in $ac_header_list
7208 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7209 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7211 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7212 cat >>confdefs.h
<<_ACEOF
7213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7227 for ac_func
in getpagesize
7229 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7230 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7231 cat >>confdefs.h
<<_ACEOF
7232 #define HAVE_GETPAGESIZE 1
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7239 $as_echo_n "checking for working mmap... " >&6; }
7240 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7241 $as_echo_n "(cached) " >&6
7243 if test "$cross_compiling" = yes; then :
7244 ac_cv_func_mmap_fixed_mapped
=no
7246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 $ac_includes_default
7249 /* malloc might have been renamed as rpl_malloc. */
7252 /* Thanks to Mike Haertel and Jim Avera for this test.
7253 Here is a matrix of mmap possibilities:
7254 mmap private not fixed
7255 mmap private fixed at somewhere currently unmapped
7256 mmap private fixed at somewhere already mapped
7257 mmap shared not fixed
7258 mmap shared fixed at somewhere currently unmapped
7259 mmap shared fixed at somewhere already mapped
7260 For private mappings, we should verify that changes cannot be read()
7261 back from the file, nor mmap's back from the file at a different
7262 address. (There have been systems where private was not correctly
7263 implemented like the infamous i386 svr4.0, and systems where the
7264 VM page cache was not coherent with the file system buffer cache
7265 like early versions of FreeBSD and possibly contemporary NetBSD.)
7266 For shared mappings, we should conversely verify that changes get
7267 propagated back to all the places they're supposed to be.
7269 Grep wants private fixed already mapped.
7270 The main things grep needs to know about mmap are:
7271 * does it exist and is it safe to write into the mmap'd area
7272 * how to use it (BSD variants) */
7275 #include <sys/mman.h>
7277 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7281 /* This mess was copied from the GNU getpagesize.h. */
7282 #ifndef HAVE_GETPAGESIZE
7283 # ifdef _SC_PAGESIZE
7284 # define getpagesize() sysconf(_SC_PAGESIZE)
7285 # else /* no _SC_PAGESIZE */
7286 # ifdef HAVE_SYS_PARAM_H
7287 # include <sys/param.h>
7288 # ifdef EXEC_PAGESIZE
7289 # define getpagesize() EXEC_PAGESIZE
7290 # else /* no EXEC_PAGESIZE */
7292 # define getpagesize() NBPG * CLSIZE
7295 # endif /* no CLSIZE */
7296 # else /* no NBPG */
7298 # define getpagesize() NBPC
7299 # else /* no NBPC */
7301 # define getpagesize() PAGESIZE
7302 # endif /* PAGESIZE */
7303 # endif /* no NBPC */
7304 # endif /* no NBPG */
7305 # endif /* no EXEC_PAGESIZE */
7306 # else /* no HAVE_SYS_PARAM_H */
7307 # define getpagesize() 8192 /* punt totally */
7308 # endif /* no HAVE_SYS_PARAM_H */
7309 # endif /* no _SC_PAGESIZE */
7311 #endif /* no HAVE_GETPAGESIZE */
7316 char *data, *data2, *data3;
7321 pagesize = getpagesize ();
7323 /* First, make a file with some known garbage in it. */
7324 data = (char *) malloc (pagesize);
7327 for (i = 0; i < pagesize; ++i)
7328 *(data + i) = rand ();
7330 fd = creat ("conftest.mmap", 0600);
7333 if (write (fd, data, pagesize) != pagesize)
7337 /* Next, check that the tail of a page is zero-filled. File must have
7338 non-zero length, otherwise we risk SIGBUS for entire page. */
7339 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7343 if (write (fd2, cdata2, 1) != 1)
7345 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7346 if (data2 == MAP_FAILED)
7348 for (i = 0; i < pagesize; ++i)
7352 if (munmap (data2, pagesize))
7355 /* Next, try to mmap the file at a fixed address which already has
7356 something else allocated at it. If we can, also make sure that
7357 we see the same garbage. */
7358 fd = open ("conftest.mmap", O_RDWR);
7361 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7362 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7364 for (i = 0; i < pagesize; ++i)
7365 if (*(data + i) != *(data2 + i))
7368 /* Finally, make sure that changes to the mapped area do not
7369 percolate back to the file as seen by read(). (This is a bug on
7370 some variants of i386 svr4.0.) */
7371 for (i = 0; i < pagesize; ++i)
7372 *(data2 + i) = *(data2 + i) + 1;
7373 data3 = (char *) malloc (pagesize);
7376 if (read (fd, data3, pagesize) != pagesize)
7378 for (i = 0; i < pagesize; ++i)
7379 if (*(data + i) != *(data3 + i))
7387 if ac_fn_c_try_run
"$LINENO"; then :
7388 ac_cv_func_mmap_fixed_mapped
=yes
7390 ac_cv_func_mmap_fixed_mapped
=no
7392 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7393 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7398 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7399 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7401 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7404 rm -f conftest.mmap conftest.txt
7407 #-----------------------------------------------------------------------------
7410 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7411 # it switched on by default, and we use the host compiler, so it compiles AROS
7412 # code with this enabled resulting in link failures as we don't have support
7415 # We use two methods to disable it. For the host compiler (used to compile
7416 # some hosted modules), we test to see if the compiler supports stack
7417 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7418 # work on all platforms.
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7422 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7423 save_cflags
="$CFLAGS"
7424 CFLAGS
="$CFLAGS -fno-stack-protector"
7425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7436 if ac_fn_c_try_compile
"$LINENO"; then :
7437 use_no_stack_protector
="yes"
7439 use_no_stack_protector
="no"
7441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7443 $as_echo "$use_no_stack_protector" >&6; }
7444 if test "x-$use_no_stack_protector" = "x-yes" ; then
7445 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7447 CFLAGS
="$save_cflags"
7449 #-----------------------------------------------------------------------------
7451 # Disable pointer-signedness warnings if the compiler recognises the option
7452 # (this only works for the host compiler at the moment)
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7455 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7456 save_cflags
="$CFLAGS"
7457 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7469 if ac_fn_c_try_compile
"$LINENO"; then :
7470 use_no_sign_warning
="yes"
7472 use_no_sign_warning
="no"
7474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7476 $as_echo "$use_no_sign_warning" >&6; }
7477 if test "x-$use_no_sign_warning" = "x-yes" ; then
7478 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7480 CFLAGS
="$save_cflags"
7482 #-----------------------------------------------------------------------------
7484 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7487 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7488 save_cflags
="$CFLAGS"
7489 CFLAGS
="$CFLAGS -fgnu89-inline"
7490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7501 if ac_fn_c_try_compile
"$LINENO"; then :
7502 use_gnu89_inline
="yes"
7504 use_gnu89_inline
="no"
7506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7508 $as_echo "$use_gnu89_inline" >&6; }
7509 if test "x-$use_gnu89_inline" = "x-yes" ; then
7510 gnu89_inline
="-fgnu89-inline"
7512 CFLAGS
="$save_cflags"
7515 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7516 # On GCC >= 4.0 -iquote should be used
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7519 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7520 CFLAGS
="$CFLAGS -iquote."
7521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7532 if ac_fn_c_try_compile
"$LINENO"; then :
7537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7539 $as_echo "$has_iquote" >&6; }
7540 if test "x-$has_iquote" = "x-yes" ; then
7541 host_cflags_iquote
=-iquote
7542 host_cflags_iquote_end
=
7544 host_cflags_iquote
=-I
7545 host_cflags_iquote_end
=-I-
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7549 $as_echo "$as_me: Performing target configuration..." >&6;}
7554 aros_nowarn_flags
="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7562 aros_config_cppflags
=
7564 aros_config_cxxflags
=
7565 aros_config_aflags
="$""(WARN_ALL) -x assembler-with-cpp -c"
7566 aros_config_ldflags
=""
7568 aros_shared_default
=yes
7570 aros_shared_cflags
="-fPIC"
7571 aros_shared_aflags
=""
7572 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7573 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7575 aros_kernel_ar_flags
="cr"
7576 aros_target_ar_flags
="cr"
7577 aros_target_nm_flags
="-C -ul"
7578 aros_target_strip_flags
="--strip-unneeded -R.comment"
7583 aros_target_genmap
="-Wl,-Map -Xlinker"
7585 # Native flavour stuff
7586 aros_serial_debug
="0"
7588 # Palm native flavour stuff
7589 aros_palm_debug_hack
="0"
7591 # Unix flavour stuff
7592 aros_nesting_supervisor
="0"
7594 # Collect-aros stuff: "-ius" to ignore undefined symbols
7595 ignore_undefined_symbols
=""
7597 # Check for X11 by default
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7601 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7603 # Check whether --with-toolchain was given.
7604 if test "${with_toolchain+set}" = set; then :
7605 withval
=$with_toolchain; aros_toolchain
="$withval"
7607 aros_toolchain
="$default_toolchain_family"
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7611 $as_echo "$aros_toolchain" >&6; }
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7615 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7616 # Check whether --enable-lto was given.
7617 if test "${enable_lto+set}" = set; then :
7618 enableval
=$enable_lto; aros_config_lto
="$enableval"
7620 aros_config_lto
="no"
7623 if test "$aros_config_lto" != "no"; then
7624 aros_config_lto
="yes"
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7627 $as_echo "$aros_config_lto" >&6; }
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7630 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7631 # Check whether --enable-coverage was given.
7632 if test "${enable_coverage+set}" = set; then :
7633 enableval
=$enable_coverage; aros_config_coverage
="$enableval"
7635 aros_config_coverage
="no"
7638 if test "$aros_config_coverage" != "no"; then
7639 aros_config_coverage
="yes"
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7642 $as_echo "$aros_config_coverage" >&6; }
7646 case "$aros_toolchain" in
7648 toolchain_c_compiler
="clang"
7649 toolchain_cxx_compiler
="clang++"
7650 toolchain_cpp_preprocessor
="clang -E"
7651 toolchain_ld
="ld.lld"
7653 toolchain_as
="llvm-as"
7654 toolchain_ar
="llvm-ar"
7655 toolchain_ranlib
="llvm-ranlib"
7656 toolchain_nm
="llvm-nm"
7657 toolchain_strip
="true"
7658 toolchain_objcopy
="llvm-objcopy"
7659 toolchain_objdump
="llvm-objdump"
7662 toolchain_c_compiler
="gcc"
7663 toolchain_cxx_compiler
="g++"
7664 toolchain_cpp_preprocessor
="gcc -E"
7667 if test "$aros_config_lto" != "yes"; then
7670 toolchain_ranlib
="ranlib"
7673 toolchain_ld
="ld.bfd"
7674 toolchain_ar
="gcc-ar"
7675 toolchain_ranlib
="gcc-ranlib"
7676 toolchain_nm
="gcc-nm"
7678 toolchain_strip
="strip"
7679 toolchain_objcopy
="objcopy"
7680 toolchain_objdump
="objdump"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7684 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7685 toolchain_c_compiler
="cc"
7686 toolchain_cxx_compiler
="c++"
7687 toolchain_cpp_preprocessor
="cpp"
7692 toolchain_ranlib
="ranlib"
7694 toolchain_strip
="strip"
7695 toolchain_objcopy
="objcopy"
7696 toolchain_objdump
="objdump"
7700 #-----------------------------------------------------------------------------
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7703 $as_echo_n "checking which type of build to do... " >&6; }
7704 # Check whether --enable-build_type was given.
7705 if test "${enable_build_type+set}" = set; then :
7706 enableval
=$enable_build_type; build_type
=$enableval
7708 build_type
="personal"
7712 if test "$build_type" = "nightly"; then
7713 build_type_string
="NIGHTLY"
7714 elif test "$build_type" = "snapshot"; then
7715 build_type_string
="SNAPSHOT"
7716 elif test "$build_type" = "milestone"; then
7717 build_type_string
="MILESTONE"
7718 elif test "$build_type" = "release"; then
7719 build_type_string
="RELEASE"
7721 build_type_string
="PERSONAL"
7722 build_type
="personal"
7725 aros_config_cppflags
="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7728 $as_echo "$build_type" >&6; }
7730 #-----------------------------------------------------------------------------
7731 all_debug_types
="messages stack modules mungwall symbols"
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7734 $as_echo_n "checking which debug types to enable... " >&6; }
7735 # Check whether --enable-debug was given.
7736 if test "${enable_debug+set}" = set; then :
7737 enableval
=$enable_debug; debug
="$enableval"
7743 if test "$debug" = "" -o "$debug" = "no"; then
7745 elif test "$debug" = "yes"; then
7749 if test "$debug" = "all" ; then
7750 debug
="messages stack modules symbols"
7751 for d
in $all_debug_types; do
7752 export aros_
${d}_debug
="1"
7755 for d
in $all_debug_types; do
7756 export aros_
${d}_debug
="0"
7760 if test "$debug" != "none"; then
7761 debug
=`echo $debug | sed s/,/\ /g`
7764 for d2
in $all_debug_types; do
7765 if test "$d2" = "$d"; then
7770 if test "$found" = "0"; then
7771 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7773 export aros_
${d}_debug
="1"
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7778 $as_echo "$debug" >&6; }
7780 if test "$aros_messages_debug" = "1"; then
7781 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
7783 aros_messages_debug
=""
7785 if test "$aros_symbols_debug" = "1"; then
7786 aros_symbols_debug
="-g"
7788 aros_symbols_debug
=""
7791 # These are the flags to pass when compiling debugged programs
7792 aros_debug_cppflags
="$aros_messages_debug"
7793 aros_debug_cflags
="$aros_symbols_debug"
7794 aros_debug_cxxflags
=
7795 aros_debug_aflags
=""
7796 aros_debug_ldflags
="$aros_symbols_debug"
7798 #-----------------------------------------------------------------------------
7799 # Checking for distcc and ccache.
7801 # Always apply the transforms in this particular order. Basically you should
7802 # always run 'ccache distcc compiler' in that order for the best performance.
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7805 $as_echo_n "checking whether to enable distcc... " >&6; }
7806 # Check whether --enable-distcc was given.
7807 if test "${enable_distcc+set}" = set; then :
7808 enableval
=$enable_distcc; distcc
="$enableval"
7813 if test "$distcc" != "" -a "$distcc" != "no"; then
7814 # AC_CHECK_PROG will print out the result in this case
7815 # Extract the first word of "distcc", so it can be a program name with args.
7816 set dummy distcc
; ac_word
=$2
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 $as_echo_n "checking for $ac_word... " >&6; }
7819 if ${ac_cv_path_DISTCC+:} false
; then :
7820 $as_echo_n "(cached) " >&6
7824 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
7827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7831 test -z "$as_dir" && as_dir
=.
7832 for ac_exec_ext
in '' $ac_executable_extensions; do
7833 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
7846 DISTCC
=$ac_cv_path_DISTCC
7847 if test -n "$DISTCC"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7849 $as_echo "$DISTCC" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7862 $as_echo_n "checking whether to enable ccache... " >&6; }
7863 # Check whether --enable-ccache was given.
7864 if test "${enable_ccache+set}" = set; then :
7865 enableval
=$enable_ccache; ccache
="$enableval"
7870 if test "$ccache" != "" -a "$ccache" != "no"; then
7871 # AC_CHECK_PROG will print out the result in this case
7872 # Extract the first word of "ccache", so it can be a program name with args.
7873 set dummy ccache
; ac_word
=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_CCACHE+:} false
; then :
7877 $as_echo_n "(cached) " >&6
7879 if test -n "$CCACHE"; then
7880 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
7882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7886 test -z "$as_dir" && as_dir
=.
7887 for ac_exec_ext
in '' $ac_executable_extensions; do
7888 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_CCACHE
="ccache"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 CCACHE
=$ac_cv_prog_CCACHE
7900 if test -n "$CCACHE"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7902 $as_echo "$CCACHE" >&6; }
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7914 #-----------------------------------------------------------------------------
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7916 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7918 # Check whether --with-kernel-gcc-version was given.
7919 if test "${with_kernel_gcc_version+set}" = set; then :
7920 withval
=$with_kernel_gcc_version; kernel_tool_version
="$withval"
7922 kernel_tool_version
=""
7925 if test "$kernel_tool_version" != "" ; then
7926 msg_result
=$kernel_tool_version
7928 msg_result
="default"
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7931 $as_echo "$msg_result" >&6; }
7933 #-----------------------------------------------------------------------------
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7935 $as_echo_n "checking what optimization flags to use... " >&6; }
7937 # Check whether --with-optimization was given.
7938 if test "${with_optimization+set}" = set; then :
7939 withval
=$with_optimization; optimization_level
="$withval"
7941 optimization_level
="unknown"
7944 if test "$optimization_level" = "unknown"; then
7945 optimization
="default"
7946 if test "$debug" != "none"; then
7947 optimization_level
="-O0"
7949 optimization_level
="-O2"
7952 optimization
="$optimization_level"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7955 $as_echo "$optimization" >&6; }
7957 paranoia_default
=yes
7958 #-----------------------------------------------------------------------------
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7960 $as_echo_n "checking which paranoia flags to use... " >&6; }
7962 # Check whether --with-paranoia was given.
7963 if test "${with_paranoia+set}" = set; then :
7964 withval
=$with_paranoia; paranoia_flags
="$withval"
7966 paranoia_flags
="$paranoia_default"
7969 if test "$paranoia_flags" = "no"; then
7970 paranoia_flags
="$""(WARN_ALL) -Werror-implicit-function-declaration"
7973 if test "$paranoia_flags" = "yes"; then
7974 paranoia_flags
="$""(WARN_ALL) $""(WARN_ERROR)"
7976 msg_result
="$paranoia_flags"
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7979 $as_echo "$msg_result" >&6; }
7980 aros_warn_flags
="$aros_warn_flags $paranoia_flags"
7982 #-----------------------------------------------------------------------------
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7984 $as_echo_n "checking what target variant to enable... " >&6; }
7985 # Check whether --enable-target_variant was given.
7986 if test "${enable_target_variant+set}" = set; then :
7987 enableval
=$enable_target_variant; target_variant
=$enableval
7992 if test "$target_variant" = ""; then
7993 aros_target_variant
=""
7994 aros_target_suffix
=""
7997 aros_target_variant
="$target_variant"
7998 aros_target_suffix
="-$target_variant"
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8001 $as_echo "$enableval" >&6; }
8003 #-----------------------------------------------------------------------------
8004 # Target-specific defaults. You can override then on a per-target basis.
8006 # Bootloader name. Currently used by PC target.
8007 target_bootloader
="none"
8011 #-----------------------------------------------------------------------------
8012 # Additional options for some specific targets
8014 case "$aros_target_variant" in
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8017 $as_echo_n "checking XCode path... " >&6; }
8019 # Check whether --with-xcode was given.
8020 if test "${with_xcode+set}" = set; then :
8021 withval
=$with_xcode; aros_xcode_path
="$withval"
8023 aros_xcode_path
="/Developer"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8027 $as_echo "$aros_xcode_path" >&6; }
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8030 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8032 # Check whether --with-sdk-version was given.
8033 if test "${with_sdk_version+set}" = set; then :
8034 withval
=$with_sdk_version; aros_sdk_version
="$withval"
8036 aros_sdk_version
="4.1"
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8040 $as_echo "$aros_sdk_version" >&6; }
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8046 $as_echo_n "checking Android SDK path... " >&6; }
8048 # Check whether --with-sdk was given.
8049 if test "${with_sdk+set}" = set; then :
8050 withval
=$with_sdk; aros_android_sdk
="$withval"
8052 aros_android_sdk
=$default_android_sdk
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8056 $as_echo "$aros_android_sdk" >&6; }
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8059 $as_echo_n "checking Android NDK path... " >&6; }
8061 # Check whether --with-ndk was given.
8062 if test "${with_ndk+set}" = set; then :
8063 withval
=$with_ndk; aros_android_ndk
="$withval"
8065 aros_android_ndk
="none"
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8069 $as_echo "$aros_android_ndk" >&6; }
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8072 $as_echo_n "checking what Android SDK version to use... " >&6; }
8074 # Check whether --with-sdk-version was given.
8075 if test "${with_sdk_version+set}" = set; then :
8076 withval
=$with_sdk_version; aros_sdk_version
="$withval"
8078 aros_sdk_version
="12"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8082 $as_echo "$aros_sdk_version" >&6; }
8084 aros_android_level
=android-
$aros_sdk_version
8085 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
8086 echo "Platform $aros_android_level is not installed in your SDK"
8087 echo "Use --with-sdk-version=<API level number> to select another platform version"
8088 echo "You can check what plaform versions are installed in your SDK"
8089 echo "by examining contents of $aros_android_sdk/platforms directory"
8090 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
8093 export PATH
="$aros_android_sdk/tools:$PATH"
8094 # Extract the first word of "$android_tool", so it can be a program name with args.
8095 set dummy
$android_tool; ac_word
=$2
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097 $as_echo_n "checking for $ac_word... " >&6; }
8098 if ${ac_cv_path_android_tool+:} false
; then :
8099 $as_echo_n "(cached) " >&6
8101 case $android_tool in
8103 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
8106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8110 test -z "$as_dir" && as_dir
=.
8111 for ac_exec_ext
in '' $ac_executable_extensions; do
8112 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8113 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 android_tool
=$ac_cv_path_android_tool
8125 if test -n "$android_tool"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8127 $as_echo "$android_tool" >&6; }
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8135 if test "$android_tool" = ""; then
8138 if test "$android_tool" = "no"; then
8141 if test "$req_avail" = "no"; then
8142 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
8145 if test "$aros_android_ndk" != "none"; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8147 $as_echo_n "checking what Android NDK version to use... " >&6; }
8149 # Check whether --with-ndk-version was given.
8150 if test "${with_ndk_version+set}" = set; then :
8151 withval
=$with_ndk_version; aros_ndk_version
="$withval"
8153 aros_ndk_version
="9"
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8157 $as_echo "$aros_ndk_version" >&6; }
8160 # Extract the first word of "ant", so it can be a program name with args.
8161 set dummy ant
; ac_word
=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if ${ac_cv_path_ant+:} false
; then :
8165 $as_echo_n "(cached) " >&6
8169 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
8172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8176 test -z "$as_dir" && as_dir
=.
8177 for ac_exec_ext
in '' $ac_executable_extensions; do
8178 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8179 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 if test -n "$ant"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8193 $as_echo "$ant" >&6; }
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8200 if test "$ant" = ""; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8202 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8206 $as_echo_n "checking Build debug or release apk... " >&6; }
8208 # Check whether --with-apk-version was given.
8209 if test "${with_apk_version+set}" = set; then :
8210 withval
=$with_apk_version; aros_android_antapk
=$withval
8212 aros_android_antapk
=release
8215 if test $aros_android_antapk != release
-a $aros_android_antapk != debug
; then
8216 as_fn_error $?
"apk-version has to be release or debug" "$LINENO" 5
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8219 $as_echo "$aros_android_antapk" >&6; }
8221 target_extra_cfg
+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8222 host_extra_cfg
+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8223 aros_target_options
+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8225 if test "$host_os" = "mingw32"; then
8226 android_tool
="cmd //c $android_tool"
8234 #-----------------------------------------------------------------------------
8235 # External toolchains
8236 kernel_tool_prefix
="none"
8237 aros_tool_prefix
="none"
8238 elf_tool_prefix
="${target_cpu}-elf-"
8240 # Base target cpu ISA configuration switch.
8241 case "$target_cpu" in
8247 m68k_isa_extra
="ISA_MC68000_FLAGS = -march=68000"
8248 m68k_020_isa_extra
="ISA_MC68020_FLAGS = -march=68020"
8249 m68k_030_isa_extra
="ISA_MC68030_FLAGS = -march=68030"
8250 m68k_040_isa_extra
="ISA_MC68040_FLAGS = -march=68040"
8251 m68k_060_isa_extra
="ISA_MC68060_FLAGS = -march=68060"
8252 m68k_ac080_isa_extra
="ISA_AC68080_FLAGS = -march=68040"
8253 m68k_020_ext
="ISA_MC68020_EXT :=020"
8254 m68k_030_ext
="ISA_MC68030_EXT :=030"
8255 m68k_040_ext
="ISA_MC68040_EXT :=040"
8256 m68k_060_ext
="ISA_MC68060_EXT :=060"
8257 m68k_020_cflags
="ISA_MC68020_CFLAGS ="
8258 m68k_030_cflags
="ISA_MC68030_CFLAGS ="
8259 m68k_040_cflags
="ISA_MC68040_CFLAGS ="
8260 m68k_060_cflags
="ISA_MC68060_CFLAGS ="
8261 m68k_020_cppflags
="ISA_MC68020_CPPFLAGS ="
8262 m68k_030_cppflags
="ISA_MC68030_CPPFLAGS ="
8263 m68k_040_cppflags
="ISA_MC68040_CPPFLAGS ="
8264 m68k_060_cppflags
="ISA_MC68060_CPPFLAGS ="
8265 m68k_020_ldflags
="ISA_MC68020_LDFLAGS ="
8266 m68k_030_ldflags
="ISA_MC68030_LDFLAGS ="
8267 m68k_040_ldflags
="ISA_MC68040_LDFLAGS ="
8268 m68k_060_ldflags
="ISA_MC68060_LDFLAGS ="
8271 x86_isa_extra
="ISA_X86_FLAGS = -m32 -march=i486"
8272 x86_64_isa_extra
="ISA_X8664_FLAGS = -mcmodel=large"
8278 # This is the target configuration switch.
8279 case "$target_os" in
8281 aros_target_arch
="linux"
8282 aros_target_family
="unix"
8283 case "$target_cpu" in
8285 aros_target_cpu
="m68k"
8286 aros_object_format
="m68kelf"
8287 aros_flavour
="emulcompat"
8288 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8289 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8290 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8291 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8292 gcc_target_cpu
="mc68000"
8295 aros_target_cpu
="i386"
8296 aros_object_format
="elf_i386"
8297 aros_flavour
="emulation"
8298 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8299 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8300 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8301 aros_kernel_ldflags
="-Wl,-melf_i386"
8302 aros_nominal_depth
=8
8303 gcc_target_cpu
="i386"
8304 pci_hidd_target
="hidd-pci-linux"
8305 android_tool_dir_prefix
="x86"
8306 android_tool_prefix
="i686-android-linux"
8307 android_ndk_arch
="x86"
8310 aros_target_cpu
="x86_64"
8311 aros_object_format
="elf_x86_64"
8312 aros_flavour
="emulation"
8313 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8314 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8315 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8316 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8317 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8318 aros_nominal_depth
=8
8319 pci_hidd_target
="hidd-pci-linux"
8322 aros_target_cpu
="ppc"
8323 aros_object_format
="elf32ppc"
8324 aros_flavour
="emulation"
8325 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8326 aros_nominal_depth
=8
8327 gcc_target_cpu
="ppc"
8330 # Same as powerpc, but I need this for the nightly build to work again.
8331 # Actually, the nightly should be made working with powerpc target.
8332 # That just was too much work for the moment, another week or two.
8334 aros_target_cpu
="ppc"
8335 aros_object_format
="elf32ppc"
8336 aros_flavour
="emulation"
8337 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8338 aros_nominal_depth
=8
8339 gcc_target_cpu
="ppc"
8342 aros_target_cpu
="aarch64"
8343 target_cpu
="aarch64"
8344 aros_object_format
="aarch64elf_aros"
8345 aros_flavour
="emulation"
8346 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8347 gcc_target_cpu
="aarch64"
8348 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8349 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8350 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8351 aros_arch_libs
="-laeabi"
8352 gcc_default_float_abi
="hard"
8353 kernel_tool_prefix
="aarch64-linux-gnueabihf-"
8356 aros_target_cpu
="arm"
8358 aros_object_format
="armelf_aros"
8359 aros_flavour
="emulation"
8360 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8361 gcc_target_cpu
="arm"
8362 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8363 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8364 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8365 aros_arch_libs
="-laeabi"
8366 gcc_default_float_abi
="hard"
8367 android_tool_dir_prefix
="arm-linux-androideabi"
8368 android_tool_prefix
="arm-linux-androideabi"
8369 android_ndk_arch
="arm"
8370 kernel_tool_prefix
="arm-linux-gnueabihf-"
8373 aros_target_cpu
="arm"
8374 aros_object_format
="armelf_aros"
8375 aros_flavour
="emulation"
8376 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8377 gcc_target_cpu
="arm"
8378 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8379 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8380 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8381 aros_arch_libs
="-laeabi"
8382 android_tool_dir_prefix
="arm-linux-androideabi"
8383 android_tool_prefix
="arm-linux-androideabi"
8384 android_ndk_arch
="arm"
8385 kernel_tool_prefix
="arm-linux-gnueabi-"
8388 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8391 case "$aros_target_variant" in
8394 if test "$android_ndk_arch" = ""; then
8395 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8398 aros_nominal_width
=320
8399 aros_nominal_height
=480
8400 if test "$aros_android_ndk" = "none"; then
8401 aros_kernel_cflags
="-mandroid"
8402 aros_kernel_ldflags
="-mandroid"
8405 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8406 kernel_tool_version
=""
8407 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8408 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
8409 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
8410 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8411 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
8414 # Disable implicit PIC mode
8415 aros_config_cflags
="$aros_config_cflags -fno-pic"
8416 kernel_tool_prefix
="$android_tool_prefix-"
8422 aros_target_arch
="pc"
8423 aros_shared_default
="no"
8424 target_bootloader
="grub2"
8425 case "$target_cpu" in
8427 aros_target_cpu
="i386"
8430 if test "$aros_object_format" = "" ; then
8431 aros_object_format
="elf_i386"
8433 aros_flavour
="standalone"
8434 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8435 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8436 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8437 aros_kernel_ldflags
="-Wl,-melf_i386"
8438 aros_nominal_width
=640
8439 aros_nominal_height
=480
8440 gcc_target_cpu
="i386"
8443 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
8444 aros_target_cpu
="x86_64"
8446 if test "$aros_object_format" = "" ; then
8447 aros_object_format
="elf_x86_64"
8449 aros_flavour
="standalone"
8450 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8451 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8452 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8453 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8454 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8455 aros_kernel_ldflags
=""
8456 aros_nominal_width
=640
8457 aros_nominal_height
=480
8458 case "$aros_target_variant" in
8460 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8465 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8471 aros_target_arch
="prep"
8472 aros_shared_default
="no"
8473 aros_target_cpu
="ppc"
8474 aros_object_format
="elf32ppc"
8475 aros_flavour
="ppcnative"
8476 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8477 aros_kernel_ldflags
=""
8478 aros_nominal_width
=640
8479 aros_nominal_height
=480
8480 gcc_target_cpu
="ppc"
8484 aros_target_arch
="freebsd"
8485 aros_target_family
="unix"
8486 aros_target_cpu
="i386"
8487 aros_flavour
="emulation"
8488 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8489 gcc_target_cpu
="i386"
8491 aros_target_strip_flags
="-x"
8495 aros_target_arch
="darwin"
8496 aros_target_family
="unix"
8497 aros_flavour
="emulation"
8498 case "$target_cpu" in
8500 aros_ios_platform
="iPhoneSimulator"
8501 aros_target_cpu
="i386"
8502 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8503 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8504 aros_kernel_ldflags
=""
8505 aros_macosx_version
="10.4"
8506 aros_nominal_depth
=8
8507 gcc_target_cpu
="i386"
8508 aros_object_format
="elf_i386"
8509 aros_kernel_ar_flags
="-cr"
8510 aros_target_strip_flags
="-x"
8511 kernel_tool_flags
="-m32"
8514 aros_target_cpu
="x86_64"
8515 aros_object_format
="elf_x86_64"
8516 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8517 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8518 aros_macosx_version
="10.6"
8519 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8520 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8521 aros_kernel_cflags
="-m64"
8522 aros_kernel_ldflags
="-m64"
8523 aros_nominal_depth
=8
8525 aros_kernel_ar_flags
="-cr"
8528 aros_kernel_ranlib
="ranlib"
8530 aros_kernel_strip
="strip"
8531 kernel_tool_prefix
="i686-apple-darwin10-"
8534 aros_target_cpu
="ppc"
8535 aros_object_format
="elf32ppc"
8536 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8537 aros_kernel_ldflags
=""
8538 aros_macosx_version
="10.0"
8539 aros_nominal_depth
=8
8540 gcc_target_cpu
="ppc"
8542 aros_kernel_ar_flags
="-cr"
8543 aros_kernel_ld
="ld -arch ppc"
8544 aros_kernel_as
="as -arch ppc"
8545 aros_kernel_ranlib
="ranlib -arch ppc"
8546 aros_kernel_nm
="nm -arch ppc"
8547 aros_kernel_strip
="strip -arch ppc"
8548 kernel_tool_prefix
="powerpc-apple-darwin10-"
8551 aros_ios_platform
="iPhoneOS"
8552 aros_target_cpu
="arm"
8553 aros_object_format
="armelf_aros"
8554 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8555 aros_arch_libs
="-laeabi"
8556 aros_nominal_depth
=8
8557 gcc_target_cpu
="arm"
8559 aros_kernel_ar_flags
="-cr"
8560 aros_kernel_ld
="ld -arch arm"
8561 aros_kernel_ranlib
="ranlib -arch arm"
8562 kernel_tool_prefix
="arm-apple-darwin10-"
8563 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8566 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8569 case "$aros_target_variant" in
8571 make_extra_targetcfg
="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8572 aros_ios_version
="3.0"
8573 aros_nominal_width
=320
8574 aros_nominal_height
=480
8575 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8576 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"
8577 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
8578 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
8580 # This is here because it may depend on iOS or SDK version
8581 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8582 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8583 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8586 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8587 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8593 aros_target_arch
="dragonfly"
8594 aros_target_family
="unix"
8595 aros_flavour
="emulation"
8596 case "$target_cpu" in
8598 aros_target_cpu
="i386"
8599 aros_object_format
="elf_i386"
8600 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8601 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8604 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8605 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8606 aros_target_cpu
="x86_64"
8607 aros_object_format
="elf_x86_64"
8608 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8609 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8612 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8618 aros_target_arch
="netbsd"
8619 aros_target_family
="unix"
8620 case "$target_cpu" in
8622 aros_target_cpu
="m68k"
8623 aros_object_format
="m68kelf"
8624 aros_flavour
="emulcompat"
8625 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8626 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8627 gcc_target_cpu
="mc68000"
8630 aros_target_cpu
="i386"
8631 aros_object_format
="elf_i386"
8632 aros_flavour
="emulation"
8633 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8634 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8635 aros_nominal_depth
=8
8636 gcc_target_cpu
="i386"
8639 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8642 aros_target_genmap
="-Wl,-M -Xlinker >"
8643 aros_flavour
="emulation"
8644 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8648 aros_target_arch
="openbsd"
8649 aros_target_family
="unix"
8650 case "$target_cpu" in
8652 aros_target_cpu
="i386"
8653 aros_object_format
="elf_i386"
8654 aros_flavour
="emulation"
8655 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8656 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8657 gcc_target_cpu
="i386"
8660 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8663 aros_target_genmap
="-Wl,-M -Xlinker >"
8664 aros_target_nm_flags
="-u"
8665 aros_flavour
="emulation"
8669 aros_target_arch
="solaris"
8670 aros_target_family
="unix"
8671 case "$target_cpu" in
8673 aros_target_cpu
="i386"
8674 aros_object_format
="elf_i386"
8675 aros_flavour
="emulation"
8676 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8677 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8678 aros_nominal_depth
=8
8679 gcc_target_cpu
="i386"
8682 aros_target_cpu
="sparc"
8683 aros_object_format
="elf_sparc"
8684 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8685 gcc_target_cpu
="sparc"
8688 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8691 aros_config_cppflags
="$aros_config_cppflags -D$aros_target_cpu"
8692 aros_flavour
="emulation"
8696 aros_target_arch
="morphos"
8697 aros_shared_default
="no"
8698 aros_target_cpu
="ppc"
8699 aros_object_format
="elf_ppc"
8700 aros_flavour
="nativecompat"
8701 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8702 gcc_target_cpu
="ppc"
8706 aros_target_arch
="sam440"
8707 aros_shared_default
="no"
8708 aros_target_cpu
="ppc"
8709 aros_object_format
="elf32ppc"
8710 aros_flavour
="ppcnative"
8711 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8712 aros_kernel_ldflags
=""
8713 aros_nominal_width
=1024
8714 aros_nominal_height
=768
8715 aros_nominal_depth
=24
8716 aros_isa_flags
="$aros_isa_flags -mcpu=440fp -mno-toc"
8717 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8718 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8719 gcc_target_cpu
="powerpc"
8723 aros_target_arch
="efika"
8724 aros_shared_default
="no"
8725 aros_target_cpu
="arm"
8726 aros_object_format
="armelf_aros"
8727 aros_flavour
="standalone"
8728 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8729 aros_kernel_ldflags
=""
8730 aros_nominal_width
=1024
8731 aros_nominal_height
=600
8732 aros_arch_libs
="-laeabi"
8733 gcc_default_cpu
="armv7-a"
8734 gcc_default_fpu
="vfpv3"
8735 aros_isa_flags
="$aros_isa_flags -mtune=cortex-a8"
8736 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8737 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8738 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8739 if test "$optimization" = "default"; then
8740 optimization_level
="-Os"
8742 case "$target_cpu" in
8744 gcc_default_float_abi
="hard"
8749 gcc_default_float_abi
="softfp"
8752 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8758 aros_target_arch
="chrp"
8759 aros_shared_default
="no"
8760 aros_target_cpu
="ppc"
8761 aros_object_format
="elf32ppc"
8762 aros_flavour
="ppcnative"
8763 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8764 aros_kernel_ldflags
=""
8765 aros_nominal_width
=640
8766 aros_nominal_height
=480
8767 aros_isa_flags
="$aros_isa_flags -mno-toc"
8768 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8769 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8770 gcc_target_cpu
="powerpc"
8771 case "$aros_target_variant" in
8773 aros_isa_flags
="$aros_isa_flags -mcpu=603e"
8774 aros_config_cppflags
="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8780 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
8781 aros_flavour
="standalone"
8782 aros_target_arch
="raspi"
8784 aros_shared_default
="no"
8786 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__"
8788 case "$target_cpu" in
8790 aros_target_cpu
="aarch64"
8791 gcc_default_cpu
="aarch64"
8792 aros_object_format
="aarch64elf_aros"
8795 aros_target_cpu
="arm"
8796 gcc_default_cpu
="armv6zk"
8797 gcc_default_cpu_tune
="arm1176jzf-s"
8798 aros_object_format
="armelf_aros"
8799 aros_isa_flags
="$aros_isa_flags -marm"
8800 aros_config_cflags
="$aros_config_cflags"
8801 aros_config_cxxflags
="$aros_config_cxxflags"
8802 aros_config_aflags
="$aros_config_aflags -marm"
8803 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8804 aros_target_mkdep
="$aros_target_mkdep -Darm"
8805 aros_arch_libs
="-laeabi"
8808 aros_flavour
="standcompat"
8809 aros_target_cpu
="armeb"
8810 gcc_default_float_abi
="hard"
8811 gcc_default_cpu
="armv7ve"
8812 gcc_default_cpu_tune
="cortex-a7"
8813 aros_object_format
="armelfb_aros"
8814 aros_isa_flags
="$aros_isa_flags -marm"
8815 aros_config_cflags
="$aros_config_cflags"
8816 aros_config_cxxflags
="$aros_config_cxxflags"
8817 aros_config_aflags
="$aros_config_aflags -marm"
8818 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8819 aros_target_mkdep
="$aros_target_mkdep -Darm"
8820 aros_arch_libs
="-laeabi"
8823 aros_target_cpu
="arm"
8824 gcc_default_cpu
="armv6zk"
8825 gcc_default_cpu_tune
="arm1176jzf-s"
8826 aros_object_format
="armelf_aros"
8827 aros_isa_flags
="$aros_isa_flags -marm"
8828 aros_config_cflags
="$aros_config_cflags"
8829 aros_config_cxxflags
="$aros_config_cxxflags"
8830 aros_config_aflags
="$aros_config_aflags -marm"
8831 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8832 aros_target_mkdep
="$aros_target_mkdep -Darm"
8833 aros_arch_libs
="-laeabi"
8836 as_fn_error $?
"\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8840 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8841 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8842 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8843 aros_kernel_cflags
="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8845 case "$aros_target_variant" in
8847 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8853 aros_flavour
="standalone"
8854 aros_target_arch
="stm32f7_discovery"
8855 aros_target_cpu
="arm"
8856 aros_target_cpu_mode
="thumb2"
8857 aros_object_format
="armelf_aros"
8858 aros_shared_default
="no"
8860 gcc_default_cpu
="armv7e-m"
8861 gcc_default_cpu_tune
="cortex-m7"
8862 gcc_default_fpu
="fpv5-sp-d16"
8863 gcc_default_float_abi
="hard"
8865 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dthumb"
8869 aros_elf_translate
="$""(ELF2HUNK)"
8870 make_extra_commands
="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
8871 aros_target_arch
="amiga"
8872 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8873 aros_shared_default
="no"
8875 case "$target_cpu" in
8877 # Check whether --enable-amigaos_compliance was given.
8878 if test "${enable_amigaos_compliance+set}" = set; then :
8879 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
8883 aros_target_cpu
="m68k"
8884 aros_object_format
="m68kelf"
8885 aros_flavour
="standcompat"
8886 gcc_target_cpu
="m68000"
8887 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8888 aros_nowarn_flags
="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8889 aros_config_cppflags
="$aros_config_cppflags -DNOLIBINLINE"
8890 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
8891 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
8892 if test "$optimization" = "default"; then
8893 optimization_level
="-Os"
8895 aros_config_aflags
="$aros_config_aflags"
8896 aros_target_strip_flags
="-R.comment --strip-debug"
8897 aros_nominal_width
=640
8898 aros_nominal_height
=256
8899 aros_nominal_depth
=2
8903 aros_flavour
="native"
8904 gcc_target_cpu
="ppc"
8907 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8913 aros_target_arch
="mingw32"
8914 aros_shared_default
="no"
8915 aros_flavour
="emulation"
8916 aros_shared_cflags
=""
8917 need_crosstools
="yes"
8920 case "$target_cpu" in
8922 aros_target_cpu
="i386"
8923 aros_object_format
="elf_i386"
8924 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8925 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8926 aros_nominal_depth
=8
8927 gcc_target_cpu
="i386"
8929 kernel_tool_prefix
="i386-mingw32-"
8932 aros_target_cpu
="x86_64"
8933 aros_object_format
="elf_x86_64"
8934 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8935 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8936 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8937 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8938 aros_nominal_depth
=8
8939 kernel_tool_prefix
="x86_64-w64-mingw32-"
8942 aros_target_cpu
="arm"
8943 aros_object_format
="armelf_aros"
8944 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8945 aros_arch_libs
="-laeabi"
8946 aros_nominal_depth
=8
8947 gcc_target_cpu
="arm"
8948 gcc_default_float_abi
="soft"
8949 kernel_tool_prefix
="arm-mingw32ce-"
8950 aros_nominal_width
=160
8951 aros_nominal_height
=160
8954 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8957 if test $host_os = "cygwin"; then
8958 aros_kernel_cflags
="-mno-cygwin"
8962 aros_target_arch
="pp"
8963 aros_shared_default
="no"
8964 case "$target_cpu" in
8966 aros_target_cpu
="m68k"
8967 aros_object_format
="m68kelf"
8968 aros_flavour
="palmnative"
8969 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8970 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
8971 aros_nominal_width
=160
8972 aros_nominal_height
=160
8973 aros_nominal_depth
=1
8974 aros_target_ar_flags
="cru"
8975 aros_compiler_libs
="-lgcc1"
8976 aros_shared_default
=no
8977 aros_shared_cflags
="-fpic"
8978 aros_shared_aflags
=""
8979 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8980 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8981 aros_debug_cppflags
="$aros_messages_debug"
8982 aros_debug_cflags
="$aros_symbols_debug"
8983 aros_debug_aflags
=""
8984 aros_debug_ldflags
="$aros_symbols_debug"
8985 aros_mungwall_debug
="0"
8986 aros_modules_debug
="0"
8987 gcc_target_cpu
="mc68000"
8988 ignore_undefined_symbols
="-ius"
8991 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8997 aros_target_arch
="mac"
8998 aros_shared_default
="no"
8999 case "$target_cpu" in
9001 aros_target_cpu
="m68k"
9002 aros_object_format
="m68kelf"
9003 aros_flavour
="mac68knative"
9004 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
9005 aros_isa_flags
="$""(ISA_MC68000_FLAGS)"
9006 aros_nominal_width
=512
9007 aros_nominal_height
=384
9008 aros_nominal_depth
=8
9009 aros_target_ar_flags
="cru"
9010 aros_compiler_libs
="-lgcc1"
9011 aros_shared_default
=no
9012 aros_shared_cflags
="-fpic"
9013 aros_shared_aflags
=""
9014 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
9015 aros_kernel_ldflags
="-Wl,-rpath,./lib"
9016 aros_debug_cppflags
="$aros_messages_debug"
9017 aros_debug_cflags
="$aros_symbols_debug"
9018 aros_debug_aflags
=""
9019 aros_debug_ldflags
="$aros_symbols_debug"
9020 aros_mungwall_debug
="0"
9021 aros_modules_debug
="0"
9022 gcc_target_cpu
="mc68000"
9023 ignore_undefined_symbols
="-ius"
9026 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9032 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
9036 #-----------------------------------------------------------------------------
9037 crosstools_guess
="yes"
9038 aros_target_toolchain
="no"
9039 aros_kernel_sysroot
=""
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9042 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9044 # Check whether --with-kernel-toolchain-prefix was given.
9045 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9046 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9050 $as_echo "$kernel_tool_prefix" >&6; }
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9053 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9055 # Check whether --with-elf-toolchain-prefix was given.
9056 if test "${with_elf_toolchain_prefix+set}" = set; then :
9057 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
9058 crosstools_guess
="no"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9062 $as_echo "$elf_tool_prefix" >&6; }
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9065 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9067 # Check whether --with-aros-toolchain was given.
9068 if test "${with_aros_toolchain+set}" = set; then :
9069 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
9070 crosstools_guess
="no"
9073 if test "$aros_tool_prefix" = "yes" ; then
9074 aros_tool_prefix
=$aros_target_cpu-aros-
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9077 $as_echo "$aros_tool_prefix" >&6; }
9079 #-----------------------------------------------------------------------------
9080 # Checking if we should build crosstools..
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9082 $as_echo_n "checking whether to build crosstools... " >&6; }
9083 # Check whether --enable-crosstools was given.
9084 if test "${enable_crosstools+set}" = set; then :
9085 enableval
=$enable_crosstools; crosstools
="$enableval"
9087 crosstools
="$crosstools_guess"
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9091 $as_echo "$crosstools" >&6; }
9093 if test "${crosstools}" = "yes"; then
9094 if test "${crosstools_guess}" = "no"; then
9095 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9099 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
9100 aros_target_toolchain
="yes"
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9104 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9106 # Check whether --with-aros-toolchain-install was given.
9107 if test "${with_aros_toolchain_install+set}" = set; then :
9108 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
9111 if test "x$aros_toolchain_install" = "x"; then
9112 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9114 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
9115 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
9116 if test "$crosstools_guess" = "no" ; then
9117 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9118 aros_kernel_sysroot
="$""(TARGET_SYSROOT)"
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9123 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9125 #-----------------------------------------------------------------------------
9126 if test "$aros_toolchain" = "gnu" ; then
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9128 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9131 # Check whether --with-binutils-version was given.
9132 if test "${with_binutils_version+set}" = set; then :
9133 withval
=$with_binutils_version; use_binutils_version
="$withval"
9135 use_binutils_version
=""
9138 if test "$use_binutils_version" = ""; then
9139 target_binutils_version
="$default_binutils_version"
9141 target_binutils_version
="$use_binutils_version"
9143 if test "$aros_toolchain" = "gnu" ; then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9145 $as_echo "$target_binutils_version" >&6; }
9149 # Helper to identify gcc version
9152 #-----------------------------------------------------------------------------
9153 if test "$aros_toolchain" = "gnu" ; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9155 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9158 # Check whether --with-gcc-version was given.
9159 if test "${with_gcc_version+set}" = set; then :
9160 withval
=$with_gcc_version; use_gcc_version
="$withval"
9165 if test "$use_gcc_version" = ""; then
9166 if test "${crosstools}" = "no"; then
9167 if test "x$aros_toolchain_install" != "x"; then
9169 target_gcc_version
=""
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9171 $as_echo_n "checking gcc version... " >&6; }
9172 if ${ax_cv_gcc_version+:} false
; then :
9173 $as_echo_n "(cached) " >&6
9176 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9177 if test "x$ax_cv_gcc_version" = "x"; then :
9179 ax_cv_gcc_version
=""
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9185 $as_echo "$ax_cv_gcc_version" >&6; }
9186 target_gcc_version
=$ax_cv_gcc_version
9191 if test "$use_gcc_version" = ""; then
9192 target_gcc_version
="$default_gcc_version"
9195 target_gcc_version
="$use_gcc_version"
9197 if test "$aros_toolchain" = "gnu" ; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9199 $as_echo "$target_gcc_version" >&6; }
9201 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'.' -f1)
9202 GCC_VERSION_MINOR
=$
(echo $target_gcc_version | cut
-d'.' -f2)
9203 GCC_VERSION_PATCH
=$
(echo $target_gcc_version | cut
-d'.' -f3)
9205 gcc_fix_bitfields
="false"
9206 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9207 gcc_fix_bitfields
="true"
9209 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9210 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9211 gcc_fix_bitfields
="true"
9216 if test "$gcc_fix_bitfields" = "true" ; then
9217 case "$aros_target_cpu" in
9219 x86_isa_extra
="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9220 x86_64_isa_extra
="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9227 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9228 # Check whether --enable-objc was given.
9229 if test "${enable_objc+set}" = set; then :
9230 enableval
=$enable_objc; objc
="$enableval"
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9236 $as_echo "$objc" >&6; }
9237 if test "x$objc" = "xyes"; then
9240 objc_target
="no-objc"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9244 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9245 # Check whether --enable-java was given.
9246 if test "${enable_java+set}" = set; then :
9247 enableval
=$enable_java; java
="$enableval"
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9253 $as_echo "$java" >&6; }
9254 if test "x$java" != "xno"; then
9257 java_target
="no-java"
9260 spec_obj_format
="-m $aros_object_format"
9261 # Now process extra architecture-specific options.
9262 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9263 # as well as floating-point ABI.
9264 case "$aros_target_cpu" in
9266 aros_isa_targets
="M68K_ISA_TARGETS :=MC68020 MC68040"
9267 aros_isa_extra
="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9268 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"
9269 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"
9270 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"
9271 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"
9272 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"
9275 aros_isa_extra
="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9276 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9279 if test "$gcc_default_cpu" = ""; then
9280 gcc_default_cpu
="armv6"
9282 if test "$gcc_default_fpu" = ""; then
9283 gcc_default_fpu
="vfp"
9285 if test "$gcc_default_endian" = ""; then
9286 if test "$target_cpu" = "armeb"; then
9287 gcc_default_endian
="big-endian"
9289 gcc_default_endian
="little-endian"
9292 if test "$gcc_default_float_abi" = ""; then
9293 if test "$target_cpu" = "armhf"; then
9294 gcc_default_float_abi
="hard"
9296 gcc_default_float_abi
="softfp"
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9301 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9303 # Check whether --with-cpu was given.
9304 if test "${with_cpu+set}" = set; then :
9305 withval
=$with_cpu; aros_gcc_cpu
="$withval"
9307 aros_gcc_cpu
=$gcc_default_cpu
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9311 $as_echo "$aros_gcc_cpu" >&6; }
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9314 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9316 # Check whether --with-fpu was given.
9317 if test "${with_fpu+set}" = set; then :
9318 withval
=$with_fpu; aros_gcc_fpu
="$withval"
9320 aros_gcc_fpu
=$gcc_default_fpu
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9324 $as_echo "$aros_gcc_fpu" >&6; }
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9327 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9329 # Check whether --with-float was given.
9330 if test "${with_float+set}" = set; then :
9331 withval
=$with_float; aros_gcc_float_abi
="$withval"
9333 aros_gcc_float_abi
=$gcc_default_float_abi
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9337 $as_echo "$aros_gcc_float_abi" >&6; }
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9340 $as_echo_n "checking Which ARM mode to use... " >&6; }
9341 if test "$aros_target_cpu_mode" = ""; then
9342 aros_target_cpu_mode
="arm32"
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9344 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9347 $as_echo "$aros_target_cpu_mode" >&6; }
9350 case "$aros_target_cpu_mode" in
9352 gcc_default_mode
="arm"
9353 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"
9356 as_fn_error $?
"ARM 64-bit mode is unsupported" "$LINENO" 5
9359 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9362 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9365 gcc_default_mode
="thumb"
9366 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9367 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"
9370 as_fn_error $?
"Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9374 aros_config_cflags
="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9375 aros_config_cxxflags
="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9376 aros_config_aflags
="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9379 aros_isa_extra
="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9380 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
9384 # Some architectures may need custom ELF specs.
9385 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
9386 elf_specs_in
=config
/${aros_object_format}-specs.
in
9388 elf_specs_in
=config
/elf-specs.
in
9391 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9392 # Since we override specs, we may need to put these defines there
9393 if test "$gcc_target_cpu" != ""; then
9394 gcc_target_cpu
="-D__${gcc_target_cpu}__"
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9398 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9400 # Check whether --with-portssources was given.
9401 if test "${with_portssources+set}" = set; then :
9402 withval
=$with_portssources; with_portssrcdir
=$withval
9404 with_portssrcdir
="default"
9407 if test "$with_portssrcdir" = "default"; then
9408 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9410 AROS_PORTSSRCDIR
="$with_portssrcdir"
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9413 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9416 $as_echo_n "checking which bootloader to use... " >&6; }
9418 # Check whether --with-bootloader was given.
9419 if test "${with_bootloader+set}" = set; then :
9420 withval
=$with_bootloader; target_bootloader
=$withval
9422 target_bootloader
=$target_bootloader
9425 if test "$target_bootloader" = "none"; then
9426 aros_target_bootloader
=""
9428 aros_target_bootloader
="$target_bootloader"
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9431 $as_echo "$target_bootloader" >&6; }
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9434 $as_echo_n "checking which icon-set to use... " >&6; }
9436 # Check whether --with-iconset was given.
9437 if test "${with_iconset+set}" = set; then :
9438 withval
=$with_iconset; target_iconset
=$withval
9440 target_iconset
="default"
9443 if test "$target_iconset" = "default"; then
9444 aros_target_iconset
="Gorilla"
9445 target_iconset
="default (Gorilla)"
9447 aros_target_iconset
="$target_iconset"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9450 $as_echo "$target_iconset" >&6; }
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9453 $as_echo_n "checking which GUI Theme to use... " >&6; }
9455 # Check whether --with-theme was given.
9456 if test "${with_theme+set}" = set; then :
9457 withval
=$with_theme; target_guitheme
=$withval
9459 target_guitheme
="default"
9462 if test "$target_guitheme" = "default"; then
9463 aros_target_guitheme
="Ice"
9465 aros_target_guitheme
="$target_guitheme"
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9468 $as_echo "$aros_target_guitheme" >&6; }
9470 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9474 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9478 if test "$aros_host_cpu" == "x86_64" ; then
9479 if test "$aros_target_cpu" == "i386" ; then
9484 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9485 if test "$aros_host_arch" != "$aros_target_arch" ; then
9492 if test "$cross_compiling" = "no" ; then
9493 kernel_tool_prefix
=""
9494 if test "$host_cc_elf" = "yes" ; then
9499 if test "$kernel_tool_version" != ""; then
9500 kernel_tool_version
="-$kernel_tool_version"
9503 #######################################################################
9504 ## Compute what toolchains to use, and their paths ##
9505 #######################################################################
9507 # This takes, as input:
9508 # crosstools {yes,no}
9509 # kernel_tool_version {"",[version]}
9510 # target_tool_version {"",[version]}
9511 # kernel_tool_prefix {none,[some-arch-os-]}
9513 # target_tool_prefix ${aros_target_cpu}-aros-
9514 # aros_tool_prefix ${aros_target_cpu}-aros-
9517 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9518 # Where the 'kernel' binaries are located
9519 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9520 # Where the 'target' binaries are located
9521 # (not the symlink farm - that is aros_target_*!)
9524 # if crosstools then
9525 # if kernel_tools_prefix = "no-kernel-prefix-"
9526 # aros_kernel_* = crosstools cc paths
9527 # aros_kernel_cc = elf cc wrapper around crosstools cc
9529 # VALIDATE(${kernel_tools_prefix}*)
9530 # aros_kernel_* = ${kernel_tools_prefix}*
9531 # if ${kernel_tools_prefix}cc is an AROS gcc
9532 # aros_kernel_cc = ${kernel_tools_prefix}cc
9534 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9538 # orig_target_* = aros built crosstools
9539 # orig_target_cc = elf cc wrapper around crosstools cc
9541 # VALIDATE(${kernel_tools_prefix}*)
9543 # orig_target_* = aros_kernel_*
9544 # if aros_kernel_cc is an AROS gcc
9545 # orig_target_cc = aros_kernel_cc
9547 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9551 if test "$aros_toolchain" = "gnu" ; then
9552 target_tool_prefix
="${aros_target_cpu}-aros-"
9553 elif test "$aros_toolchain" = "llvm" ; then
9554 target_tool_prefix
="bin/"
9557 if test "$kernel_tool_prefix" != "" ; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9559 $as_echo_n "checking which kernel tools... " >&6; }
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9561 $as_echo "$kernel_tool_prefix" >&6; };
9564 if test "$kernel_tool_prefix" = "none" ; then
9565 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9566 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9569 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
9570 # Kernel tools required - find them
9571 # Note that 'normally', aros_kernel_* overrides will be
9572 # empty, unless specified in the per-arch sections above.
9574 if test "x$aros_kernel_cpp" = "x"; then
9575 aros_kernel_cpp
=${kernel_tool_prefix}${CPP}
9577 if test "${kernel_tool_version}" != ""; then
9578 if test "$aros_kernel_cpp" != ""; then
9579 ac_prog_args
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9580 ac_prog_cmd
=`expr "X$aros_kernel_cpp" : '^\S*'`
9581 aros_kernel_cpp
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9585 if test "$aros_kernel_cpp" = ""; then
9586 if test "$cross_compiling" = "yes" ; then
9587 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9588 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590 $as_echo_n "checking for $ac_word... " >&6; }
9591 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9592 $as_echo_n "(cached) " >&6
9594 case $aros_kernel_cpp in
9596 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9603 test -z "$as_dir" && as_dir
=.
9604 for ac_exec_ext
in '' $ac_executable_extensions; do
9605 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9606 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9618 if test -n "$aros_kernel_cpp"; then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9620 $as_echo "$aros_kernel_cpp" >&6; }
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 $as_echo "no" >&6; }
9628 if test "$GCC" = "yes"; then
9629 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
9630 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9631 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9635 $as_echo_n "(cached) " >&6
9637 case $aros_kernel_cpp in
9639 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9643 for as_dir
in `dirname $aros_gcc_cpp`
9646 test -z "$as_dir" && as_dir
=.
9647 for ac_exec_ext
in '' $ac_executable_extensions; do
9648 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9649 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9660 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9661 if test -n "$aros_kernel_cpp"; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9663 $as_echo "$aros_kernel_cpp" >&6; }
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666 $as_echo "no" >&6; }
9671 if test "$aros_kernel_cpp" = ""; then
9672 # Extract the first word of "cpp", so it can be a program name with args.
9673 set dummy cpp
; ac_word
=$2
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9675 $as_echo_n "checking for $ac_word... " >&6; }
9676 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9677 $as_echo_n "(cached) " >&6
9679 case $aros_kernel_cpp in
9681 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9688 test -z "$as_dir" && as_dir
=.
9689 for ac_exec_ext
in '' $ac_executable_extensions; do
9690 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9691 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9703 if test -n "$aros_kernel_cpp"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9705 $as_echo "$aros_kernel_cpp" >&6; }
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9715 ac_tool_optarg
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9716 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9717 set dummy
$aros_kernel_cpp; ac_word
=$2
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719 $as_echo_n "checking for $ac_word... " >&6; }
9720 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9721 $as_echo_n "(cached) " >&6
9723 case $aros_kernel_cpp in
9725 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9732 test -z "$as_dir" && as_dir
=.
9733 for ac_exec_ext
in '' $ac_executable_extensions; do
9734 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9735 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9747 if test -n "$aros_kernel_cpp"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9749 $as_echo "$aros_kernel_cpp" >&6; }
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 $as_echo "no" >&6; }
9756 aros_kernel_cpp
="$aros_kernel_cpp $ac_tool_optarg"
9760 if test "$aros_kernel_cpp" = ""; then
9763 if test "$aros_kernel_cpp" = "no"; then
9766 if test "$req_avail" = "no"; then
9767 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9770 if test "x$aros_kernel_cc" = "x"; then
9771 aros_kernel_cc
=${kernel_tool_prefix}${CC}
9773 if test "${kernel_tool_version}" != ""; then
9774 if test "$aros_kernel_cc" != ""; then
9775 ac_prog_args
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9776 ac_prog_cmd
=`expr "X$aros_kernel_cc" : '^\S*'`
9777 aros_kernel_cc
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9781 if test "$aros_kernel_cc" = ""; then
9782 if test "$cross_compiling" = "yes" ; then
9783 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9784 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9788 $as_echo_n "(cached) " >&6
9790 case $aros_kernel_cc in
9792 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9799 test -z "$as_dir" && as_dir
=.
9800 for ac_exec_ext
in '' $ac_executable_extensions; do
9801 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9802 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9814 if test -n "$aros_kernel_cc"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9816 $as_echo "$aros_kernel_cc" >&6; }
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819 $as_echo "no" >&6; }
9824 if test "$GCC" = "yes"; then
9825 aros_gcc_cc
=`$CC -print-prog-name=cc`
9826 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9827 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9829 $as_echo_n "checking for $ac_word... " >&6; }
9830 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9831 $as_echo_n "(cached) " >&6
9833 case $aros_kernel_cc in
9835 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9839 for as_dir
in `dirname $aros_gcc_cc`
9842 test -z "$as_dir" && as_dir
=.
9843 for ac_exec_ext
in '' $ac_executable_extensions; do
9844 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9845 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9856 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9857 if test -n "$aros_kernel_cc"; then
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9859 $as_echo "$aros_kernel_cc" >&6; }
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862 $as_echo "no" >&6; }
9867 if test "$aros_kernel_cc" = ""; then
9868 # Extract the first word of "cc", so it can be a program name with args.
9869 set dummy cc
; ac_word
=$2
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871 $as_echo_n "checking for $ac_word... " >&6; }
9872 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9873 $as_echo_n "(cached) " >&6
9875 case $aros_kernel_cc in
9877 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9884 test -z "$as_dir" && as_dir
=.
9885 for ac_exec_ext
in '' $ac_executable_extensions; do
9886 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9887 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9899 if test -n "$aros_kernel_cc"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9901 $as_echo "$aros_kernel_cc" >&6; }
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9911 ac_tool_optarg
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9912 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9913 set dummy
$aros_kernel_cc; ac_word
=$2
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9915 $as_echo_n "checking for $ac_word... " >&6; }
9916 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9917 $as_echo_n "(cached) " >&6
9919 case $aros_kernel_cc in
9921 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9928 test -z "$as_dir" && as_dir
=.
9929 for ac_exec_ext
in '' $ac_executable_extensions; do
9930 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9931 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9942 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9943 if test -n "$aros_kernel_cc"; then
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9945 $as_echo "$aros_kernel_cc" >&6; }
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948 $as_echo "no" >&6; }
9952 aros_kernel_cc
="$aros_kernel_cc $ac_tool_optarg"
9956 if test "$aros_kernel_cc" = ""; then
9959 if test "$aros_kernel_cc" = "no"; then
9962 if test "$req_avail" = "no"; then
9963 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9966 if test "x$aros_kernel_cxx" = "x"; then
9967 aros_kernel_cxx
=${kernel_tool_prefix}${CXX}
9969 if test "${kernel_tool_version}" != ""; then
9970 if test "$aros_kernel_cxx" != ""; then
9971 ac_prog_args
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9972 ac_prog_cmd
=`expr "X$aros_kernel_cxx" : '^\S*'`
9973 aros_kernel_cxx
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9977 if test "$aros_kernel_cxx" = ""; then
9978 if test "$cross_compiling" = "yes" ; then
9979 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9980 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9982 $as_echo_n "checking for $ac_word... " >&6; }
9983 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9984 $as_echo_n "(cached) " >&6
9986 case $aros_kernel_cxx in
9988 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9995 test -z "$as_dir" && as_dir
=.
9996 for ac_exec_ext
in '' $ac_executable_extensions; do
9997 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9998 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10010 if test -n "$aros_kernel_cxx"; then
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10012 $as_echo "$aros_kernel_cxx" >&6; }
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10015 $as_echo "no" >&6; }
10020 if test "$GCC" = "yes"; then
10021 aros_gcc_cxx
=`$CC -print-prog-name=cxx`
10022 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10023 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025 $as_echo_n "checking for $ac_word... " >&6; }
10026 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10027 $as_echo_n "(cached) " >&6
10029 case $aros_kernel_cxx in
10031 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10035 for as_dir
in `dirname $aros_gcc_cxx`
10038 test -z "$as_dir" && as_dir
=.
10039 for ac_exec_ext
in '' $ac_executable_extensions; do
10040 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10041 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10053 if test -n "$aros_kernel_cxx"; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10055 $as_echo "$aros_kernel_cxx" >&6; }
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058 $as_echo "no" >&6; }
10063 if test "$aros_kernel_cxx" = ""; then
10064 # Extract the first word of "cxx", so it can be a program name with args.
10065 set dummy cxx
; ac_word
=$2
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067 $as_echo_n "checking for $ac_word... " >&6; }
10068 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10069 $as_echo_n "(cached) " >&6
10071 case $aros_kernel_cxx in
10073 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10077 for as_dir
in $PATH
10080 test -z "$as_dir" && as_dir
=.
10081 for ac_exec_ext
in '' $ac_executable_extensions; do
10082 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10083 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10094 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10095 if test -n "$aros_kernel_cxx"; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10097 $as_echo "$aros_kernel_cxx" >&6; }
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 $as_echo "no" >&6; }
10107 ac_tool_optarg
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10108 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10109 set dummy
$aros_kernel_cxx; ac_word
=$2
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111 $as_echo_n "checking for $ac_word... " >&6; }
10112 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10113 $as_echo_n "(cached) " >&6
10115 case $aros_kernel_cxx in
10117 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10121 for as_dir
in $PATH
10124 test -z "$as_dir" && as_dir
=.
10125 for ac_exec_ext
in '' $ac_executable_extensions; do
10126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10127 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10139 if test -n "$aros_kernel_cxx"; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10141 $as_echo "$aros_kernel_cxx" >&6; }
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144 $as_echo "no" >&6; }
10148 aros_kernel_cxx
="$aros_kernel_cxx $ac_tool_optarg"
10151 # If it's set, make sure it's really there
10152 if test "x$aros_kernel_cxx" != "x" ; then
10154 if test "$aros_kernel_cxx" = ""; then
10157 if test "$aros_kernel_cxx" = "no"; then
10160 if test "$req_avail" = "no"; then
10161 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10165 if test "$aros_kernel_ld" = ""; then
10166 if test "$cross_compiling" = "yes" ; then
10167 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10168 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170 $as_echo_n "checking for $ac_word... " >&6; }
10171 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10172 $as_echo_n "(cached) " >&6
10174 case $aros_kernel_ld in
10176 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10180 for as_dir
in $PATH
10183 test -z "$as_dir" && as_dir
=.
10184 for ac_exec_ext
in '' $ac_executable_extensions; do
10185 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10186 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10197 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10198 if test -n "$aros_kernel_ld"; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10200 $as_echo "$aros_kernel_ld" >&6; }
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10208 if test "$GCC" = "yes"; then
10209 aros_gcc_ld
=`$CC -print-prog-name=ld`
10210 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10211 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10215 $as_echo_n "(cached) " >&6
10217 case $aros_kernel_ld in
10219 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10223 for as_dir
in `dirname $aros_gcc_ld`
10226 test -z "$as_dir" && as_dir
=.
10227 for ac_exec_ext
in '' $ac_executable_extensions; do
10228 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10229 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10240 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10241 if test -n "$aros_kernel_ld"; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10243 $as_echo "$aros_kernel_ld" >&6; }
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10251 if test "$aros_kernel_ld" = ""; then
10252 # Extract the first word of "ld", so it can be a program name with args.
10253 set dummy ld
; ac_word
=$2
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255 $as_echo_n "checking for $ac_word... " >&6; }
10256 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10257 $as_echo_n "(cached) " >&6
10259 case $aros_kernel_ld in
10261 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10265 for as_dir
in $PATH
10268 test -z "$as_dir" && as_dir
=.
10269 for ac_exec_ext
in '' $ac_executable_extensions; do
10270 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10271 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10283 if test -n "$aros_kernel_ld"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10285 $as_echo "$aros_kernel_ld" >&6; }
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10295 ac_tool_optarg
=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10296 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10297 set dummy
$aros_kernel_ld; ac_word
=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10301 $as_echo_n "(cached) " >&6
10303 case $aros_kernel_ld in
10305 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10309 for as_dir
in $PATH
10312 test -z "$as_dir" && as_dir
=.
10313 for ac_exec_ext
in '' $ac_executable_extensions; do
10314 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10315 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10327 if test -n "$aros_kernel_ld"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10329 $as_echo "$aros_kernel_ld" >&6; }
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10336 aros_kernel_ld
="$aros_kernel_ld $ac_tool_optarg"
10340 if test "$aros_kernel_ld" = ""; then
10343 if test "$aros_kernel_ld" = "no"; then
10346 if test "$req_avail" = "no"; then
10347 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10350 if test "$aros_kernel_as" = ""; then
10351 if test "$cross_compiling" = "yes" ; then
10352 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10353 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355 $as_echo_n "checking for $ac_word... " >&6; }
10356 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10357 $as_echo_n "(cached) " >&6
10359 case $aros_kernel_as in
10361 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10365 for as_dir
in $PATH
10368 test -z "$as_dir" && as_dir
=.
10369 for ac_exec_ext
in '' $ac_executable_extensions; do
10370 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10371 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10382 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10383 if test -n "$aros_kernel_as"; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10385 $as_echo "$aros_kernel_as" >&6; }
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388 $as_echo "no" >&6; }
10393 if test "$GCC" = "yes"; then
10394 aros_gcc_as
=`$CC -print-prog-name=as`
10395 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10396 set dummy
`basename $aros_gcc_as`; ac_word
=$2
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398 $as_echo_n "checking for $ac_word... " >&6; }
10399 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10400 $as_echo_n "(cached) " >&6
10402 case $aros_kernel_as in
10404 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10408 for as_dir
in `dirname $aros_gcc_as`
10411 test -z "$as_dir" && as_dir
=.
10412 for ac_exec_ext
in '' $ac_executable_extensions; do
10413 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10414 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10425 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10426 if test -n "$aros_kernel_as"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10428 $as_echo "$aros_kernel_as" >&6; }
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; }
10436 if test "$aros_kernel_as" = ""; then
10437 # Extract the first word of "as", so it can be a program name with args.
10438 set dummy as
; ac_word
=$2
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440 $as_echo_n "checking for $ac_word... " >&6; }
10441 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10442 $as_echo_n "(cached) " >&6
10444 case $aros_kernel_as in
10446 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10450 for as_dir
in $PATH
10453 test -z "$as_dir" && as_dir
=.
10454 for ac_exec_ext
in '' $ac_executable_extensions; do
10455 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10456 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10468 if test -n "$aros_kernel_as"; then
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10470 $as_echo "$aros_kernel_as" >&6; }
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10480 ac_tool_optarg
=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10481 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10482 set dummy
$aros_kernel_as; ac_word
=$2
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484 $as_echo_n "checking for $ac_word... " >&6; }
10485 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10486 $as_echo_n "(cached) " >&6
10488 case $aros_kernel_as in
10490 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10494 for as_dir
in $PATH
10497 test -z "$as_dir" && as_dir
=.
10498 for ac_exec_ext
in '' $ac_executable_extensions; do
10499 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10500 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10512 if test -n "$aros_kernel_as"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10514 $as_echo "$aros_kernel_as" >&6; }
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10521 aros_kernel_as
="$aros_kernel_as $ac_tool_optarg"
10525 if test "$aros_kernel_as" = ""; then
10528 if test "$aros_kernel_as" = "no"; then
10531 if test "$req_avail" = "no"; then
10532 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
10535 if test "$aros_kernel_ar" = ""; then
10536 if test "$cross_compiling" = "yes" ; then
10537 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10538 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540 $as_echo_n "checking for $ac_word... " >&6; }
10541 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10542 $as_echo_n "(cached) " >&6
10544 case $aros_kernel_ar in
10546 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10550 for as_dir
in $PATH
10553 test -z "$as_dir" && as_dir
=.
10554 for ac_exec_ext
in '' $ac_executable_extensions; do
10555 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10556 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10567 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10568 if test -n "$aros_kernel_ar"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10570 $as_echo "$aros_kernel_ar" >&6; }
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573 $as_echo "no" >&6; }
10578 if test "$GCC" = "yes"; then
10579 aros_gcc_ar
=`$CC -print-prog-name=ar`
10580 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10581 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583 $as_echo_n "checking for $ac_word... " >&6; }
10584 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10585 $as_echo_n "(cached) " >&6
10587 case $aros_kernel_ar in
10589 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10593 for as_dir
in `dirname $aros_gcc_ar`
10596 test -z "$as_dir" && as_dir
=.
10597 for ac_exec_ext
in '' $ac_executable_extensions; do
10598 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10599 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10610 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10611 if test -n "$aros_kernel_ar"; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10613 $as_echo "$aros_kernel_ar" >&6; }
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616 $as_echo "no" >&6; }
10621 if test "$aros_kernel_ar" = ""; then
10622 # Extract the first word of "ar", so it can be a program name with args.
10623 set dummy
ar; ac_word
=$2
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10625 $as_echo_n "checking for $ac_word... " >&6; }
10626 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10627 $as_echo_n "(cached) " >&6
10629 case $aros_kernel_ar in
10631 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10635 for as_dir
in $PATH
10638 test -z "$as_dir" && as_dir
=.
10639 for ac_exec_ext
in '' $ac_executable_extensions; do
10640 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10641 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10653 if test -n "$aros_kernel_ar"; then
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10655 $as_echo "$aros_kernel_ar" >&6; }
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; }
10665 ac_tool_optarg
=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10666 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10667 set dummy
$aros_kernel_ar; ac_word
=$2
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10669 $as_echo_n "checking for $ac_word... " >&6; }
10670 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10671 $as_echo_n "(cached) " >&6
10673 case $aros_kernel_ar in
10675 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10679 for as_dir
in $PATH
10682 test -z "$as_dir" && as_dir
=.
10683 for ac_exec_ext
in '' $ac_executable_extensions; do
10684 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10685 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10697 if test -n "$aros_kernel_ar"; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10699 $as_echo "$aros_kernel_ar" >&6; }
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702 $as_echo "no" >&6; }
10706 aros_kernel_ar
="$aros_kernel_ar $ac_tool_optarg"
10710 if test "$aros_kernel_ar" = ""; then
10713 if test "$aros_kernel_ar" = "no"; then
10716 if test "$req_avail" = "no"; then
10717 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10720 if test "$aros_kernel_ranlib" = ""; then
10721 if test "$cross_compiling" = "yes" ; then
10722 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10723 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10725 $as_echo_n "checking for $ac_word... " >&6; }
10726 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10727 $as_echo_n "(cached) " >&6
10729 case $aros_kernel_ranlib in
10731 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10735 for as_dir
in $PATH
10738 test -z "$as_dir" && as_dir
=.
10739 for ac_exec_ext
in '' $ac_executable_extensions; do
10740 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10741 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10752 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10753 if test -n "$aros_kernel_ranlib"; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10755 $as_echo "$aros_kernel_ranlib" >&6; }
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758 $as_echo "no" >&6; }
10763 if test "$GCC" = "yes"; then
10764 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
10765 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10766 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768 $as_echo_n "checking for $ac_word... " >&6; }
10769 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10770 $as_echo_n "(cached) " >&6
10772 case $aros_kernel_ranlib in
10774 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10778 for as_dir
in `dirname $aros_gcc_ranlib`
10781 test -z "$as_dir" && as_dir
=.
10782 for ac_exec_ext
in '' $ac_executable_extensions; do
10783 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10784 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10795 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10796 if test -n "$aros_kernel_ranlib"; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10798 $as_echo "$aros_kernel_ranlib" >&6; }
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10806 if test "$aros_kernel_ranlib" = ""; then
10807 # Extract the first word of "ranlib", so it can be a program name with args.
10808 set dummy ranlib
; ac_word
=$2
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10810 $as_echo_n "checking for $ac_word... " >&6; }
10811 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10812 $as_echo_n "(cached) " >&6
10814 case $aros_kernel_ranlib in
10816 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10820 for as_dir
in $PATH
10823 test -z "$as_dir" && as_dir
=.
10824 for ac_exec_ext
in '' $ac_executable_extensions; do
10825 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10826 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10838 if test -n "$aros_kernel_ranlib"; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10840 $as_echo "$aros_kernel_ranlib" >&6; }
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843 $as_echo "no" >&6; }
10850 ac_tool_optarg
=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10851 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10852 set dummy
$aros_kernel_ranlib; ac_word
=$2
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10854 $as_echo_n "checking for $ac_word... " >&6; }
10855 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10856 $as_echo_n "(cached) " >&6
10858 case $aros_kernel_ranlib in
10860 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10864 for as_dir
in $PATH
10867 test -z "$as_dir" && as_dir
=.
10868 for ac_exec_ext
in '' $ac_executable_extensions; do
10869 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10870 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10881 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10882 if test -n "$aros_kernel_ranlib"; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10884 $as_echo "$aros_kernel_ranlib" >&6; }
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 $as_echo "no" >&6; }
10891 aros_kernel_ranlib
="$aros_kernel_ranlib $ac_tool_optarg"
10895 if test "$aros_kernel_ranlib" = ""; then
10898 if test "$aros_kernel_ranlib" = "no"; then
10901 if test "$req_avail" = "no"; then
10902 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10905 if test "$aros_kernel_nm" = ""; then
10906 if test "$cross_compiling" = "yes" ; then
10907 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10908 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10910 $as_echo_n "checking for $ac_word... " >&6; }
10911 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10912 $as_echo_n "(cached) " >&6
10914 case $aros_kernel_nm in
10916 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10920 for as_dir
in $PATH
10923 test -z "$as_dir" && as_dir
=.
10924 for ac_exec_ext
in '' $ac_executable_extensions; do
10925 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10926 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10937 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10938 if test -n "$aros_kernel_nm"; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10940 $as_echo "$aros_kernel_nm" >&6; }
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943 $as_echo "no" >&6; }
10948 if test "$GCC" = "yes"; then
10949 aros_gcc_nm
=`$CC -print-prog-name=nm`
10950 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10951 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10953 $as_echo_n "checking for $ac_word... " >&6; }
10954 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10955 $as_echo_n "(cached) " >&6
10957 case $aros_kernel_nm in
10959 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10963 for as_dir
in `dirname $aros_gcc_nm`
10966 test -z "$as_dir" && as_dir
=.
10967 for ac_exec_ext
in '' $ac_executable_extensions; do
10968 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10969 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10981 if test -n "$aros_kernel_nm"; then
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10983 $as_echo "$aros_kernel_nm" >&6; }
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; }
10991 if test "$aros_kernel_nm" = ""; then
10992 # Extract the first word of "nm", so it can be a program name with args.
10993 set dummy nm
; ac_word
=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10997 $as_echo_n "(cached) " >&6
10999 case $aros_kernel_nm in
11001 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11005 for as_dir
in $PATH
11008 test -z "$as_dir" && as_dir
=.
11009 for ac_exec_ext
in '' $ac_executable_extensions; do
11010 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11011 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11022 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11023 if test -n "$aros_kernel_nm"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11025 $as_echo "$aros_kernel_nm" >&6; }
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; }
11035 ac_tool_optarg
=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11036 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11037 set dummy
$aros_kernel_nm; ac_word
=$2
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11039 $as_echo_n "checking for $ac_word... " >&6; }
11040 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
11041 $as_echo_n "(cached) " >&6
11043 case $aros_kernel_nm in
11045 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
11048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11049 for as_dir
in $PATH
11052 test -z "$as_dir" && as_dir
=.
11053 for ac_exec_ext
in '' $ac_executable_extensions; do
11054 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11055 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11066 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
11067 if test -n "$aros_kernel_nm"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11069 $as_echo "$aros_kernel_nm" >&6; }
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11076 aros_kernel_nm
="$aros_kernel_nm $ac_tool_optarg"
11080 if test "$aros_kernel_nm" = ""; then
11083 if test "$aros_kernel_nm" = "no"; then
11086 if test "$req_avail" = "no"; then
11087 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11090 if test "$aros_kernel_strip" = ""; then
11091 if test "$cross_compiling" = "yes" ; then
11092 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11093 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 $as_echo_n "checking for $ac_word... " >&6; }
11096 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11097 $as_echo_n "(cached) " >&6
11099 case $aros_kernel_strip in
11101 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11105 for as_dir
in $PATH
11108 test -z "$as_dir" && as_dir
=.
11109 for ac_exec_ext
in '' $ac_executable_extensions; do
11110 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11111 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11123 if test -n "$aros_kernel_strip"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11125 $as_echo "$aros_kernel_strip" >&6; }
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11133 if test "$GCC" = "yes"; then
11134 aros_gcc_strip
=`$CC -print-prog-name=strip`
11135 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11136 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138 $as_echo_n "checking for $ac_word... " >&6; }
11139 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11140 $as_echo_n "(cached) " >&6
11142 case $aros_kernel_strip in
11144 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11148 for as_dir
in `dirname $aros_gcc_strip`
11151 test -z "$as_dir" && as_dir
=.
11152 for ac_exec_ext
in '' $ac_executable_extensions; do
11153 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11154 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11166 if test -n "$aros_kernel_strip"; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11168 $as_echo "$aros_kernel_strip" >&6; }
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; }
11176 if test "$aros_kernel_strip" = ""; then
11177 # Extract the first word of "strip", so it can be a program name with args.
11178 set dummy strip
; ac_word
=$2
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180 $as_echo_n "checking for $ac_word... " >&6; }
11181 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11182 $as_echo_n "(cached) " >&6
11184 case $aros_kernel_strip in
11186 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11190 for as_dir
in $PATH
11193 test -z "$as_dir" && as_dir
=.
11194 for ac_exec_ext
in '' $ac_executable_extensions; do
11195 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11196 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11207 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11208 if test -n "$aros_kernel_strip"; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11210 $as_echo "$aros_kernel_strip" >&6; }
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11220 ac_tool_optarg
=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11221 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11222 set dummy
$aros_kernel_strip; ac_word
=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11226 $as_echo_n "(cached) " >&6
11228 case $aros_kernel_strip in
11230 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11234 for as_dir
in $PATH
11237 test -z "$as_dir" && as_dir
=.
11238 for ac_exec_ext
in '' $ac_executable_extensions; do
11239 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11240 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11251 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11252 if test -n "$aros_kernel_strip"; then
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11254 $as_echo "$aros_kernel_strip" >&6; }
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11261 aros_kernel_strip
="$aros_kernel_strip $ac_tool_optarg"
11265 if test "$aros_kernel_strip" = ""; then
11268 if test "$aros_kernel_strip" = "no"; then
11271 if test "$req_avail" = "no"; then
11272 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11275 # Objcopy and objdump are not required for the kernel
11276 # toolchain on many architectures.
11277 # So we'll look for them, but not make them strictly required.
11279 if test "$aros_kernel_objcopy" = ""; then
11280 if test "$cross_compiling" = "yes" ; then
11281 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11282 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284 $as_echo_n "checking for $ac_word... " >&6; }
11285 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11286 $as_echo_n "(cached) " >&6
11288 case $aros_kernel_objcopy in
11290 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11294 for as_dir
in $PATH
11297 test -z "$as_dir" && as_dir
=.
11298 for ac_exec_ext
in '' $ac_executable_extensions; do
11299 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11300 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11311 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11312 if test -n "$aros_kernel_objcopy"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11314 $as_echo "$aros_kernel_objcopy" >&6; }
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317 $as_echo "no" >&6; }
11322 if test "$GCC" = "yes"; then
11323 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
11324 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11325 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11327 $as_echo_n "checking for $ac_word... " >&6; }
11328 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11329 $as_echo_n "(cached) " >&6
11331 case $aros_kernel_objcopy in
11333 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11337 for as_dir
in `dirname $aros_gcc_objcopy`
11340 test -z "$as_dir" && as_dir
=.
11341 for ac_exec_ext
in '' $ac_executable_extensions; do
11342 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11343 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11355 if test -n "$aros_kernel_objcopy"; then
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11357 $as_echo "$aros_kernel_objcopy" >&6; }
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11365 if test "$aros_kernel_objcopy" = ""; then
11366 # Extract the first word of "objcopy", so it can be a program name with args.
11367 set dummy objcopy
; ac_word
=$2
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369 $as_echo_n "checking for $ac_word... " >&6; }
11370 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11371 $as_echo_n "(cached) " >&6
11373 case $aros_kernel_objcopy in
11375 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11379 for as_dir
in $PATH
11382 test -z "$as_dir" && as_dir
=.
11383 for ac_exec_ext
in '' $ac_executable_extensions; do
11384 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11385 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11397 if test -n "$aros_kernel_objcopy"; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11399 $as_echo "$aros_kernel_objcopy" >&6; }
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11409 ac_tool_optarg
=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11410 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11411 set dummy
$aros_kernel_objcopy; ac_word
=$2
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413 $as_echo_n "checking for $ac_word... " >&6; }
11414 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11415 $as_echo_n "(cached) " >&6
11417 case $aros_kernel_objcopy in
11419 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11423 for as_dir
in $PATH
11426 test -z "$as_dir" && as_dir
=.
11427 for ac_exec_ext
in '' $ac_executable_extensions; do
11428 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11429 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11441 if test -n "$aros_kernel_objcopy"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11443 $as_echo "$aros_kernel_objcopy" >&6; }
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; }
11450 aros_kernel_objcopy
="$aros_kernel_objcopy $ac_tool_optarg"
11454 if test "$aros_kernel_objdump" = ""; then
11455 if test "$cross_compiling" = "yes" ; then
11456 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11457 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459 $as_echo_n "checking for $ac_word... " >&6; }
11460 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11461 $as_echo_n "(cached) " >&6
11463 case $aros_kernel_objdump in
11465 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11469 for as_dir
in $PATH
11472 test -z "$as_dir" && as_dir
=.
11473 for ac_exec_ext
in '' $ac_executable_extensions; do
11474 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11475 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11486 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11487 if test -n "$aros_kernel_objdump"; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11489 $as_echo "$aros_kernel_objdump" >&6; }
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11497 if test "$GCC" = "yes"; then
11498 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
11499 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11500 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11502 $as_echo_n "checking for $ac_word... " >&6; }
11503 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11504 $as_echo_n "(cached) " >&6
11506 case $aros_kernel_objdump in
11508 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11512 for as_dir
in `dirname $aros_gcc_objdump`
11515 test -z "$as_dir" && as_dir
=.
11516 for ac_exec_ext
in '' $ac_executable_extensions; do
11517 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11518 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11529 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11530 if test -n "$aros_kernel_objdump"; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11532 $as_echo "$aros_kernel_objdump" >&6; }
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11540 if test "$aros_kernel_objdump" = ""; then
11541 # Extract the first word of "objdump", so it can be a program name with args.
11542 set dummy objdump
; ac_word
=$2
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544 $as_echo_n "checking for $ac_word... " >&6; }
11545 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11546 $as_echo_n "(cached) " >&6
11548 case $aros_kernel_objdump in
11550 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11554 for as_dir
in $PATH
11557 test -z "$as_dir" && as_dir
=.
11558 for ac_exec_ext
in '' $ac_executable_extensions; do
11559 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11560 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11572 if test -n "$aros_kernel_objdump"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11574 $as_echo "$aros_kernel_objdump" >&6; }
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11584 ac_tool_optarg
=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11585 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11586 set dummy
$aros_kernel_objdump; ac_word
=$2
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588 $as_echo_n "checking for $ac_word... " >&6; }
11589 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11590 $as_echo_n "(cached) " >&6
11592 case $aros_kernel_objdump in
11594 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11598 for as_dir
in $PATH
11601 test -z "$as_dir" && as_dir
=.
11602 for ac_exec_ext
in '' $ac_executable_extensions; do
11603 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11604 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11616 if test -n "$aros_kernel_objdump"; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11618 $as_echo "$aros_kernel_objdump" >&6; }
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11625 aros_kernel_objdump
="$aros_kernel_objdump $ac_tool_optarg"
11628 if test "x${crosstools}" != "xyes" ; then
11630 if test "$aros_kernel_objcopy" = ""; then
11633 if test "$aros_kernel_objcopy" = "no"; then
11636 if test "$req_avail" = "no"; then
11637 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11640 if test "$aros_kernel_objdump" = ""; then
11643 if test "$aros_kernel_objdump" = "no"; then
11646 if test "$req_avail" = "no"; then
11647 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11654 $as_echo_n "checking which target tools to use... " >&6; }
11655 if test "$aros_target_toolchain" = "yes"; then
11656 if test "$aros_toolchain" = "llvm" ; then
11659 msg_result
=$target_tool_prefix
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11662 $as_echo "$msg_result" >&6; }
11663 # We are building AROS crosstools
11664 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11665 orig_target_cc
="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11666 orig_target_cxx
="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11667 orig_target_cpp
="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11668 orig_target_ld
="${tmp_tool_prefix}${toolchain_ld}"
11669 orig_target_as
="${tmp_tool_prefix}${toolchain_as}"
11670 orig_target_ar
="${tmp_tool_prefix}${toolchain_ar}"
11671 orig_target_ranlib
="${tmp_tool_prefix}${toolchain_ranlib}"
11672 orig_target_nm
="${tmp_tool_prefix}${toolchain_nm}"
11673 orig_target_strip
="${tmp_tool_prefix}${toolchain_strip}"
11674 orig_target_objcopy
="${tmp_tool_prefix}${toolchain_objcopy}"
11675 orig_target_objdump
="${tmp_tool_prefix}${toolchain_objdump}"
11677 # Determine whether AROS or ELF tools should be used
11678 if test "$aros_tool_prefix" = "none"; then
11679 aros_tool_prefix
="${elf_tool_prefix}"
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11683 $as_echo "$aros_tool_prefix" >&6; }
11684 # We are *not* building AROS crosstools - use the AROS or ELF tools
11686 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11687 if test "$cross_compiling" = "yes" ; then
11688 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11689 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11691 $as_echo_n "checking for $ac_word... " >&6; }
11692 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11693 $as_echo_n "(cached) " >&6
11695 case $orig_target_cpp in
11697 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11701 for as_dir
in $PATH
11704 test -z "$as_dir" && as_dir
=.
11705 for ac_exec_ext
in '' $ac_executable_extensions; do
11706 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11707 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11718 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11719 if test -n "$orig_target_cpp"; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11721 $as_echo "$orig_target_cpp" >&6; }
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724 $as_echo "no" >&6; }
11729 if test "$GCC" = "yes"; then
11730 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
11731 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11732 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11734 $as_echo_n "checking for $ac_word... " >&6; }
11735 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11736 $as_echo_n "(cached) " >&6
11738 case $orig_target_cpp in
11740 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11744 for as_dir
in `dirname $aros_gcc_cpp`
11747 test -z "$as_dir" && as_dir
=.
11748 for ac_exec_ext
in '' $ac_executable_extensions; do
11749 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11750 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11762 if test -n "$orig_target_cpp"; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11764 $as_echo "$orig_target_cpp" >&6; }
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11772 if test "$orig_target_cpp" = ""; then
11773 # Extract the first word of "cpp", so it can be a program name with args.
11774 set dummy cpp
; ac_word
=$2
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776 $as_echo_n "checking for $ac_word... " >&6; }
11777 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11778 $as_echo_n "(cached) " >&6
11780 case $orig_target_cpp in
11782 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11786 for as_dir
in $PATH
11789 test -z "$as_dir" && as_dir
=.
11790 for ac_exec_ext
in '' $ac_executable_extensions; do
11791 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11792 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11804 if test -n "$orig_target_cpp"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11806 $as_echo "$orig_target_cpp" >&6; }
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11816 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11817 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11818 set dummy
${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word
=$2
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820 $as_echo_n "checking for $ac_word... " >&6; }
11821 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11822 $as_echo_n "(cached) " >&6
11824 case $orig_target_cpp in
11826 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11830 for as_dir
in $PATH
11833 test -z "$as_dir" && as_dir
=.
11834 for ac_exec_ext
in '' $ac_executable_extensions; do
11835 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11836 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11848 if test -n "$orig_target_cpp"; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11850 $as_echo "$orig_target_cpp" >&6; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11857 orig_target_cpp
="$orig_target_cpp $ac_tool_optarg"
11861 if test "$orig_target_cpp" = ""; then
11864 if test "$orig_target_cpp" = "no"; then
11867 if test "$req_avail" = "no"; then
11868 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11871 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11872 if test "$cross_compiling" = "yes" ; then
11873 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11874 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11876 $as_echo_n "checking for $ac_word... " >&6; }
11877 if ${ac_cv_path_orig_target_cc+:} false
; then :
11878 $as_echo_n "(cached) " >&6
11880 case $orig_target_cc in
11882 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11886 for as_dir
in $PATH
11889 test -z "$as_dir" && as_dir
=.
11890 for ac_exec_ext
in '' $ac_executable_extensions; do
11891 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11892 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 orig_target_cc
=$ac_cv_path_orig_target_cc
11904 if test -n "$orig_target_cc"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11906 $as_echo "$orig_target_cc" >&6; }
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11914 if test "$GCC" = "yes"; then
11915 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11916 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11917 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919 $as_echo_n "checking for $ac_word... " >&6; }
11920 if ${ac_cv_path_orig_target_cc+:} false
; then :
11921 $as_echo_n "(cached) " >&6
11923 case $orig_target_cc in
11925 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11929 for as_dir
in `dirname $aros_gcc_gcc`
11932 test -z "$as_dir" && as_dir
=.
11933 for ac_exec_ext
in '' $ac_executable_extensions; do
11934 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11935 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946 orig_target_cc
=$ac_cv_path_orig_target_cc
11947 if test -n "$orig_target_cc"; then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11949 $as_echo "$orig_target_cc" >&6; }
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11957 if test "$orig_target_cc" = ""; then
11958 # Extract the first word of "gcc", so it can be a program name with args.
11959 set dummy gcc
; ac_word
=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961 $as_echo_n "checking for $ac_word... " >&6; }
11962 if ${ac_cv_path_orig_target_cc+:} false
; then :
11963 $as_echo_n "(cached) " >&6
11965 case $orig_target_cc in
11967 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11971 for as_dir
in $PATH
11974 test -z "$as_dir" && as_dir
=.
11975 for ac_exec_ext
in '' $ac_executable_extensions; do
11976 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11977 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988 orig_target_cc
=$ac_cv_path_orig_target_cc
11989 if test -n "$orig_target_cc"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11991 $as_echo "$orig_target_cc" >&6; }
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
12001 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12002 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12003 set dummy
${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word
=$2
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12005 $as_echo_n "checking for $ac_word... " >&6; }
12006 if ${ac_cv_path_orig_target_cc+:} false
; then :
12007 $as_echo_n "(cached) " >&6
12009 case $orig_target_cc in
12011 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
12014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12015 for as_dir
in $PATH
12018 test -z "$as_dir" && as_dir
=.
12019 for ac_exec_ext
in '' $ac_executable_extensions; do
12020 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12021 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
12022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 orig_target_cc
=$ac_cv_path_orig_target_cc
12033 if test -n "$orig_target_cc"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12035 $as_echo "$orig_target_cc" >&6; }
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12042 orig_target_cc
="$orig_target_cc $ac_tool_optarg"
12046 if test "$orig_target_cc" = ""; then
12049 if test "$orig_target_cc" = "no"; then
12052 if test "$req_avail" = "no"; then
12053 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12056 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12057 if test "$cross_compiling" = "yes" ; then
12058 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12059 set dummy
${target_tool_prefix}g
++; ac_word
=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12063 $as_echo_n "(cached) " >&6
12065 case $orig_target_cxx in
12067 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12071 for as_dir
in $PATH
12074 test -z "$as_dir" && as_dir
=.
12075 for ac_exec_ext
in '' $ac_executable_extensions; do
12076 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12077 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12088 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12089 if test -n "$orig_target_cxx"; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12091 $as_echo "$orig_target_cxx" >&6; }
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12099 if test "$GCC" = "yes"; then
12100 aros_gcc_g
++=`$CC -print-prog-name=g++`
12101 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12102 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12104 $as_echo_n "checking for $ac_word... " >&6; }
12105 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12106 $as_echo_n "(cached) " >&6
12108 case $orig_target_cxx in
12110 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12114 for as_dir
in `dirname $aros_gcc_g++`
12117 test -z "$as_dir" && as_dir
=.
12118 for ac_exec_ext
in '' $ac_executable_extensions; do
12119 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12120 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12131 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12132 if test -n "$orig_target_cxx"; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12134 $as_echo "$orig_target_cxx" >&6; }
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12142 if test "$orig_target_cxx" = ""; then
12143 # Extract the first word of "g++", so it can be a program name with args.
12144 set dummy g
++; ac_word
=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12148 $as_echo_n "(cached) " >&6
12150 case $orig_target_cxx in
12152 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12156 for as_dir
in $PATH
12159 test -z "$as_dir" && as_dir
=.
12160 for ac_exec_ext
in '' $ac_executable_extensions; do
12161 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12162 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12174 if test -n "$orig_target_cxx"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12176 $as_echo "$orig_target_cxx" >&6; }
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12186 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12187 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12188 set dummy
${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word
=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12192 $as_echo_n "(cached) " >&6
12194 case $orig_target_cxx in
12196 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12200 for as_dir
in $PATH
12203 test -z "$as_dir" && as_dir
=.
12204 for ac_exec_ext
in '' $ac_executable_extensions; do
12205 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12206 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12218 if test -n "$orig_target_cxx"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12220 $as_echo "$orig_target_cxx" >&6; }
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12227 orig_target_cxx
="$orig_target_cxx $ac_tool_optarg"
12231 if test "$orig_target_cxx" = ""; then
12234 if test "$orig_target_cxx" = "no"; then
12237 if test "$req_avail" = "no"; then
12238 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12241 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12242 if test "$cross_compiling" = "yes" ; then
12243 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12244 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if ${ac_cv_path_orig_target_ld+:} false
; then :
12248 $as_echo_n "(cached) " >&6
12250 case $orig_target_ld in
12252 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12256 for as_dir
in $PATH
12259 test -z "$as_dir" && as_dir
=.
12260 for ac_exec_ext
in '' $ac_executable_extensions; do
12261 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12262 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273 orig_target_ld
=$ac_cv_path_orig_target_ld
12274 if test -n "$orig_target_ld"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12276 $as_echo "$orig_target_ld" >&6; }
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12284 if test "$GCC" = "yes"; then
12285 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
12286 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12287 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12289 $as_echo_n "checking for $ac_word... " >&6; }
12290 if ${ac_cv_path_orig_target_ld+:} false
; then :
12291 $as_echo_n "(cached) " >&6
12293 case $orig_target_ld in
12295 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12299 for as_dir
in `dirname $aros_gcc_gcc`
12302 test -z "$as_dir" && as_dir
=.
12303 for ac_exec_ext
in '' $ac_executable_extensions; do
12304 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12305 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12316 orig_target_ld
=$ac_cv_path_orig_target_ld
12317 if test -n "$orig_target_ld"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12319 $as_echo "$orig_target_ld" >&6; }
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12327 if test "$orig_target_ld" = ""; then
12328 # Extract the first word of "gcc", so it can be a program name with args.
12329 set dummy gcc
; ac_word
=$2
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12331 $as_echo_n "checking for $ac_word... " >&6; }
12332 if ${ac_cv_path_orig_target_ld+:} false
; then :
12333 $as_echo_n "(cached) " >&6
12335 case $orig_target_ld in
12337 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12341 for as_dir
in $PATH
12344 test -z "$as_dir" && as_dir
=.
12345 for ac_exec_ext
in '' $ac_executable_extensions; do
12346 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12347 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358 orig_target_ld
=$ac_cv_path_orig_target_ld
12359 if test -n "$orig_target_ld"; then
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12361 $as_echo "$orig_target_ld" >&6; }
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; }
12371 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12372 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12373 set dummy
${aros_tool_prefix}${toolchain_ld}; ac_word
=$2
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 $as_echo_n "checking for $ac_word... " >&6; }
12376 if ${ac_cv_path_orig_target_ld+:} false
; then :
12377 $as_echo_n "(cached) " >&6
12379 case $orig_target_ld in
12381 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12385 for as_dir
in $PATH
12388 test -z "$as_dir" && as_dir
=.
12389 for ac_exec_ext
in '' $ac_executable_extensions; do
12390 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12391 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12402 orig_target_ld
=$ac_cv_path_orig_target_ld
12403 if test -n "$orig_target_ld"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12405 $as_echo "$orig_target_ld" >&6; }
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408 $as_echo "no" >&6; }
12412 orig_target_ld
="$orig_target_ld $ac_tool_optarg"
12416 if test "$orig_target_ld" = ""; then
12419 if test "$orig_target_ld" = "no"; then
12422 if test "$req_avail" = "no"; then
12423 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12426 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12427 if test "$cross_compiling" = "yes" ; then
12428 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12429 set dummy
${target_tool_prefix}as
; ac_word
=$2
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431 $as_echo_n "checking for $ac_word... " >&6; }
12432 if ${ac_cv_path_orig_target_as+:} false
; then :
12433 $as_echo_n "(cached) " >&6
12435 case $orig_target_as in
12437 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12441 for as_dir
in $PATH
12444 test -z "$as_dir" && as_dir
=.
12445 for ac_exec_ext
in '' $ac_executable_extensions; do
12446 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12447 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 orig_target_as
=$ac_cv_path_orig_target_as
12459 if test -n "$orig_target_as"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12461 $as_echo "$orig_target_as" >&6; }
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12469 if test "$GCC" = "yes"; then
12470 aros_gcc_as
=`$CC -print-prog-name=as`
12471 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12472 set dummy
`basename $aros_gcc_as`; ac_word
=$2
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12474 $as_echo_n "checking for $ac_word... " >&6; }
12475 if ${ac_cv_path_orig_target_as+:} false
; then :
12476 $as_echo_n "(cached) " >&6
12478 case $orig_target_as in
12480 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12484 for as_dir
in `dirname $aros_gcc_as`
12487 test -z "$as_dir" && as_dir
=.
12488 for ac_exec_ext
in '' $ac_executable_extensions; do
12489 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 orig_target_as
=$ac_cv_path_orig_target_as
12502 if test -n "$orig_target_as"; then
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12504 $as_echo "$orig_target_as" >&6; }
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507 $as_echo "no" >&6; }
12512 if test "$orig_target_as" = ""; then
12513 # Extract the first word of "as", so it can be a program name with args.
12514 set dummy as
; ac_word
=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if ${ac_cv_path_orig_target_as+:} false
; then :
12518 $as_echo_n "(cached) " >&6
12520 case $orig_target_as in
12522 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12526 for as_dir
in $PATH
12529 test -z "$as_dir" && as_dir
=.
12530 for ac_exec_ext
in '' $ac_executable_extensions; do
12531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12532 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12543 orig_target_as
=$ac_cv_path_orig_target_as
12544 if test -n "$orig_target_as"; then
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12546 $as_echo "$orig_target_as" >&6; }
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12556 ac_tool_optarg
=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12557 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12558 set dummy aros_tool_prefix
}${toolchain_as}; ac_word
=$2
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560 $as_echo_n "checking for $ac_word... " >&6; }
12561 if ${ac_cv_path_orig_target_as+:} false
; then :
12562 $as_echo_n "(cached) " >&6
12564 case $orig_target_as in
12566 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12570 for as_dir
in $PATH
12573 test -z "$as_dir" && as_dir
=.
12574 for ac_exec_ext
in '' $ac_executable_extensions; do
12575 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12576 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12587 orig_target_as
=$ac_cv_path_orig_target_as
12588 if test -n "$orig_target_as"; then
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12590 $as_echo "$orig_target_as" >&6; }
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 $as_echo "no" >&6; }
12597 orig_target_as
="$orig_target_as $ac_tool_optarg"
12601 if test "$orig_target_as" = ""; then
12604 if test "$orig_target_as" = "no"; then
12607 if test "$req_avail" = "no"; then
12608 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
12611 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12612 if test "$cross_compiling" = "yes" ; then
12613 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12614 set dummy
${target_tool_prefix}ar; ac_word
=$2
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12616 $as_echo_n "checking for $ac_word... " >&6; }
12617 if ${ac_cv_path_orig_target_ar+:} false
; then :
12618 $as_echo_n "(cached) " >&6
12620 case $orig_target_ar in
12622 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12626 for as_dir
in $PATH
12629 test -z "$as_dir" && as_dir
=.
12630 for ac_exec_ext
in '' $ac_executable_extensions; do
12631 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12632 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643 orig_target_ar
=$ac_cv_path_orig_target_ar
12644 if test -n "$orig_target_ar"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12646 $as_echo "$orig_target_ar" >&6; }
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12654 if test "$GCC" = "yes"; then
12655 aros_gcc_ar
=`$CC -print-prog-name=ar`
12656 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12657 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659 $as_echo_n "checking for $ac_word... " >&6; }
12660 if ${ac_cv_path_orig_target_ar+:} false
; then :
12661 $as_echo_n "(cached) " >&6
12663 case $orig_target_ar in
12665 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12669 for as_dir
in `dirname $aros_gcc_ar`
12672 test -z "$as_dir" && as_dir
=.
12673 for ac_exec_ext
in '' $ac_executable_extensions; do
12674 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12675 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12686 orig_target_ar
=$ac_cv_path_orig_target_ar
12687 if test -n "$orig_target_ar"; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12689 $as_echo "$orig_target_ar" >&6; }
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12697 if test "$orig_target_ar" = ""; then
12698 # Extract the first word of "ar", so it can be a program name with args.
12699 set dummy
ar; ac_word
=$2
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12701 $as_echo_n "checking for $ac_word... " >&6; }
12702 if ${ac_cv_path_orig_target_ar+:} false
; then :
12703 $as_echo_n "(cached) " >&6
12705 case $orig_target_ar in
12707 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12711 for as_dir
in $PATH
12714 test -z "$as_dir" && as_dir
=.
12715 for ac_exec_ext
in '' $ac_executable_extensions; do
12716 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12717 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12728 orig_target_ar
=$ac_cv_path_orig_target_ar
12729 if test -n "$orig_target_ar"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12731 $as_echo "$orig_target_ar" >&6; }
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12741 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12742 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12743 set dummy
${aros_tool_prefix}${toolchain_ar}; ac_word
=$2
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745 $as_echo_n "checking for $ac_word... " >&6; }
12746 if ${ac_cv_path_orig_target_ar+:} false
; then :
12747 $as_echo_n "(cached) " >&6
12749 case $orig_target_ar in
12751 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12755 for as_dir
in $PATH
12758 test -z "$as_dir" && as_dir
=.
12759 for ac_exec_ext
in '' $ac_executable_extensions; do
12760 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12761 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 orig_target_ar
=$ac_cv_path_orig_target_ar
12773 if test -n "$orig_target_ar"; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12775 $as_echo "$orig_target_ar" >&6; }
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 $as_echo "no" >&6; }
12782 orig_target_ar
="$orig_target_ar $ac_tool_optarg"
12786 if test "$orig_target_ar" = ""; then
12789 if test "$orig_target_ar" = "no"; then
12792 if test "$req_avail" = "no"; then
12793 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12796 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12797 if test "$cross_compiling" = "yes" ; then
12798 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12799 set dummy
${target_tool_prefix}ar; ac_word
=$2
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801 $as_echo_n "checking for $ac_word... " >&6; }
12802 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12803 $as_echo_n "(cached) " >&6
12805 case $orig_target_ranlib in
12807 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12811 for as_dir
in $PATH
12814 test -z "$as_dir" && as_dir
=.
12815 for ac_exec_ext
in '' $ac_executable_extensions; do
12816 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12817 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12828 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12829 if test -n "$orig_target_ranlib"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12831 $as_echo "$orig_target_ranlib" >&6; }
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834 $as_echo "no" >&6; }
12839 if test "$GCC" = "yes"; then
12840 aros_gcc_ar
=`$CC -print-prog-name=ar`
12841 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12842 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844 $as_echo_n "checking for $ac_word... " >&6; }
12845 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12846 $as_echo_n "(cached) " >&6
12848 case $orig_target_ranlib in
12850 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12854 for as_dir
in `dirname $aros_gcc_ar`
12857 test -z "$as_dir" && as_dir
=.
12858 for ac_exec_ext
in '' $ac_executable_extensions; do
12859 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12860 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12872 if test -n "$orig_target_ranlib"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12874 $as_echo "$orig_target_ranlib" >&6; }
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12882 if test "$orig_target_ranlib" = ""; then
12883 # Extract the first word of "ar", so it can be a program name with args.
12884 set dummy
ar; ac_word
=$2
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886 $as_echo_n "checking for $ac_word... " >&6; }
12887 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12888 $as_echo_n "(cached) " >&6
12890 case $orig_target_ranlib in
12892 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12896 for as_dir
in $PATH
12899 test -z "$as_dir" && as_dir
=.
12900 for ac_exec_ext
in '' $ac_executable_extensions; do
12901 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12902 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12913 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12914 if test -n "$orig_target_ranlib"; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12916 $as_echo "$orig_target_ranlib" >&6; }
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919 $as_echo "no" >&6; }
12926 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12927 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12928 set dummy
${aros_tool_prefix}${toolchain_ranlib}; ac_word
=$2
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12930 $as_echo_n "checking for $ac_word... " >&6; }
12931 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12932 $as_echo_n "(cached) " >&6
12934 case $orig_target_ranlib in
12936 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12940 for as_dir
in $PATH
12943 test -z "$as_dir" && as_dir
=.
12944 for ac_exec_ext
in '' $ac_executable_extensions; do
12945 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12946 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12958 if test -n "$orig_target_ranlib"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12960 $as_echo "$orig_target_ranlib" >&6; }
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12967 orig_target_ranlib
="$orig_target_ranlib $ac_tool_optarg"
12971 if test "$orig_target_ranlib" = ""; then
12974 if test "$orig_target_ranlib" = "no"; then
12977 if test "$req_avail" = "no"; then
12978 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12981 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12982 if test "$cross_compiling" = "yes" ; then
12983 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12984 set dummy
${target_tool_prefix}nm
; ac_word
=$2
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12986 $as_echo_n "checking for $ac_word... " >&6; }
12987 if ${ac_cv_path_orig_target_nm+:} false
; then :
12988 $as_echo_n "(cached) " >&6
12990 case $orig_target_nm in
12992 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12996 for as_dir
in $PATH
12999 test -z "$as_dir" && as_dir
=.
13000 for ac_exec_ext
in '' $ac_executable_extensions; do
13001 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13002 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 orig_target_nm
=$ac_cv_path_orig_target_nm
13014 if test -n "$orig_target_nm"; then
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13016 $as_echo "$orig_target_nm" >&6; }
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13019 $as_echo "no" >&6; }
13024 if test "$GCC" = "yes"; then
13025 aros_gcc_nm
=`$CC -print-prog-name=nm`
13026 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13027 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029 $as_echo_n "checking for $ac_word... " >&6; }
13030 if ${ac_cv_path_orig_target_nm+:} false
; then :
13031 $as_echo_n "(cached) " >&6
13033 case $orig_target_nm in
13035 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13039 for as_dir
in `dirname $aros_gcc_nm`
13042 test -z "$as_dir" && as_dir
=.
13043 for ac_exec_ext
in '' $ac_executable_extensions; do
13044 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13045 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 orig_target_nm
=$ac_cv_path_orig_target_nm
13057 if test -n "$orig_target_nm"; then
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13059 $as_echo "$orig_target_nm" >&6; }
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13062 $as_echo "no" >&6; }
13067 if test "$orig_target_nm" = ""; then
13068 # Extract the first word of "nm", so it can be a program name with args.
13069 set dummy nm
; ac_word
=$2
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13071 $as_echo_n "checking for $ac_word... " >&6; }
13072 if ${ac_cv_path_orig_target_nm+:} false
; then :
13073 $as_echo_n "(cached) " >&6
13075 case $orig_target_nm in
13077 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13081 for as_dir
in $PATH
13084 test -z "$as_dir" && as_dir
=.
13085 for ac_exec_ext
in '' $ac_executable_extensions; do
13086 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13087 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098 orig_target_nm
=$ac_cv_path_orig_target_nm
13099 if test -n "$orig_target_nm"; then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13101 $as_echo "$orig_target_nm" >&6; }
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104 $as_echo "no" >&6; }
13111 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13112 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13113 set dummy
${aros_tool_prefix}${toolchain_nm}; ac_word
=$2
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13115 $as_echo_n "checking for $ac_word... " >&6; }
13116 if ${ac_cv_path_orig_target_nm+:} false
; then :
13117 $as_echo_n "(cached) " >&6
13119 case $orig_target_nm in
13121 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13125 for as_dir
in $PATH
13128 test -z "$as_dir" && as_dir
=.
13129 for ac_exec_ext
in '' $ac_executable_extensions; do
13130 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13131 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13142 orig_target_nm
=$ac_cv_path_orig_target_nm
13143 if test -n "$orig_target_nm"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13145 $as_echo "$orig_target_nm" >&6; }
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13152 orig_target_nm
="$orig_target_nm $ac_tool_optarg"
13156 if test "$orig_target_nm" = ""; then
13159 if test "$orig_target_nm" = "no"; then
13162 if test "$req_avail" = "no"; then
13163 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13166 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13167 if test "$cross_compiling" = "yes" ; then
13168 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13169 set dummy
${target_tool_prefix}strip
; ac_word
=$2
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171 $as_echo_n "checking for $ac_word... " >&6; }
13172 if ${ac_cv_path_orig_target_strip+:} false
; then :
13173 $as_echo_n "(cached) " >&6
13175 case $orig_target_strip in
13177 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13181 for as_dir
in $PATH
13184 test -z "$as_dir" && as_dir
=.
13185 for ac_exec_ext
in '' $ac_executable_extensions; do
13186 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13187 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 orig_target_strip
=$ac_cv_path_orig_target_strip
13199 if test -n "$orig_target_strip"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13201 $as_echo "$orig_target_strip" >&6; }
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204 $as_echo "no" >&6; }
13209 if test "$GCC" = "yes"; then
13210 aros_gcc_strip
=`$CC -print-prog-name=strip`
13211 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13212 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214 $as_echo_n "checking for $ac_word... " >&6; }
13215 if ${ac_cv_path_orig_target_strip+:} false
; then :
13216 $as_echo_n "(cached) " >&6
13218 case $orig_target_strip in
13220 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13224 for as_dir
in `dirname $aros_gcc_strip`
13227 test -z "$as_dir" && as_dir
=.
13228 for ac_exec_ext
in '' $ac_executable_extensions; do
13229 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13230 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 orig_target_strip
=$ac_cv_path_orig_target_strip
13242 if test -n "$orig_target_strip"; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13244 $as_echo "$orig_target_strip" >&6; }
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13247 $as_echo "no" >&6; }
13252 if test "$orig_target_strip" = ""; then
13253 # Extract the first word of "strip", so it can be a program name with args.
13254 set dummy strip
; ac_word
=$2
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13256 $as_echo_n "checking for $ac_word... " >&6; }
13257 if ${ac_cv_path_orig_target_strip+:} false
; then :
13258 $as_echo_n "(cached) " >&6
13260 case $orig_target_strip in
13262 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13266 for as_dir
in $PATH
13269 test -z "$as_dir" && as_dir
=.
13270 for ac_exec_ext
in '' $ac_executable_extensions; do
13271 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13272 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 orig_target_strip
=$ac_cv_path_orig_target_strip
13284 if test -n "$orig_target_strip"; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13286 $as_echo "$orig_target_strip" >&6; }
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289 $as_echo "no" >&6; }
13296 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13297 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13298 set dummy
${aros_tool_prefix}${toolchain_strip}; ac_word
=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300 $as_echo_n "checking for $ac_word... " >&6; }
13301 if ${ac_cv_path_orig_target_strip+:} false
; then :
13302 $as_echo_n "(cached) " >&6
13304 case $orig_target_strip in
13306 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13310 for as_dir
in $PATH
13313 test -z "$as_dir" && as_dir
=.
13314 for ac_exec_ext
in '' $ac_executable_extensions; do
13315 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13316 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13327 orig_target_strip
=$ac_cv_path_orig_target_strip
13328 if test -n "$orig_target_strip"; then
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13330 $as_echo "$orig_target_strip" >&6; }
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13337 orig_target_strip
="$orig_target_strip $ac_tool_optarg"
13341 if test "$orig_target_strip" = ""; then
13344 if test "$orig_target_strip" = "no"; then
13347 if test "$req_avail" = "no"; then
13348 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13351 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13352 if test "$cross_compiling" = "yes" ; then
13353 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13354 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356 $as_echo_n "checking for $ac_word... " >&6; }
13357 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13358 $as_echo_n "(cached) " >&6
13360 case $orig_target_objcopy in
13362 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13366 for as_dir
in $PATH
13369 test -z "$as_dir" && as_dir
=.
13370 for ac_exec_ext
in '' $ac_executable_extensions; do
13371 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13372 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13383 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13384 if test -n "$orig_target_objcopy"; then
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13386 $as_echo "$orig_target_objcopy" >&6; }
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13394 if test "$GCC" = "yes"; then
13395 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
13396 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13397 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13399 $as_echo_n "checking for $ac_word... " >&6; }
13400 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13401 $as_echo_n "(cached) " >&6
13403 case $orig_target_objcopy in
13405 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13409 for as_dir
in `dirname $aros_gcc_objcopy`
13412 test -z "$as_dir" && as_dir
=.
13413 for ac_exec_ext
in '' $ac_executable_extensions; do
13414 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13415 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13426 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13427 if test -n "$orig_target_objcopy"; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13429 $as_echo "$orig_target_objcopy" >&6; }
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432 $as_echo "no" >&6; }
13437 if test "$orig_target_objcopy" = ""; then
13438 # Extract the first word of "objcopy", so it can be a program name with args.
13439 set dummy objcopy
; 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_objcopy+:} false
; then :
13443 $as_echo_n "(cached) " >&6
13445 case $orig_target_objcopy in
13447 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # 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_objcopy
="$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_objcopy
=$ac_cv_path_orig_target_objcopy
13469 if test -n "$orig_target_objcopy"; then
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13471 $as_echo "$orig_target_objcopy" >&6; }
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13474 $as_echo "no" >&6; }
13481 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13482 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13483 set dummy
${aros_tool_prefix}${toolchain_objcopy}; ac_word
=$2
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13485 $as_echo_n "checking for $ac_word... " >&6; }
13486 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13487 $as_echo_n "(cached) " >&6
13489 case $orig_target_objcopy in
13491 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13495 for as_dir
in $PATH
13498 test -z "$as_dir" && as_dir
=.
13499 for ac_exec_ext
in '' $ac_executable_extensions; do
13500 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13501 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13512 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13513 if test -n "$orig_target_objcopy"; then
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13515 $as_echo "$orig_target_objcopy" >&6; }
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
13522 orig_target_objcopy
="$orig_target_objcopy $ac_tool_optarg"
13526 if test "$orig_target_objcopy" = ""; then
13529 if test "$orig_target_objcopy" = "no"; then
13532 if test "$req_avail" = "no"; then
13533 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13536 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13537 if test "$cross_compiling" = "yes" ; then
13538 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13539 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541 $as_echo_n "checking for $ac_word... " >&6; }
13542 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13543 $as_echo_n "(cached) " >&6
13545 case $orig_target_objdump in
13547 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13551 for as_dir
in $PATH
13554 test -z "$as_dir" && as_dir
=.
13555 for ac_exec_ext
in '' $ac_executable_extensions; do
13556 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13557 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13568 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13569 if test -n "$orig_target_objdump"; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13571 $as_echo "$orig_target_objdump" >&6; }
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13579 if test "$GCC" = "yes"; then
13580 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
13581 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13582 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13584 $as_echo_n "checking for $ac_word... " >&6; }
13585 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13586 $as_echo_n "(cached) " >&6
13588 case $orig_target_objdump in
13590 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13594 for as_dir
in `dirname $aros_gcc_objdump`
13597 test -z "$as_dir" && as_dir
=.
13598 for ac_exec_ext
in '' $ac_executable_extensions; do
13599 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13600 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13611 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13612 if test -n "$orig_target_objdump"; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13614 $as_echo "$orig_target_objdump" >&6; }
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13617 $as_echo "no" >&6; }
13622 if test "$orig_target_objdump" = ""; then
13623 # Extract the first word of "objdump", so it can be a program name with args.
13624 set dummy objdump
; ac_word
=$2
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13626 $as_echo_n "checking for $ac_word... " >&6; }
13627 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13628 $as_echo_n "(cached) " >&6
13630 case $orig_target_objdump in
13632 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13636 for as_dir
in $PATH
13639 test -z "$as_dir" && as_dir
=.
13640 for ac_exec_ext
in '' $ac_executable_extensions; do
13641 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13642 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13653 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13654 if test -n "$orig_target_objdump"; then
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13656 $as_echo "$orig_target_objdump" >&6; }
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659 $as_echo "no" >&6; }
13666 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13667 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13668 set dummy
${aros_tool_prefix}${toolchain_objdump}; ac_word
=$2
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13670 $as_echo_n "checking for $ac_word... " >&6; }
13671 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13672 $as_echo_n "(cached) " >&6
13674 case $orig_target_objdump in
13676 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13680 for as_dir
in $PATH
13683 test -z "$as_dir" && as_dir
=.
13684 for ac_exec_ext
in '' $ac_executable_extensions; do
13685 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13686 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13697 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13698 if test -n "$orig_target_objdump"; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13700 $as_echo "$orig_target_objdump" >&6; }
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703 $as_echo "no" >&6; }
13707 orig_target_objdump
="$orig_target_objdump $ac_tool_optarg"
13711 if test "$orig_target_objdump" = ""; then
13714 if test "$orig_target_objdump" = "no"; then
13717 if test "$req_avail" = "no"; then
13718 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13722 if test "$kernel_tool_prefix" = "none" ; then
13723 # No kernel tools specified
13724 # Assume target tools == kernel tools with ELF wrapper
13725 aros_kernel_cc
=$orig_target_cc
13726 aros_kernel_cxx
=$orig_target_cxx
13727 aros_kernel_cpp
=$orig_target_cpp
13728 aros_kernel_ld
=$orig_target_ld
13729 aros_kernel_as
=$orig_target_as
13730 aros_kernel_ar
=$orig_target_ar
13731 aros_kernel_ranlib
=$orig_target_ranlib
13732 aros_kernel_nm
=$orig_target_nm
13733 aros_kernel_strip
=$orig_target_strip
13734 aros_kernel_objcopy
=$orig_target_objcopy
13735 aros_kernel_objdump
=$orig_target_objdump
13736 use_kernel_cc_wrapper
=yes
13739 # At this point, all aros_kernel_* and aros_target_*
13740 # tools should be set up correctly
13742 CC
="$aros_kernel_cc $kernel_tool_flags"
13743 CPP
="$aros_kernel_cpp"
13745 #-----------------------------------------------------------------------------
13747 # Find all the tools we need to compile. This could be cross-compiling
13748 # though! If that is the case we use the GNU form of the target and
13749 # simply add this to the front of the binary name. This is rather simple,
13750 # but it should work under most circumstances.
13752 # The default tools are to use the same as the host, but only if the
13753 # host and target CPU are the same. With GCC this is normally enough.
13757 aros_shared_ld
="$aros_host_ld"
13759 aros_target_mkdep
="$aros_host_mkdep"
13761 # The default tools executables to be linked to.
13762 if test "$rescomp" != ""; then
13763 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13764 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13766 $as_echo_n "checking for $ac_word... " >&6; }
13767 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
13768 $as_echo_n "(cached) " >&6
13770 case $aros_kernel_rescomp in
13772 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
13775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13776 for as_dir
in $PATH
13779 test -z "$as_dir" && as_dir
=.
13780 for ac_exec_ext
in '' $ac_executable_extensions; do
13781 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13782 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
13783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13793 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
13794 if test -n "$aros_kernel_rescomp"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13796 $as_echo "$aros_kernel_rescomp" >&6; }
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799 $as_echo "no" >&6; }
13804 if test "$aros_kernel_rescomp" = ""; then
13807 if test "$aros_kernel_rescomp" = "no"; then
13810 if test "$req_avail" = "no"; then
13811 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13815 # Set up the sources for the symlink farm
13816 if test "$crosstools" = "yes"; then
13817 crosstools_target
=tools-crosstools
13820 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
13821 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
13823 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13824 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13825 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13826 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13827 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13828 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13829 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13831 # aros_cc_pre is a variable that is added to the front of the compiler name
13832 # in the generated aros-gcc shell script. We need this to enable the cache
13833 # to work across cleaned builds. Also, support DISTCC using the correct
13834 # environment variable.
13837 if test "x${DISTCC}" != "x" ; then
13838 if test "x${CCACHE}" != "x" ; then
13839 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13841 aros_cc_pre
="${DISTCC} "
13844 if test "x${CCACHE}" != "x" ; then
13845 aros_cc_pre
="${CCACHE} "
13849 aros_target_nostdinc_cflags
=-nostdinc
13851 aros_target_nostartup_ldflags
=-nostartfiles
13853 aros_target_nix_ldflags
=-nix
13855 aros_target_detach_ldflags
=-detach
13857 aros_target_nostdlib_ldflags
=-nostdlib
13860 aros_target_cc_path
=
13864 if test "$aros_target_toolchain" != "yes"; then
13865 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13866 if test "$GCC" = "yes"; then
13867 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13870 # We do not know which c compiler version we are going to build and what we need to know
13871 # here is different for different versions so this will be set later during the
13872 # build of crosstools.
13873 if test "$aros_toolchain" = "gnu" ; then
13874 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13875 elif test "$aros_toolchain" = "llvm" ; then
13876 prefix
="$AROS_CROSSTOOLSDIR/bin/"
13878 aros_target_cc_path
=@aros_target_cc_path@
13880 aros_target_cpp
="${prefix}${toolchain_cpp_preprocessor}"
13881 aros_target_cc
="${prefix}${toolchain_c_compiler}"
13882 aros_target_cxx
="${prefix}${toolchain_cxx_compiler}"
13883 aros_target_as
="${prefix}${toolchain_as}"
13884 if test "${use_ld_wrapper}" = "yes"; then
13885 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13887 aros_target_ld
="${prefix}${toolchain_ld}"
13889 aros_toolchain_ld
="${prefix}${toolchain_ld}"
13891 aros_target_ar
="${prefix}${toolchain_ar} $aros_target_ar_flags"
13892 aros_target_objcopy
="${prefix}${toolchain_objcopy}"
13893 aros_target_objdump
="${prefix}${toolchain_objdump}"
13894 aros_target_ranlib
="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13895 aros_target_nm
="${prefix}${toolchain_nm} $aros_target_nm_flags"
13896 aros_target_strip
="${prefix}${toolchain_strip}"
13897 aros_plain_nm
="${prefix}${toolchain_nm}"
13898 aros_plain_ar
="${prefix}${toolchain_ar}"
13900 # Check whether --enable-includes was given.
13901 if test "${enable_includes+set}" = set; then :
13902 enableval
=$enable_includes; aros_target_incl
=$enable_includes
13904 aros_target_incl
=no
13908 if test "x$aros_target_incl" = "xno"; then
13909 if test "x$test_kernel_cc" != "xno"; then
13910 aros_target_incl
=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13916 if test "x$aros_kernel_includes" = "x"; then
13917 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13918 if test "x$aros_target_incl" != "x"; then
13919 aros_kernel_includes
="-isystem $aros_target_incl"
13924 if test "x$test_kernel_cc" != "xno"; then
13925 if test "$aros_kernel_includes" != "" ; then
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13927 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13928 if test "$aros_kernel_cc_includes" = "" ; then
13929 # Try to guess where the directory is.
13930 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
13931 if test -d $aros_kernel_cc_includes; then
13932 # Check if there is also an include-fixed directory and add it
13933 # to kernel compiler's include path as it may contain some of
13934 # the headers we need.
13935 if test -d "$aros_kernel_cc_includes"-fixed; then
13936 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
13938 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13939 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13940 aros_kernel_cc_includes
+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13943 # The directory doesn't exist, we need to do some more work.
13944 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
13946 # These are the headers we're looking for.
13947 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13948 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13952 for h
in $headers; do
13953 # Which other headers are needed by each of the above?
13954 deps
=$
(echo "#include <$h>" | \
13955 $aros_kernel_cc -E -M - 2>/dev
/null | \
13956 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13958 # Copy all the needed headers to a directory beneath gendir.
13961 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
13962 sed -n "s,^.*/include\(/.*\),\1,p")
13963 ! test -d $dir && mkdir
-p $dir
13964 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13970 $as_echo "$aros_kernel_cc_includes" >&6; }
13971 # Adding -nostdinc to kernel includes as they are always used together.
13972 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13976 if test "$crosstools" != "yes"; then
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13978 $as_echo_n "checking for the target compiler's include path... " >&6; }
13979 if test "$aros_target_cc_includes" = "" ; then
13980 #try to guess where the directory is
13981 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
13982 if ! test -d $aros_target_cc_includes; then
13983 #the directory doesn't exist, we need to do some more work
13984 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
13986 #these are the headers we're looking for
13987 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13988 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13992 for h
in $headers; do
13993 #which other headers each of the above headers needs?
13994 deps
=$
(echo "#include <$h>" | \
13995 $orig_target_cc -E -M - 2>/dev
/null | \
13996 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13998 #copy all the needed headers to a directory beneath gendir
14001 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
14002 sed -n "s,^.*/include\(/.*\),\1,p")
14003 ! test -d $dir && mkdir
-p $dir
14004 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14010 $as_echo "$aros_target_cc_includes" >&6; }
14012 # We do not know which c compiler version we are going to build and what we need to know
14013 # here is different for different versions so this will be set later during the
14014 # build of crosstools.
14015 aros_target_cc_includes
=@aros_target_cc_includes@
14019 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14020 # On GCC >= 4.0 -iquote should be used
14024 save_cflags
="$CFLAGS"
14025 if test "x$test_kernel_cc" != "xno"; then
14027 kernel_cflags_iquote
=$host_cflags_iquote
14028 kernel_cflags_iquote_end
=$host_cflags_iquote_end
14029 if test "x-$cross_compiling" = "x-yes"; then
14030 CC
="$aros_kernel_cc"
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14032 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14033 if test "x-$crosstools" != "x-yes"; then
14034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14045 if ac_fn_c_try_compile
"$LINENO"; then :
14046 use_no_stack_protector
="yes"
14048 use_no_stack_protector
="no"
14050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14052 # we do know it is supported for the smallest version of gcc we are going to build
14053 # we assume it's also supported by later versions
14054 use_no_stack_protector
=yes
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14057 $as_echo "$use_no_stack_protector" >&6; }
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14059 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14060 if test "x-$crosstools" != "x-yes"; then
14061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h. */
14072 if ac_fn_c_try_compile
"$LINENO"; then :
14077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14079 # we do know it is supported for the smallest version of gcc we are going to build
14080 # we assume it's also supported by later versions
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14084 $as_echo "$has_iquote" >&6; }
14085 if test "x-$has_iquote" = "x-yes" ; then
14086 kernel_cflags_iquote
=-iquote
14087 kernel_cflags_iquote_end
=
14089 kernel_cflags_iquote
=-I
14090 kernel_cflags_iquote_end
=-I-
14093 if test "x-$use_no_stack_protector" = "x-yes" ; then
14094 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
14097 #-----------------------------------------------------------------------------
14099 # Check if we can explicitly choose older version of symbol hashing
14101 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
14102 CC
="$aros_kernel_cc"
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14104 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14116 if ac_fn_c_try_link
"$LINENO"; then :
14117 use_hash_style
="yes"
14119 use_hash_style
="no"
14121 rm -f core conftest.err conftest.
$ac_objext \
14122 conftest
$ac_exeext conftest.
$ac_ext
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14124 $as_echo "$use_hash_style" >&6; }
14125 if test "x-$use_hash_style" = "x-yes" ; then
14126 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
14129 kernel_cflags_iquote
="$""(CFLAGS_IQUOTE)"
14130 kernel_cflags_iquote_end
="$""(CFLAGS_IQUOTE_END)"
14133 CFLAGS
="$save_cflags"
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14142 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14144 # Check whether --with-resolution was given.
14145 if test "${with_resolution+set}" = set; then :
14146 withval
=$with_resolution; resolution
=$withval
14151 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14152 if test "$resolution" = "yes" ; then
14155 if test "$resolution" = "no" ; then
14158 if test "$resolution" != "none" ; then
14159 aros_nominal_width
=`echo $resolution | cut -d'x' -f1`
14160 aros_nominal_height
=`echo $resolution | cut -d'x' -f2`
14161 aros_nominal_depth
=`echo $resolution | cut -d'x' -f3`
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14164 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14165 aros_cv_nominal_width
=$aros_nominal_width
14166 aros_cv_nominal_height
=$aros_nominal_height
14167 aros_cv_nominal_depth
=$aros_nominal_depth
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14170 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14172 # Check whether --with-serial-debug was given.
14173 if test "${with_serial_debug+set}" = set; then :
14174 withval
=$with_serial_debug; serial_debug
=$withval
14179 if test "$aros_serial_debug" = 0 ; then
14180 serial_debug_forced
=""
14181 if test "$serial_debug" = "yes" ; then
14184 if test "$serial_debug" = "no" ; then
14185 serial_debug
="none"
14188 serial_debug_forced
="(forced)"
14189 serial_debug
=$aros_serial_debug
14191 if test "$serial_debug" != "none" ; then
14192 aros_serial_debug
=$serial_debug
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14194 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14197 $as_echo "no" >&6; }
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14201 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14202 # Check whether --enable-palm_debug_hack was given.
14203 if test "${enable_palm_debug_hack+set}" = set; then :
14204 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
14206 palm_debug_hack
="no"
14209 if test "$palm_debug_hack" = "yes" ; then
14210 aros_palm_debug_hack
="1"
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14213 $as_echo "$palm_debug_hack" >&6; }
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14216 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14217 # Check whether --enable-usb30_code was given.
14218 if test "${enable_usb30_code+set}" = set; then :
14219 enableval
=$enable_usb30_code; usb30_code
="yes"
14224 if test "$usb30_code" = "yes" ; then
14225 aros_config_cppflags
="$aros_config_cppflags -DAROS_USB30_CODE"
14226 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14229 $as_echo "$usb30_code" >&6; }
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14232 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14233 # Check whether --enable-nesting_supervisor was given.
14234 if test "${enable_nesting_supervisor+set}" = set; then :
14235 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
14237 nesting_supervisor
="no"
14240 if test "$nesting_supervisor" = "yes" ; then
14241 aros_nesting_supervisor
="1"
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14244 $as_echo "$nesting_supervisor" >&6; }
14246 if test "$aros_enable_mmu" = "" ; then
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14248 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14249 # Check whether --enable-mmu was given.
14250 if test "${enable_mmu+set}" = set; then :
14251 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
14253 aros_enable_mmu
="yes"
14256 if test "$aros_enable_mmu" = "" ; then
14257 aros_enable_mmu
="yes"
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14260 $as_echo "$aros_enable_mmu" >&6; }
14262 if test "$aros_enable_mmu" = "no" ; then
14263 aros_enable_mmu
="0"
14265 aros_enable_mmu
="1"
14269 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14271 if test "x-$need_dlopen" != "x-no" ; then
14274 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
14275 if test "x$ac_cv_func_dlopen" = xyes
; then :
14281 if test "x-$have_dl" = "x-no" ; then
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14284 if ${ac_cv_lib_dl_dlopen+:} false
; then :
14285 $as_echo_n "(cached) " >&6
14287 ac_check_lib_save_LIBS
=$LIBS
14289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14292 /* Override any GCC internal prototype to avoid an error.
14293 Use char because int might match the return type of a GCC
14294 builtin and then its argument prototype would still apply. */
14307 if ac_fn_c_try_link
"$LINENO"; then :
14308 ac_cv_lib_dl_dlopen
=yes
14310 ac_cv_lib_dl_dlopen
=no
14312 rm -f core conftest.err conftest.
$ac_objext \
14313 conftest
$ac_exeext conftest.
$ac_ext
14314 LIBS
=$ac_check_lib_save_LIBS
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14317 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14318 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
14320 aros_host_ldflags
="$aros_host_ldflags -ldl"
14326 if test "x-$have_dl" = "x-no" ; then
14327 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
14333 # Check whether --enable-x11_hidd was given.
14334 if test "${enable_x11_hidd+set}" = set; then :
14335 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
14337 x11_hidd
="$need_x11"
14340 case "x-$x11_hidd" in
14341 x-yes|x-no|x-auto
) ;;
14342 *) x11_hidd
="$need_x11" ;;
14347 if test "x-$x11_hidd" != "x-no" ; then
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14350 $as_echo_n "checking for X... " >&6; }
14353 # Check whether --with-x was given.
14354 if test "${with_x+set}" = set; then :
14358 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14359 if test "x$with_x" = xno
; then
14360 # The user explicitly disabled X.
14363 case $x_includes,$x_libraries in #(
14364 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
14365 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
14366 $as_echo_n "(cached) " >&6
14368 # One or both of the vars are not set, and there is no cached value.
14369 ac_x_includes
=no ac_x_libraries
=no
14370 rm -f -r conftest.dir
14371 if mkdir conftest.dir
; then
14373 cat >Imakefile
<<'_ACEOF'
14375 @echo incroot='${INCROOT}'
14377 @echo usrlibdir='${USRLIBDIR}'
14379 @echo libdir='${LIBDIR}'
14381 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14382 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14383 for ac_var
in incroot usrlibdir libdir
; do
14384 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14386 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14387 for ac_extension
in a so sl dylib la dll
; do
14388 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14389 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14390 ac_im_usrlibdir
=$ac_im_libdir; break
14393 # Screen out bogus values from the imake configuration. They are
14394 # bogus both because they are the default anyway, and because
14395 # using them would break gcc on systems where it needs fixed includes.
14396 case $ac_im_incroot in
14397 /usr
/include
) ac_x_includes
= ;;
14398 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14400 case $ac_im_usrlibdir in
14401 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14402 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14406 rm -f -r conftest.dir
14409 # Standard set of common directories for X headers.
14410 # Check X11 before X11Rn because it is often a symlink to the current release.
14424 /usr/local/X11/include
14425 /usr/local/X11R7/include
14426 /usr/local/X11R6/include
14427 /usr/local/X11R5/include
14428 /usr/local/X11R4/include
14430 /usr/local/include/X11
14431 /usr/local/include/X11R7
14432 /usr/local/include/X11R6
14433 /usr/local/include/X11R5
14434 /usr/local/include/X11R4
14438 /usr/XFree86/include/X11
14442 /usr/unsupported/include
14443 /usr/athena/include
14444 /usr/local/x11r5/include
14445 /usr/lpp/Xamples/include
14447 /usr/openwin/include
14448 /usr/openwin/share/include'
14450 if test "$ac_x_includes" = no
; then
14451 # Guess where to find include files, by looking for Xlib.h.
14452 # First, try using that file with no special directory specified.
14453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14455 #include <X11/Xlib.h>
14457 if ac_fn_c_try_cpp
"$LINENO"; then :
14458 # We can compile using X headers with no special include directory.
14461 for ac_dir
in $ac_x_header_dirs; do
14462 if test -r "$ac_dir/X11/Xlib.h"; then
14463 ac_x_includes
=$ac_dir
14468 rm -f conftest.err conftest.i conftest.
$ac_ext
14469 fi # $ac_x_includes = no
14471 if test "$ac_x_libraries" = no
; then
14472 # Check for the libraries.
14473 # See if we find them without any special options.
14474 # Don't add to $LIBS permanently.
14477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14479 #include <X11/Xlib.h>
14488 if ac_fn_c_try_link
"$LINENO"; then :
14490 # We can link X programs with no special library path.
14494 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14496 # Don't even attempt the hair of trying to link an X program!
14497 for ac_extension
in a so sl dylib la dll
; do
14498 if test -r "$ac_dir/libX11.$ac_extension"; then
14499 ac_x_libraries
=$ac_dir
14505 rm -f core conftest.err conftest.
$ac_objext \
14506 conftest
$ac_exeext conftest.
$ac_ext
14507 fi # $ac_x_libraries = no
14509 case $ac_x_includes,$ac_x_libraries in #(
14510 no
,* |
*,no |
*\'*)
14511 # Didn't find X, or a directory has "'" in its name.
14512 ac_cv_have_x
="have_x=no";; #(
14514 # Record where we found X for the cache.
14515 ac_cv_have_x
="have_x=yes\
14516 ac_x_includes='$ac_x_includes'\
14517 ac_x_libraries='$ac_x_libraries'"
14523 eval "$ac_cv_have_x"
14526 if test "$have_x" != yes; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14528 $as_echo "$have_x" >&6; }
14531 # If each of the values was on the command line, it overrides each guess.
14532 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14533 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14534 # Update the cache value to reflect the command line values.
14535 ac_cv_have_x
="have_x=yes\
14536 ac_x_includes='$x_includes'\
14537 ac_x_libraries='$x_libraries'"
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14539 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14543 if test -n "$x_includes"; then
14544 X_CFLAGS
="$X_CFLAGS -I$x_includes"
14547 if test -n "$x_libraries"; then
14548 X_LIBS
="$X_LIBS -L$x_libraries"
14551 if test "x-$no_x" = "x-yes" ; then
14553 if test "x-$x11_hidd" != "x-auto" ; then
14554 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14558 aros_target_options
+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
14559 if test "x-$host_feature_glx" != "x-no" ; then
14560 aros_target_options
+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
14564 aros_host_x11_cflags
="$X_CFLAGS"
14565 aros_host_x11_ldflags
="$X_LIBS -lX11"
14567 # Check whether --enable-x11_shm was given.
14568 if test "${enable_x11_shm+set}" = set; then :
14569 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
14571 x11_hidd_shm
="auto"
14574 case "x-$x11_hidd_shm" in
14575 x-yes|x-no|x-auto
) ;;
14576 *) x11_hidd_shm
="auto" ;;
14581 if test "x-$x11_hidd_shm" != "x-no" ; then
14583 for ac_header
in sys
/ipc.h
14585 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14586 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
14587 cat >>confdefs.h
<<_ACEOF
14588 #define HAVE_SYS_IPC_H 1
14595 for ac_header
in sys
/shm.h
14597 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14598 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
14599 cat >>confdefs.h
<<_ACEOF
14600 #define HAVE_SYS_SHM_H 1
14608 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14610 save_cflags
="$CFLAGS"
14611 save_ldflags
="$LDFLAGS"
14612 CFLAGS
="$CFLAGS $X_CFLAGS"
14613 LDFLAGS
="$LDFLAGS $X_LIBS"
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14615 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14616 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
14617 $as_echo_n "(cached) " >&6
14619 ac_check_lib_save_LIBS
=$LIBS
14620 LIBS
="-lXext $LIBS"
14621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14624 /* Override any GCC internal prototype to avoid an error.
14625 Use char because int might match the return type of a GCC
14626 builtin and then its argument prototype would still apply. */
14630 char XShmQueryExtension ();
14634 return XShmQueryExtension ();
14639 if ac_fn_c_try_link
"$LINENO"; then :
14640 ac_cv_lib_Xext_XShmQueryExtension
=yes
14642 ac_cv_lib_Xext_XShmQueryExtension
=no
14644 rm -f core conftest.err conftest.
$ac_objext \
14645 conftest
$ac_exeext conftest.
$ac_ext
14646 LIBS
=$ac_check_lib_save_LIBS
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14649 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14650 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
14654 CFLAGS
="$save_cflags"
14655 LDFLAGS
="$save_ldflags"
14659 if test "x-$have_xshm" = "x-yes" ; then
14660 DO_XSHM_SUPPORT
="1"
14661 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14662 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14664 DO_XSHM_SUPPORT
="0"
14668 # Check whether --enable-x11_vidmode was given.
14669 if test "${enable_x11_vidmode+set}" = set; then :
14670 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
14672 x11_hidd_vidmode
="auto"
14675 case "x-$x11_hidd_vidmode" in
14676 x-yes|x-no|x-auto
) ;;
14677 *) x11_hidd_vidmode
="auto" ;;
14682 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14684 save_cflags
="$CFLAGS"
14685 save_ldflags
="$LDFLAGS"
14686 CFLAGS
="$CFLAGS $X_CFLAGS"
14687 LDFLAGS
="$LDFLAGS $X_LIBS"
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14689 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14690 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
14691 $as_echo_n "(cached) " >&6
14693 ac_check_lib_save_LIBS
=$LIBS
14694 LIBS
="-lXxf86vm $LIBS"
14695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14696 /* end confdefs.h. */
14698 /* Override any GCC internal prototype to avoid an error.
14699 Use char because int might match the return type of a GCC
14700 builtin and then its argument prototype would still apply. */
14704 char XF86VidModeQueryExtension ();
14708 return XF86VidModeQueryExtension ();
14713 if ac_fn_c_try_link
"$LINENO"; then :
14714 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
14716 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
14718 rm -f core conftest.err conftest.
$ac_objext \
14719 conftest
$ac_exeext conftest.
$ac_ext
14720 LIBS
=$ac_check_lib_save_LIBS
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14723 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14724 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
14728 CFLAGS
="$save_cflags"
14729 LDFLAGS
="$save_ldflags"
14732 if test "x-$have_vidmode" = "x-yes" ; then
14733 DO_VIDMODE_SUPPORT
="1"
14734 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14735 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14737 DO_VIDMODE_SUPPORT
="0"
14742 # Check whether --enable-sdl_hidd was given.
14743 if test "${enable_sdl_hidd+set}" = set; then :
14744 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
14749 case "x-$sdl_hidd" in
14750 x-yes|x-no|x-auto
) ;;
14751 *) sdl_hidd
="auto" ;;
14754 if test "x-$sdl_hidd" != "x-no" ; then
14758 # Check whether --with-sdl-prefix was given.
14759 if test "${with_sdl_prefix+set}" = set; then :
14760 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
14766 # Check whether --with-sdl-exec-prefix was given.
14767 if test "${with_sdl_exec_prefix+set}" = set; then :
14768 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
14773 # Check whether --enable-sdltest was given.
14774 if test "${enable_sdltest+set}" = set; then :
14775 enableval
=$enable_sdltest;
14781 if test x
$sdl_exec_prefix != x
; then
14782 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14783 if test x
${SDL_CONFIG+set} != xset
; then
14784 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
14787 if test x
$sdl_prefix != x
; then
14788 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
14789 if test x
${SDL_CONFIG+set} != xset
; then
14790 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
14794 as_save_PATH
="$PATH"
14795 if test "x$prefix" != xNONE
; then
14796 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
14798 # Extract the first word of "sdl-config", so it can be a program name with args.
14799 set dummy sdl-config
; ac_word
=$2
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14801 $as_echo_n "checking for $ac_word... " >&6; }
14802 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
14803 $as_echo_n "(cached) " >&6
14805 case $SDL_CONFIG in
14807 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
14810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14811 for as_dir
in $PATH
14814 test -z "$as_dir" && as_dir
=.
14815 for ac_exec_ext
in '' $ac_executable_extensions; do
14816 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14817 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14825 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
14829 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
14830 if test -n "$SDL_CONFIG"; then
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14832 $as_echo "$SDL_CONFIG" >&6; }
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14835 $as_echo "no" >&6; }
14839 PATH
="$as_save_PATH"
14840 min_sdl_version
=$SDL_VERSION
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14842 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14844 if test "$SDL_CONFIG" = "no" ; then
14847 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
14848 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
14850 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
14851 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14852 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
14853 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14854 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
14855 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14856 if test "x$enable_sdltest" = "xyes" ; then
14857 ac_save_CFLAGS
="$CFLAGS"
14858 ac_save_CXXFLAGS
="$CXXFLAGS"
14859 ac_save_LIBS
="$LIBS"
14860 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14861 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14862 LIBS
="$LIBS $SDL_LIBS"
14864 if test "$cross_compiling" = yes; then :
14865 echo $ac_n "cross compiling; assumed OK... $ac_c"
14867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14871 #include <stdlib.h>
14872 #include <string.h>
14876 my_strdup (char *str)
14882 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14883 strcpy (new_str, str);
14891 int main (int argc, char *argv[])
14893 int major, minor, micro;
14896 /* This hangs on some systems (?)
14897 system ("touch conf.sdltest");
14899 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14901 /* HP/UX 9 (%@#!) writes to sscanf strings */
14902 tmp_version = my_strdup("$min_sdl_version");
14903 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
14904 printf("%s, bad version string\n", "$min_sdl_version");
14908 if (($sdl_major_version > major) ||
14909 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14910 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14916 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14917 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14918 printf("*** best to upgrade to the required version.\n");
14919 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14920 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14921 printf("*** config.cache before re-running configure\n");
14928 if ac_fn_c_try_run
"$LINENO"; then :
14933 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14934 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14937 CFLAGS
="$ac_save_CFLAGS"
14938 CXXFLAGS
="$ac_save_CXXFLAGS"
14939 LIBS
="$ac_save_LIBS"
14942 if test "x$no_sdl" = x
; then
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14944 $as_echo "yes" >&6; }
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14948 $as_echo "no" >&6; }
14949 if test "$SDL_CONFIG" = "no" ; then
14950 echo "*** The sdl-config script installed by SDL could not be found"
14951 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14952 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14953 echo "*** full path to sdl-config."
14955 if test -f conf.sdltest
; then
14958 echo "*** Could not run SDL test program, checking why..."
14959 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14960 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14961 LIBS
="$LIBS $SDL_LIBS"
14962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14968 int main(int argc, char *argv[])
14971 #define main K_and_R_C_main
14981 if ac_fn_c_try_link
"$LINENO"; then :
14982 echo "*** The test program compiled, but did not run. This usually means"
14983 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14984 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14985 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14986 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14987 echo "*** is required on your system"
14989 echo "*** If you have an old version installed, it is best to remove it, although"
14990 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14992 echo "*** The test program failed to compile or link. See the file config.log for the"
14993 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14994 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14995 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14997 rm -f core conftest.err conftest.
$ac_objext \
14998 conftest
$ac_exeext conftest.
$ac_ext
14999 CFLAGS
="$ac_save_CFLAGS"
15000 CXXFLAGS
="$ac_save_CXXFLAGS"
15001 LIBS
="$ac_save_LIBS"
15013 if test "x-$have_sdl" != "x-yes" ; then
15015 if test "x-$sdl_hidd" != "x-auto" ; then
15016 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15020 aros_target_options
+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15021 aros_host_sdl_cflags
=$SDL_CFLAGS
15022 aros_host_sdl_libs
=$SDL_LIBS
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15030 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15031 # Check whether --enable-dbus was given.
15032 if test "${enable_dbus+set}" = set; then :
15033 enableval
=$enable_dbus; dbus
="yes"
15038 if test "$dbus" = "yes" ; then
15040 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
15041 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
15042 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
15043 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15048 $as_echo "$dbus" >&6; }
15050 if test "$use_kernel_cc_wrapper" = "yes" ; then
15051 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15054 aros_kernel_cppflags
=$aros_config_cppflags
15055 aros_optimization_cflags
="$optimization_level"
15056 if test "$optimization" = "default"; then
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15058 $as_echo_n "checking default optimization level to use... " >&6; }
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15060 $as_echo "$optimization_level" >&6; }
15063 if ! test "$gcc_default_cpu" = "" ; then
15064 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"
15082 # Compatability with other Amiga-like operation systems
15216 # Bootloader related
15219 # Native version related
15224 # Palm native version related
15227 # Unix/Hosted version related
15233 # Apple iOS related
15238 # ARM default GCC target related
15266 # Collect-aros stuff: "-ius" to ignore undefined symbols
15269 # C compiler related
15274 #ObjC compiler related
15283 case "$aros_flavour" in
15284 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
15285 aros_flavour
="emulation" ;;
15286 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15287 aros_flavour
="emulation" ;;
15288 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
15289 aros_flavour
="standalone";;
15290 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15291 aros_flavour
="standalone";;
15292 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
15293 aros_flavour
="native" ;;
15294 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15295 aros_flavour
="native" ;;
15296 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
15297 aros_flavour
="linklib" ;;
15298 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15299 aros_flavour
="palmnative" ;;
15300 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15301 aros_flavour
="mac68knative" ;;
15302 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15303 aros_flavour
="ppcnative" ;;
15306 if test ! -d ${aros_inc_dir} ; then
15307 ${MKDIR} ${aros_inc_dir}
15309 if test ! -d ${aros_geninc_dir} ; then
15310 ${MKDIR} ${aros_geninc_dir}
15312 if test ! -d ${aros_hostcfg_dir} ; then
15313 ${MKDIR} ${aros_hostcfg_dir}
15315 if test ! -d ${aros_targetcfg_dir} ; then
15316 ${MKDIR} ${aros_targetcfg_dir}
15318 if test ! -d ${aros_tools_dir} ; then
15319 ${MKDIR} ${aros_tools_dir}
15321 if test ! -d ${aros_scripts_dir} ; then
15322 ${MKDIR} ${aros_scripts_dir}
15325 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15328 # Generic build tools (metamake, etc)
15329 ac_config_commands
="$ac_config_commands genmf-executable-support"
15331 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"
15335 ac_config_commands
="$ac_config_commands binutils-support"
15337 if test "${use_ld_wrapper}" = "yes"; then
15338 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"
15341 # Bare Elf support script and spec
15342 if test "${use_kernel_cc_wrapper}" = "yes"; then
15343 ac_config_commands
="$ac_config_commands elf-compiler-support"
15345 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"
15349 # Host compiler support scripts and spec
15350 if test "${aros_target_toolchain}" = "no"; then
15351 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
15353 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"
15358 if test "$aros_target_variant" == "android"; then
15359 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15364 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15367 cat >confcache
<<\_ACEOF
15368 # This file is a shell script that caches the results of configure
15369 # tests run on this system so they can be shared between configure
15370 # scripts and configure runs, see configure's option --config-cache.
15371 # It is not useful on other systems. If it contains results you don't
15372 # want to keep, you may remove or edit it.
15374 # config.status only pays attention to the cache file if you give it
15375 # the --recheck option to rerun configure.
15377 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15378 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15379 # following values.
15383 # The following way of writing the cache mishandles newlines in values,
15384 # but we know of no workaround that is simple, portable, and efficient.
15385 # So, we kill variables containing newlines.
15386 # Ultrix sh set writes to stderr and can't be redirected directly,
15387 # and sets the high bit in the cache file unless we assign to the vars.
15389 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15390 eval ac_val
=\$
$ac_var
15394 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15395 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15398 _ | IFS | as_nl
) ;; #(
15399 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15400 *) { eval $ac_var=; unset $ac_var;} ;;
15406 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15407 *${as_nl}ac_space
=\
*)
15408 # `set' does not quote correctly, so add quotes: double-quote
15409 # substitution turns \\\\ into \\, and sed turns \\ into \.
15412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15415 # `set' quotes correctly as required by POSIX, so do not add quotes.
15416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15425 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15427 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15429 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15430 if test -w "$cache_file"; then
15431 if test "x$cache_file" != "x/dev/null"; then
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15433 $as_echo "$as_me: updating cache $cache_file" >&6;}
15434 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15435 cat confcache
>"$cache_file"
15437 case $cache_file in #(
15439 mv -f confcache
"$cache_file"$$
&&
15440 mv -f "$cache_file"$$
"$cache_file" ;; #(
15442 mv -f confcache
"$cache_file" ;;
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15448 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15453 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15454 # Let make expand exec_prefix.
15455 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15457 DEFS
=-DHAVE_CONFIG_H
15462 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15463 # 1. Remove the extension, and $U if already installed.
15464 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15465 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15466 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15467 # will be set to the directory where LIBOBJS objects are built.
15468 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15469 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15471 LIBOBJS
=$ac_libobjs
15473 LTLIBOBJS
=$ac_ltlibobjs
15477 : "${CONFIG_STATUS=./config.status}"
15479 ac_clean_files_save
=$ac_clean_files
15480 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15482 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15484 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15486 # Generated by $as_me.
15487 # Run this file to recreate the current configuration.
15488 # Compiler output produced by configure, useful for debugging
15489 # configure, is in config.log if it exists.
15492 ac_cs_recheck=false
15495 SHELL=\${CONFIG_SHELL-$SHELL}
15498 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15499 ## -------------------- ##
15500 ## M4sh Initialization. ##
15501 ## -------------------- ##
15503 # Be more Bourne compatible
15504 DUALCASE
=1; export DUALCASE
# for MKS sh
15505 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15508 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15509 # is contrary to our usage. Disable this feature.
15510 alias -g '${1+"$@"}'='"$@"'
15511 setopt NO_GLOB_SUBST
15513 case `(set -o) 2>/dev/null` in #(
15525 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15526 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15528 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15529 # Prefer a ksh shell builtin over an external printf program on Solaris,
15530 # but without wasting forks for bash or zsh.
15531 if test -z "$BASH_VERSION$ZSH_VERSION" \
15532 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15533 as_echo='print
-r --'
15534 as_echo_n='print
-rn --'
15535 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15536 as_echo='printf %s
\n'
15537 as_echo_n='printf %s
'
15539 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15540 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15541 as_echo_n='/usr
/ucb
/echo -n'
15543 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15544 as_echo_n_body='eval
15548 expr "X$arg" : "X\\(.*\\)$as_nl";
15549 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15551 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15553 export as_echo_n_body
15554 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15556 export as_echo_body
15557 as_echo='sh
-c $as_echo_body as_echo
'
15560 # The user is always right.
15561 if test "${PATH_SEPARATOR+set}" != set; then
15563 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15564 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15571 # We need space, tab and new line, in precisely that order. Quoting is
15572 # there to prevent editors from complaining about space-tab.
15573 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15574 # splitting by setting IFS to empty value.)
15577 # Find who we are. Look in the path if we contain no directory separator.
15580 *[\\/]* ) as_myself=$0 ;;
15581 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15582 for as_dir in $PATH
15585 test -z "$as_dir" && as_dir=.
15586 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15592 # We did not find ourselves, most probably we were run as `sh COMMAND'
15593 # in which case we are not to be found in the path.
15594 if test "x$as_myself" = x
; then
15597 if test ! -f "$as_myself"; then
15598 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15602 # Unset variables that we do not need and which cause bugs (e.g. in
15603 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15604 # suppresses any "Segmentation fault" message there. '((' could
15605 # trigger a bug in pdksh 5.2.14.
15606 for as_var
in BASH_ENV ENV MAIL MAILPATH
15607 do eval test x\
${$as_var+set} = xset \
15608 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15621 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15624 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15625 # ----------------------------------------
15626 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15627 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15628 # script with STATUS, using 1 if that was 0.
15631 as_status
=$1; test $as_status -eq 0 && as_status
=1
15633 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15634 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15636 $as_echo "$as_me: error: $2" >&2
15637 as_fn_exit
$as_status
15641 # as_fn_set_status STATUS
15642 # -----------------------
15643 # Set $? to STATUS, without forking.
15644 as_fn_set_status
()
15647 } # as_fn_set_status
15649 # as_fn_exit STATUS
15650 # -----------------
15651 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15655 as_fn_set_status
$1
15661 # Portably unset VAR.
15664 { eval $1=; unset $1;}
15666 as_unset
=as_fn_unset
15667 # as_fn_append VAR VALUE
15668 # ----------------------
15669 # Append the text in VALUE to the end of the definition contained in VAR. Take
15670 # advantage of any shell optimizations that allow amortized linear growth over
15671 # repeated appends, instead of the typical quadratic growth present in naive
15673 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15674 eval 'as_fn_append ()
15685 # as_fn_arith ARG...
15686 # ------------------
15687 # Perform arithmetic evaluation on the ARGs, and store the result in the
15688 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15689 # must be portable across $(()) and expr.
15690 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15691 eval 'as_fn_arith ()
15698 as_val
=`expr "$@" || test $? -eq 1`
15703 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15704 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15710 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15711 as_basename
=basename
15716 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15722 as_me
=`$as_basename -- "$0" ||
15723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15724 X"$0" : 'X\(//\)$' \| \
15725 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15727 sed '/^.*\/\([^/][^/]*\)\/*$/{
15741 # Avoid depending upon Character Ranges.
15742 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15743 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15744 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15745 as_cr_digits
='0123456789'
15746 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15748 ECHO_C
= ECHO_N
= ECHO_T
=
15749 case `echo -n x` in #(((((
15751 case `echo 'xy\c'` in
15752 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15754 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15761 rm -f conf$$ conf$$.exe conf$$.
file
15762 if test -d conf$$.dir
; then
15763 rm -f conf$$.dir
/conf$$.
file
15766 mkdir conf$$.dir
2>/dev
/null
15768 if (echo >conf$$.
file) 2>/dev
/null
; then
15769 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15771 # ... but there are two gotchas:
15772 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15773 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15774 # In both cases, we have to default to `cp -pR'.
15775 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15777 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15785 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15786 rmdir conf$$.dir
2>/dev
/null
15791 # Create "$as_dir" as a directory, including parents if necessary.
15796 -*) as_dir
=.
/$as_dir;;
15798 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15802 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15803 *) as_qdir
=$as_dir;;
15805 as_dirs
="'$as_qdir' $as_dirs"
15806 as_dir
=`$as_dirname -- "$as_dir" ||
15807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15808 X"$as_dir" : 'X\(//\)[^/]' \| \
15809 X"$as_dir" : 'X\(//\)$' \| \
15810 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15811 $as_echo X"$as_dir" |
15812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15816 /^X\(\/\/\)[^/].*/{
15829 test -d "$as_dir" && break
15831 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15832 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15836 if mkdir
-p .
2>/dev
/null
; then
15837 as_mkdir_p
='mkdir -p "$as_dir"'
15839 test -d .
/-p && rmdir .
/-p
15844 # as_fn_executable_p FILE
15845 # -----------------------
15846 # Test if FILE is an executable regular file.
15847 as_fn_executable_p
()
15849 test -f "$1" && test -x "$1"
15850 } # as_fn_executable_p
15851 as_test_x
='test -x'
15852 as_executable_p
=as_fn_executable_p
15854 # Sed expression to map a string onto a valid CPP name.
15855 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15857 # Sed expression to map a string onto a valid variable name.
15858 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15862 ## ----------------------------------- ##
15863 ## Main body of $CONFIG_STATUS script. ##
15864 ## ----------------------------------- ##
15866 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15869 # Save the log message, to keep $0 and so on meaningful, and to
15870 # report actual input values of CONFIG_FILES etc. instead of their
15871 # values after options handling.
15873 This file was extended by $as_me, which was
15874 generated by GNU Autoconf 2.69. Invocation command line was
15876 CONFIG_FILES = $CONFIG_FILES
15877 CONFIG_HEADERS = $CONFIG_HEADERS
15878 CONFIG_LINKS = $CONFIG_LINKS
15879 CONFIG_COMMANDS = $CONFIG_COMMANDS
15882 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15887 case $ac_config_files in *"
15888 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15891 case $ac_config_headers in *"
15892 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15897 # Files that config.status was made for.
15898 config_files="$ac_config_files"
15899 config_headers="$ac_config_headers"
15900 config_commands="$ac_config_commands"
15904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15906 \`$as_me' instantiates files and other configuration actions
15907 from templates according to the current configuration. Unless the files
15908 and actions are specified as TAGs, all are instantiated by default.
15910 Usage: $0 [OPTION]... [TAG]...
15912 -h, --help print this help, then exit
15913 -V, --version print version number and configuration settings, then exit
15914 --config print configuration, then exit
15915 -q, --quiet, --silent
15916 do not print progress messages
15917 -d, --debug don't remove temporary files
15918 --recheck update $as_me by reconfiguring in the same conditions
15919 --file=FILE[:TEMPLATE]
15920 instantiate the configuration file FILE
15921 --header=FILE[:TEMPLATE]
15922 instantiate the configuration header FILE
15924 Configuration files:
15927 Configuration headers:
15930 Configuration commands:
15933 Report bugs to the package provider."
15936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15937 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15940 configured by $0, generated by GNU Autoconf 2.69,
15941 with options \\"\$ac_cs_config\\"
15943 Copyright (C) 2012 Free Software Foundation, Inc.
15944 This config.status script is free software; the Free Software Foundation
15945 gives unlimited permission to copy, distribute and modify it."
15949 test -n "\$AWK" || AWK=awk
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15953 # The default lists apply if the user does not specify any file.
15959 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15960 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15964 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15976 # Handling of the options.
15977 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15979 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15980 $as_echo "$ac_cs_version"; exit ;;
15981 --config |
--confi |
--conf |
--con |
--co |
--c )
15982 $as_echo "$ac_cs_config"; exit ;;
15983 --debug |
--debu |
--deb |
--de |
--d |
-d )
15985 --file |
--fil |
--fi |
--f )
15988 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15989 '') as_fn_error $?
"missing file argument" ;;
15991 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15992 ac_need_defaults
=false
;;
15993 --header |
--heade |
--head |
--hea )
15996 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15998 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15999 ac_need_defaults
=false
;;
16001 # Conflict between --help and --header
16002 as_fn_error $?
"ambiguous option: \`$1'
16003 Try \`$0 --help' for more information.";;
16004 --help |
--hel |
-h )
16005 $as_echo "$ac_cs_usage"; exit ;;
16006 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16007 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16010 # This is an error.
16011 -*) as_fn_error $?
"unrecognized option: \`$1'
16012 Try \`$0 --help' for more information." ;;
16014 *) as_fn_append ac_config_targets
" $1"
16015 ac_need_defaults
=false
;;
16021 ac_configure_extra_args
=
16023 if $ac_cs_silent; then
16025 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16030 if \$ac_cs_recheck; then
16031 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16033 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16034 CONFIG_SHELL='$SHELL'
16035 export CONFIG_SHELL
16040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16044 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16045 ## Running $as_me. ##
16051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16056 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16057 aros_tools_dir=${aros_tools_dir}
16061 aros_host_exe_suffix=${aros_host_exe_suffix}
16062 aros_tools_dir=${aros_tools_dir}
16063 aros_target_cpu=${aros_target_cpu}
16064 aros_target_arch=${aros_target_arch}
16065 aros_target_suffix=${aros_target_suffix}
16066 orig_target_nm=${orig_target_nm}
16067 orig_target_as=${orig_target_as}
16068 orig_target_ar=${orig_target_ar}
16069 orig_target_ranlib=${orig_target_ranlib}
16070 orig_target_objdump=${orig_target_objdump}
16071 orig_target_objcopy=${orig_target_objcopy}
16072 orig_target_strip=${orig_target_strip}
16073 aros_kernel_ld=${aros_kernel_ld}
16077 aros_host_exe_suffix=${aros_host_exe_suffix}
16078 aros_tools_dir=${aros_tools_dir}
16079 aros_target_cpu=${aros_target_cpu}
16080 aros_target_arch=${aros_target_arch}
16081 aros_target_suffix=${aros_target_suffix}
16082 aros_kernel_ld=${aros_kernel_ld}
16086 aros_host_exe_suffix=${aros_host_exe_suffix}
16087 aros_tools_dir=${aros_tools_dir}
16088 aros_target_cpu=${aros_target_cpu}
16089 aros_target_arch=${aros_target_arch}
16090 aros_target_suffix=${aros_target_suffix}
16096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16098 # Handling of arguments.
16099 for ac_config_target
in $ac_config_targets
16101 case $ac_config_target in
16102 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16103 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
16104 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16105 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
16106 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16107 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16108 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16109 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16110 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16111 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
16112 "compiler/include/geninc.cfg") CONFIG_FILES
="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16113 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16114 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16115 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16116 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
16117 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
16118 "${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" ;;
16119 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
16120 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16121 "${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" ;;
16122 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16123 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16124 "${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" ;;
16125 "${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" ;;
16126 "${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" ;;
16127 "${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" ;;
16128 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16130 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16135 # If the user did not use the arguments to specify the items to instantiate,
16136 # then the envvar interface is used. Set only those that are not.
16137 # We use the long form for the default assignment because of an extremely
16138 # bizarre bug on SunOS 4.1.3.
16139 if $ac_need_defaults; then
16140 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16141 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16142 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16145 # Have a temporary directory for convenience. Make it in the build tree
16146 # simply because there is no reason against having it here, and in addition,
16147 # creating and moving files from /tmp can sometimes cause problems.
16148 # Hook for its removal unless debugging.
16149 # Note that there is a small window in which the directory will not be cleaned:
16150 # after its creation but before its name has been assigned to `$tmp'.
16154 trap 'exit_status=$?
16155 : "${ac_tmp:=$tmp}"
16156 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16158 trap 'as_fn_exit 1' 1 2 13 15
16160 # Create a (secure) tmp directory for tmp files.
16163 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16167 tmp
=.
/conf$$
-$RANDOM
16168 (umask 077 && mkdir
"$tmp")
16169 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16172 # Set up the scripts for CONFIG_FILES section.
16173 # No need to generate them if there are no CONFIG_FILES.
16174 # This happens for instance with `./config.status config.h'.
16175 if test -n "$CONFIG_FILES"; then
16178 ac_cr
=`echo X | tr X '\015'`
16179 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16180 # But we know of no other shell where ac_cr would be empty at this
16181 # point, so we can use a bashism as a fallback.
16182 if test "x$ac_cr" = x
; then
16183 eval ac_cr
=\$
\'\\r
\'
16185 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16186 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16189 ac_cs_awk_cr
=$ac_cr
16192 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16197 echo "cat >conf$$subs.awk <<_ACEOF" &&
16198 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16200 } >conf$$subs.sh ||
16201 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16202 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16204 for ac_last_try in false false false false false :; do
16205 . ./conf$$subs.sh ||
16206 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16208 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16209 if test $ac_delim_n = $ac_delim_num; then
16211 elif $ac_last_try; then
16212 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16214 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16217 rm -f conf$$subs.sh
16219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16220 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16224 s/^/S["/; s
/!.
*/"]=/
16234 s/\(.\{148\}\)..*/\1/
16236 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16241 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16248 s/\(.\{148\}\)..*/\1/
16250 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16254 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16259 ' <conf$$subs.awk | sed '
16264 ' >>$CONFIG_STATUS || ac_write_fail=1
16265 rm -f conf$$subs.awk
16266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16268 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16269 for (key in S) S_is_set[key] = 1
16275 nfields = split(line, field, "@
")
16277 len = length(field[1])
16278 for (i = 2; i < nfields; i++) {
16280 keylen = length(key)
16281 if (S_is_set[key]) {
16283 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16284 len += length(value) + length(field[++i])
16295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16296 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16297 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16300 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16301 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16304 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16305 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16306 # trailing colons and then remove the whole line if VPATH becomes empty
16307 # (actually we leave an empty line to preserve line numbers).
16308 if test "x
$srcdir" = x.; then
16309 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16328 fi # test -n "$CONFIG_FILES"
16330 # Set up the scripts for CONFIG_HEADERS section.
16331 # No need to generate them if there are no CONFIG_HEADERS.
16332 # This happens for instance with `./config.status Makefile'.
16333 if test -n "$CONFIG_HEADERS"; then
16334 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16338 # Transform confdefs.h into an awk script `defines.awk', embedded as
16339 # here-document in config.status, that substitutes the proper values into
16340 # config.h.in to produce config.h.
16342 # Create a delimiter string that does not exist in confdefs.h, to ease
16343 # handling of long lines.
16345 for ac_last_try in false false :; do
16346 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16347 if test -z "$ac_tt"; then
16349 elif $ac_last_try; then
16350 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16352 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16356 # For the awk script, D is an array of macro values keyed by name,
16357 # likewise P contains macro parameters if any. Preserve backslash
16358 # newline sequences.
16360 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16362 s/.\{148\}/&'"$ac_delim"'/g
16365 s/^[ ]*#[ ]*define[ ][ ]*/ /
16372 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16374 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16379 D["\
1"]=" \
3\\\\\\n
"\\/p
16381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16386 s/.\{148\}/&'"$ac_delim"'/g
16391 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16394 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16396 ' <confdefs.h | sed '
16397 s/'"$ac_delim"'/"\\\
16398 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16401 for (key in D) D_is_set[key] = 1
16404 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16406 split(line, arg, " ")
16407 if (arg[1] == "#") {
16411 defundef
= substr
(arg
[1], 2)
16414 split(mac1
, mac2
, "(") #)
16416 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16417 if (D_is_set
[macro
]) {
16418 # Preserve the white space surrounding the "#".
16419 print prefix
"define", macro P
[macro
] D
[macro
]
16422 # Replace #undef with comments. This is necessary, for example,
16423 # in the case of _POSIX_SOURCE, which is predefined and required
16424 # on some systems where configure will not decide to define it.
16425 if (defundef
== "undef") {
16426 print
"/*", prefix defundef
, macro
, "*/"
16434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16435 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16436 fi # test -n "$CONFIG_HEADERS"
16439 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16444 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16446 case $ac_mode$ac_tag in
16448 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16449 :[FH
]-) ac_tag
=-:-;;
16450 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16467 -) ac_f
="$ac_tmp/stdin";;
16468 *) # Look for the file first in the build tree, then in the source tree
16469 # (if the path is not absolute). The absolute path cannot be DOS-style,
16470 # because $ac_f cannot contain `:'.
16474 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16476 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16478 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16479 as_fn_append ac_file_inputs
" '$ac_f'"
16482 # Let's still pretend it is `configure' which instantiates (i.e., don't
16483 # use $as_me), people would be surprised to read:
16484 # /* config.h. Generated by config.status. */
16485 configure_input
='Generated from '`
16486 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16488 if test x
"$ac_file" != x-
; then
16489 configure_input
="$ac_file. $configure_input"
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16491 $as_echo "$as_me: creating $ac_file" >&6;}
16493 # Neutralize special characters interpreted by sed in replacement strings.
16494 case $configure_input in #(
16495 *\
&* |
*\|
* |
*\\* )
16496 ac_sed_conf_input
=`$as_echo "$configure_input" |
16497 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16498 *) ac_sed_conf_input
=$configure_input;;
16502 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16503 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16508 ac_dir
=`$as_dirname -- "$ac_file" ||
16509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16510 X"$ac_file" : 'X\(//\)[^/]' \| \
16511 X"$ac_file" : 'X\(//\)$' \| \
16512 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16513 $as_echo X"$ac_file" |
16514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16518 /^X\(\/\/\)[^/].*/{
16531 as_dir
="$ac_dir"; as_fn_mkdir_p
16535 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16537 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16538 # A ".." for each directory in $ac_dir_suffix.
16539 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16540 case $ac_top_builddir_sub in
16541 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16542 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16545 ac_abs_top_builddir
=$ac_pwd
16546 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16547 # for backward compatibility:
16548 ac_top_builddir
=$ac_top_build_prefix
16551 .
) # We are building in place.
16553 ac_top_srcdir
=$ac_top_builddir_sub
16554 ac_abs_top_srcdir
=$ac_pwd ;;
16555 [\\/]* | ?
:[\\/]* ) # Absolute name.
16556 ac_srcdir
=$srcdir$ac_dir_suffix;
16557 ac_top_srcdir
=$srcdir
16558 ac_abs_top_srcdir
=$srcdir ;;
16559 *) # Relative name.
16560 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16561 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16562 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16564 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16576 # If the template does not know about datarootdir, expand it.
16577 # FIXME: This hack should be removed a few years after 2.60.
16578 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16589 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16590 *datarootdir
*) ac_datarootdir_seen
=yes;;
16591 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16593 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16596 ac_datarootdir_hack='
16597 s&@datadir@&$datadir&g
16598 s&@docdir@&$docdir&g
16599 s&@infodir@&$infodir&g
16600 s&@localedir@&$localedir&g
16601 s&@mandir@&$mandir&g
16602 s&\\\${datarootdir}&$datarootdir&g' ;;
16606 # Neutralize VPATH when `$srcdir' = `.'.
16607 # Shell code in configure.ac might set extrasub.
16608 # FIXME: do we really want to maintain this feature?
16609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16610 ac_sed_extra="$ac_vpsub
16613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16615 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16616 s|@configure_input@|
$ac_sed_conf_input|
;t t
16617 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16618 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16619 s
&@srcdir@
&$ac_srcdir&;t t
16620 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16621 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16622 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16623 s
&@builddir@
&$ac_builddir&;t t
16624 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16625 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16626 $ac_datarootdir_hack
16628 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16629 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16631 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16632 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16634 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16636 which seems to be undefined. Please make sure it is defined" >&5
16637 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16638 which seems to be undefined. Please make sure it is defined" >&2;}
16640 rm -f "$ac_tmp/stdin"
16642 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16643 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16651 if test x"$ac_file" != x-; then
16653 $as_echo "/* $configure_input */" \
16654 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16655 } >"$ac_tmp/config.h" \
16656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16657 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16659 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16662 mv "$ac_tmp/config.h" "$ac_file" \
16663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16666 $as_echo "/* $configure_input */" \
16667 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16668 || as_fn_error $? "could not create -" "$LINENO" 5
16672 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16673 $as_echo "$as_me: executing $ac_file commands" >&6;}
16678 case $ac_file$ac_mode in
16679 "genmf-executable-support":C)
16680 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16681 chmod a+x ${aros_tools_dir}/genmf.py
16683 "binutils-support":C)
16684 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16686 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16688 chmod a+x ${prefix2}-ld
16690 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16691 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16692 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16693 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16694 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16695 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16696 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16698 "elf-compiler-support":C)
16699 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16701 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16703 chmod a+x ${prefix2}-gcc
16705 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16707 "host-compiler-wrapper-support":C)
16708 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16710 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16712 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16721 ac_clean_files=$ac_clean_files_save
16723 test $ac_write_fail = 0 ||
16724 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16727 # configure is writing to config.log, and then calls config.status.
16728 # config.status does its own redirection, appending to config.log.
16729 # Unfortunately, on DOS this fails, as config.log is still kept open
16730 # by configure, so config.status won't be able to
write to it
; its
16731 # output is simply discarded. So we exec the FD to /dev/null,
16732 # effectively closing config.log, so it can be properly (re)opened and
16733 # appended to by config.status. When coming back to configure, we
16734 # need to make the FD available again.
16735 if test "$no_create" != yes; then
16737 ac_config_status_args
=
16738 test "$silent" = yes &&
16739 ac_config_status_args
="$ac_config_status_args --quiet"
16741 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16743 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16744 # would make configure fail if this is the last instruction.
16745 $ac_cs_success || as_fn_exit
1
16747 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16749 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16754 #XXX compatability...
16755 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
16757 if test -n "$aros_shared_cflags" ; then
16758 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16759 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg