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
657 aros_host_x11_libdirs
658 aros_host_x11_includes
668 crosstools_cxx_target
671 aros_optimization_cflags
672 aros_target_strip_flags
679 aros_kernel_objcflags
702 aros_target_cc_includes
718 aros_target_bootloader
739 aros_amigaos_compliance
746 aros_target_toolchain
755 aros_cflags_iquote_end
757 kernel_cflags_iquote_end
759 host_cflags_iquote_end
762 aros_target_nostdlib_ldflags
763 aros_target_detach_ldflags
764 aros_target_nix_ldflags
765 aros_target_nostartup_ldflags
766 aros_target_nostdinc_cflags
885 program_transform_name
898 enable_option_checking
906 with_kernel_gcc_version
909 enable_target_variant
916 enable_amigaos_compliance
917 with_kernel_toolchain_prefix
918 with_elf_toolchain_prefix
921 with_aros_toolchain_install
922 with_binutils_version
936 enable_palm_debug_hack
938 enable_nesting_supervisor
950 ac_precious_vars
='build_alias
966 # Initialize some variables set by options.
968 ac_init_version
=false
969 ac_unrecognized_opts
=
971 # The variables have the same names as the options, with
972 # dashes changed to underlines.
980 program_transform_name
=s
,x
,x
,
988 # Installation directory options.
989 # These are left unexpanded so users can "make install exec_prefix=/foo"
990 # and all the variables that are supposed to be based on exec_prefix
991 # by default will actually change.
992 # Use braces instead of parens because sh, perl, etc. also accept them.
993 # (The list follows the same order as the GNU Coding Standards.)
994 bindir
='${exec_prefix}/bin'
995 sbindir
='${exec_prefix}/sbin'
996 libexecdir
='${exec_prefix}/libexec'
997 datarootdir
='${prefix}/share'
998 datadir
='${datarootdir}'
999 sysconfdir
='${prefix}/etc'
1000 sharedstatedir
='${prefix}/com'
1001 localstatedir
='${prefix}/var'
1002 includedir
='${prefix}/include'
1003 oldincludedir
='/usr/include'
1004 docdir
='${datarootdir}/doc/${PACKAGE}'
1005 infodir
='${datarootdir}/info'
1010 libdir
='${exec_prefix}/lib'
1011 localedir
='${datarootdir}/locale'
1012 mandir
='${datarootdir}/man'
1018 # If the previous option needs an argument, assign it.
1019 if test -n "$ac_prev"; then
1020 eval $ac_prev=\
$ac_option
1026 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 # Accept the important Cygnus configure options, so we can diagnose typos.
1033 case $ac_dashdash$ac_option in
1037 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1039 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1040 bindir
=$ac_optarg ;;
1042 -build |
--build |
--buil |
--bui |
--bu)
1043 ac_prev
=build_alias
;;
1044 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1045 build_alias
=$ac_optarg ;;
1047 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1048 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1049 ac_prev
=cache_file
;;
1050 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1051 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1052 cache_file
=$ac_optarg ;;
1054 --config-cache |
-C)
1055 cache_file
=config.cache
;;
1057 -datadir |
--datadir |
--datadi |
--datad)
1059 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1060 datadir
=$ac_optarg ;;
1062 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1063 |
--dataroo |
--dataro |
--datar)
1064 ac_prev
=datarootdir
;;
1065 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1066 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1067 datarootdir
=$ac_optarg ;;
1069 -disable-* |
--disable-*)
1070 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1073 as_fn_error $?
"invalid feature name: $ac_useropt"
1074 ac_useropt_orig
=$ac_useropt
1075 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_
$ac_useropt"
1080 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081 ac_unrecognized_sep
=', ';;
1083 eval enable_
$ac_useropt=no
;;
1085 -docdir |
--docdir |
--docdi |
--doc |
--do)
1087 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1088 docdir
=$ac_optarg ;;
1090 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1092 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1093 dvidir
=$ac_optarg ;;
1095 -enable-* |
--enable-*)
1096 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1099 as_fn_error $?
"invalid feature name: $ac_useropt"
1100 ac_useropt_orig
=$ac_useropt
1101 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_
$ac_useropt"
1106 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep
=', ';;
1109 eval enable_
$ac_useropt=\
$ac_optarg ;;
1111 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1112 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1113 |
--exec |
--exe |
--ex)
1114 ac_prev
=exec_prefix
;;
1115 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1116 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1117 |
--exec=* |
--exe=* |
--ex=*)
1118 exec_prefix
=$ac_optarg ;;
1120 -gas |
--gas |
--ga |
--g)
1121 # Obsolete; use --with-gas.
1124 -help |
--help |
--hel |
--he |
-h)
1125 ac_init_help
=long
;;
1126 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1127 ac_init_help
=recursive
;;
1128 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1129 ac_init_help
=short
;;
1131 -host |
--host |
--hos |
--ho)
1132 ac_prev
=host_alias
;;
1133 -host=* |
--host=* |
--hos=* |
--ho=*)
1134 host_alias
=$ac_optarg ;;
1136 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1138 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1140 htmldir
=$ac_optarg ;;
1142 -includedir |
--includedir |
--includedi |
--included |
--include \
1143 |
--includ |
--inclu |
--incl |
--inc)
1144 ac_prev
=includedir
;;
1145 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1146 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1147 includedir
=$ac_optarg ;;
1149 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1151 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1152 infodir
=$ac_optarg ;;
1154 -libdir |
--libdir |
--libdi |
--libd)
1156 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1157 libdir
=$ac_optarg ;;
1159 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1160 |
--libexe |
--libex |
--libe)
1161 ac_prev
=libexecdir
;;
1162 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1163 |
--libexe=* |
--libex=* |
--libe=*)
1164 libexecdir
=$ac_optarg ;;
1166 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1167 ac_prev
=localedir
;;
1168 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1169 localedir
=$ac_optarg ;;
1171 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1172 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1173 ac_prev
=localstatedir
;;
1174 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1175 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1176 localstatedir
=$ac_optarg ;;
1178 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1180 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1181 mandir
=$ac_optarg ;;
1183 -nfp |
--nfp |
--nf)
1184 # Obsolete; use --without-fp.
1187 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1188 |
--no-cr |
--no-c |
-n)
1191 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1192 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1195 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1196 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1197 |
--oldin |
--oldi |
--old |
--ol |
--o)
1198 ac_prev
=oldincludedir
;;
1199 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1200 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1201 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1202 oldincludedir
=$ac_optarg ;;
1204 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1206 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1207 prefix
=$ac_optarg ;;
1209 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1210 |
--program-pre |
--program-pr |
--program-p)
1211 ac_prev
=program_prefix
;;
1212 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1213 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1214 program_prefix
=$ac_optarg ;;
1216 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1217 |
--program-suf |
--program-su |
--program-s)
1218 ac_prev
=program_suffix
;;
1219 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1220 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1221 program_suffix
=$ac_optarg ;;
1223 -program-transform-name |
--program-transform-name \
1224 |
--program-transform-nam |
--program-transform-na \
1225 |
--program-transform-n |
--program-transform- \
1226 |
--program-transform |
--program-transfor \
1227 |
--program-transfo |
--program-transf \
1228 |
--program-trans |
--program-tran \
1229 |
--progr-tra |
--program-tr |
--program-t)
1230 ac_prev
=program_transform_name
;;
1231 -program-transform-name=* |
--program-transform-name=* \
1232 |
--program-transform-nam=* |
--program-transform-na=* \
1233 |
--program-transform-n=* |
--program-transform-=* \
1234 |
--program-transform=* |
--program-transfor=* \
1235 |
--program-transfo=* |
--program-transf=* \
1236 |
--program-trans=* |
--program-tran=* \
1237 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1238 program_transform_name
=$ac_optarg ;;
1240 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1242 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1243 pdfdir
=$ac_optarg ;;
1245 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1247 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1250 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1251 |
-silent |
--silent |
--silen |
--sile |
--sil)
1254 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1256 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1258 sbindir
=$ac_optarg ;;
1260 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1261 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1262 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1264 ac_prev
=sharedstatedir
;;
1265 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1266 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1267 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1269 sharedstatedir
=$ac_optarg ;;
1271 -site |
--site |
--sit)
1273 -site=* |
--site=* |
--sit=*)
1276 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1278 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1279 srcdir
=$ac_optarg ;;
1281 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1282 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1283 ac_prev
=sysconfdir
;;
1284 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1285 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1286 sysconfdir
=$ac_optarg ;;
1288 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1289 ac_prev
=target_alias
;;
1290 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1291 target_alias
=$ac_optarg ;;
1293 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1296 -version |
--version |
--versio |
--versi |
--vers |
-V)
1297 ac_init_version
=: ;;
1300 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1303 as_fn_error $?
"invalid package name: $ac_useropt"
1304 ac_useropt_orig
=$ac_useropt
1305 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1310 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep
=', ';;
1313 eval with_
$ac_useropt=\
$ac_optarg ;;
1315 -without-* |
--without-*)
1316 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1319 as_fn_error $?
"invalid package name: $ac_useropt"
1320 ac_useropt_orig
=$ac_useropt
1321 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1326 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327 ac_unrecognized_sep
=', ';;
1329 eval with_
$ac_useropt=no
;;
1332 # Obsolete; use --with-x.
1335 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1336 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1337 ac_prev
=x_includes
;;
1338 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1339 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1340 x_includes
=$ac_optarg ;;
1342 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1343 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1344 ac_prev
=x_libraries
;;
1345 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1346 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1347 x_libraries
=$ac_optarg ;;
1349 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1350 Try \`$0 --help' for more information"
1354 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 case $ac_envvar in #(
1357 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1358 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1360 eval $ac_envvar=\
$ac_optarg
1361 export $ac_envvar ;;
1364 # FIXME: should be removed in autoconf 3.0.
1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1374 if test -n "$ac_prev"; then
1375 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1376 as_fn_error $?
"missing argument to $ac_option"
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1382 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1387 # Check all directory arguments for consistency.
1388 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1393 eval ac_val
=\$
$ac_var
1394 # Remove trailing slashes.
1397 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398 eval $ac_var=\
$ac_val;;
1400 # Be sure to have absolute directory names.
1402 [\\/$
]* | ?
:[\\/]* ) continue;;
1403 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1405 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1408 # There might be people who depend on the old broken behavior: `$host'
1409 # used to hold the argument of --host etc.
1410 # FIXME: To remove some day.
1413 target
=$target_alias
1415 # FIXME: To remove some day.
1416 if test "x$host_alias" != x
; then
1417 if test "x$build_alias" = x
; then
1418 cross_compiling
=maybe
1419 elif test "x$build_alias" != "x$host_alias"; then
1425 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1427 test "$silent" = yes && exec 6>/dev
/null
1430 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di
=`ls -di .` &&
1432 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1433 as_fn_error $?
"working directory cannot be determined"
1434 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435 as_fn_error $?
"pwd does not report name of working directory"
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted
=yes
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir
=`$as_dirname -- "$as_myself" ||
1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447 $as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1470 ac_srcdir_defaulted
=no
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1474 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1476 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1478 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1480 # When building in place, set srcdir=.
1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
1484 # Remove unnecessary trailing slashes from srcdir.
1485 # Double slashes in file names in object file debugging info
1486 # mess up M-x gdb in Emacs.
1488 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1490 for ac_var
in $ac_precious_vars; do
1491 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1492 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1493 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1494 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1498 # Report the --help message.
1500 if test "$ac_init_help" = "long"; then
1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.
1504 \`configure' configures this package to adapt to many kinds of systems.
1506 Usage: $0 [OPTION]... [VAR=VALUE]...
1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509 VAR=VALUE. See below for descriptions of some of the useful variables.
1511 Defaults for the options are specified in brackets.
1514 -h, --help display this help and exit
1515 --help=short display options specific to this package
1516 --help=recursive display the short help of all the included packages
1517 -V, --version display version information and exit
1518 -q, --quiet, --silent do not print \`checking ...' messages
1519 --cache-file=FILE cache test results in FILE [disabled]
1520 -C, --config-cache alias for \`--cache-file=config.cache'
1521 -n, --no-create do not create output files
1522 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1524 Installation directories:
1525 --prefix=PREFIX install architecture-independent files in PREFIX
1526 [$ac_default_prefix]
1527 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1530 By default, \`make install' will install all the files in
1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533 for instance \`--prefix=\$HOME'.
1535 For better control, use the options below.
1537 Fine tuning of the installation directories:
1538 --bindir=DIR user executables [EPREFIX/bin]
1539 --sbindir=DIR system admin executables [EPREFIX/sbin]
1540 --libexecdir=DIR program executables [EPREFIX/libexec]
1541 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1542 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1543 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1562 --x-includes=DIR X include files are
in DIR
1563 --x-libraries=DIR X library files are
in DIR
1566 --build=BUILD configure
for building on BUILD
[guessed
]
1567 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1571 if test -n "$ac_init_help"; then
1576 --disable-option-checking ignore unrecognized
--enable/--with options
1577 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1578 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1579 --enable-build-type=TYPE
1580 Select the build
type. Available types are
:
1581 personal
, nightly
, snapshot
, milestone
, release. Do
1582 NOT use this option unless you know what you are
1583 doing
! (default
=personal
)
1584 --enable-debug=list Enable different types of debug. Commas or
1585 whitespaces can be used to separate the items
in the
1586 list. Available types of debug are
: all
, none
,
1587 messages
, stack
, mungwall
, modules
, symbols. If no
1588 list is provided
then "all" is assumed.
1590 --enable-distcc Use distcc as a front end to the compiler
1592 --enable-ccache Use ccache as a front end to the compiler
1594 --enable-target-variant=NAME
1595 Enable a specific target variant
(default
=none
)
1596 --enable-amigaos-compliance=VERSION
1597 Enforce userspace AmigaOS compliance to a specific
1598 KickStart version
(default
=none
).
1599 --disable-crosstools Do not build cross-compiler toolchain
1600 --enable-objc Enable Objectve-C support
(default
=no
)
1601 --enable-java Enable Java support
(default
=no
)
1602 --enable-includes=dir Alternative system include directory
1603 --enable-palm-debug-hack
1604 Enable palm debug output hack
in palm native
1606 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1607 --enable-nesting-supervisor
1608 Enable nesting supervisor support
in unix
1610 --disable-mmu Disable MMU support
(default
=enabled
)
1611 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1612 --enable-x11-shm use X11 shared memory
(default
=auto
)
1613 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1614 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1615 --disable-sdltest Do not try to compile and run a
test SDL program
1616 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1619 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1620 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1621 --with-c-compiler=VERSION
1622 Use specified c compiler
for building AROS
1623 --with-cxx-compiler=VERSION
1624 Use specified c
++ compiler building AROS
1625 --with-toolchain=family Which toolchain family to crosscompile with
1627 --with-kernel-gcc-version=VERSION
1628 Use gcc-VERSION
for building bootstrap
1629 --with-optimization=FLAGS
1630 Use optimization flags FLAGS
(default
=-O2).
1631 --with-paranoia=FLAGS compiler warning flags to
enable for paranoia
1632 --with-xcode=PATH Specify XCode path
for iOS targets
1633 (default
=/Developer
).
1634 --with-sdk-version=VERSION
1635 Use iOS SDK version VERSION
(default
=4.1).
1636 --with-sdk=PATH Specify Android SDK path
1637 (default
=$default_android_sdk).
1638 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1639 --with-sdk-version=LEVEL
1640 Use Android SDK
for API LEVEL
(default
=12).
1641 --with-ndk-version=LEVEL
1642 Use Android NDK
for API LEVEL
(default
=9).
1643 --with-apk-version=(release|debug
)
1644 Which version of AROSBootstrap.apk to compile.
1645 Release version needs key
for signing
, debug version
1646 will only run
in emulator.
(default
=release
)
1647 --with-kernel-toolchain-prefix=...
1648 Specify crosscompile toolchain prefix
for kernel
1650 --with-elf-toolchain-prefix=...
1651 Specify crosscompile toolchain prefix to wrap
for
1653 --with-aros-toolchain=PREFIX
1654 Specify prebuilt AROS toolchain. Use
yes for default
1656 --with-aros-toolchain-install=DIR
1657 Where to
install or search
for cross tools binaries
1658 --with-binutils-version=VERSION
1659 Use binutils-VERSION
for building AROS
1660 --with-gcc-version=VERSION
1661 Compile gcc-VERSION
for AROS
1662 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1663 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1664 --with-float=<spec
> Specify floating point ABI
1665 (default
=$gcc_default_float_abi).
1666 --with-portssources=DIR Where to download sourcecode
for external ports
1667 --with-bootloader=NAME Use a specific bootloader
1668 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1669 --with-theme=NAME Use a specific GUI Theme
1670 --with-resolution=XRESxYRESxDEPTH
1671 Default resolution of the initial WorkbenchScreen
1672 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1673 --with-x use the X Window System
1674 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1675 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1677 Some influential environment variables
:
1678 CXX C
++ compiler
command
1679 CXXFLAGS C
++ compiler flags
1680 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1681 nonstandard directory
<lib dir
>
1682 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1683 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1684 you have headers
in a nonstandard directory
<include dir
>
1685 CC C compiler
command
1686 CFLAGS C compiler flags
1688 PYTHON the Python interpreter
1689 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1691 Use these variables to override the choices made by
`configure' or to help
1692 it to find libraries and programs with nonstandard names/locations.
1694 Report bugs to the package provider.
1699 if test "$ac_init_help" = "recursive"; then
1700 # If there are subdirs, report their specific --help.
1701 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1702 test -d "$ac_dir" ||
1703 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1711 # A ".." for each directory in $ac_dir_suffix.
1712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1713 case $ac_top_builddir_sub in
1714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718 ac_abs_top_builddir=$ac_pwd
1719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720 # for backward compatibility:
1721 ac_top_builddir=$ac_top_build_prefix
1724 .) # We are building in place.
1726 ac_top_srcdir=$ac_top_builddir_sub
1727 ac_abs_top_srcdir=$ac_pwd ;;
1728 [\\/]* | ?:[\\/]* ) # Absolute name.
1729 ac_srcdir=$srcdir$ac_dir_suffix;
1730 ac_top_srcdir=$srcdir
1731 ac_abs_top_srcdir=$srcdir ;;
1733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734 ac_top_srcdir=$ac_top_build_prefix$srcdir
1735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1739 cd "$ac_dir" || { ac_status=$?; continue; }
1740 # Check for guested configure.
1741 if test -f "$ac_srcdir/configure.gnu"; then
1743 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744 elif test -f "$ac_srcdir/configure"; then
1746 $SHELL "$ac_srcdir/configure" --help=recursive
1748 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1750 cd "$ac_pwd" || { ac_status=$?; break; }
1754 test -n "$ac_init_help" && exit $ac_status
1755 if $ac_init_version; then
1758 generated by GNU Autoconf 2.69
1760 Copyright (C) 2012 Free Software Foundation, Inc.
1761 This configure script is free software; the Free Software Foundation
1762 gives unlimited permission to copy, distribute and modify it.
1767 ## ------------------------ ##
1768 ## Autoconf initialization. ##
1769 ## ------------------------ ##
1771 # ac_fn_cxx_try_compile LINENO
1772 # ----------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_cxx_try_compile ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext
1778 if { { ac_try="$ac_compile"
1780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1781 *) ac_try_echo
=$ac_try;;
1783 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1787 if test -s conftest.err
; then
1788 grep -v '^ *+' conftest.err
>conftest.er1
1789 cat conftest.er1
>&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_cxx_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.
$ac_objext; then :
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.
$ac_ext >&5
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status
$ac_retval
1807 } # ac_fn_cxx_try_compile
1809 # ac_fn_c_try_compile LINENO
1810 # --------------------------
1811 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_compile
()
1814 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1815 rm -f conftest.
$ac_objext
1816 if { { ac_try
="$ac_compile"
1818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.$ac_objext; then :
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1845 } # ac_fn_c_try_compile
1847 # ac_fn_c_try_cpp LINENO
1848 # ----------------------
1849 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { { ac_try="$ac_cpp conftest.$ac_ext"
1855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1856 *) ac_try_echo
=$ac_try;;
1858 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1862 if test -s conftest.err
; then
1863 grep -v '^ *+' conftest.err
>conftest.er1
1864 cat conftest.er1
>&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } > conftest.i
&& {
1869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.
$ac_ext >&5
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status
$ac_retval
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1889 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1890 rm -f conftest.
$ac_objext conftest
$ac_exeext
1891 if { { ac_try
="$ac_link"
1893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest$ac_exeext
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_c_try_link
1930 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1933 # the include files in INCLUDES and setting the cache variable VAR
1935 ac_fn_c_check_header_mongrel ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if eval \${$3+:} false; then :
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1948 # Is the header compilable?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1950 $as_echo_n "checking $2 usability... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 ac_header_compiler=yes
1959 ac_header_compiler=no
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1963 $as_echo "$ac_header_compiler" >&6; }
1965 # Is the header present?
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1967 $as_echo_n "checking $2 presence... " >&6; }
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1972 if ac_fn_c_try_cpp "$LINENO"; then :
1973 ac_header_preproc=yes
1975 ac_header_preproc=no
1977 rm -f conftest.err conftest.i conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1979 $as_echo "$ac_header_preproc" >&6; }
1981 # So? What about this header?
1982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1985 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1991 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1993 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1995 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1997 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2007 eval "$3=\$ac_header_compiler"
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 } # ac_fn_c_check_header_mongrel
2017 # ac_fn_c_try_run LINENO
2018 # ----------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2020 # that executables *can* be run.
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 if { { ac_try="$ac_link"
2026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2027 *) ac_try_echo
=$ac_try;;
2029 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>&5
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2035 { { case "(($ac_try" in
2036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2037 *) ac_try_echo=$ac_try;;
2039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_try") 2>&5
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; }; }; then :
2047 $as_echo "$as_me: program exited with status $ac_status" >&5
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2051 ac_retval=$ac_status
2053 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 as_fn_set_status $ac_retval
2059 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2060 # -------------------------------------------------------
2061 # Tests whether HEADER exists and can be compiled using the include files in
2062 # INCLUDES, setting the cache variable VAR accordingly.
2063 ac_fn_c_check_header_compile ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2076 if ac_fn_c_try_compile "$LINENO"; then :
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088 } # ac_fn_c_check_header_compile
2090 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2091 # ----------------------------------------------------
2092 # Tries to find if the field MEMBER exists in type AGGR, after including
2093 # INCLUDES, setting cache variable VAR accordingly.
2094 ac_fn_c_check_member ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2098 $as_echo_n "checking for $2.$3... " >&6; }
2099 if eval \${$4+:} false; then :
2100 $as_echo_n "(cached) " >&6
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2115 if ac_fn_c_try_compile "$LINENO"; then :
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2125 if (sizeof ac_aggr.$3)
2131 if ac_fn_c_try_compile "$LINENO"; then :
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 } # ac_fn_c_check_member
2147 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2148 # ---------------------------------------------
2149 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2151 ac_fn_c_check_decl ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2155 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2157 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2158 if eval \${$3+:} false; then :
2159 $as_echo_n "(cached) " >&6
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2167 #ifndef $as_decl_name
2169 (void) $as_decl_use;
2171 (void) $as_decl_name;
2179 if ac_fn_c_try_compile "$LINENO"; then :
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_decl
2193 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2194 # -------------------------------------------
2195 # Tests whether TYPE exists after having included INCLUDES, setting cache
2196 # variable VAR accordingly.
2197 ac_fn_c_check_type ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201 $as_echo_n "checking for $2... " >&6; }
2202 if eval \${$3+:} false; then :
2203 $as_echo_n "(cached) " >&6
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2231 if ac_fn_c_try_compile "$LINENO"; then :
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_c_check_type
2247 # ac_fn_c_check_func LINENO FUNC VAR
2248 # ----------------------------------
2249 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2250 ac_fn_c_check_func ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if eval \${$3+:} false; then :
2256 $as_echo_n "(cached) " >&6
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2260 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2262 #define $2 innocuous_$2
2264 /* System header to define __stub macros and hopefully few prototypes,
2265 which can conflict with char $2 (); below.
2266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2267 <limits.h> exists even on freestanding compilers. */
2270 # include <limits.h>
2272 # include <assert.h>
2277 /* Override any GCC internal prototype to avoid an error.
2278 Use char because int might match the return type of a GCC
2279 builtin and then its argument prototype would still apply. */
2284 /* The GNU C library defines this for functions which it implements
2285 to always fail with ENOSYS. Some functions are actually named
2286 something starting with __ and the normal name is an alias. */
2287 #if defined __stub_$2 || defined __stub___$2
2299 if ac_fn_c_try_link "$LINENO"; then :
2304 rm -f core conftest.err conftest.$ac_objext \
2305 conftest$ac_exeext conftest.$ac_ext
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 } # ac_fn_c_check_func
2313 cat >config.log <<_ACEOF
2314 This file contains any messages produced by compilers while
2315 running configure, to aid debugging if configure makes a mistake.
2317 It was created by $as_me, which was
2318 generated by GNU Autoconf 2.69. Invocation command line was
2330 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2331 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2332 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2333 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2334 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2336 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2337 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2339 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2340 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2341 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2342 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2343 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2344 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2345 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 $as_echo "PATH: $as_dir"
2370 # Keep a trace of the command line.
2371 # Strip out --no-create and --no-recursion so they do not pile up.
2372 # Strip out --silent because we don't want to record it for future runs.
2373 # Also quote any args containing shell meta-characters.
2374 # Make two passes to allow for proper duplicate-argument suppression.
2378 ac_must_keep_next=false
2384 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2386 | -silent | --silent | --silen | --sile | --sil)
2389 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2392 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2394 as_fn_append ac_configure_args1 " '$ac_arg'"
2395 if test $ac_must_keep_next = true; then
2396 ac_must_keep_next=false # Got value, back to normal.
2399 *=* | --config-cache | -C | -disable-* | --disable-* \
2400 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2401 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2402 | -with-* | --with-* | -without-* | --without-* | --x)
2403 case "$ac_configure_args0 " in
2404 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2407 -* ) ac_must_keep_next=true ;;
2410 as_fn_append ac_configure_args " '$ac_arg'"
2415 { ac_configure_args0=; unset ac_configure_args0;}
2416 { ac_configure_args1=; unset ac_configure_args1;}
2418 # When interrupted or exit'd, cleanup temporary files, and complete
2419 # config.log. We remove comments because anyway the quotes in there
2420 # would cause problems or look ugly.
2421 # WARNING: Use '\'' to represent an apostrophe within the trap.
2422 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2423 trap 'exit_status=$?
2424 # Save into config.log some information that might help in debugging.
2428 $as_echo "## ---------------- ##
2429 ## Cache variables. ##
2430 ## ---------------- ##"
2432 # The following way of writing the cache mishandles newlines in values,
2434 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2435 eval ac_val=\$$ac_var
2439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2443 _ | IFS | as_nl) ;; #(
2444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445 *) { eval $ac_var=; unset $ac_var;} ;;
2450 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2451 *${as_nl}ac_space=\ *)
2453 "s/'\''/'\''\\\\'\'''\''/g;
2454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2464 $as_echo "## ----------------- ##
2465 ## Output variables. ##
2466 ## ----------------- ##"
2468 for ac_var in $ac_subst_vars
2470 eval ac_val=\$$ac_var
2472 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2474 $as_echo "$ac_var='\''$ac_val'\''"
2478 if test -n "$ac_subst_files"; then
2479 $as_echo "## ------------------- ##
2480 ## File substitutions. ##
2481 ## ------------------- ##"
2483 for ac_var in $ac_subst_files
2485 eval ac_val=\$$ac_var
2487 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489 $as_echo "$ac_var='\''$ac_val'\''"
2494 if test -s confdefs.h; then
2495 $as_echo "## ----------- ##
2502 test "$ac_signal" != 0 &&
2503 $as_echo "$as_me: caught signal $ac_signal"
2504 $as_echo "$as_me: exit $exit_status"
2506 rm -f core *.core core.conftest.* &&
2507 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2510 for ac_signal in 1 2 13 15; do
2511 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2516 rm -f -r conftest* confdefs.h
2518 $as_echo "/* confdefs.h */" > confdefs.h
2520 # Predefined preprocessor variables.
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_NAME "$PACKAGE_NAME"
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_STRING "$PACKAGE_STRING"
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_URL "$PACKAGE_URL"
2547 # Let the site file select an alternate cache file if it wants to.
2548 # Prefer an explicitly selected file to automatically selected ones.
2551 if test -n "$CONFIG_SITE"; then
2552 # We do not want a PATH search for config.site.
2553 case $CONFIG_SITE in #((
2554 -*) ac_site_file1=./$CONFIG_SITE;;
2555 */*) ac_site_file1=$CONFIG_SITE;;
2556 *) ac_site_file1=./$CONFIG_SITE;;
2558 elif test "x$prefix" != xNONE; then
2559 ac_site_file1=$prefix/share/config.site
2560 ac_site_file2=$prefix/etc/config.site
2562 ac_site_file1=$ac_default_prefix/share/config.site
2563 ac_site_file2=$ac_default_prefix/etc/config.site
2565 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2567 test "x$ac_site_file" = xNONE && continue
2568 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2570 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2571 sed 's/^/| /' "$ac_site_file" >&5
2573 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575 as_fn_error $? "failed to load site
script $ac_site_file
2576 See \
`config.log' for more details" "$LINENO" 5; }
2580 if test -r "$cache_file"; then
2581 # Some versions of bash will fail to source /dev/null (special files
2582 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2583 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2585 $as_echo "$as_me: loading cache $cache_file" >&6;}
2587 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2588 *) . "./$cache_file";;
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2593 $as_echo "$as_me: creating cache $cache_file" >&6;}
2597 as_fn_append ac_header_list " stdlib.h"
2598 as_fn_append ac_header_list " unistd.h"
2599 as_fn_append ac_header_list " sys/param.h"
2600 # Check that the precious variables saved in the cache have kept the same
2602 ac_cache_corrupted=false
2603 for ac_var in $ac_precious_vars; do
2604 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2605 eval ac_new_set=\$ac_env_${ac_var}_set
2606 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2607 eval ac_new_val=\$ac_env_${ac_var}_value
2608 case $ac_old_set,$ac_new_set in
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2611 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2612 ac_cache_corrupted=: ;;
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2615 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2616 ac_cache_corrupted=: ;;
2619 if test "x$ac_old_val" != "x$ac_new_val"; then
2620 # differences in whitespace do not lead to failure.
2621 ac_old_val_w=`echo x
$ac_old_val`
2622 ac_new_val_w=`echo x
$ac_new_val`
2623 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2625 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2626 ac_cache_corrupted=:
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2629 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2630 eval $ac_var=\$ac_old_val
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2633 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2635 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2638 # Pass precious variables to config.status.
2639 if test "$ac_new_set" = set; then
2641 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2642 *) ac_arg=$ac_var=$ac_new_val ;;
2644 case " $ac_configure_args " in
2645 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2646 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2650 if $ac_cache_corrupted; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2654 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2655 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2657 ## -------------------- ##
2658 ## Main body of script. ##
2659 ## -------------------- ##
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2671 if test -f "$ac_dir/install-sh"; then
2673 ac_install_sh="$ac_aux_dir/install-sh -c"
2675 elif test -f "$ac_dir/install.sh"; then
2677 ac_install_sh="$ac_aux_dir/install.sh -c"
2679 elif test -f "$ac_dir/shtool"; then
2681 ac_install_sh="$ac_aux_dir/shtool install -c"
2685 if test -z "$ac_aux_dir"; then
2686 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2689 # These three variables are undocumented and unsupported,
2690 # and are intended to be withdrawn in a future Autoconf release.
2691 # They can cause serious problems if a builder's source tree is in a directory
2692 # whose full name contains unusual characters.
2693 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2694 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2695 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2699 # Check what host we are running on.
2700 # If a target is not suggested, we use this one.
2701 # Note that what we call a target, Autoconf calls a host.
2702 # Make sure we can run config.sub.
2703 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2704 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2707 $as_echo_n "checking build system type... " >&6; }
2708 if ${ac_cv_build+:} false; then :
2709 $as_echo_n "(cached) " >&6
2711 ac_build_alias=$build_alias
2712 test "x$ac_build_alias" = x &&
2713 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2714 test "x$ac_build_alias" = x &&
2715 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2716 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2717 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2721 $as_echo "$ac_cv_build" >&6; }
2722 case $ac_cv_build in
2724 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2727 ac_save_IFS=$IFS; IFS='-'
2733 # Remember, the first character of IFS is used to create $*,
2734 # except with old shells:
2737 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2741 $as_echo_n "checking host system type... " >&6; }
2742 if ${ac_cv_host+:} false; then :
2743 $as_echo_n "(cached) " >&6
2745 if test "x$host_alias" = x; then
2746 ac_cv_host=$ac_cv_build
2748 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2749 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2754 $as_echo "$ac_cv_host" >&6; }
2757 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2760 ac_save_IFS=$IFS; IFS='-'
2766 # Remember, the first character of IFS is used to create $*,
2767 # except with old shells:
2770 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2774 # Default versions for the gnu tools we build
2775 default_gcc_version="4.6.4"
2776 default_binutils_version="2.23.2"
2778 # The AROS target is slightly different to the normal GNU style
2779 # format. We don't have the middle part, and we reverse the order
2780 # of the $(CPU) and $(OS) bits.
2782 # Don't strip the version of the target yet, it might be
2783 # useful on some systems.
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2786 $as_echo_n "checking for AROS style target... " >&6; }
2788 if test "$target" = "NONE" ; then
2789 target=$host_os-$host_cpu
2791 if test "$target" = "" ; then
2792 target=$host_os-$host_cpu
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2796 $as_echo "$target" >&6; }
2798 if test "$host_os" = "mingw32" ; then
2802 # Don't know where else to put this...
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2804 $as_echo_n "checking building AROS in... " >&6; }
2805 AROS_BUILDDIR=`${PWDCMD-pwd}`
2806 AROS_BUILDDIR_UNIX=${PWD}
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2808 $as_echo "$AROS_BUILDDIR" >&6; }
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2811 $as_echo_n "checking AROS source in... " >&6; }
2812 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2815 $as_echo "$SRCDIR" >&6; }
2817 # Parse the target field into something useful.
2819 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2820 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2823 # Some debug output, to be removed again.
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2825 $as_echo_n "checking for target system (debug output)... " >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2827 $as_echo "$target_os" >&6; }
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2829 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2831 $as_echo "$target_cpu" >&6; }
2833 aros_nominal_width=800
2834 aros_nominal_height=600
2835 aros_nominal_depth=4
2838 default_c_compilers="gcc clang cc"
2840 # Check whether --with-c-compiler was given.
2841 if test "${with_c_compiler+set}" = set; then :
2842 withval=$with_c_compiler; use_c_compiler="$withval"
2847 if test "$use_c_compiler" = ""; then
2848 host_c_compilers="$default_c_compilers"
2850 host_c_compilers="$use_c_compiler"
2853 default_cxx_compilers="g++ clang++ c++"
2855 # Check whether --with-cxx-compiler was given.
2856 if test "${with_cxx_compiler+set}" = set; then :
2857 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2862 if test "$use_cxx_compiler" = ""; then
2863 host_cxx_compilers="$default_cxx_compilers"
2865 host_cxx_compilers="$use_cxx_compiler"
2869 # The first step is to find the host binaries.
2870 # Check for a compiler.
2871 # Due to a bug in autoconf check for c++ compiler first.
2872 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2874 ac_cpp='$CXXCPP $CPPFLAGS'
2875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2878 if test -z "$CXX"; then
2879 if test -n "$CCC"; then
2882 if test -n "$ac_tool_prefix"; then
2883 for ac_prog in ${host_cxx_compilers}
2885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_CXX+:} false; then :
2890 $as_echo_n "(cached) " >&6
2892 if test -n "$CXX"; then
2893 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 if test -n "$CXX"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2915 $as_echo "$CXX" >&6; }
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2922 test -n "$CXX" && break
2925 if test -z "$CXX"; then
2927 for ac_prog in ${host_cxx_compilers}
2929 # Extract the first word of "$ac_prog", so it can be a program name with args.
2930 set dummy $ac_prog; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2934 $as_echo_n "(cached) " >&6
2936 if test -n "$ac_ct_CXX"; then
2937 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_ac_ct_CXX="$ac_prog"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2957 if test -n "$ac_ct_CXX"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2959 $as_echo "$ac_ct_CXX" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2966 test -n "$ac_ct_CXX" && break
2969 if test "x$ac_ct_CXX" = x; then
2972 case $cross_compiling:$ac_tool_warned in
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2984 # Provide some information about the compiler.
2985 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2988 for ac_option in --version -v -V -qversion; do
2989 { { ac_try="$ac_compiler $ac_option >&5"
2991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2992 *) ac_try_echo
=$ac_try;;
2994 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995 $as_echo "$ac_try_echo"; } >&5
2996 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2998 if test -s conftest.err
; then
3000 ... rest of stderr output deleted ...
3001 10q' conftest.err
>conftest.er1
3002 cat conftest.er1
>&5
3004 rm -f conftest.er1 conftest.err
3005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006 test $ac_status = 0; }
3009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3020 ac_clean_files_save
=$ac_clean_files
3021 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3022 # Try to create an executable without -o first, disregard a.out.
3023 # It will help us diagnose broken compilers, and finding out an intuition
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3026 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3027 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3029 # The possible output files:
3030 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3033 for ac_file
in $ac_files
3036 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3037 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3042 if { { ac_try
="$ac_link_default"
3044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 $as_echo "$ac_try_echo"; } >&5
3049 (eval "$ac_link_default") 2>&5
3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }; then :
3053 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3054 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3055 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3056 # so that the user can short-circuit this test for compilers unknown to
3058 for ac_file in $ac_files ''
3060 test -f "$ac_file" || continue
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3065 # We found the default executable, but exeext='' is most
3069 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3071 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 # We set ac_cv_exeext here because the later test for it is not
3074 # safe: cross compilers may not add the suffix if given an `-o'
3075 # argument, so we may need to know it at that point already.
3076 # Even if this section looks crufty: it has the advantage of
3083 test "$ac_cv_exeext" = no && ac_cv_exeext=
3088 if test -z "$ac_file"; then :
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 $as_echo "$as_me: failed program was:" >&5
3092 sed 's
/^
/|
/' conftest.$ac_ext >&5
3094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3096 as_fn_error 77 "C++ compiler cannot create executables
3097 See \`config.log
' for more details" "$LINENO" 5; }
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3100 $as_echo "yes" >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3103 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3105 $as_echo "$ac_file" >&6; }
3106 ac_exeext=$ac_cv_exeext
3108 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3109 ac_clean_files=$ac_clean_files_save
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3111 $as_echo_n "checking for suffix of executables... " >&6; }
3112 if { { ac_try="$ac_link"
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_link") 2>&5
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }; then :
3123 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3124 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3125 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3127 for ac_file
in conftest.exe conftest conftest.
*; do
3128 test -f "$ac_file" ||
continue
3130 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3131 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3140 See \`config.log' for more details" "$LINENO" 5; }
3142 rm -f conftest conftest
$ac_cv_exeext
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3144 $as_echo "$ac_cv_exeext" >&6; }
3146 rm -f conftest.
$ac_ext
3147 EXEEXT
=$ac_cv_exeext
3149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3155 FILE *f = fopen ("conftest.out", "w");
3156 return ferror (f) || fclose (f) != 0;
3162 ac_clean_files
="$ac_clean_files conftest.out"
3163 # Check that the compiler produces executables we can run. If not, either
3164 # the compiler is broken, or we cross compile.
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3166 $as_echo_n "checking whether we are cross compiling... " >&6; }
3167 if test "$cross_compiling" != yes; then
3168 { { ac_try
="$ac_link"
3170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174 $as_echo "$ac_try_echo"; } >&5
3175 (eval "$ac_link") 2>&5
3177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178 test $ac_status = 0; }
3179 if { ac_try='./conftest$ac_cv_exeext'
3180 { { case "(($ac_try" in
3181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3182 *) ac_try_echo
=$ac_try;;
3184 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185 $as_echo "$ac_try_echo"; } >&5
3186 (eval "$ac_try") 2>&5
3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189 test $ac_status = 0; }; }; then
3192 if test "$cross_compiling" = maybe
; then
3195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error $?
"cannot run C++ compiled programs.
3198 If you meant to cross compile, use \`--host'.
3199 See \`config.log' for more details" "$LINENO" 5; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3204 $as_echo "$cross_compiling" >&6; }
3206 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3207 ac_clean_files
=$ac_clean_files_save
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3209 $as_echo_n "checking for suffix of object files... " >&6; }
3210 if ${ac_cv_objext+:} false
; then :
3211 $as_echo_n "(cached) " >&6
3213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3224 rm -f conftest.o conftest.obj
3225 if { { ac_try
="$ac_compile"
3227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_compile") 2>&5
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }; then :
3236 for ac_file in conftest.o conftest.obj conftest.*; do
3237 test -f "$ac_file" || continue;
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3240 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3251 See \
`config.log' for more details" "$LINENO" 5; }
3253 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3256 $as_echo "$ac_cv_objext" >&6; }
3257 OBJEXT=$ac_cv_objext
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3260 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3261 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3262 $as_echo_n "(cached) " >&6
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3278 if ac_fn_cxx_try_compile "$LINENO"; then :
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3288 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3289 if test $ac_compiler_gnu = yes; then
3294 ac_test_CXXFLAGS=${CXXFLAGS+set}
3295 ac_save_CXXFLAGS=$CXXFLAGS
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3297 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3298 if ${ac_cv_prog_cxx_g+:} false; then :
3299 $as_echo_n "(cached) " >&6
3301 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3302 ac_cxx_werror_flag=yes
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3316 if ac_fn_cxx_try_compile "$LINENO"; then :
3317 ac_cv_prog_cxx_g=yes
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3331 if ac_fn_cxx_try_compile "$LINENO"; then :
3334 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3347 if ac_fn_cxx_try_compile "$LINENO"; then :
3348 ac_cv_prog_cxx_g=yes
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3358 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3359 if test "$ac_test_CXXFLAGS" = set; then
3360 CXXFLAGS=$ac_save_CXXFLAGS
3361 elif test $ac_cv_prog_cxx_g = yes; then
3362 if test "$GXX" = yes; then
3368 if test "$GXX" = yes; then
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 if test -n "$ac_tool_prefix"; then
3386 for ac_prog in ${host_c_compilers}
3388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_CC+:} false; then :
3393 $as_echo_n "(cached) " >&6
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 if test -n "$CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3425 test -n "$CC" && break
3428 if test -z "$CC"; then
3430 for ac_prog in ${host_c_compilers}
3432 # Extract the first word of "$ac_prog", so it can be a program name with args.
3433 set dummy $ac_prog; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3437 $as_echo_n "(cached) " >&6
3439 if test -n "$ac_ct_CC"; then
3440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_prog_ac_ct_CC="$ac_prog"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3460 if test -n "$ac_ct_CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3462 $as_echo "$ac_ct_CC" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3469 test -n "$ac_ct_CC" && break
3472 if test "x$ac_ct_CC" = x; then
3475 case $cross_compiling:$ac_tool_warned in
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479 ac_tool_warned=yes ;;
3486 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3489 See \
`config.log' for more details" "$LINENO" 5; }
3491 # Provide some information about the compiler.
3492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3495 for ac_option in --version -v -V -qversion; do
3496 { { ac_try="$ac_compiler $ac_option >&5"
3498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3499 *) ac_try_echo
=$ac_try;;
3501 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3505 if test -s conftest.err
; then
3507 ... rest of stderr output deleted ...
3508 10q' conftest.err
>conftest.er1
3509 cat conftest.er1
>&5
3511 rm -f conftest.er1 conftest.err
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3517 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3518 if ${ac_cv_c_compiler_gnu+:} false
; then :
3519 $as_echo_n "(cached) " >&6
3521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3535 if ac_fn_c_try_compile
"$LINENO"; then :
3540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3541 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3545 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3546 if test $ac_compiler_gnu = yes; then
3551 ac_test_CFLAGS
=${CFLAGS+set}
3552 ac_save_CFLAGS
=$CFLAGS
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3554 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3555 if ${ac_cv_prog_cc_g+:} false
; then :
3556 $as_echo_n "(cached) " >&6
3558 ac_save_c_werror_flag
=$ac_c_werror_flag
3559 ac_c_werror_flag
=yes
3562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3573 if ac_fn_c_try_compile
"$LINENO"; then :
3577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3588 if ac_fn_c_try_compile
"$LINENO"; then :
3591 ac_c_werror_flag
=$ac_save_c_werror_flag
3593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3604 if ac_fn_c_try_compile
"$LINENO"; then :
3607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3612 ac_c_werror_flag
=$ac_save_c_werror_flag
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3615 $as_echo "$ac_cv_prog_cc_g" >&6; }
3616 if test "$ac_test_CFLAGS" = set; then
3617 CFLAGS
=$ac_save_CFLAGS
3618 elif test $ac_cv_prog_cc_g = yes; then
3619 if test "$GCC" = yes; then
3625 if test "$GCC" = yes; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3632 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3633 if ${ac_cv_prog_cc_c89+:} false
; then :
3634 $as_echo_n "(cached) " >&6
3636 ac_cv_prog_cc_c89
=no
3638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3643 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3644 struct buf { int x; };
3645 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3646 static char *e (p, i)
3652 static char *f (char * (*g) (char **, int), char **p, ...)
3657 s = g (p, va_arg (v,int));
3662 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3663 function prototypes and stuff, but not '\xHH' hex character constants.
3664 These don't provoke an error unfortunately, instead are silently treated
3665 as 'x'. The following induces an error, until -std is added to get
3666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3667 array size at least. It's necessary to write '\x00'==0 to get something
3668 that's true only with -std. */
3669 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3671 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3672 inside strings and character constants. */
3674 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3676 int test (int i, double x);
3677 struct s1 {int (*f) (int a);};
3678 struct s2 {int (*f) (double a);};
3679 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3685 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3690 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3691 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3693 CC
="$ac_save_CC $ac_arg"
3694 if ac_fn_c_try_compile
"$LINENO"; then :
3695 ac_cv_prog_cc_c89
=$ac_arg
3697 rm -f core conftest.err conftest.
$ac_objext
3698 test "x$ac_cv_prog_cc_c89" != "xno" && break
3700 rm -f conftest.
$ac_ext
3705 case "x$ac_cv_prog_cc_c89" in
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3708 $as_echo "none needed" >&6; } ;;
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3711 $as_echo "unsupported" >&6; } ;;
3713 CC
="$CC $ac_cv_prog_cc_c89"
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3715 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3717 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3722 ac_cpp
='$CPP $CPPFLAGS'
3723 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3727 aros_host_def_cc
="$CC"
3728 case $ac_cv_prog_cc_stdc in #(
3730 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3733 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3734 if ${ac_cv_prog_cc_c99+:} false
; then :
3735 $as_echo_n "(cached) " >&6
3737 ac_cv_prog_cc_c99
=no
3739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3742 #include <stdbool.h>
3747 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3748 #define debug(...) fprintf (stderr, __VA_ARGS__)
3749 #define showlist(...) puts (#__VA_ARGS__)
3750 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3752 test_varargs_macros (void)
3757 debug ("X = %d\n", x);
3758 showlist (The first, second, and third items.);
3759 report (x>y, "x is %d but y is %d", x, y);
3762 // Check long long types.
3763 #define BIG64 18446744073709551615ull
3764 #define BIG32 4294967295ul
3765 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3767 your preprocessor is broken;
3771 your preprocessor is broken;
3773 static long long int bignum = -9223372036854775807LL;
3774 static unsigned long long int ubignum = BIG64;
3776 struct incomplete_array
3784 const wchar_t *name;
3788 typedef const char *ccp;
3791 test_restrict (ccp restrict text)
3793 // See if C++-style comments work.
3794 // Iterate through items via the restricted pointer.
3795 // Also check for declarations in for loops.
3796 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3801 // Check varargs and va_copy.
3803 test_varargs (const char *format, ...)
3806 va_start (args, format);
3808 va_copy (args_copy, args);
3819 str = va_arg (args_copy, const char *);
3822 number = va_arg (args_copy, int);
3825 fnumber = va_arg (args_copy, double);
3840 _Bool success = false;
3843 if (test_restrict ("String literal") == 0)
3845 char *restrict newvar = "Another string";
3848 test_varargs ("s, d' f .", "string", 65, 34.234);
3849 test_varargs_macros ();
3851 // Check flexible array members.
3852 struct incomplete_array *ia =
3853 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3855 for (int i = 0; i < ia->datasize; ++i)
3856 ia->data[i] = i * 1.234;
3858 // Check named initializers.
3859 struct named_init ni = {
3861 .name = L"Test wide string",
3862 .average = 543.34343,
3867 int dynamic_array[ni.number];
3868 dynamic_array[ni.number - 1] = 543;
3870 // work around unused variable warnings
3871 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3872 || dynamic_array[ni.number - 1] != 543);
3878 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3880 CC
="$ac_save_CC $ac_arg"
3881 if ac_fn_c_try_compile
"$LINENO"; then :
3882 ac_cv_prog_cc_c99
=$ac_arg
3884 rm -f core conftest.err conftest.
$ac_objext
3885 test "x$ac_cv_prog_cc_c99" != "xno" && break
3887 rm -f conftest.
$ac_ext
3892 case "x$ac_cv_prog_cc_c99" in
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3895 $as_echo "none needed" >&6; } ;;
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3898 $as_echo "unsupported" >&6; } ;;
3900 CC
="$CC $ac_cv_prog_cc_c99"
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3902 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3904 if test "x$ac_cv_prog_cc_c99" != xno
; then :
3905 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3908 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3909 if ${ac_cv_prog_cc_c89+:} false
; then :
3910 $as_echo_n "(cached) " >&6
3912 ac_cv_prog_cc_c89
=no
3914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3919 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3920 struct buf { int x; };
3921 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3922 static char *e (p, i)
3928 static char *f (char * (*g) (char **, int), char **p, ...)
3933 s = g (p, va_arg (v,int));
3938 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3939 function prototypes and stuff, but not '\xHH' hex character constants.
3940 These don't provoke an error unfortunately, instead are silently treated
3941 as 'x'. The following induces an error, until -std is added to get
3942 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3943 array size at least. It's necessary to write '\x00'==0 to get something
3944 that's true only with -std. */
3945 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3947 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3948 inside strings and character constants. */
3950 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3952 int test (int i, double x);
3953 struct s1 {int (*f) (int a);};
3954 struct s2 {int (*f) (double a);};
3955 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3961 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3966 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3967 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3969 CC
="$ac_save_CC $ac_arg"
3970 if ac_fn_c_try_compile
"$LINENO"; then :
3971 ac_cv_prog_cc_c89
=$ac_arg
3973 rm -f core conftest.err conftest.
$ac_objext
3974 test "x$ac_cv_prog_cc_c89" != "xno" && break
3976 rm -f conftest.
$ac_ext
3981 case "x$ac_cv_prog_cc_c89" in
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3984 $as_echo "none needed" >&6; } ;;
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3987 $as_echo "unsupported" >&6; } ;;
3989 CC
="$CC $ac_cv_prog_cc_c89"
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3991 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3993 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3994 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
3996 ac_cv_prog_cc_stdc
=no
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4003 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4004 if ${ac_cv_prog_cc_stdc+:} false
; then :
4005 $as_echo_n "(cached) " >&6
4008 case $ac_cv_prog_cc_stdc in #(
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4011 $as_echo "unsupported" >&6; } ;; #(
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4014 $as_echo "none needed" >&6; } ;; #(
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4017 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4021 ac_cpp
='$CPP $CPPFLAGS'
4022 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4026 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4027 # On Suns, sometimes $CPP names a directory.
4028 if test -n "$CPP" && test -d "$CPP"; then
4031 if test -z "$CPP"; then
4032 if ${ac_cv_prog_CPP+:} false
; then :
4033 $as_echo_n "(cached) " >&6
4035 # Double quotes because CPP needs to be expanded
4036 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4039 for ac_c_preproc_warn_flag
in '' yes
4041 # Use a header file that comes with gcc, so configuring glibc
4042 # with a fresh cross-compiler works.
4043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4044 # <limits.h> exists even on freestanding compilers.
4045 # On the NeXT, cc -E runs the code through the compiler's parser,
4046 # not just through cpp. "Syntax error" is here to catch this case.
4047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4050 # include <limits.h>
4052 # include <assert.h>
4056 if ac_fn_c_try_cpp
"$LINENO"; then :
4059 # Broken: fails on valid input.
4062 rm -f conftest.err conftest.i conftest.
$ac_ext
4064 # OK, works on sane cases. Now check whether nonexistent headers
4065 # can be detected and how.
4066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4068 #include <ac_nonexistent.h>
4070 if ac_fn_c_try_cpp
"$LINENO"; then :
4071 # Broken: success on invalid input.
4074 # Passes both tests.
4078 rm -f conftest.err conftest.i conftest.
$ac_ext
4081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4082 rm -f conftest.i conftest.err conftest.
$ac_ext
4083 if $ac_preproc_ok; then :
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4096 $as_echo "$CPP" >&6; }
4098 for ac_c_preproc_warn_flag
in '' yes
4100 # Use a header file that comes with gcc, so configuring glibc
4101 # with a fresh cross-compiler works.
4102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4103 # <limits.h> exists even on freestanding compilers.
4104 # On the NeXT, cc -E runs the code through the compiler's parser,
4105 # not just through cpp. "Syntax error" is here to catch this case.
4106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4109 # include <limits.h>
4111 # include <assert.h>
4115 if ac_fn_c_try_cpp
"$LINENO"; then :
4118 # Broken: fails on valid input.
4121 rm -f conftest.err conftest.i conftest.
$ac_ext
4123 # OK, works on sane cases. Now check whether nonexistent headers
4124 # can be detected and how.
4125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 #include <ac_nonexistent.h>
4129 if ac_fn_c_try_cpp
"$LINENO"; then :
4130 # Broken: success on invalid input.
4133 # Passes both tests.
4137 rm -f conftest.err conftest.i conftest.
$ac_ext
4140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4141 rm -f conftest.i conftest.err conftest.
$ac_ext
4142 if $ac_preproc_ok; then :
4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4148 See \`config.log' for more details" "$LINENO" 5; }
4152 ac_cpp
='$CPP $CPPFLAGS'
4153 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4158 # Check for a compatible awk
4159 for ac_prog
in gawk nawk
4161 # Extract the first word of "$ac_prog", so it can be a program name with args.
4162 set dummy
$ac_prog; ac_word
=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_prog_AWK+:} false
; then :
4166 $as_echo_n "(cached) " >&6
4168 if test -n "$AWK"; then
4169 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4175 test -z "$as_dir" && as_dir
=.
4176 for ac_exec_ext
in '' $ac_executable_extensions; do
4177 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_AWK
="$ac_prog"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 if test -n "$AWK"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4191 $as_echo "$AWK" >&6; }
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4198 test -n "$AWK" && break
4202 if test "$AWK" = ""; then
4205 if test "$AWK" = "no"; then
4208 if test "$req_avail" = "no"; then
4209 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4211 # Extract the first word of "mmake", so it can be a program name with args.
4212 set dummy mmake
; ac_word
=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_MMAKE+:} false
; then :
4216 $as_echo_n "(cached) " >&6
4218 if test -n "$MMAKE"; then
4219 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4225 test -z "$as_dir" && as_dir
=.
4226 for ac_exec_ext
in '' $ac_executable_extensions; do
4227 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4228 ac_cv_prog_MMAKE
="mmake "
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 MMAKE
=$ac_cv_prog_MMAKE
4239 if test -n "$MMAKE"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4241 $as_echo "$MMAKE" >&6; }
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4249 # Perform some default variable assignments. Note all of these will be
4250 # Regenerated from the script, so there is no need to cache them.
4252 aros_build_host
=$host
4253 aros_host_cpp
="$CPP"
4255 aros_host_cxx
="$CXX"
4256 if test "$GCC" = "yes"; then
4257 aros_gcc_ld
=`$CC -print-prog-name=ld`
4258 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4259 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_path_aros_host_ld+:} false
; then :
4263 $as_echo_n "(cached) " >&6
4265 case $aros_host_ld in
4267 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4271 for as_dir
in `dirname $aros_gcc_ld`
4274 test -z "$as_dir" && as_dir
=.
4275 for ac_exec_ext
in '' $ac_executable_extensions; do
4276 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 aros_host_ld
=$ac_cv_path_aros_host_ld
4289 if test -n "$aros_host_ld"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4291 $as_echo "$aros_host_ld" >&6; }
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4299 if test "$aros_host_ld" = ""; then
4300 # Extract the first word of "ld", so it can be a program name with args.
4301 set dummy ld
; ac_word
=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if ${ac_cv_path_aros_host_ld+:} false
; then :
4305 $as_echo_n "(cached) " >&6
4307 case $aros_host_ld in
4309 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4316 test -z "$as_dir" && as_dir
=.
4317 for ac_exec_ext
in '' $ac_executable_extensions; do
4318 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4319 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 aros_host_ld
=$ac_cv_path_aros_host_ld
4331 if test -n "$aros_host_ld"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4333 $as_echo "$aros_host_ld" >&6; }
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4342 if test "$aros_host_ld" = ""; then
4345 if test "$aros_host_ld" = "no"; then
4348 if test "$req_avail" = "no"; then
4349 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4351 aros_host_make
="make"
4352 aros_host_cflags
="$CFLAGS"
4353 aros_host_cxxflags
="$CXXFLAGS"
4354 aros_host_ldflags
="$LDFLAGS"
4355 aros_host_debug
="-g -O0"
4356 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4357 aros_host_mkargs
="--no-print-directory"
4358 aros_host_exe_suffix
="$EXEEXT"
4359 aros_host_lib_suffix
=""
4361 # Ignore all compliance, AROS ROMs = 0
4362 # KickStart v1.0 = 30
4363 # KickStart v1.3 = 34
4364 # KickStart v2.0 = 37
4365 # KickStart v3.0 = 39
4366 # KickStart v3.1 = 40
4368 aros_amigaos_compliance
=0
4370 for ac_prog
in aclocal aclocal19 aclocal-1.9
4372 # Extract the first word of "$ac_prog", so it can be a program name with args.
4373 set dummy
$ac_prog; ac_word
=$2
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375 $as_echo_n "checking for $ac_word... " >&6; }
4376 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4377 $as_echo_n "(cached) " >&6
4379 if test -n "$aros_host_aclocal"; then
4380 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4386 test -z "$as_dir" && as_dir
=.
4387 for ac_exec_ext
in '' $ac_executable_extensions; do
4388 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4389 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4400 if test -n "$aros_host_aclocal"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4402 $as_echo "$aros_host_aclocal" >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4409 test -n "$aros_host_aclocal" && break
4412 for ac_prog
in autoconf autoconf259 autoconf253
4414 # Extract the first word of "$ac_prog", so it can be a program name with args.
4415 set dummy
$ac_prog; ac_word
=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4419 $as_echo_n "(cached) " >&6
4421 if test -n "$aros_host_autoconf"; then
4422 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir
=.
4429 for ac_exec_ext
in '' $ac_executable_extensions; do
4430 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4442 if test -n "$aros_host_autoconf"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4444 $as_echo "$aros_host_autoconf" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4451 test -n "$aros_host_autoconf" && break
4454 for ac_prog
in autoheader autoheader259 autoheader253
4456 # Extract the first word of "$ac_prog", so it can be a program name with args.
4457 set dummy
$ac_prog; ac_word
=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4461 $as_echo_n "(cached) " >&6
4463 if test -n "$aros_host_autoheader"; then
4464 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir
=.
4471 for ac_exec_ext
in '' $ac_executable_extensions; do
4472 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4484 if test -n "$aros_host_autoheader"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4486 $as_echo "$aros_host_autoheader" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4493 test -n "$aros_host_autoheader" && break
4496 for ac_prog
in automake automake19 automake-1.9
4498 # Extract the first word of "$ac_prog", so it can be a program name with args.
4499 set dummy
$ac_prog; ac_word
=$2
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501 $as_echo_n "checking for $ac_word... " >&6; }
4502 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4503 $as_echo_n "(cached) " >&6
4505 if test -n "$aros_host_automake"; then
4506 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4512 test -z "$as_dir" && as_dir
=.
4513 for ac_exec_ext
in '' $ac_executable_extensions; do
4514 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4515 ac_cv_prog_aros_host_automake
="$ac_prog"
4516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 aros_host_automake
=$ac_cv_prog_aros_host_automake
4526 if test -n "$aros_host_automake"; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4528 $as_echo "$aros_host_automake" >&6; }
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4535 test -n "$aros_host_automake" && break
4540 if test "$aros_host_aclocal" = ""; then
4543 if test "$aros_host_aclocal" = "no"; then
4546 if test "$req_avail" = "no"; then
4547 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4550 if test "$aros_host_automake" = ""; then
4553 if test "$aros_host_automake" = "no"; then
4556 if test "$req_avail" = "no"; then
4557 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4560 case "$aros_host_cc" in
4562 aros_host_cc_pipe
=""
4565 aros_host_cc_pipe
="-pipe"
4568 aros_host_cc_pipe
=""
4571 aros_host_cc_pipe
=""
4575 aros_kernel_cc_includes
=""
4576 aros_target_cc_includes
=""
4579 # ----------------------------------------------------------------------------------------
4580 # Host-specific defaults
4582 # This is the main host configuration section. It is where the host
4583 # can change the values of any variables it needs to change. We do
4584 # not look at anything that compiles to the target yet, we'll get
4589 aros_host_arch
="aros"
4590 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4593 aros_host_cpu
="i386"
4596 aros_host_cpu
="x86_64"
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4603 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4604 aros_host_cpu
="$host_cpu"
4610 aros_host_arch
="linux"
4611 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4612 android_build_os
="linux-x86"
4613 android_tool
="android"
4614 default_android_sdk
="/opt/android-sdk-linux_x86"
4617 aros_host_cpu
="i386"
4620 aros_host_cpu
="x86_64"
4623 aros_host_cpu
="m68k"
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4633 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4634 aros_host_cpu
="$host_cpu"
4640 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4641 aros_host_make
="gmake"
4642 aros_host_arch
="freebsd"
4643 aros_host_cpu
="i386"
4645 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4649 aros_object_format
="elf_i386"
4653 aros_object_format
="elf_i386_fbsd"
4660 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4661 aros_host_arch
="darwin"
4663 if [ -z ${SED+x} ]; then SED
="gsed"; fi
4664 android_build_os
="darwin-x86"
4665 android_tool
="android"
4666 default_android_sdk
="/android-sdk-mac_x86"
4669 aros_host_cpu
="i386"
4672 aros_host_cpu
="x86_64"
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4679 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4680 aros_host_cpu
="$host_cpu"
4684 aros_host_ldflags
="$aros_host_ldflags -liconv"
4689 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4690 aros_host_make
="gmake"
4691 aros_host_arch
="dragonfly"
4694 aros_host_cpu
="i386"
4697 aros_host_cpu
="x86_64"
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4701 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4702 aros_host_cpu
="$host_cpu"
4708 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4709 aros_host_make
="gmake"
4710 aros_host_arch
="netbsd"
4713 aros_host_cpu
="i386"
4716 aros_host_cpu
="m68k"
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4720 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4721 aros_host_cpu
="$host_cpu"
4724 aros_host_lib_suffix
=".0.0"
4728 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4729 aros_host_make
="gmake"
4730 aros_host_arch
="openbsd"
4733 aros_host_cpu
="i386"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4737 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4738 aros_host_cpu
="$host_cpu"
4744 aros_host_arch
="solaris"
4745 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4748 aros_host_cpu
="i386"
4751 aros_host_cpu
="sparc"
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4755 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4756 aros_host_cpu
="$host_cpu"
4762 aros_host_arch
="morphos"
4768 aros_host_arch
="amiga"
4774 TOUCH
="/gg/bin/touch"
4777 aros_host_cpu
="m68k"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4784 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4785 aros_host_cpu
="$host_cpu"
4791 aros_host_arch
="cygwin"
4792 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4794 android_build_os
="windows"
4795 android_tool
="android.bat"
4796 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4800 aros_host_cpu
="i386"
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4804 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4805 aros_host_cpu
="$host_cpu"
4811 aros_host_arch
="mingw32"
4812 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4814 android_build_os
="windows"
4815 android_tool
="android.bat"
4816 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4822 $as_echo_n "checking for Windows native gcc target... " >&6; }
4823 host_cpu
=`gcc -dumpmachine`
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4825 $as_echo "$host_cpu" >&6; }
4832 aros_host_cpu
="i386"
4836 aros_host_cpu
="i386"
4840 aros_host_cpu
="x86_64"
4841 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4846 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4847 aros_host_cpu
="$host_cpu"
4852 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4856 # Extract the first word of "ar", so it can be a program name with args.
4857 set dummy
ar; ac_word
=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if ${ac_cv_prog_aros_host_ar+:} false
; then :
4861 $as_echo_n "(cached) " >&6
4863 if test -n "$aros_host_ar"; then
4864 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir
=.
4871 for ac_exec_ext
in '' $ac_executable_extensions; do
4872 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_aros_host_ar
="ar cr"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 aros_host_ar
=$ac_cv_prog_aros_host_ar
4884 if test -n "$aros_host_ar"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4886 $as_echo "$aros_host_ar" >&6; }
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4894 if test "$aros_host_ar" = ""; then
4897 if test "$aros_host_ar" = "no"; then
4900 if test "$req_avail" = "no"; then
4901 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4903 # Extract the first word of "ranlib", so it can be a program name with args.
4904 set dummy ranlib
; ac_word
=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if ${ac_cv_prog_aros_host_ranlib+:} false
; then :
4908 $as_echo_n "(cached) " >&6
4910 if test -n "$aros_host_ranlib"; then
4911 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4917 test -z "$as_dir" && as_dir
=.
4918 for ac_exec_ext
in '' $ac_executable_extensions; do
4919 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4920 ac_cv_prog_aros_host_ranlib
="ranlib "
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4931 if test -n "$aros_host_ranlib"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4933 $as_echo "$aros_host_ranlib" >&6; }
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4941 if test "$aros_host_ranlib" = ""; then
4944 if test "$aros_host_ranlib" = "no"; then
4947 if test "$req_avail" = "no"; then
4948 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4950 # Extract the first word of "strip", so it can be a program name with args.
4951 set dummy strip
; ac_word
=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_aros_host_strip+:} false
; then :
4955 $as_echo_n "(cached) " >&6
4957 if test -n "$aros_host_strip"; then
4958 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
4960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4964 test -z "$as_dir" && as_dir
=.
4965 for ac_exec_ext
in '' $ac_executable_extensions; do
4966 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_aros_host_strip
="strip "
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 aros_host_strip
=$ac_cv_prog_aros_host_strip
4978 if test -n "$aros_host_strip"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4980 $as_echo "$aros_host_strip" >&6; }
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4988 if test "$aros_host_strip" = ""; then
4991 if test "$aros_host_strip" = "no"; then
4994 if test "$req_avail" = "no"; then
4995 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4998 # Extract the first word of "rm", so it can be a program name with args.
4999 set dummy
rm; ac_word
=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_prog_RM+:} false
; then :
5003 $as_echo_n "(cached) " >&6
5005 if test -n "$RM"; then
5006 ac_cv_prog_RM
="$RM" # Let the user override the test.
5008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5012 test -z "$as_dir" && as_dir
=.
5013 for ac_exec_ext
in '' $ac_executable_extensions; do
5014 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_RM
="rm -rf"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 if test -n "$RM"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5028 $as_echo "$RM" >&6; }
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5036 if test "$RM" = ""; then
5039 if test "$RM" = "no"; then
5042 if test "$req_avail" = "no"; then
5043 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5045 # Extract the first word of "cp", so it can be a program name with args.
5046 set dummy
cp; ac_word
=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if ${ac_cv_prog_CP+:} false
; then :
5050 $as_echo_n "(cached) " >&6
5052 if test -n "$CP"; then
5053 ac_cv_prog_CP
="$CP" # Let the user override the test.
5055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5059 test -z "$as_dir" && as_dir
=.
5060 for ac_exec_ext
in '' $ac_executable_extensions; do
5061 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 if test -n "$CP"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5075 $as_echo "$CP" >&6; }
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5083 if test "$CP" = ""; then
5086 if test "$CP" = "no"; then
5089 if test "$req_avail" = "no"; then
5090 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5092 # Extract the first word of "mv", so it can be a program name with args.
5093 set dummy
mv; ac_word
=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if ${ac_cv_prog_MV+:} false
; then :
5097 $as_echo_n "(cached) " >&6
5099 if test -n "$MV"; then
5100 ac_cv_prog_MV
="$MV" # Let the user override the test.
5102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5106 test -z "$as_dir" && as_dir
=.
5107 for ac_exec_ext
in '' $ac_executable_extensions; do
5108 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 if test -n "$MV"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5122 $as_echo "$MV" >&6; }
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5130 if test "$MV" = ""; then
5133 if test "$MV" = "no"; then
5136 if test "$req_avail" = "no"; then
5137 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5139 # Extract the first word of "echo", so it can be a program name with args.
5140 set dummy
echo; ac_word
=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_ECHO+:} false
; then :
5144 $as_echo_n "(cached) " >&6
5146 if test -n "$ECHO"; then
5147 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir
=.
5154 for ac_exec_ext
in '' $ac_executable_extensions; do
5155 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_prog_ECHO
="echo "
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 ECHO
=$ac_cv_prog_ECHO
5167 if test -n "$ECHO"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5169 $as_echo "$ECHO" >&6; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5177 if test "$ECHO" = ""; then
5180 if test "$ECHO" = "no"; then
5183 if test "$req_avail" = "no"; then
5184 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5186 # Extract the first word of "mkdir", so it can be a program name with args.
5187 set dummy mkdir
; ac_word
=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_MKDIR+:} false
; then :
5191 $as_echo_n "(cached) " >&6
5193 if test -n "$MKDIR"; then
5194 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir
=.
5201 for ac_exec_ext
in '' $ac_executable_extensions; do
5202 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_MKDIR
="mkdir -p"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 MKDIR
=$ac_cv_prog_MKDIR
5214 if test -n "$MKDIR"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5216 $as_echo "$MKDIR" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5224 if test "$MKDIR" = ""; then
5227 if test "$MKDIR" = "no"; then
5230 if test "$req_avail" = "no"; then
5231 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5233 # Extract the first word of "touch", so it can be a program name with args.
5234 set dummy
touch; ac_word
=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if ${ac_cv_prog_TOUCH+:} false
; then :
5238 $as_echo_n "(cached) " >&6
5240 if test -n "$TOUCH"; then
5241 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir
=.
5248 for ac_exec_ext
in '' $ac_executable_extensions; do
5249 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_prog_TOUCH
="touch "
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 TOUCH
=$ac_cv_prog_TOUCH
5261 if test -n "$TOUCH"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5263 $as_echo "$TOUCH" >&6; }
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5271 if test "$TOUCH" = ""; then
5274 if test "$TOUCH" = "no"; then
5277 if test "$req_avail" = "no"; then
5278 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5280 # Extract the first word of "sort", so it can be a program name with args.
5281 set dummy
sort; ac_word
=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if ${ac_cv_prog_SORT+:} false
; then :
5285 $as_echo_n "(cached) " >&6
5287 if test -n "$SORT"; then
5288 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5294 test -z "$as_dir" && as_dir
=.
5295 for ac_exec_ext
in '' $ac_executable_extensions; do
5296 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5297 ac_cv_prog_SORT
="sort "
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 SORT
=$ac_cv_prog_SORT
5308 if test -n "$SORT"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5310 $as_echo "$SORT" >&6; }
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5318 if test "$SORT" = ""; then
5321 if test "$SORT" = "no"; then
5324 if test "$req_avail" = "no"; then
5325 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5327 # Extract the first word of "uniq", so it can be a program name with args.
5328 set dummy
uniq; ac_word
=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_UNIQ+:} false
; then :
5332 $as_echo_n "(cached) " >&6
5334 if test -n "$UNIQ"; then
5335 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5341 test -z "$as_dir" && as_dir
=.
5342 for ac_exec_ext
in '' $ac_executable_extensions; do
5343 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_prog_UNIQ
="uniq "
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 UNIQ
=$ac_cv_prog_UNIQ
5355 if test -n "$UNIQ"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5357 $as_echo "$UNIQ" >&6; }
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5365 if test "$UNIQ" = ""; then
5368 if test "$UNIQ" = "no"; then
5371 if test "$req_avail" = "no"; then
5372 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5374 # Extract the first word of "true", so it can be a program name with args.
5375 set dummy true
; ac_word
=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_prog_NOP+:} false
; then :
5379 $as_echo_n "(cached) " >&6
5381 if test -n "$NOP"; then
5382 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5388 test -z "$as_dir" && as_dir
=.
5389 for ac_exec_ext
in '' $ac_executable_extensions; do
5390 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5391 ac_cv_prog_NOP
="true "
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 if test -n "$NOP"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5404 $as_echo "$NOP" >&6; }
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5412 if test "$NOP" = ""; then
5415 if test "$NOP" = "no"; then
5418 if test "$req_avail" = "no"; then
5419 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5421 # Extract the first word of "cat", so it can be a program name with args.
5422 set dummy
cat; ac_word
=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_CAT+:} false
; then :
5426 $as_echo_n "(cached) " >&6
5428 if test -n "$CAT"; then
5429 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5435 test -z "$as_dir" && as_dir
=.
5436 for ac_exec_ext
in '' $ac_executable_extensions; do
5437 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_CAT
="cat "
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 if test -n "$CAT"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5451 $as_echo "$CAT" >&6; }
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5459 if test "$CAT" = ""; then
5462 if test "$CAT" = "no"; then
5465 if test "$req_avail" = "no"; then
5466 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5468 # Extract the first word of "bison", so it can be a program name with args.
5469 set dummy bison
; ac_word
=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if ${ac_cv_prog_BISON+:} false
; then :
5473 $as_echo_n "(cached) " >&6
5475 if test -n "$BISON"; then
5476 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5482 test -z "$as_dir" && as_dir
=.
5483 for ac_exec_ext
in '' $ac_executable_extensions; do
5484 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_BISON
="bison "
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 BISON
=$ac_cv_prog_BISON
5496 if test -n "$BISON"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5498 $as_echo "$BISON" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5506 if test "$BISON" = ""; then
5509 if test "$BISON" = "no"; then
5512 if test "$req_avail" = "no"; then
5513 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5515 # Extract the first word of "flex", so it can be a program name with args.
5516 set dummy flex
; ac_word
=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_FLEX+:} false
; then :
5520 $as_echo_n "(cached) " >&6
5522 if test -n "$FLEX"; then
5523 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir
=.
5530 for ac_exec_ext
in '' $ac_executable_extensions; do
5531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_FLEX
="flex "
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 FLEX
=$ac_cv_prog_FLEX
5543 if test -n "$FLEX"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5545 $as_echo "$FLEX" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5553 if test "$FLEX" = ""; then
5556 if test "$FLEX" = "no"; then
5559 if test "$req_avail" = "no"; then
5560 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5562 # Extract the first word of "pngtopnm", so it can be a program name with args.
5563 set dummy pngtopnm
; ac_word
=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5567 $as_echo_n "(cached) " >&6
5569 if test -n "$PNGTOPNM"; then
5570 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir
=.
5577 for ac_exec_ext
in '' $ac_executable_extensions; do
5578 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5579 ac_cv_prog_PNGTOPNM
="pngtopnm "
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5590 if test -n "$PNGTOPNM"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5592 $as_echo "$PNGTOPNM" >&6; }
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5600 if test "$PNGTOPNM" = ""; then
5603 if test "$PNGTOPNM" = "no"; then
5606 if test "$req_avail" = "no"; then
5607 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5609 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5610 set dummy ppmtoilbm
; ac_word
=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5614 $as_echo_n "(cached) " >&6
5616 if test -n "$PPMTOILBM"; then
5617 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5623 test -z "$as_dir" && as_dir
=.
5624 for ac_exec_ext
in '' $ac_executable_extensions; do
5625 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5637 if test -n "$PPMTOILBM"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5639 $as_echo "$PPMTOILBM" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5647 if test "$PPMTOILBM" = ""; then
5650 if test "$PPMTOILBM" = "no"; then
5653 if test "$req_avail" = "no"; then
5654 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5656 # Extract the first word of "sed", so it can be a program name with args.
5657 set dummy
sed; ac_word
=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_SED+:} false
; then :
5661 $as_echo_n "(cached) " >&6
5663 if test -n "$SED"; then
5664 ac_cv_prog_SED
="$SED" # Let the user override the test.
5666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5670 test -z "$as_dir" && as_dir
=.
5671 for ac_exec_ext
in '' $ac_executable_extensions; do
5672 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_SED
="sed "
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 if test -n "$SED"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5686 $as_echo "$SED" >&6; }
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5694 if test "$SED" = ""; then
5697 if test "$SED" = "no"; then
5700 if test "$req_avail" = "no"; then
5701 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5703 # Extract the first word of "chmod", so it can be a program name with args.
5704 set dummy
chmod; ac_word
=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_prog_CHMOD+:} false
; then :
5708 $as_echo_n "(cached) " >&6
5710 if test -n "$CHMOD"; then
5711 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5717 test -z "$as_dir" && as_dir
=.
5718 for ac_exec_ext
in '' $ac_executable_extensions; do
5719 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5720 ac_cv_prog_CHMOD
="chmod "
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 CHMOD
=$ac_cv_prog_CHMOD
5731 if test -n "$CHMOD"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5733 $as_echo "$CHMOD" >&6; }
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5741 if test "$CHMOD" = ""; then
5744 if test "$CHMOD" = "no"; then
5747 if test "$req_avail" = "no"; then
5748 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5750 # Extract the first word of "patch", so it can be a program name with args.
5751 set dummy
patch; ac_word
=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_prog_PATCH+:} false
; then :
5755 $as_echo_n "(cached) " >&6
5757 if test -n "$PATCH"; then
5758 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5764 test -z "$as_dir" && as_dir
=.
5765 for ac_exec_ext
in '' $ac_executable_extensions; do
5766 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_PATCH
="patch "
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 PATCH
=$ac_cv_prog_PATCH
5778 if test -n "$PATCH"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5780 $as_echo "$PATCH" >&6; }
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5788 if test "$PATCH" = ""; then
5791 if test "$PATCH" = "no"; then
5794 if test "$req_avail" = "no"; then
5795 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5804 if test -n "$PYTHON"; then
5805 # If the user set $PYTHON, use it and don't search something else.
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5807 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5809 # split strings by '.' and convert to numeric. Append some zeros
5810 # because we need at least 4 digits for the hex conversion.
5811 # map returns an iterator in Python 3.0 and a list in 2.x
5812 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5814 # xrange is not present in Python 3.0 and range returns an iterator
5815 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5816 sys.exit(sys.hexversion < minverhex)"
5817 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5818 ($PYTHON -c "$prog") >&5 2>&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; then :
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5823 $as_echo "yes" >&6; }
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 as_fn_error $?
"Python interpreter is too old" "$LINENO" 5
5829 am_display_PYTHON
=$PYTHON
5831 # Otherwise, try each interpreter until we find one that satisfies
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5834 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5835 if ${am_cv_pathless_PYTHON+:} false
; then :
5836 $as_echo_n "(cached) " >&6
5839 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
5840 test "$am_cv_pathless_PYTHON" = none
&& break
5842 # split strings by '.' and convert to numeric. Append some zeros
5843 # because we need at least 4 digits for the hex conversion.
5844 # map returns an iterator in Python 3.0 and a list in 2.x
5845 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5847 # xrange is not present in Python 3.0 and range returns an iterator
5848 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5849 sys.exit(sys.hexversion < minverhex)"
5850 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5851 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; then :
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5860 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5861 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5862 if test "$am_cv_pathless_PYTHON" = none
; then
5865 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5866 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_path_PYTHON+:} false
; then :
5870 $as_echo_n "(cached) " >&6
5874 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5881 test -z "$as_dir" && as_dir
=.
5882 for ac_exec_ext
in '' $ac_executable_extensions; do
5883 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 PYTHON
=$ac_cv_path_PYTHON
5896 if test -n "$PYTHON"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5898 $as_echo "$PYTHON" >&6; }
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5906 am_display_PYTHON
=$am_cv_pathless_PYTHON
5910 if test "$PYTHON" = :; then
5911 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5916 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5917 if ${am_cv_python_version+:} false
; then :
5918 $as_echo_n "(cached) " >&6
5920 am_cv_python_version
=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5923 $as_echo "$am_cv_python_version" >&6; }
5924 PYTHON_VERSION
=$am_cv_python_version
5928 PYTHON_PREFIX
='${prefix}'
5930 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5935 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5936 if ${am_cv_python_platform+:} false
; then :
5937 $as_echo_n "(cached) " >&6
5939 am_cv_python_platform
=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5942 $as_echo "$am_cv_python_platform" >&6; }
5943 PYTHON_PLATFORM
=$am_cv_python_platform
5946 # Just factor out some code duplication.
5947 am_python_setup_sysconfig
="\
5949 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5950 # with python 3.x. See automake bug#10227.
5954 can_use_sysconfig = 0
5956 can_use_sysconfig = 1
5957 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5958 # <https://github.com/pypa/virtualenv/issues/118>
5960 from platform import python_implementation
5961 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5962 can_use_sysconfig = 0
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5968 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5969 if ${am_cv_python_pythondir+:} false
; then :
5970 $as_echo_n "(cached) " >&6
5972 if test "x$prefix" = xNONE
5974 am_py_prefix
=$ac_default_prefix
5976 am_py_prefix
=$prefix
5978 am_cv_python_pythondir
=`$PYTHON -c "
5979 $am_python_setup_sysconfig
5980 if can_use_sysconfig:
5981 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5983 from distutils import sysconfig
5984 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5985 sys.stdout.write(sitedir)"`
5986 case $am_cv_python_pythondir in
5988 am__strip_prefix
=`echo "$am_py_prefix" | sed 's|.|.|g'`
5989 am_cv_python_pythondir
=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5992 case $am_py_prefix in
5995 am_cv_python_pythondir
=$PYTHON_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6003 $as_echo "$am_cv_python_pythondir" >&6; }
6004 pythondir
=$am_cv_python_pythondir
6008 pkgpythondir
=\
${pythondir}/$PACKAGE
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6012 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6013 if ${am_cv_python_pyexecdir+:} false
; then :
6014 $as_echo_n "(cached) " >&6
6016 if test "x$exec_prefix" = xNONE
6018 am_py_exec_prefix
=$am_py_prefix
6020 am_py_exec_prefix
=$exec_prefix
6022 am_cv_python_pyexecdir
=`$PYTHON -c "
6023 $am_python_setup_sysconfig
6024 if can_use_sysconfig:
6025 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6027 from distutils import sysconfig
6028 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6029 sys.stdout.write(sitedir)"`
6030 case $am_cv_python_pyexecdir in
6031 $am_py_exec_prefix*)
6032 am__strip_prefix
=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6033 am_cv_python_pyexecdir
=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6036 case $am_py_exec_prefix in
6039 am_cv_python_pyexecdir
=$PYTHON_EXEC_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6047 $as_echo "$am_cv_python_pyexecdir" >&6; }
6048 pyexecdir
=$am_cv_python_pyexecdir
6052 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6062 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6063 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6064 $as_echo_n "(cached) " >&6
6066 ac_check_lib_save_LIBS
=$LIBS
6068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6071 /* Override any GCC internal prototype to avoid an error.
6072 Use char because int might match the return type of a GCC
6073 builtin and then its argument prototype would still apply. */
6077 char png_read_png ();
6081 return png_read_png ();
6086 if ac_fn_c_try_link
"$LINENO"; then :
6087 ac_cv_lib_png_png_read_png
=yes
6089 ac_cv_lib_png_png_read_png
=no
6091 rm -f core conftest.err conftest.
$ac_objext \
6092 conftest
$ac_exeext conftest.
$ac_ext
6093 LIBS
=$ac_check_lib_save_LIBS
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6096 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6097 if test "x$ac_cv_lib_png_png_read_png" = xyes
; then :
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng16" >&5
6101 $as_echo_n "checking for png_read_png in -lpng16... " >&6; }
6102 if ${ac_cv_lib_png16_png_read_png+:} false
; then :
6103 $as_echo_n "(cached) " >&6
6105 ac_check_lib_save_LIBS
=$LIBS
6106 LIBS
="-lpng16 $LIBS"
6107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6110 /* Override any GCC internal prototype to avoid an error.
6111 Use char because int might match the return type of a GCC
6112 builtin and then its argument prototype would still apply. */
6116 char png_read_png ();
6120 return png_read_png ();
6125 if ac_fn_c_try_link
"$LINENO"; then :
6126 ac_cv_lib_png16_png_read_png
=yes
6128 ac_cv_lib_png16_png_read_png
=no
6130 rm -f core conftest.err conftest.
$ac_objext \
6131 conftest
$ac_exeext conftest.
$ac_ext
6132 LIBS
=$ac_check_lib_save_LIBS
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_read_png" >&5
6135 $as_echo "$ac_cv_lib_png16_png_read_png" >&6; }
6136 if test "x$ac_cv_lib_png16_png_read_png" = xyes
; then :
6145 if test "$libpng" = ""; then
6148 if test "$libpng" = "no"; then
6151 if test "$req_avail" = "no"; then
6152 as_fn_error $?
"libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6166 # Check for some includes for the X11 HIDD and the kernel
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6169 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6170 if ${ac_cv_path_GREP+:} false
; then :
6171 $as_echo_n "(cached) " >&6
6173 if test -z "$GREP"; then
6174 ac_path_GREP_found
=false
6175 # Loop through the user's path and test for each of PROGNAME-LIST
6176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6177 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6180 test -z "$as_dir" && as_dir
=.
6181 for ac_prog
in grep ggrep
; do
6182 for ac_exec_ext
in '' $ac_executable_extensions; do
6183 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6184 as_fn_executable_p
"$ac_path_GREP" ||
continue
6185 # Check for GNU ac_path_GREP and select it if it is found.
6186 # Check for GNU $ac_path_GREP
6187 case `"$ac_path_GREP" --version 2>&1` in
6189 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6192 $as_echo_n 0123456789 >"conftest.in"
6195 cat "conftest.in" "conftest.in" >"conftest.tmp"
6196 mv "conftest.tmp" "conftest.in"
6197 cp "conftest.in" "conftest.nl"
6198 $as_echo 'GREP' >> "conftest.nl"
6199 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6200 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6201 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6202 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6203 # Best one so far, save it but keep looking for a better one
6204 ac_cv_path_GREP
="$ac_path_GREP"
6205 ac_path_GREP_max
=$ac_count
6207 # 10*(2^10) chars as input seems more than enough
6208 test $ac_count -gt 10 && break
6210 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6213 $ac_path_GREP_found && break 3
6218 if test -z "$ac_cv_path_GREP"; then
6219 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6222 ac_cv_path_GREP
=$GREP
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6227 $as_echo "$ac_cv_path_GREP" >&6; }
6228 GREP
="$ac_cv_path_GREP"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6232 $as_echo_n "checking for egrep... " >&6; }
6233 if ${ac_cv_path_EGREP+:} false
; then :
6234 $as_echo_n "(cached) " >&6
6236 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6237 then ac_cv_path_EGREP
="$GREP -E"
6239 if test -z "$EGREP"; then
6240 ac_path_EGREP_found
=false
6241 # Loop through the user's path and test for each of PROGNAME-LIST
6242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6243 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6246 test -z "$as_dir" && as_dir
=.
6247 for ac_prog
in egrep; do
6248 for ac_exec_ext
in '' $ac_executable_extensions; do
6249 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6250 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6251 # Check for GNU ac_path_EGREP and select it if it is found.
6252 # Check for GNU $ac_path_EGREP
6253 case `"$ac_path_EGREP" --version 2>&1` in
6255 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6258 $as_echo_n 0123456789 >"conftest.in"
6261 cat "conftest.in" "conftest.in" >"conftest.tmp"
6262 mv "conftest.tmp" "conftest.in"
6263 cp "conftest.in" "conftest.nl"
6264 $as_echo 'EGREP' >> "conftest.nl"
6265 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6266 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6267 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6268 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6269 # Best one so far, save it but keep looking for a better one
6270 ac_cv_path_EGREP
="$ac_path_EGREP"
6271 ac_path_EGREP_max
=$ac_count
6273 # 10*(2^10) chars as input seems more than enough
6274 test $ac_count -gt 10 && break
6276 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6279 $ac_path_EGREP_found && break 3
6284 if test -z "$ac_cv_path_EGREP"; then
6285 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6288 ac_cv_path_EGREP
=$EGREP
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6294 $as_echo "$ac_cv_path_EGREP" >&6; }
6295 EGREP
="$ac_cv_path_EGREP"
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6299 $as_echo_n "checking for ANSI C header files... " >&6; }
6300 if ${ac_cv_header_stdc+:} false
; then :
6301 $as_echo_n "(cached) " >&6
6303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6318 if ac_fn_c_try_compile
"$LINENO"; then :
6319 ac_cv_header_stdc
=yes
6321 ac_cv_header_stdc
=no
6323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6325 if test $ac_cv_header_stdc = yes; then
6326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6333 $EGREP "memchr" >/dev
/null
2>&1; then :
6336 ac_cv_header_stdc
=no
6342 if test $ac_cv_header_stdc = yes; then
6343 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6350 $EGREP "free" >/dev
/null
2>&1; then :
6353 ac_cv_header_stdc
=no
6359 if test $ac_cv_header_stdc = yes; then
6360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6361 if test "$cross_compiling" = yes; then :
6364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6368 #if ((' ' & 0x0FF) == 0x020)
6369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6372 # define ISLOWER(c) \
6373 (('a' <= (c) && (c) <= 'i') \
6374 || ('j' <= (c) && (c) <= 'r') \
6375 || ('s' <= (c) && (c) <= 'z'))
6376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6384 for (i = 0; i < 256; i++)
6385 if (XOR (islower (i), ISLOWER (i))
6386 || toupper (i) != TOUPPER (i))
6391 if ac_fn_c_try_run
"$LINENO"; then :
6394 ac_cv_header_stdc
=no
6396 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6397 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6403 $as_echo "$ac_cv_header_stdc" >&6; }
6404 if test $ac_cv_header_stdc = yes; then
6406 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6410 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6411 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6412 inttypes.h stdint.h unistd.h
6414 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6415 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6417 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6418 cat >>confdefs.h
<<_ACEOF
6419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6427 for ac_header
in sys
/ipc.h sys
/shm.h \
6428 sys
/mmap.h sys
/mman.h sysexits.h \
6429 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6432 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6433 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6434 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6435 cat >>confdefs.h
<<_ACEOF
6436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6444 for ac_header
in sys
/mount.h
6446 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6448 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6449 cat >>confdefs.h
<<_ACEOF
6450 #define HAVE_SYS_MOUNT_H 1
6459 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6460 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6462 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6463 if eval \
${$as_ac_Header+:} false
; then :
6464 $as_echo_n "(cached) " >&6
6466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 #include <sys/types.h>
6480 if ac_fn_c_try_compile
"$LINENO"; then :
6481 eval "$as_ac_Header=yes"
6483 eval "$as_ac_Header=no"
6485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6487 eval ac_res
=\$
$as_ac_Header
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6489 $as_echo "$ac_res" >&6; }
6490 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6491 cat >>confdefs.h
<<_ACEOF
6492 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6495 ac_header_dirent
=$ac_hdr; break
6499 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6500 if test $ac_header_dirent = dirent.h
; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6502 $as_echo_n "checking for library containing opendir... " >&6; }
6503 if ${ac_cv_search_opendir+:} false
; then :
6504 $as_echo_n "(cached) " >&6
6506 ac_func_search_save_LIBS
=$LIBS
6507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6510 /* Override any GCC internal prototype to avoid an error.
6511 Use char because int might match the return type of a GCC
6512 builtin and then its argument prototype would still apply. */
6525 for ac_lib
in '' dir
; do
6526 if test -z "$ac_lib"; then
6527 ac_res
="none required"
6530 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6532 if ac_fn_c_try_link
"$LINENO"; then :
6533 ac_cv_search_opendir
=$ac_res
6535 rm -f core conftest.err conftest.
$ac_objext \
6537 if ${ac_cv_search_opendir+:} false
; then :
6541 if ${ac_cv_search_opendir+:} false
; then :
6544 ac_cv_search_opendir
=no
6547 LIBS
=$ac_func_search_save_LIBS
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6550 $as_echo "$ac_cv_search_opendir" >&6; }
6551 ac_res
=$ac_cv_search_opendir
6552 if test "$ac_res" != no
; then :
6553 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6559 $as_echo_n "checking for library containing opendir... " >&6; }
6560 if ${ac_cv_search_opendir+:} false
; then :
6561 $as_echo_n "(cached) " >&6
6563 ac_func_search_save_LIBS
=$LIBS
6564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6567 /* Override any GCC internal prototype to avoid an error.
6568 Use char because int might match the return type of a GCC
6569 builtin and then its argument prototype would still apply. */
6582 for ac_lib
in '' x
; do
6583 if test -z "$ac_lib"; then
6584 ac_res
="none required"
6587 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6589 if ac_fn_c_try_link
"$LINENO"; then :
6590 ac_cv_search_opendir
=$ac_res
6592 rm -f core conftest.err conftest.
$ac_objext \
6594 if ${ac_cv_search_opendir+:} false
; then :
6598 if ${ac_cv_search_opendir+:} false
; then :
6601 ac_cv_search_opendir
=no
6604 LIBS
=$ac_func_search_save_LIBS
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6607 $as_echo "$ac_cv_search_opendir" >&6; }
6608 ac_res
=$ac_cv_search_opendir
6609 if test "$ac_res" != no
; then :
6610 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6617 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6618 if ${ac_cv_header_stat_broken+:} false
; then :
6619 $as_echo_n "(cached) " >&6
6621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 #include <sys/types.h>
6624 #include <sys/stat.h>
6626 #if defined S_ISBLK && defined S_IFDIR
6627 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6630 #if defined S_ISBLK && defined S_IFCHR
6631 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6634 #if defined S_ISLNK && defined S_IFREG
6635 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6638 #if defined S_ISSOCK && defined S_IFREG
6639 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6643 if ac_fn_c_try_compile
"$LINENO"; then :
6644 ac_cv_header_stat_broken
=no
6646 ac_cv_header_stat_broken
=yes
6648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6651 $as_echo "$ac_cv_header_stat_broken" >&6; }
6652 if test $ac_cv_header_stat_broken = yes; then
6654 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6659 $as_echo_n "checking for ANSI C header files... " >&6; }
6660 if ${ac_cv_header_stdc+:} false
; then :
6661 $as_echo_n "(cached) " >&6
6663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6678 if ac_fn_c_try_compile
"$LINENO"; then :
6679 ac_cv_header_stdc
=yes
6681 ac_cv_header_stdc
=no
6683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6685 if test $ac_cv_header_stdc = yes; then
6686 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6693 $EGREP "memchr" >/dev
/null
2>&1; then :
6696 ac_cv_header_stdc
=no
6702 if test $ac_cv_header_stdc = yes; then
6703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6710 $EGREP "free" >/dev
/null
2>&1; then :
6713 ac_cv_header_stdc
=no
6719 if test $ac_cv_header_stdc = yes; then
6720 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6721 if test "$cross_compiling" = yes; then :
6724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6728 #if ((' ' & 0x0FF) == 0x020)
6729 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6730 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6732 # define ISLOWER(c) \
6733 (('a' <= (c) && (c) <= 'i') \
6734 || ('j' <= (c) && (c) <= 'r') \
6735 || ('s' <= (c) && (c) <= 'z'))
6736 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6739 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6744 for (i = 0; i < 256; i++)
6745 if (XOR (islower (i), ISLOWER (i))
6746 || toupper (i) != TOUPPER (i))
6751 if ac_fn_c_try_run
"$LINENO"; then :
6754 ac_cv_header_stdc
=no
6756 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6757 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6763 $as_echo "$ac_cv_header_stdc" >&6; }
6764 if test $ac_cv_header_stdc = yes; then
6766 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6771 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6772 if ${ac_cv_header_sys_wait_h+:} false
; then :
6773 $as_echo_n "(cached) " >&6
6775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 #include <sys/types.h>
6778 #include <sys/wait.h>
6780 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6783 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6791 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6796 if ac_fn_c_try_compile
"$LINENO"; then :
6797 ac_cv_header_sys_wait_h
=yes
6799 ac_cv_header_sys_wait_h
=no
6801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6804 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6805 if test $ac_cv_header_sys_wait_h = yes; then
6807 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6812 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6813 if ${ac_cv_header_time+:} false
; then :
6814 $as_echo_n "(cached) " >&6
6816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 #include <sys/types.h>
6819 #include <sys/time.h>
6825 if ((struct tm *) 0)
6831 if ac_fn_c_try_compile
"$LINENO"; then :
6832 ac_cv_header_time
=yes
6834 ac_cv_header_time
=no
6836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6839 $as_echo "$ac_cv_header_time" >&6; }
6840 if test $ac_cv_header_time = yes; then
6842 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6846 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6847 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
6849 cat >>confdefs.h
<<_ACEOF
6850 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6854 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6859 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6860 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
6862 cat >>confdefs.h
<<_ACEOF
6863 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6867 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6870 case " $LIBOBJS " in
6871 *" fileblocks.$ac_objext "* ) ;;
6872 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6879 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6880 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
6882 cat >>confdefs.h
<<_ACEOF
6883 #define HAVE_STRUCT_STAT_ST_RDEV 1
6887 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6893 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6894 if ${ac_cv_struct_tm+:} false
; then :
6895 $as_echo_n "(cached) " >&6
6897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 #include <sys/types.h>
6906 int *p = &tm.tm_sec;
6912 if ac_fn_c_try_compile
"$LINENO"; then :
6913 ac_cv_struct_tm
=time.h
6915 ac_cv_struct_tm
=sys
/time.h
6917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6920 $as_echo "$ac_cv_struct_tm" >&6; }
6921 if test $ac_cv_struct_tm = sys
/time.h
; then
6923 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6927 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6928 #include <$ac_cv_struct_tm>
6931 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
6933 cat >>confdefs.h
<<_ACEOF
6934 #define HAVE_STRUCT_TM_TM_ZONE 1
6940 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6942 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6945 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6947 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
6953 cat >>confdefs.h
<<_ACEOF
6954 #define HAVE_DECL_TZNAME $ac_have_decl
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6958 $as_echo_n "checking for tzname... " >&6; }
6959 if ${ac_cv_var_tzname+:} false
; then :
6960 $as_echo_n "(cached) " >&6
6962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6965 #if !HAVE_DECL_TZNAME
6966 extern char *tzname[];
6972 return tzname[0][0];
6977 if ac_fn_c_try_link
"$LINENO"; then :
6978 ac_cv_var_tzname
=yes
6982 rm -f core conftest.err conftest.
$ac_objext \
6983 conftest
$ac_exeext conftest.
$ac_ext
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6986 $as_echo "$ac_cv_var_tzname" >&6; }
6987 if test $ac_cv_var_tzname = yes; then
6989 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6994 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6995 if test "x$ac_cv_type_off_t" = xyes
; then :
6999 cat >>confdefs.h
<<_ACEOF
7000 #define off_t long int
7005 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7006 if test "x$ac_cv_type_pid_t" = xyes
; then :
7010 cat >>confdefs.h
<<_ACEOF
7016 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7017 if test "x$ac_cv_type_size_t" = xyes
; then :
7021 cat >>confdefs.h
<<_ACEOF
7022 #define size_t unsigned int
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7028 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7029 if ${ac_cv_type_uid_t+:} false
; then :
7030 $as_echo_n "(cached) " >&6
7032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 #include <sys/types.h>
7037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7038 $EGREP "uid_t" >/dev
/null
2>&1; then :
7039 ac_cv_type_uid_t
=yes
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7047 $as_echo "$ac_cv_type_uid_t" >&6; }
7048 if test $ac_cv_type_uid_t = no
; then
7050 $as_echo "#define uid_t int" >>confdefs.h
7053 $as_echo "#define gid_t int" >>confdefs.h
7058 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7059 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7061 cat >>confdefs.h
<<_ACEOF
7062 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7069 # Look for some functions
7070 for ac_func
in getpagesize kqueue statfs statvfs \
7071 clone kse_create rfork_thread thr_create sa_register \
7072 getcontext makecontext setcontext sigaltstack swapcontext
7074 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7075 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7076 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7077 cat >>confdefs.h
<<_ACEOF
7078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7088 for ac_header
in $ac_header_list
7090 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7091 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7093 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7094 cat >>confdefs.h
<<_ACEOF
7095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7109 for ac_func
in getpagesize
7111 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7112 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7113 cat >>confdefs.h
<<_ACEOF
7114 #define HAVE_GETPAGESIZE 1
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7121 $as_echo_n "checking for working mmap... " >&6; }
7122 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7123 $as_echo_n "(cached) " >&6
7125 if test "$cross_compiling" = yes; then :
7126 ac_cv_func_mmap_fixed_mapped
=no
7128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7130 $ac_includes_default
7131 /* malloc might have been renamed as rpl_malloc. */
7134 /* Thanks to Mike Haertel and Jim Avera for this test.
7135 Here is a matrix of mmap possibilities:
7136 mmap private not fixed
7137 mmap private fixed at somewhere currently unmapped
7138 mmap private fixed at somewhere already mapped
7139 mmap shared not fixed
7140 mmap shared fixed at somewhere currently unmapped
7141 mmap shared fixed at somewhere already mapped
7142 For private mappings, we should verify that changes cannot be read()
7143 back from the file, nor mmap's back from the file at a different
7144 address. (There have been systems where private was not correctly
7145 implemented like the infamous i386 svr4.0, and systems where the
7146 VM page cache was not coherent with the file system buffer cache
7147 like early versions of FreeBSD and possibly contemporary NetBSD.)
7148 For shared mappings, we should conversely verify that changes get
7149 propagated back to all the places they're supposed to be.
7151 Grep wants private fixed already mapped.
7152 The main things grep needs to know about mmap are:
7153 * does it exist and is it safe to write into the mmap'd area
7154 * how to use it (BSD variants) */
7157 #include <sys/mman.h>
7159 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7163 /* This mess was copied from the GNU getpagesize.h. */
7164 #ifndef HAVE_GETPAGESIZE
7165 # ifdef _SC_PAGESIZE
7166 # define getpagesize() sysconf(_SC_PAGESIZE)
7167 # else /* no _SC_PAGESIZE */
7168 # ifdef HAVE_SYS_PARAM_H
7169 # include <sys/param.h>
7170 # ifdef EXEC_PAGESIZE
7171 # define getpagesize() EXEC_PAGESIZE
7172 # else /* no EXEC_PAGESIZE */
7174 # define getpagesize() NBPG * CLSIZE
7177 # endif /* no CLSIZE */
7178 # else /* no NBPG */
7180 # define getpagesize() NBPC
7181 # else /* no NBPC */
7183 # define getpagesize() PAGESIZE
7184 # endif /* PAGESIZE */
7185 # endif /* no NBPC */
7186 # endif /* no NBPG */
7187 # endif /* no EXEC_PAGESIZE */
7188 # else /* no HAVE_SYS_PARAM_H */
7189 # define getpagesize() 8192 /* punt totally */
7190 # endif /* no HAVE_SYS_PARAM_H */
7191 # endif /* no _SC_PAGESIZE */
7193 #endif /* no HAVE_GETPAGESIZE */
7198 char *data, *data2, *data3;
7203 pagesize = getpagesize ();
7205 /* First, make a file with some known garbage in it. */
7206 data = (char *) malloc (pagesize);
7209 for (i = 0; i < pagesize; ++i)
7210 *(data + i) = rand ();
7212 fd = creat ("conftest.mmap", 0600);
7215 if (write (fd, data, pagesize) != pagesize)
7219 /* Next, check that the tail of a page is zero-filled. File must have
7220 non-zero length, otherwise we risk SIGBUS for entire page. */
7221 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7225 if (write (fd2, cdata2, 1) != 1)
7227 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7228 if (data2 == MAP_FAILED)
7230 for (i = 0; i < pagesize; ++i)
7234 if (munmap (data2, pagesize))
7237 /* Next, try to mmap the file at a fixed address which already has
7238 something else allocated at it. If we can, also make sure that
7239 we see the same garbage. */
7240 fd = open ("conftest.mmap", O_RDWR);
7243 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7244 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7246 for (i = 0; i < pagesize; ++i)
7247 if (*(data + i) != *(data2 + i))
7250 /* Finally, make sure that changes to the mapped area do not
7251 percolate back to the file as seen by read(). (This is a bug on
7252 some variants of i386 svr4.0.) */
7253 for (i = 0; i < pagesize; ++i)
7254 *(data2 + i) = *(data2 + i) + 1;
7255 data3 = (char *) malloc (pagesize);
7258 if (read (fd, data3, pagesize) != pagesize)
7260 for (i = 0; i < pagesize; ++i)
7261 if (*(data + i) != *(data3 + i))
7267 if ac_fn_c_try_run
"$LINENO"; then :
7268 ac_cv_func_mmap_fixed_mapped
=yes
7270 ac_cv_func_mmap_fixed_mapped
=no
7272 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7273 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7278 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7279 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7281 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7284 rm -f conftest.mmap conftest.txt
7287 #-----------------------------------------------------------------------------
7290 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7291 # it switched on by default, and we use the host compiler, so it compiles AROS
7292 # code with this enabled resulting in link failures as we don't have support
7295 # We use two methods to disable it. For the host compiler (used to compile
7296 # some hosted modules), we test to see if the compiler supports stack
7297 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7298 # work on all platforms.
7300 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7301 # (this is done unconditionally, as it should have no effect on compilers
7302 # without the stack protection feature). This may be specific to the way that
7303 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7304 # strong enough to disable it in a generic way though, so we'll live with it
7305 # until another vendor ships GCC with it enabled in a different way, and deal
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7310 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7311 save_cflags
="$CFLAGS"
7312 CFLAGS
="$CFLAGS -fno-stack-protector"
7313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7324 if ac_fn_c_try_compile
"$LINENO"; then :
7325 use_no_stack_protector
="yes"
7327 use_no_stack_protector
="no"
7329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7331 $as_echo "$use_no_stack_protector" >&6; }
7332 if test "x-$use_no_stack_protector" = "x-yes" ; then
7333 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7335 CFLAGS
="$save_cflags"
7337 #-----------------------------------------------------------------------------
7339 # Disable pointer-signedness warnings if the compiler recognises the option
7340 # (this only works for the host compiler at the moment)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7343 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7344 save_cflags
="$CFLAGS"
7345 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7357 if ac_fn_c_try_compile
"$LINENO"; then :
7358 use_no_sign_warning
="yes"
7360 use_no_sign_warning
="no"
7362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7364 $as_echo "$use_no_sign_warning" >&6; }
7365 if test "x-$use_no_sign_warning" = "x-yes" ; then
7366 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7368 CFLAGS
="$save_cflags"
7370 #-----------------------------------------------------------------------------
7372 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7375 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7376 save_cflags
="$CFLAGS"
7377 CFLAGS
="$CFLAGS -fgnu89-inline"
7378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7389 if ac_fn_c_try_compile
"$LINENO"; then :
7390 use_gnu89_inline
="yes"
7392 use_gnu89_inline
="no"
7394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7396 $as_echo "$use_gnu89_inline" >&6; }
7397 if test "x-$use_gnu89_inline" = "x-yes" ; then
7398 gnu89_inline
="-fgnu89-inline"
7400 CFLAGS
="$save_cflags"
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7403 $as_echo "$as_me: Performing target configuration..." >&6;}
7406 aros_nowarn_flags
="NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7408 toolchain_needs_sysroot
=no
7410 aros_config_cflags
="-Wall -Werror-implicit-function-declaration"
7411 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
7412 aros_config_ldflags
=""
7414 aros_shared_default
=yes
7416 aros_shared_cflags
="-fPIC"
7417 aros_shared_aflags
=""
7418 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7419 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7421 aros_kernel_ar_flags
="cr"
7422 aros_target_ar_flags
="cr"
7423 aros_target_nm_flags
="-C -ul"
7424 aros_target_strip_flags
="--strip-unneeded -R.comment"
7429 aros_target_genmap
="-Wl,-Map -Xlinker"
7431 # Native flavour stuff
7432 aros_serial_debug
="0"
7434 # Palm native flavour stuff
7435 aros_palm_debug_hack
="0"
7437 # Unix flavour stuff
7438 aros_nesting_supervisor
="0"
7440 # Collect-aros stuff: "-ius" to ignore undefined symbols
7441 ignore_undefined_symbols
=""
7443 # Check for X11 by default
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7452 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7454 # Check whether --with-toolchain was given.
7455 if test "${with_toolchain+set}" = set; then :
7456 withval
=$with_toolchain; aros_toolchain
="$withval"
7458 aros_toolchain
="gnu"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7462 $as_echo "$aros_toolchain" >&6; }
7464 case "$aros_toolchain" in
7466 # toolchain_needs_sysroot=yes
7467 toolchain_c_compiler
="clang"
7468 toolchain_cxx_compiler
="clang++"
7469 toolchain_cpp_preprocessor
="clang -E"
7471 toolchain_as
="llvm-as"
7472 toolchain_ar
="llvm-ar"
7473 toolchain_ranlib
="llvm-ranlib"
7474 toolchain_nm
="llvm-nm"
7475 toolchain_strip
="true"
7476 toolchain_objcopy
="llvm-objcopy"
7477 toolchain_objdump
="llvm-objdump"
7480 toolchain_c_compiler
="gcc"
7481 toolchain_cxx_compiler
="g++"
7482 toolchain_cpp_preprocessor
="cpp"
7486 toolchain_ranlib
="ranlib"
7488 toolchain_strip
="strip"
7489 toolchain_objcopy
="objcopy"
7490 toolchain_objdump
="objdump"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7494 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7495 toolchain_c_compiler
="cc"
7496 toolchain_cxx_compiler
="c++"
7497 toolchain_cpp_preprocessor
="cpp"
7501 toolchain_ranlib
="ranlib"
7503 toolchain_strip
="strip"
7504 toolchain_objcopy
="objcopy"
7505 toolchain_objdump
="objdump"
7509 #-----------------------------------------------------------------------------
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7512 $as_echo_n "checking which type of build to do... " >&6; }
7513 # Check whether --enable-build_type was given.
7514 if test "${enable_build_type+set}" = set; then :
7515 enableval
=$enable_build_type; build_type
=$enableval
7517 build_type
="personal"
7521 if test "$build_type" = "nightly"; then
7522 build_type_string
="NIGHTLY"
7523 elif test "$build_type" = "snapshot"; then
7524 build_type_string
="SNAPSHOT"
7525 elif test "$build_type" = "milestone"; then
7526 build_type_string
="MILESTONE"
7527 elif test "$build_type" = "release"; then
7528 build_type_string
="RELEASE"
7530 build_type_string
="PERSONAL"
7531 build_type
="personal"
7534 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7537 $as_echo "$build_type" >&6; }
7539 #-----------------------------------------------------------------------------
7540 all_debug_types
="messages stack modules mungwall symbols"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7543 $as_echo_n "checking which debug types to enable... " >&6; }
7544 # Check whether --enable-debug was given.
7545 if test "${enable_debug+set}" = set; then :
7546 enableval
=$enable_debug; debug
="$enableval"
7552 if test "$debug" = "" -o "$debug" = "no"; then
7554 elif test "$debug" = "yes"; then
7558 if test "$debug" = "all" ; then
7559 debug
="messages stack modules symbols"
7560 for d
in $all_debug_types; do
7561 export aros_
${d}_debug
="1"
7564 for d
in $all_debug_types; do
7565 export aros_
${d}_debug
="0"
7569 if test "$debug" != "none"; then
7570 debug
=`echo $debug | sed s/,/\ /g`
7573 for d2
in $all_debug_types; do
7574 if test "$d2" = "$d"; then
7579 if test "$found" = "0"; then
7580 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7582 export aros_
${d}_debug
="1"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7587 $as_echo "$debug" >&6; }
7589 if test "$aros_messages_debug" = "1"; then
7590 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
7592 aros_messages_debug
=""
7594 if test "$aros_symbols_debug" = "1"; then
7595 aros_symbols_debug
="-g"
7597 aros_symbols_debug
=""
7600 # These are the flags to pass when compiling debugged programs
7601 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
7602 aros_debug_aflags
=""
7603 aros_debug_ldflags
="$aros_symbols_debug"
7605 #-----------------------------------------------------------------------------
7606 # Checking for distcc and ccache.
7608 # Always apply the transforms in this particular order. Basically you should
7609 # always run 'ccache distcc compiler' in that order for the best performance.
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7612 $as_echo_n "checking whether to enable distcc... " >&6; }
7613 # Check whether --enable-distcc was given.
7614 if test "${enable_distcc+set}" = set; then :
7615 enableval
=$enable_distcc; distcc
="$enableval"
7620 if test "$distcc" != "" -a "$distcc" != "no"; then
7621 # AC_CHECK_PROG will print out the result in this case
7622 # Extract the first word of "distcc", so it can be a program name with args.
7623 set dummy distcc
; ac_word
=$2
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if ${ac_cv_path_DISTCC+:} false
; then :
7627 $as_echo_n "(cached) " >&6
7631 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
7634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir
=.
7639 for ac_exec_ext
in '' $ac_executable_extensions; do
7640 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7641 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
7653 DISTCC
=$ac_cv_path_DISTCC
7654 if test -n "$DISTCC"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7656 $as_echo "$DISTCC" >&6; }
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7669 $as_echo_n "checking whether to enable ccache... " >&6; }
7670 # Check whether --enable-ccache was given.
7671 if test "${enable_ccache+set}" = set; then :
7672 enableval
=$enable_ccache; ccache
="$enableval"
7677 if test "$ccache" != "" -a "$ccache" != "no"; then
7678 # AC_CHECK_PROG will print out the result in this case
7679 # Extract the first word of "ccache", so it can be a program name with args.
7680 set dummy ccache
; ac_word
=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_CCACHE+:} false
; then :
7684 $as_echo_n "(cached) " >&6
7686 if test -n "$CCACHE"; then
7687 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
7689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7693 test -z "$as_dir" && as_dir
=.
7694 for ac_exec_ext
in '' $ac_executable_extensions; do
7695 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_CCACHE
="ccache"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 CCACHE
=$ac_cv_prog_CCACHE
7707 if test -n "$CCACHE"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7709 $as_echo "$CCACHE" >&6; }
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7721 #-----------------------------------------------------------------------------
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7723 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7725 # Check whether --with-kernel-gcc-version was given.
7726 if test "${with_kernel_gcc_version+set}" = set; then :
7727 withval
=$with_kernel_gcc_version; kernel_tool_version
="$withval"
7729 kernel_tool_version
=""
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7733 $as_echo "$kernel_tool_version" >&6; }
7735 #-----------------------------------------------------------------------------
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7737 $as_echo_n "checking what optimization flags to use... " >&6; }
7739 # Check whether --with-optimization was given.
7740 if test "${with_optimization+set}" = set; then :
7741 withval
=$with_optimization; optimization
="$withval"
7743 optimization
="unknown"
7746 if test "$optimization" = "unknown"; then
7747 if test "$debug" != "none"; then
7753 aros_optimization_cflags
="$optimization"
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7755 $as_echo "$optimization" >&6; }
7757 #-----------------------------------------------------------------------------
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7759 $as_echo_n "checking which paranoia flags to use... " >&6; }
7761 # Check whether --with-paranoia was given.
7762 if test "${with_paranoia+set}" = set; then :
7763 withval
=$with_paranoia; paranoia_flags
="$withval"
7765 paranoia_flags
="default"
7768 if test "$paranoia_flags" = "default"; then
7771 else if test "$paranoia_flags" = "yes"; then
7772 paranoia_flags
="-Wall -Werror"
7773 msg_result
="$paranoia_flags"
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7776 $as_echo "$msg_result" >&6; }
7777 aros_config_cflags
="$aros_config_cflags $paranoia_flags"
7779 #-----------------------------------------------------------------------------
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7781 $as_echo_n "checking what target variant to enable... " >&6; }
7782 # Check whether --enable-target_variant was given.
7783 if test "${enable_target_variant+set}" = set; then :
7784 enableval
=$enable_target_variant; target_variant
=$enableval
7789 if test "$target_variant" = ""; then
7790 aros_target_variant
=""
7791 aros_target_suffix
=""
7794 aros_target_variant
="$target_variant"
7795 aros_target_suffix
="-$target_variant"
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7798 $as_echo "$enableval" >&6; }
7800 #-----------------------------------------------------------------------------
7801 # Target-specific defaults. You can override then on a per-target basis.
7803 # Bootloader name. Currently used by PC target.
7804 target_bootloader
="none"
7807 #-----------------------------------------------------------------------------
7808 # Additional options for some specific targets
7810 case "$aros_target_variant" in
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7813 $as_echo_n "checking XCode path... " >&6; }
7815 # Check whether --with-xcode was given.
7816 if test "${with_xcode+set}" = set; then :
7817 withval
=$with_xcode; aros_xcode_path
="$withval"
7819 aros_xcode_path
="/Developer"
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7823 $as_echo "$aros_xcode_path" >&6; }
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7826 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7828 # Check whether --with-sdk-version was given.
7829 if test "${with_sdk_version+set}" = set; then :
7830 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7832 aros_sdk_version
="4.1"
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7836 $as_echo "$aros_sdk_version" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7842 $as_echo_n "checking Android SDK path... " >&6; }
7844 # Check whether --with-sdk was given.
7845 if test "${with_sdk+set}" = set; then :
7846 withval
=$with_sdk; aros_android_sdk
="$withval"
7848 aros_android_sdk
=$default_android_sdk
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7852 $as_echo "$aros_android_sdk" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7855 $as_echo_n "checking Android NDK path... " >&6; }
7857 # Check whether --with-ndk was given.
7858 if test "${with_ndk+set}" = set; then :
7859 withval
=$with_ndk; aros_android_ndk
="$withval"
7861 aros_android_ndk
="none"
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7865 $as_echo "$aros_android_ndk" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7868 $as_echo_n "checking what Android SDK version to use... " >&6; }
7870 # Check whether --with-sdk-version was given.
7871 if test "${with_sdk_version+set}" = set; then :
7872 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7874 aros_sdk_version
="12"
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7878 $as_echo "$aros_sdk_version" >&6; }
7880 aros_android_level
=android-
$aros_sdk_version
7881 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
7882 echo "Platform $aros_android_level is not installed in your SDK"
7883 echo "Use --with-sdk-version=<API level number> to select another platform version"
7884 echo "You can check what plaform versions are installed in your SDK"
7885 echo "by examining contents of $aros_android_sdk/platforms directory"
7886 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
7889 export PATH
="$aros_android_sdk/tools:$PATH"
7890 # Extract the first word of "$android_tool", so it can be a program name with args.
7891 set dummy
$android_tool; ac_word
=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 $as_echo_n "checking for $ac_word... " >&6; }
7894 if ${ac_cv_path_android_tool+:} false
; then :
7895 $as_echo_n "(cached) " >&6
7897 case $android_tool in
7899 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
7902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir
=.
7907 for ac_exec_ext
in '' $ac_executable_extensions; do
7908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7909 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 android_tool
=$ac_cv_path_android_tool
7921 if test -n "$android_tool"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7923 $as_echo "$android_tool" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7931 if test "$android_tool" = ""; then
7934 if test "$android_tool" = "no"; then
7937 if test "$req_avail" = "no"; then
7938 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
7941 if test "$aros_android_ndk" != "none"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7943 $as_echo_n "checking what Android NDK version to use... " >&6; }
7945 # Check whether --with-ndk-version was given.
7946 if test "${with_ndk_version+set}" = set; then :
7947 withval
=$with_ndk_version; aros_ndk_version
="$withval"
7949 aros_ndk_version
="9"
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7953 $as_echo "$aros_ndk_version" >&6; }
7956 # Extract the first word of "ant", so it can be a program name with args.
7957 set dummy ant
; ac_word
=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if ${ac_cv_path_ant+:} false
; then :
7961 $as_echo_n "(cached) " >&6
7965 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
7968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7972 test -z "$as_dir" && as_dir
=.
7973 for ac_exec_ext
in '' $ac_executable_extensions; do
7974 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 if test -n "$ant"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7989 $as_echo "$ant" >&6; }
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7996 if test "$ant" = ""; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7998 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8002 $as_echo_n "checking Build debug or release apk... " >&6; }
8004 # Check whether --with-apk-version was given.
8005 if test "${with_apk_version+set}" = set; then :
8006 withval
=$with_apk_version; aros_android_antapk
=$withval
8008 aros_android_antapk
=release
8011 if test $aros_android_antapk != release
-a $aros_android_antapk != debug
; then
8012 as_fn_error $?
"apk-version has to be release or debug" "$LINENO" 5
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8015 $as_echo "$aros_android_antapk" >&6; }
8017 if test "$host_os" = "mingw32"; then
8018 android_tool
="cmd //c $android_tool"
8026 #-----------------------------------------------------------------------------
8027 # External toolchains
8028 kernel_tool_prefix
="none"
8029 aros_tool_prefix
="none"
8030 elf_tool_prefix
="${target_cpu}-elf-"
8032 # This is the target configuration switch.
8033 case "$target_os" in
8035 aros_target_arch
="linux"
8036 aros_target_family
="unix"
8037 case "$target_cpu" in
8039 aros_target_cpu
="m68k"
8040 aros_object_format
="m68kelf"
8041 aros_flavour
="emulcompat"
8042 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8043 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8044 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8045 gcc_target_cpu
="mc68000"
8048 aros_target_cpu
="i386"
8049 aros_object_format
="elf_i386"
8050 aros_flavour
="emulation"
8051 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8052 aros_kernel_ldflags
="-Wl,-melf_i386"
8053 aros_nominal_depth
=8
8054 gcc_target_cpu
="i386"
8055 pci_hidd_target
="hidd-pci-linux"
8056 android_tool_dir_prefix
="x86"
8057 android_tool_prefix
="i686-android-linux"
8058 android_ndk_arch
="x86"
8061 aros_target_cpu
="x86_64"
8062 aros_object_format
="elf_x86_64"
8063 aros_flavour
="emulation"
8064 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8065 aros_config_cflags
="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
8066 aros_nominal_depth
=8
8067 pci_hidd_target
="hidd-pci-linux"
8070 aros_target_cpu
="ppc"
8071 aros_object_format
="elf32ppc"
8072 aros_flavour
="emulation"
8073 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8074 aros_nominal_depth
=8
8075 gcc_target_cpu
="ppc"
8078 # Same as powerpc, but I need this for the nightly build to work again.
8079 # Actually, the nightly should be made working with powerpc target.
8080 # That just was too much work for the moment, another week or two.
8082 aros_target_cpu
="ppc"
8083 aros_object_format
="elf32ppc"
8084 aros_flavour
="emulation"
8085 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8086 aros_nominal_depth
=8
8087 gcc_target_cpu
="ppc"
8090 aros_target_cpu
="aarch64"
8091 target_cpu
="aarch64"
8092 aros_object_format
="aarch64elf_aros"
8093 aros_flavour
="emulation"
8094 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8095 gcc_target_cpu
="aarch64"
8096 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8097 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8098 aros_arch_libs
="-laeabi"
8099 gcc_default_float_abi
="hard"
8100 kernel_tool_prefix
="aarch64-linux-gnueabihf-"
8103 aros_target_cpu
="arm"
8105 aros_object_format
="armelf_aros"
8106 aros_flavour
="emulation"
8107 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8108 gcc_target_cpu
="arm"
8109 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8110 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8111 aros_arch_libs
="-laeabi"
8112 gcc_default_float_abi
="hard"
8113 android_tool_dir_prefix
="arm-linux-androideabi"
8114 android_tool_prefix
="arm-linux-androideabi"
8115 android_ndk_arch
="arm"
8116 kernel_tool_prefix
="arm-linux-gnueabihf-"
8119 aros_target_cpu
="arm"
8120 aros_object_format
="armelf_aros"
8121 aros_flavour
="emulation"
8122 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8123 gcc_target_cpu
="arm"
8124 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8125 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8126 aros_arch_libs
="-laeabi"
8127 android_tool_dir_prefix
="arm-linux-androideabi"
8128 android_tool_prefix
="arm-linux-androideabi"
8129 android_ndk_arch
="arm"
8130 kernel_tool_prefix
="arm-linux-gnueabi-"
8133 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8136 case "$aros_target_variant" in
8139 if test "$android_ndk_arch" = ""; then
8140 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8143 aros_nominal_width
=320
8144 aros_nominal_height
=480
8145 if test "$aros_android_ndk" = "none"; then
8146 aros_kernel_cflags
="-mandroid"
8147 aros_kernel_ldflags
="-mandroid"
8150 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8151 kernel_tool_version
=""
8152 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8153 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
8154 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
8155 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8156 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
8159 host_android_gfx
=yes
8160 # Disable implicit PIC mode
8161 aros_target_cflags
="$aros_target_cflags -fno-pic"
8162 kernel_tool_prefix
="$android_tool_prefix-"
8168 aros_target_arch
="pc"
8169 aros_shared_default
="no"
8170 target_bootloader
="grub2"
8171 case "$target_cpu" in
8173 aros_target_cpu
="i386"
8176 if test "$aros_object_format" = "" ; then
8177 aros_object_format
="elf_i386"
8179 aros_flavour
="standalone"
8180 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8181 aros_kernel_ldflags
="-Wl,-melf_i386"
8182 aros_nominal_width
=640
8183 aros_nominal_height
=480
8184 gcc_target_cpu
="i386"
8187 aros_target_cpu
="x86_64"
8189 if test "$aros_object_format" = "" ; then
8190 aros_object_format
="elf_x86_64"
8192 aros_flavour
="standalone"
8193 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8194 aros_config_cflags
="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8195 aros_kernel_ldflags
=""
8196 aros_nominal_width
=640
8197 aros_nominal_height
=480
8198 case "$aros_target_variant" in
8200 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8205 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8211 aros_target_arch
="prep"
8212 aros_shared_default
="no"
8213 aros_target_cpu
="ppc"
8214 aros_object_format
="elf32ppc"
8215 aros_flavour
="ppcnative"
8216 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8217 aros_kernel_ldflags
=""
8218 aros_nominal_width
=640
8219 aros_nominal_height
=480
8220 gcc_target_cpu
="ppc"
8224 aros_target_arch
="freebsd"
8225 aros_target_family
="unix"
8226 aros_target_cpu
="i386"
8227 aros_flavour
="emulation"
8228 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8229 gcc_target_cpu
="i386"
8231 aros_target_strip_flags
="-x"
8235 aros_target_arch
="darwin"
8236 aros_target_family
="unix"
8237 aros_flavour
="emulation"
8238 case "$target_cpu" in
8240 aros_ios_platform
="iPhoneSimulator"
8241 aros_target_cpu
="i386"
8242 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8243 aros_kernel_ldflags
=""
8244 aros_macosx_version
="10.4"
8245 aros_nominal_depth
=8
8246 gcc_target_cpu
="i386"
8247 aros_object_format
="elf_i386"
8248 aros_kernel_ar_flags
="-cr"
8249 aros_target_strip_flags
="-x"
8250 kernel_tool_flags
="-m32"
8253 aros_target_cpu
="x86_64"
8254 aros_object_format
="elf_x86_64"
8255 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8256 aros_macosx_version
="10.6"
8257 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8258 aros_kernel_cflags
="-m64"
8259 aros_kernel_ldflags
="-m64"
8260 aros_target_cflags
="-mcmodel=large"
8261 aros_nominal_depth
=8
8263 aros_kernel_ar_flags
="-cr"
8266 aros_kernel_ranlib
="ranlib"
8268 aros_kernel_strip
="strip"
8269 kernel_tool_prefix
="i686-apple-darwin10-"
8272 aros_target_cpu
="ppc"
8273 aros_object_format
="elf32ppc"
8274 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8275 aros_kernel_ldflags
=""
8276 aros_macosx_version
="10.0"
8277 aros_nominal_depth
=8
8278 gcc_target_cpu
="ppc"
8280 aros_kernel_ar_flags
="-cr"
8281 aros_kernel_ld
="ld -arch ppc"
8282 aros_kernel_as
="as -arch ppc"
8283 aros_kernel_ranlib
="ranlib -arch ppc"
8284 aros_kernel_nm
="nm -arch ppc"
8285 aros_kernel_strip
="strip -arch ppc"
8286 kernel_tool_prefix
="powerpc-apple-darwin10-"
8289 aros_ios_platform
="iPhoneOS"
8290 aros_target_cpu
="arm"
8291 aros_object_format
="armelf_aros"
8292 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8293 aros_arch_libs
="-laeabi"
8294 aros_nominal_depth
=8
8295 gcc_target_cpu
="arm"
8297 aros_kernel_ar_flags
="-cr"
8298 aros_kernel_ld
="ld -arch arm"
8299 aros_kernel_ranlib
="ranlib -arch arm"
8300 kernel_tool_prefix
="arm-apple-darwin10-"
8301 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8304 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8307 case "$aros_target_variant" in
8309 aros_ios_version
="3.0"
8310 aros_nominal_width
=320
8311 aros_nominal_height
=480
8312 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8313 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
8314 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
8316 # This is here because it may depend on iOS or SDK version
8317 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8318 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8319 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8322 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8323 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8329 aros_target_arch
="dragonfly"
8330 aros_target_family
="unix"
8331 aros_flavour
="emulation"
8332 case "$target_cpu" in
8334 aros_target_cpu
="i386"
8335 aros_object_format
="elf_i386"
8336 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8339 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8340 aros_target_cpu
="x86_64"
8341 aros_object_format
="elf_x86_64"
8342 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8345 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8351 aros_target_arch
="netbsd"
8352 aros_target_family
="unix"
8353 case "$target_cpu" in
8355 aros_target_cpu
="m68k"
8356 aros_object_format
="m68kelf"
8357 aros_flavour
="emulcompat"
8358 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8359 gcc_target_cpu
="mc68000"
8362 aros_target_cpu
="i386"
8363 aros_object_format
="elf_i386"
8364 aros_flavour
="emulation"
8365 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8366 aros_nominal_depth
=8
8367 gcc_target_cpu
="i386"
8370 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8373 aros_target_genmap
="-Wl,-M -Xlinker >"
8374 aros_flavour
="emulation"
8375 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8379 aros_target_arch
="openbsd"
8380 aros_target_family
="unix"
8381 case "$target_cpu" in
8383 aros_target_cpu
="i386"
8384 aros_object_format
="elf_i386"
8385 aros_flavour
="emulation"
8386 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8387 gcc_target_cpu
="i386"
8390 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8393 aros_target_genmap
="-Wl,-M -Xlinker >"
8394 aros_target_nm_flags
="-u"
8395 aros_flavour
="emulation"
8399 aros_target_arch
="solaris"
8400 aros_target_family
="unix"
8401 case "$target_cpu" in
8403 aros_target_cpu
="i386"
8404 aros_object_format
="elf_i386"
8405 aros_flavour
="emulation"
8406 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8407 aros_nominal_depth
=8
8408 gcc_target_cpu
="i386"
8411 aros_target_cpu
="sparc"
8412 aros_object_format
="elf_sparc"
8413 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8414 gcc_target_cpu
="sparc"
8417 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8420 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
8421 aros_flavour
="emulation"
8425 aros_target_arch
="morphos"
8426 aros_shared_default
="no"
8427 aros_target_cpu
="ppc"
8428 aros_object_format
="elf_ppc"
8429 aros_flavour
="nativecompat"
8430 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8431 gcc_target_cpu
="ppc"
8435 aros_target_arch
="sam440"
8436 aros_shared_default
="no"
8437 aros_target_cpu
="ppc"
8438 aros_object_format
="elf32ppc"
8439 aros_flavour
="ppcnative"
8440 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8441 aros_kernel_ldflags
=""
8442 aros_nominal_width
=1024
8443 aros_nominal_height
=768
8444 aros_nominal_depth
=24
8445 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8446 gcc_target_cpu
="powerpc"
8450 aros_target_arch
="efika"
8451 aros_shared_default
="no"
8452 aros_target_cpu
="arm"
8453 aros_object_format
="armelf_aros"
8454 aros_flavour
="standalone"
8455 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8456 aros_kernel_ldflags
=""
8457 aros_nominal_width
=1024
8458 aros_nominal_height
=600
8459 aros_arch_libs
="-laeabi"
8460 gcc_default_cpu
="armv7-a"
8461 gcc_default_fpu
="vfpv3"
8462 aros_config_cflags
="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8463 aros_config_aflags
="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8464 aros_optimization_cflags
="$aros_optimization_cflags -Os"
8465 case "$target_cpu" in
8467 gcc_default_float_abi
="hard"
8472 gcc_default_float_abi
="softfp"
8475 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8481 aros_target_arch
="chrp"
8482 aros_shared_default
="no"
8483 aros_target_cpu
="ppc"
8484 aros_object_format
="elf32ppc"
8485 aros_flavour
="ppcnative"
8486 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8487 aros_kernel_ldflags
=""
8488 aros_nominal_width
=640
8489 aros_nominal_height
=480
8490 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8491 gcc_target_cpu
="powerpc"
8492 case "$aros_target_variant" in
8494 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8500 aros_flavour
="standalone"
8501 aros_target_arch
="raspi"
8503 aros_shared_default
="no"
8504 aros_arch_libs
="-laeabi"
8506 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8507 aros_config_cflags
="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8508 aros_config_aflags
="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8509 aros_kernel_cflags
="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8510 aros_target_cflags
="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8511 case "$target_cpu" in
8513 aros_target_cpu
="aarch64"
8514 gcc_default_cpu
="aarch64"
8515 aros_object_format
="aarch64elf_aros"
8518 aros_target_cpu
="arm"
8519 gcc_default_cpu
="armv6zk"
8520 gcc_default_cpu_tune
="arm1176jzf-s"
8521 aros_object_format
="armelf_aros"
8524 aros_target_cpu
="arm"
8525 gcc_default_cpu
="armv6zk"
8526 gcc_default_cpu_tune
="arm1176jzf-s"
8527 aros_object_format
="armelf_aros"
8530 as_fn_error $?
"\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8534 case "$aros_target_variant" in
8536 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8542 aros_flavour
="standalone"
8543 aros_target_arch
="stm32f7_discovery"
8544 aros_target_cpu
="arm"
8545 aros_target_cpu_mode
="thumb2"
8546 aros_object_format
="armelf_aros"
8547 aros_shared_default
="no"
8549 # stm32f7 has DSP opcode support
8550 gcc_default_cpu
="armv7e-m"
8551 # gcc_default_cpu="armv7-m"
8552 gcc_default_cpu_tune
="cortex-m7"
8553 gcc_default_fpu
="fpv4-sp-d16"
8554 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8555 # gcc_default_fpu="fpv5-sp-d16"
8556 gcc_default_float_abi
="hard"
8558 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dthumb"
8562 aros_target_arch
="amiga"
8563 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8564 aros_shared_default
="no"
8566 case "$target_cpu" in
8568 # Check whether --enable-amigaos_compliance was given.
8569 if test "${enable_amigaos_compliance+set}" = set; then :
8570 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
8574 aros_target_cpu
="m68k"
8575 aros_object_format
="m68kelf"
8576 aros_flavour
="standcompat"
8577 gcc_target_cpu
="m68000"
8578 aros_nowarn_flags
="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8579 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8580 aros_optimization_cflags
="$aros_optimization_cflags -Os"
8581 aros_config_aflags
="$aros_config_aflags"
8582 aros_target_strip_flags
="-R.comment --strip-debug"
8583 aros_nominal_width
=640
8584 aros_nominal_height
=256
8585 aros_nominal_depth
=2
8589 aros_flavour
="native"
8590 gcc_target_cpu
="ppc"
8593 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8599 aros_target_arch
="mingw32"
8600 aros_shared_default
="no"
8601 aros_flavour
="emulation"
8602 aros_shared_cflags
=""
8603 need_crosstools
="yes"
8606 case "$target_cpu" in
8608 aros_target_cpu
="i386"
8609 aros_object_format
="elf_i386"
8610 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8611 aros_nominal_depth
=8
8612 gcc_target_cpu
="i386"
8614 kernel_tool_prefix
="i386-mingw32-"
8617 aros_target_cpu
="x86_64"
8618 aros_object_format
="elf_x86_64"
8619 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8620 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8621 aros_nominal_depth
=8
8622 kernel_tool_prefix
="x86_64-w64-mingw32-"
8625 aros_target_cpu
="arm"
8626 aros_object_format
="armelf_aros"
8627 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8628 aros_arch_libs
="-laeabi"
8629 aros_nominal_depth
=8
8630 gcc_target_cpu
="arm"
8631 gcc_default_float_abi
="soft"
8632 kernel_tool_prefix
="arm-mingw32ce-"
8633 aros_nominal_width
=160
8634 aros_nominal_height
=160
8637 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8640 if test $host_os = "cygwin"; then
8641 aros_kernel_cflags
="-mno-cygwin"
8645 aros_target_arch
="pp"
8646 aros_shared_default
="no"
8647 case "$target_cpu" in
8649 aros_target_cpu
="m68k"
8650 aros_object_format
="m68kelf"
8651 aros_flavour
="palmnative"
8652 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8653 aros_nominal_width
=160
8654 aros_nominal_height
=160
8655 aros_nominal_depth
=1
8656 aros_target_ar_flags
="cru"
8657 aros_compiler_libs
="-lgcc1"
8658 aros_shared_default
=no
8659 aros_shared_cflags
="-fpic"
8660 aros_shared_aflags
=""
8661 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8662 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8663 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8664 aros_debug_aflags
=""
8665 aros_debug_ldflags
="$aros_symbols_debug"
8666 aros_mungwall_debug
="0"
8667 aros_modules_debug
="0"
8668 gcc_target_cpu
="mc68000"
8669 ignore_undefined_symbols
="-ius"
8672 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8678 aros_target_arch
="mac"
8679 aros_shared_default
="no"
8680 case "$target_cpu" in
8682 aros_target_cpu
="m68k"
8683 aros_object_format
="m68kelf"
8684 aros_flavour
="mac68knative"
8685 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8686 aros_nominal_width
=512
8687 aros_nominal_height
=384
8688 aros_nominal_depth
=8
8689 aros_target_ar_flags
="cru"
8690 aros_compiler_libs
="-lgcc1"
8691 aros_shared_default
=no
8692 aros_shared_cflags
="-fpic"
8693 aros_shared_aflags
=""
8694 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8695 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8696 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8697 aros_debug_aflags
=""
8698 aros_debug_ldflags
="$aros_symbols_debug"
8699 aros_mungwall_debug
="0"
8700 aros_modules_debug
="0"
8701 gcc_target_cpu
="mc68000"
8702 ignore_undefined_symbols
="-ius"
8705 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8711 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
8715 #-----------------------------------------------------------------------------
8716 crosstools_guess
="yes"
8717 aros_target_toolchain
="no"
8718 aros_config_sysroot
=""
8719 aros_kernel_sysroot
=""
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8722 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8724 # Check whether --with-kernel-toolchain-prefix was given.
8725 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8726 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8730 $as_echo "$kernel_tool_prefix" >&6; }
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8733 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8735 # Check whether --with-elf-toolchain-prefix was given.
8736 if test "${with_elf_toolchain_prefix+set}" = set; then :
8737 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
8738 crosstools_guess
="no"
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8742 $as_echo "$elf_tool_prefix" >&6; }
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8745 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8747 # Check whether --with-aros-toolchain was given.
8748 if test "${with_aros_toolchain+set}" = set; then :
8749 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
8750 crosstools_guess
="no"
8753 if test "$aros_tool_prefix" = "yes" ; then
8754 aros_tool_prefix
=$aros_target_cpu-aros-
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8757 $as_echo "$aros_tool_prefix" >&6; }
8759 #-----------------------------------------------------------------------------
8760 # Checking if we should build crosstools..
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8762 $as_echo_n "checking whether to build crosstools... " >&6; }
8763 # Check whether --enable-crosstools was given.
8764 if test "${enable_crosstools+set}" = set; then :
8765 enableval
=$enable_crosstools; crosstools
="$enableval"
8767 crosstools
="$crosstools_guess"
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8771 $as_echo "$crosstools" >&6; }
8773 if test "${crosstools}" = "yes"; then
8774 if test "${crosstools_guess}" = "no"; then
8775 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8779 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
8780 aros_target_toolchain
="yes"
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8784 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8786 # Check whether --with-aros-toolchain-install was given.
8787 if test "${with_aros_toolchain_install+set}" = set; then :
8788 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
8791 if test "x$aros_toolchain_install" = "x"; then
8792 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8794 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
8795 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
8796 if test "$crosstools_guess" = "no" ; then
8797 toolchain_needs_sysroot
=yes
8799 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8800 aros_kernel_sysroot
= $aros_config_sysroot
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8805 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8808 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8809 if test "$toolchain_needs_sysroot" = "yes" ; then
8810 aros_config_sysroot
="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8813 $as_echo "$toolchain_needs_sysroot" >&6; }
8815 #-----------------------------------------------------------------------------
8816 if test "$aros_toolchain" = "gnu" ; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8818 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8821 # Check whether --with-binutils-version was given.
8822 if test "${with_binutils_version+set}" = set; then :
8823 withval
=$with_binutils_version; use_binutils_version
="$withval"
8825 use_binutils_version
=""
8828 if test "$use_binutils_version" = ""; then
8829 target_binutils_version
="$default_binutils_version"
8831 target_binutils_version
="$use_binutils_version"
8833 if test "$aros_toolchain" = "gnu" ; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8835 $as_echo "$target_binutils_version" >&6; }
8839 # Helper to identify gcc version
8842 #-----------------------------------------------------------------------------
8843 if test "$aros_toolchain" = "gnu" ; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8845 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8848 # Check whether --with-gcc-version was given.
8849 if test "${with_gcc_version+set}" = set; then :
8850 withval
=$with_gcc_version; use_gcc_version
="$withval"
8855 if test "$use_gcc_version" = ""; then
8856 if test "${crosstools}" = "no"; then
8857 if test "x$aros_toolchain_install" != "x"; then
8859 target_gcc_version
=""
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8861 $as_echo_n "checking gcc version... " >&6; }
8862 if ${ax_cv_gcc_version+:} false
; then :
8863 $as_echo_n "(cached) " >&6
8866 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
8867 if test "x$ax_cv_gcc_version" = "x"; then :
8869 ax_cv_gcc_version
=""
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8875 $as_echo "$ax_cv_gcc_version" >&6; }
8876 target_gcc_version
=$ax_cv_gcc_version
8881 if test "$use_gcc_version" = ""; then
8882 target_gcc_version
="$default_gcc_version"
8885 target_gcc_version
="$use_gcc_version"
8887 if test "$aros_toolchain" = "gnu" ; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8889 $as_echo "$target_gcc_version" >&6; }
8891 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'.' -f1)
8892 GCC_VERSION_MINOR
=$
(echo $target_gcc_version | cut
-d'.' -f2)
8893 GCC_VERSION_PATCH
=$
(echo $target_gcc_version | cut
-d'.' -f3)
8895 gcc_fix_bitfields
="false"
8896 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8897 gcc_fix_bitfields
="true"
8899 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8900 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8901 gcc_fix_bitfields
="true"
8906 if test "$gcc_fix_bitfields" = "true" ; then
8907 case "$aros_target_cpu" in
8909 aros_kernel_cflags
="$aros_kernel_cflags -mno-ms-bitfields"
8910 aros_target_cflags
="$aros_target_cflags -mno-ms-bitfields"
8913 aros_kernel_cflags
="$aros_kernel_cflags -mno-ms-bitfields"
8914 aros_target_cflags
="$aros_target_cflags -mno-ms-bitfields"
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8921 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8922 # Check whether --enable-objc was given.
8923 if test "${enable_objc+set}" = set; then :
8924 enableval
=$enable_objc; objc
="$enableval"
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8930 $as_echo "$objc" >&6; }
8931 if test "x$objc" = "xyes"; then
8934 objc_target
="no-objc"
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8938 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8939 # Check whether --enable-java was given.
8940 if test "${enable_java+set}" = set; then :
8941 enableval
=$enable_java; java
="$enableval"
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8947 $as_echo "$java" >&6; }
8948 if test "x$java" != "xno"; then
8951 java_target
="no-java"
8954 spec_obj_format
="-m $aros_object_format"
8955 # Now process extra architecture-specific options.
8956 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8957 # as well as floating-point ABI.
8958 case "$aros_target_cpu" in
8960 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8963 if test "$gcc_default_cpu" = ""; then
8964 gcc_default_cpu
="armv6"
8966 if test "$gcc_default_fpu" = ""; then
8967 gcc_default_fpu
="vfp"
8969 if test "$gcc_default_float_abi" = ""; then
8970 if test "$target_cpu" = "armhf"; then
8971 gcc_default_float_abi
="hard"
8973 gcc_default_float_abi
="softfp"
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8978 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8980 # Check whether --with-cpu was given.
8981 if test "${with_cpu+set}" = set; then :
8982 withval
=$with_cpu; aros_gcc_cpu
="$withval"
8984 aros_gcc_cpu
=$gcc_default_cpu
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8988 $as_echo "$aros_gcc_cpu" >&6; }
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8991 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8993 # Check whether --with-fpu was given.
8994 if test "${with_fpu+set}" = set; then :
8995 withval
=$with_fpu; aros_gcc_fpu
="$withval"
8997 aros_gcc_fpu
=$gcc_default_fpu
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9001 $as_echo "$aros_gcc_fpu" >&6; }
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9004 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9006 # Check whether --with-float was given.
9007 if test "${with_float+set}" = set; then :
9008 withval
=$with_float; aros_gcc_float_abi
="$withval"
9010 aros_gcc_float_abi
=$gcc_default_float_abi
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9014 $as_echo "$aros_gcc_float_abi" >&6; }
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9017 $as_echo_n "checking Which ARM mode to use... " >&6; }
9018 if test "$aros_target_cpu_mode" = ""; then
9019 aros_target_cpu_mode
="arm32"
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9021 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9024 $as_echo "$aros_target_cpu_mode" >&6; }
9027 case "$aros_target_cpu_mode" in
9029 gcc_default_mode
="arm"
9030 aros_isa_flags
="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9033 as_fn_error $?
"ARM 64-bit mode is unsupported" "$LINENO" 5
9036 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9039 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9042 gcc_default_mode
="thumb"
9043 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9044 aros_isa_flags
="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9047 as_fn_error $?
"Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9051 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9052 aros_config_aflags
="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9055 aros_isa_flags
="-m32 -march=i486"
9056 aros_kernel_cflags
="$aros_kernel_cflags $aros_isa_flags"
9057 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
9061 # Some architectures may need custom ELF specs.
9062 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
9063 elf_specs_in
=config
/${aros_object_format}-specs.
in
9065 elf_specs_in
=config
/elf-specs.
in
9068 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9069 # Since we override specs, we may need to put these defines there
9070 if test "$gcc_target_cpu" != ""; then
9071 gcc_target_cpu
="-D__${gcc_target_cpu}__"
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9075 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9077 # Check whether --with-portssources was given.
9078 if test "${with_portssources+set}" = set; then :
9079 withval
=$with_portssources; with_portssrcdir
=$withval
9081 with_portssrcdir
="default"
9084 if test "$with_portssrcdir" = "default"; then
9085 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9087 AROS_PORTSSRCDIR
="$with_portssrcdir"
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9090 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9093 $as_echo_n "checking which bootloader to use... " >&6; }
9095 # Check whether --with-bootloader was given.
9096 if test "${with_bootloader+set}" = set; then :
9097 withval
=$with_bootloader; target_bootloader
=$withval
9099 target_bootloader
=$target_bootloader
9102 if test "$target_bootloader" = "none"; then
9103 aros_target_bootloader
=""
9105 aros_target_bootloader
="$target_bootloader"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9108 $as_echo "$target_bootloader" >&6; }
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9111 $as_echo_n "checking which icon-set to use... " >&6; }
9113 # Check whether --with-iconset was given.
9114 if test "${with_iconset+set}" = set; then :
9115 withval
=$with_iconset; target_iconset
=$withval
9117 target_iconset
="default"
9120 if test "$target_iconset" = "default"; then
9121 aros_target_iconset
="Gorilla"
9122 target_iconset
="default (Gorilla)"
9124 aros_target_iconset
="$target_iconset"
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9127 $as_echo "$target_iconset" >&6; }
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9130 $as_echo_n "checking which GUI Theme to use... " >&6; }
9132 # Check whether --with-theme was given.
9133 if test "${with_theme+set}" = set; then :
9134 withval
=$with_theme; target_guitheme
=$withval
9136 target_guitheme
="default"
9139 if test "$target_guitheme" = "default"; then
9140 aros_target_guitheme
="Ice"
9142 aros_target_guitheme
="$target_guitheme"
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9145 $as_echo "$aros_target_guitheme" >&6; }
9147 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9151 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9155 if test "$aros_host_cpu" == "x86_64" ; then
9156 if test "$aros_target_cpu" == "i386" ; then
9161 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9162 if test "$aros_host_arch" != "$aros_target_arch" ; then
9166 if test "$host_cc_elf" = "no" ; then
9171 if test "$cross_compiling" = "no" ; then
9172 kernel_tool_prefix
=""
9173 if test "$host_cc_elf" = "yes" ; then
9178 if test "$kernel_tool_version" != ""; then
9179 kernel_tool_version
="-$kernel_tool_version"
9182 #######################################################################
9183 ## Compute what toolchains to use, and their paths ##
9184 #######################################################################
9186 # This takes, as input:
9187 # crosstools {yes,no}
9188 # kernel_tool_version {"",[version]}
9189 # target_tool_version {"",[version]}
9190 # kernel_tool_prefix {none,[some-arch-os-]}
9192 # target_tool_prefix ${aros_target_cpu}-aros-
9193 # aros_tool_prefix ${aros_target_cpu}-aros-
9196 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9197 # Where the 'kernel' binaries are located
9198 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9199 # Where the 'target' binaries are located
9200 # (not the symlink farm - that is aros_target_*!)
9203 # if crosstools then
9204 # if kernel_tools_prefix = "no-kernel-prefix-"
9205 # aros_kernel_* = crosstools cc paths
9206 # aros_kernel_cc = elf cc wrapper around crosstools cc
9208 # VALIDATE(${kernel_tools_prefix}*)
9209 # aros_kernel_* = ${kernel_tools_prefix}*
9210 # if ${kernel_tools_prefix}cc is an AROS gcc
9211 # aros_kernel_cc = ${kernel_tools_prefix}cc
9213 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9217 # orig_target_* = aros built crosstools
9218 # orig_target_cc = elf cc wrapper around crosstools cc
9220 # VALIDATE(${kernel_tools_prefix}*)
9222 # orig_target_* = aros_kernel_*
9223 # if aros_kernel_cc is an AROS gcc
9224 # orig_target_cc = aros_kernel_cc
9226 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9230 if test "$aros_toolchain" = "gnu" ; then
9231 target_tool_prefix
="${aros_target_cpu}-aros-"
9232 elif test "$aros_toolchain" = "llvm" ; then
9233 target_tool_prefix
="bin/"
9236 if test "$kernel_tool_prefix" != "" ; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9238 $as_echo_n "checking which kernel tools... " >&6; }
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9240 $as_echo "$kernel_tool_prefix" >&6; };
9243 if test "$kernel_tool_prefix" = "none" ; then
9244 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9245 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9248 # Kernel tools required - find them
9249 # Note that 'normally', aros_kernel_* overrides will be
9250 # empty, unless specified in the per-arch sections above.
9251 if test "x$aros_kernel_cpp" = "x"; then
9252 aros_kernel_cpp
=${kernel_tool_prefix}${CPP}
9255 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9256 if test "$cross_compiling" = "yes" ; then
9257 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9258 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260 $as_echo_n "checking for $ac_word... " >&6; }
9261 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9262 $as_echo_n "(cached) " >&6
9264 case $aros_kernel_cpp in
9266 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9273 test -z "$as_dir" && as_dir
=.
9274 for ac_exec_ext
in '' $ac_executable_extensions; do
9275 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9276 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9287 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9288 if test -n "$aros_kernel_cpp"; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9290 $as_echo "$aros_kernel_cpp" >&6; }
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9293 $as_echo "no" >&6; }
9298 if test "$GCC" = "yes"; then
9299 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
9300 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9301 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303 $as_echo_n "checking for $ac_word... " >&6; }
9304 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9305 $as_echo_n "(cached) " >&6
9307 case $aros_kernel_cpp in
9309 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9313 for as_dir
in `dirname $aros_gcc_cpp`
9316 test -z "$as_dir" && as_dir
=.
9317 for ac_exec_ext
in '' $ac_executable_extensions; do
9318 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9319 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9330 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9331 if test -n "$aros_kernel_cpp"; then
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9333 $as_echo "$aros_kernel_cpp" >&6; }
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9341 if test "$aros_kernel_cpp" = ""; then
9342 # Extract the first word of "cpp", so it can be a program name with args.
9343 set dummy cpp
; ac_word
=$2
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9345 $as_echo_n "checking for $ac_word... " >&6; }
9346 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9347 $as_echo_n "(cached) " >&6
9349 case $aros_kernel_cpp in
9351 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9358 test -z "$as_dir" && as_dir
=.
9359 for ac_exec_ext
in '' $ac_executable_extensions; do
9360 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9361 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9372 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9373 if test -n "$aros_kernel_cpp"; then
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9375 $as_echo "$aros_kernel_cpp" >&6; }
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9378 $as_echo "no" >&6; }
9385 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9386 set dummy
$aros_kernel_cpp${kernel_tool_version}; ac_word
=$2
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9388 $as_echo_n "checking for $ac_word... " >&6; }
9389 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9390 $as_echo_n "(cached) " >&6
9392 case $aros_kernel_cpp in
9394 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9401 test -z "$as_dir" && as_dir
=.
9402 for ac_exec_ext
in '' $ac_executable_extensions; do
9403 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9404 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9415 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9416 if test -n "$aros_kernel_cpp"; then
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9418 $as_echo "$aros_kernel_cpp" >&6; }
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421 $as_echo "no" >&6; }
9428 if test "$aros_kernel_cpp" = ""; then
9431 if test "$aros_kernel_cpp" = "no"; then
9434 if test "$req_avail" = "no"; then
9435 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9437 if test "x$aros_kernel_cc" = "x"; then
9438 aros_kernel_cc
=${kernel_tool_prefix}${CC}
9441 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9442 if test "$cross_compiling" = "yes" ; then
9443 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9444 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9446 $as_echo_n "checking for $ac_word... " >&6; }
9447 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9448 $as_echo_n "(cached) " >&6
9450 case $aros_kernel_cc in
9452 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9459 test -z "$as_dir" && as_dir
=.
9460 for ac_exec_ext
in '' $ac_executable_extensions; do
9461 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9462 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9474 if test -n "$aros_kernel_cc"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9476 $as_echo "$aros_kernel_cc" >&6; }
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9484 if test "$GCC" = "yes"; then
9485 aros_gcc_cc
=`$CC -print-prog-name=cc`
9486 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9487 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9489 $as_echo_n "checking for $ac_word... " >&6; }
9490 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9491 $as_echo_n "(cached) " >&6
9493 case $aros_kernel_cc in
9495 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9499 for as_dir
in `dirname $aros_gcc_cc`
9502 test -z "$as_dir" && as_dir
=.
9503 for ac_exec_ext
in '' $ac_executable_extensions; do
9504 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9505 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9517 if test -n "$aros_kernel_cc"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9519 $as_echo "$aros_kernel_cc" >&6; }
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9527 if test "$aros_kernel_cc" = ""; then
9528 # Extract the first word of "cc", so it can be a program name with args.
9529 set dummy cc
; ac_word
=$2
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 $as_echo_n "checking for $ac_word... " >&6; }
9532 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9533 $as_echo_n "(cached) " >&6
9535 case $aros_kernel_cc in
9537 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9544 test -z "$as_dir" && as_dir
=.
9545 for ac_exec_ext
in '' $ac_executable_extensions; do
9546 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9547 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9559 if test -n "$aros_kernel_cc"; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9561 $as_echo "$aros_kernel_cc" >&6; }
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9571 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9572 set dummy
$aros_kernel_cc${kernel_tool_version}; ac_word
=$2
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9576 $as_echo_n "(cached) " >&6
9578 case $aros_kernel_cc in
9580 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9587 test -z "$as_dir" && as_dir
=.
9588 for ac_exec_ext
in '' $ac_executable_extensions; do
9589 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9590 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9602 if test -n "$aros_kernel_cc"; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9604 $as_echo "$aros_kernel_cc" >&6; }
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607 $as_echo "no" >&6; }
9614 if test "$aros_kernel_cc" = ""; then
9617 if test "$aros_kernel_cc" = "no"; then
9620 if test "$req_avail" = "no"; then
9621 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9623 if test "x$aros_kernel_cxx" = "x"; then
9624 aros_kernel_cxx
=${kernel_tool_prefix}${CXX}
9627 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9628 if test "$cross_compiling" = "yes" ; then
9629 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9630 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632 $as_echo_n "checking for $ac_word... " >&6; }
9633 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9634 $as_echo_n "(cached) " >&6
9636 case $aros_kernel_cxx in
9638 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9645 test -z "$as_dir" && as_dir
=.
9646 for ac_exec_ext
in '' $ac_executable_extensions; do
9647 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9648 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9659 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9660 if test -n "$aros_kernel_cxx"; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9662 $as_echo "$aros_kernel_cxx" >&6; }
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 $as_echo "no" >&6; }
9670 if test "$GCC" = "yes"; then
9671 aros_gcc_cxx
=`$CC -print-prog-name=cxx`
9672 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9673 set dummy
`basename $aros_gcc_cxx`; 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_cxx+:} false
; then :
9677 $as_echo_n "(cached) " >&6
9679 case $aros_kernel_cxx in
9681 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9685 for as_dir
in `dirname $aros_gcc_cxx`
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_cxx
="$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_cxx
=$ac_cv_path_aros_kernel_cxx
9703 if test -n "$aros_kernel_cxx"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9705 $as_echo "$aros_kernel_cxx" >&6; }
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9713 if test "$aros_kernel_cxx" = ""; then
9714 # Extract the first word of "cxx", so it can be a program name with args.
9715 set dummy cxx
; ac_word
=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9719 $as_echo_n "(cached) " >&6
9721 case $aros_kernel_cxx in
9723 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9730 test -z "$as_dir" && as_dir
=.
9731 for ac_exec_ext
in '' $ac_executable_extensions; do
9732 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9733 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9744 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9745 if test -n "$aros_kernel_cxx"; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9747 $as_echo "$aros_kernel_cxx" >&6; }
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 $as_echo "no" >&6; }
9757 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9758 set dummy
$aros_kernel_cxx${kernel_tool_version}; ac_word
=$2
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760 $as_echo_n "checking for $ac_word... " >&6; }
9761 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9762 $as_echo_n "(cached) " >&6
9764 case $aros_kernel_cxx in
9766 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9773 test -z "$as_dir" && as_dir
=.
9774 for ac_exec_ext
in '' $ac_executable_extensions; do
9775 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9776 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9787 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9788 if test -n "$aros_kernel_cxx"; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9790 $as_echo "$aros_kernel_cxx" >&6; }
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9793 $as_echo "no" >&6; }
9799 # If it's set, make sure it's really there
9800 if test "x$aros_kernel_cxx" != "x" ; then
9802 if test "$aros_kernel_cxx" = ""; then
9805 if test "$aros_kernel_cxx" = "no"; then
9808 if test "$req_avail" = "no"; then
9809 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9813 if test "$aros_kernel_ld" = ""; then
9814 if test "$cross_compiling" = "yes" ; then
9815 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9816 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818 $as_echo_n "checking for $ac_word... " >&6; }
9819 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9820 $as_echo_n "(cached) " >&6
9822 case $aros_kernel_ld in
9824 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9831 test -z "$as_dir" && as_dir
=.
9832 for ac_exec_ext
in '' $ac_executable_extensions; do
9833 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9834 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9845 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9846 if test -n "$aros_kernel_ld"; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9848 $as_echo "$aros_kernel_ld" >&6; }
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851 $as_echo "no" >&6; }
9856 if test "$GCC" = "yes"; then
9857 aros_gcc_ld
=`$CC -print-prog-name=ld`
9858 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9859 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9863 $as_echo_n "(cached) " >&6
9865 case $aros_kernel_ld in
9867 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9871 for as_dir
in `dirname $aros_gcc_ld`
9874 test -z "$as_dir" && as_dir
=.
9875 for ac_exec_ext
in '' $ac_executable_extensions; do
9876 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9877 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9888 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9889 if test -n "$aros_kernel_ld"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9891 $as_echo "$aros_kernel_ld" >&6; }
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9899 if test "$aros_kernel_ld" = ""; then
9900 # Extract the first word of "ld", so it can be a program name with args.
9901 set dummy ld
; ac_word
=$2
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903 $as_echo_n "checking for $ac_word... " >&6; }
9904 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9905 $as_echo_n "(cached) " >&6
9907 case $aros_kernel_ld in
9909 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9916 test -z "$as_dir" && as_dir
=.
9917 for ac_exec_ext
in '' $ac_executable_extensions; do
9918 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9930 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9931 if test -n "$aros_kernel_ld"; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9933 $as_echo "$aros_kernel_ld" >&6; }
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; }
9943 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9944 set dummy
$aros_kernel_ld; ac_word
=$2
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9946 $as_echo_n "checking for $ac_word... " >&6; }
9947 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9948 $as_echo_n "(cached) " >&6
9950 case $aros_kernel_ld in
9952 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9959 test -z "$as_dir" && as_dir
=.
9960 for ac_exec_ext
in '' $ac_executable_extensions; do
9961 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9962 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9974 if test -n "$aros_kernel_ld"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9976 $as_echo "$aros_kernel_ld" >&6; }
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979 $as_echo "no" >&6; }
9986 if test "$aros_kernel_ld" = ""; then
9989 if test "$aros_kernel_ld" = "no"; then
9992 if test "$req_avail" = "no"; then
9993 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9996 if test "$aros_kernel_as" = ""; then
9997 if test "$cross_compiling" = "yes" ; then
9998 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9999 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001 $as_echo_n "checking for $ac_word... " >&6; }
10002 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10003 $as_echo_n "(cached) " >&6
10005 case $aros_kernel_as in
10007 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10011 for as_dir
in $PATH
10014 test -z "$as_dir" && as_dir
=.
10015 for ac_exec_ext
in '' $ac_executable_extensions; do
10016 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10017 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10028 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10029 if test -n "$aros_kernel_as"; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10031 $as_echo "$aros_kernel_as" >&6; }
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10039 if test "$GCC" = "yes"; then
10040 aros_gcc_as
=`$CC -print-prog-name=as`
10041 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10042 set dummy
`basename $aros_gcc_as`; ac_word
=$2
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 $as_echo_n "checking for $ac_word... " >&6; }
10045 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10046 $as_echo_n "(cached) " >&6
10048 case $aros_kernel_as in
10050 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10054 for as_dir
in `dirname $aros_gcc_as`
10057 test -z "$as_dir" && as_dir
=.
10058 for ac_exec_ext
in '' $ac_executable_extensions; do
10059 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10072 if test -n "$aros_kernel_as"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10074 $as_echo "$aros_kernel_as" >&6; }
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10082 if test "$aros_kernel_as" = ""; then
10083 # Extract the first word of "as", so it can be a program name with args.
10084 set dummy as
; ac_word
=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10088 $as_echo_n "(cached) " >&6
10090 case $aros_kernel_as in
10092 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10096 for as_dir
in $PATH
10099 test -z "$as_dir" && as_dir
=.
10100 for ac_exec_ext
in '' $ac_executable_extensions; do
10101 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10102 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10113 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10114 if test -n "$aros_kernel_as"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10116 $as_echo "$aros_kernel_as" >&6; }
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10126 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10127 set dummy
$aros_kernel_as; ac_word
=$2
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129 $as_echo_n "checking for $ac_word... " >&6; }
10130 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10131 $as_echo_n "(cached) " >&6
10133 case $aros_kernel_as in
10135 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10139 for as_dir
in $PATH
10142 test -z "$as_dir" && as_dir
=.
10143 for ac_exec_ext
in '' $ac_executable_extensions; do
10144 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10145 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10157 if test -n "$aros_kernel_as"; then
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10159 $as_echo "$aros_kernel_as" >&6; }
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 $as_echo "no" >&6; }
10169 if test "$aros_kernel_as" = ""; then
10172 if test "$aros_kernel_as" = "no"; then
10175 if test "$req_avail" = "no"; then
10176 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
10179 if test "$aros_kernel_ar" = ""; then
10180 if test "$cross_compiling" = "yes" ; then
10181 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10182 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184 $as_echo_n "checking for $ac_word... " >&6; }
10185 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10186 $as_echo_n "(cached) " >&6
10188 case $aros_kernel_ar in
10190 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10194 for as_dir
in $PATH
10197 test -z "$as_dir" && as_dir
=.
10198 for ac_exec_ext
in '' $ac_executable_extensions; do
10199 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10211 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10212 if test -n "$aros_kernel_ar"; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10214 $as_echo "$aros_kernel_ar" >&6; }
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10222 if test "$GCC" = "yes"; then
10223 aros_gcc_ar
=`$CC -print-prog-name=ar`
10224 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10225 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10227 $as_echo_n "checking for $ac_word... " >&6; }
10228 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10229 $as_echo_n "(cached) " >&6
10231 case $aros_kernel_ar in
10233 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10237 for as_dir
in `dirname $aros_gcc_ar`
10240 test -z "$as_dir" && as_dir
=.
10241 for ac_exec_ext
in '' $ac_executable_extensions; do
10242 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10243 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10254 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10255 if test -n "$aros_kernel_ar"; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10257 $as_echo "$aros_kernel_ar" >&6; }
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260 $as_echo "no" >&6; }
10265 if test "$aros_kernel_ar" = ""; then
10266 # Extract the first word of "ar", so it can be a program name with args.
10267 set dummy
ar; ac_word
=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10271 $as_echo_n "(cached) " >&6
10273 case $aros_kernel_ar in
10275 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10279 for as_dir
in $PATH
10282 test -z "$as_dir" && as_dir
=.
10283 for ac_exec_ext
in '' $ac_executable_extensions; do
10284 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10285 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10296 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10297 if test -n "$aros_kernel_ar"; then
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10299 $as_echo "$aros_kernel_ar" >&6; }
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302 $as_echo "no" >&6; }
10309 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10310 set dummy
$aros_kernel_ar; ac_word
=$2
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312 $as_echo_n "checking for $ac_word... " >&6; }
10313 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10314 $as_echo_n "(cached) " >&6
10316 case $aros_kernel_ar in
10318 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10322 for as_dir
in $PATH
10325 test -z "$as_dir" && as_dir
=.
10326 for ac_exec_ext
in '' $ac_executable_extensions; do
10327 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10328 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10340 if test -n "$aros_kernel_ar"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10342 $as_echo "$aros_kernel_ar" >&6; }
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10352 if test "$aros_kernel_ar" = ""; then
10355 if test "$aros_kernel_ar" = "no"; then
10358 if test "$req_avail" = "no"; then
10359 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10362 if test "$aros_kernel_ranlib" = ""; then
10363 if test "$cross_compiling" = "yes" ; then
10364 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10365 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10369 $as_echo_n "(cached) " >&6
10371 case $aros_kernel_ranlib in
10373 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10377 for as_dir
in $PATH
10380 test -z "$as_dir" && as_dir
=.
10381 for ac_exec_ext
in '' $ac_executable_extensions; do
10382 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10383 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10395 if test -n "$aros_kernel_ranlib"; then
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10397 $as_echo "$aros_kernel_ranlib" >&6; }
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10405 if test "$GCC" = "yes"; then
10406 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
10407 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10408 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410 $as_echo_n "checking for $ac_word... " >&6; }
10411 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10412 $as_echo_n "(cached) " >&6
10414 case $aros_kernel_ranlib in
10416 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10420 for as_dir
in `dirname $aros_gcc_ranlib`
10423 test -z "$as_dir" && as_dir
=.
10424 for ac_exec_ext
in '' $ac_executable_extensions; do
10425 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10426 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10438 if test -n "$aros_kernel_ranlib"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10440 $as_echo "$aros_kernel_ranlib" >&6; }
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10448 if test "$aros_kernel_ranlib" = ""; then
10449 # Extract the first word of "ranlib", so it can be a program name with args.
10450 set dummy ranlib
; ac_word
=$2
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452 $as_echo_n "checking for $ac_word... " >&6; }
10453 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10454 $as_echo_n "(cached) " >&6
10456 case $aros_kernel_ranlib in
10458 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10462 for as_dir
in $PATH
10465 test -z "$as_dir" && as_dir
=.
10466 for ac_exec_ext
in '' $ac_executable_extensions; do
10467 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10468 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10479 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10480 if test -n "$aros_kernel_ranlib"; then
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10482 $as_echo "$aros_kernel_ranlib" >&6; }
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 $as_echo "no" >&6; }
10492 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10493 set dummy
$aros_kernel_ranlib; ac_word
=$2
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495 $as_echo_n "checking for $ac_word... " >&6; }
10496 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10497 $as_echo_n "(cached) " >&6
10499 case $aros_kernel_ranlib in
10501 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10505 for as_dir
in $PATH
10508 test -z "$as_dir" && as_dir
=.
10509 for ac_exec_ext
in '' $ac_executable_extensions; do
10510 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10523 if test -n "$aros_kernel_ranlib"; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10525 $as_echo "$aros_kernel_ranlib" >&6; }
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10535 if test "$aros_kernel_ranlib" = ""; then
10538 if test "$aros_kernel_ranlib" = "no"; then
10541 if test "$req_avail" = "no"; then
10542 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10545 if test "$aros_kernel_nm" = ""; then
10546 if test "$cross_compiling" = "yes" ; then
10547 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10548 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550 $as_echo_n "checking for $ac_word... " >&6; }
10551 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10552 $as_echo_n "(cached) " >&6
10554 case $aros_kernel_nm in
10556 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10560 for as_dir
in $PATH
10563 test -z "$as_dir" && as_dir
=.
10564 for ac_exec_ext
in '' $ac_executable_extensions; do
10565 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10566 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10577 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10578 if test -n "$aros_kernel_nm"; then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10580 $as_echo "$aros_kernel_nm" >&6; }
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10588 if test "$GCC" = "yes"; then
10589 aros_gcc_nm
=`$CC -print-prog-name=nm`
10590 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10591 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593 $as_echo_n "checking for $ac_word... " >&6; }
10594 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10595 $as_echo_n "(cached) " >&6
10597 case $aros_kernel_nm in
10599 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10603 for as_dir
in `dirname $aros_gcc_nm`
10606 test -z "$as_dir" && as_dir
=.
10607 for ac_exec_ext
in '' $ac_executable_extensions; do
10608 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10609 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10620 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10621 if test -n "$aros_kernel_nm"; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10623 $as_echo "$aros_kernel_nm" >&6; }
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10631 if test "$aros_kernel_nm" = ""; then
10632 # Extract the first word of "nm", so it can be a program name with args.
10633 set dummy nm
; ac_word
=$2
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10635 $as_echo_n "checking for $ac_word... " >&6; }
10636 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10637 $as_echo_n "(cached) " >&6
10639 case $aros_kernel_nm in
10641 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10645 for as_dir
in $PATH
10648 test -z "$as_dir" && as_dir
=.
10649 for ac_exec_ext
in '' $ac_executable_extensions; do
10650 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10651 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10662 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10663 if test -n "$aros_kernel_nm"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10665 $as_echo "$aros_kernel_nm" >&6; }
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668 $as_echo "no" >&6; }
10675 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10676 set dummy
$aros_kernel_nm; ac_word
=$2
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10678 $as_echo_n "checking for $ac_word... " >&6; }
10679 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10680 $as_echo_n "(cached) " >&6
10682 case $aros_kernel_nm in
10684 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10688 for as_dir
in $PATH
10691 test -z "$as_dir" && as_dir
=.
10692 for ac_exec_ext
in '' $ac_executable_extensions; do
10693 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10694 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10705 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10706 if test -n "$aros_kernel_nm"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10708 $as_echo "$aros_kernel_nm" >&6; }
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
10718 if test "$aros_kernel_nm" = ""; then
10721 if test "$aros_kernel_nm" = "no"; then
10724 if test "$req_avail" = "no"; then
10725 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10728 if test "$aros_kernel_strip" = ""; then
10729 if test "$cross_compiling" = "yes" ; then
10730 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10731 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10735 $as_echo_n "(cached) " >&6
10737 case $aros_kernel_strip in
10739 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10743 for as_dir
in $PATH
10746 test -z "$as_dir" && as_dir
=.
10747 for ac_exec_ext
in '' $ac_executable_extensions; do
10748 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10749 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10761 if test -n "$aros_kernel_strip"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10763 $as_echo "$aros_kernel_strip" >&6; }
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10771 if test "$GCC" = "yes"; then
10772 aros_gcc_strip
=`$CC -print-prog-name=strip`
10773 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10774 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10776 $as_echo_n "checking for $ac_word... " >&6; }
10777 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10778 $as_echo_n "(cached) " >&6
10780 case $aros_kernel_strip in
10782 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10786 for as_dir
in `dirname $aros_gcc_strip`
10789 test -z "$as_dir" && as_dir
=.
10790 for ac_exec_ext
in '' $ac_executable_extensions; do
10791 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10792 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10804 if test -n "$aros_kernel_strip"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10806 $as_echo "$aros_kernel_strip" >&6; }
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10814 if test "$aros_kernel_strip" = ""; then
10815 # Extract the first word of "strip", so it can be a program name with args.
10816 set dummy strip
; ac_word
=$2
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818 $as_echo_n "checking for $ac_word... " >&6; }
10819 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10820 $as_echo_n "(cached) " >&6
10822 case $aros_kernel_strip in
10824 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10828 for as_dir
in $PATH
10831 test -z "$as_dir" && as_dir
=.
10832 for ac_exec_ext
in '' $ac_executable_extensions; do
10833 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10834 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10846 if test -n "$aros_kernel_strip"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10848 $as_echo "$aros_kernel_strip" >&6; }
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10858 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10859 set dummy
$aros_kernel_strip; ac_word
=$2
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10861 $as_echo_n "checking for $ac_word... " >&6; }
10862 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10863 $as_echo_n "(cached) " >&6
10865 case $aros_kernel_strip in
10867 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10871 for as_dir
in $PATH
10874 test -z "$as_dir" && as_dir
=.
10875 for ac_exec_ext
in '' $ac_executable_extensions; do
10876 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10877 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10889 if test -n "$aros_kernel_strip"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10891 $as_echo "$aros_kernel_strip" >&6; }
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10901 if test "$aros_kernel_strip" = ""; then
10904 if test "$aros_kernel_strip" = "no"; then
10907 if test "$req_avail" = "no"; then
10908 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10911 # Objcopy and objdump are not required for the kernel
10912 # toolchain on many architectures.
10913 # So we'll look for them, but not make them strictly required.
10915 if test "$aros_kernel_objcopy" = ""; then
10916 if test "$cross_compiling" = "yes" ; then
10917 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10918 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920 $as_echo_n "checking for $ac_word... " >&6; }
10921 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10922 $as_echo_n "(cached) " >&6
10924 case $aros_kernel_objcopy in
10926 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10930 for as_dir
in $PATH
10933 test -z "$as_dir" && as_dir
=.
10934 for ac_exec_ext
in '' $ac_executable_extensions; do
10935 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10936 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10948 if test -n "$aros_kernel_objcopy"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10950 $as_echo "$aros_kernel_objcopy" >&6; }
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10958 if test "$GCC" = "yes"; then
10959 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
10960 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10961 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963 $as_echo_n "checking for $ac_word... " >&6; }
10964 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10965 $as_echo_n "(cached) " >&6
10967 case $aros_kernel_objcopy in
10969 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10973 for as_dir
in `dirname $aros_gcc_objcopy`
10976 test -z "$as_dir" && as_dir
=.
10977 for ac_exec_ext
in '' $ac_executable_extensions; do
10978 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10979 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10991 if test -n "$aros_kernel_objcopy"; then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10993 $as_echo "$aros_kernel_objcopy" >&6; }
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996 $as_echo "no" >&6; }
11001 if test "$aros_kernel_objcopy" = ""; then
11002 # Extract the first word of "objcopy", so it can be a program name with args.
11003 set dummy objcopy
; ac_word
=$2
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005 $as_echo_n "checking for $ac_word... " >&6; }
11006 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11007 $as_echo_n "(cached) " >&6
11009 case $aros_kernel_objcopy in
11011 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11015 for as_dir
in $PATH
11018 test -z "$as_dir" && as_dir
=.
11019 for ac_exec_ext
in '' $ac_executable_extensions; do
11020 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11021 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11032 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11033 if test -n "$aros_kernel_objcopy"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11035 $as_echo "$aros_kernel_objcopy" >&6; }
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11045 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11046 set dummy
$aros_kernel_objcopy; ac_word
=$2
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11048 $as_echo_n "checking for $ac_word... " >&6; }
11049 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11050 $as_echo_n "(cached) " >&6
11052 case $aros_kernel_objcopy in
11054 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11058 for as_dir
in $PATH
11061 test -z "$as_dir" && as_dir
=.
11062 for ac_exec_ext
in '' $ac_executable_extensions; do
11063 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11064 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11075 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11076 if test -n "$aros_kernel_objcopy"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11078 $as_echo "$aros_kernel_objcopy" >&6; }
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11088 if test "$aros_kernel_objdump" = ""; then
11089 if test "$cross_compiling" = "yes" ; then
11090 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11091 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11095 $as_echo_n "(cached) " >&6
11097 case $aros_kernel_objdump in
11099 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11103 for as_dir
in $PATH
11106 test -z "$as_dir" && as_dir
=.
11107 for ac_exec_ext
in '' $ac_executable_extensions; do
11108 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11109 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11121 if test -n "$aros_kernel_objdump"; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11123 $as_echo "$aros_kernel_objdump" >&6; }
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; }
11131 if test "$GCC" = "yes"; then
11132 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
11133 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11134 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136 $as_echo_n "checking for $ac_word... " >&6; }
11137 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11138 $as_echo_n "(cached) " >&6
11140 case $aros_kernel_objdump in
11142 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11146 for as_dir
in `dirname $aros_gcc_objdump`
11149 test -z "$as_dir" && as_dir
=.
11150 for ac_exec_ext
in '' $ac_executable_extensions; do
11151 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11152 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11163 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11164 if test -n "$aros_kernel_objdump"; then
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11166 $as_echo "$aros_kernel_objdump" >&6; }
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11174 if test "$aros_kernel_objdump" = ""; then
11175 # Extract the first word of "objdump", so it can be a program name with args.
11176 set dummy objdump
; ac_word
=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 $as_echo_n "checking for $ac_word... " >&6; }
11179 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11180 $as_echo_n "(cached) " >&6
11182 case $aros_kernel_objdump in
11184 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11188 for as_dir
in $PATH
11191 test -z "$as_dir" && as_dir
=.
11192 for ac_exec_ext
in '' $ac_executable_extensions; do
11193 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11194 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11206 if test -n "$aros_kernel_objdump"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11208 $as_echo "$aros_kernel_objdump" >&6; }
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11218 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11219 set dummy
$aros_kernel_objdump; ac_word
=$2
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221 $as_echo_n "checking for $ac_word... " >&6; }
11222 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11223 $as_echo_n "(cached) " >&6
11225 case $aros_kernel_objdump in
11227 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11231 for as_dir
in $PATH
11234 test -z "$as_dir" && as_dir
=.
11235 for ac_exec_ext
in '' $ac_executable_extensions; do
11236 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11237 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11248 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11249 if test -n "$aros_kernel_objdump"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11251 $as_echo "$aros_kernel_objdump" >&6; }
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11260 if test "x${crosstools}" != "xyes" ; then
11262 if test "$aros_kernel_objcopy" = ""; then
11265 if test "$aros_kernel_objcopy" = "no"; then
11268 if test "$req_avail" = "no"; then
11269 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11272 if test "$aros_kernel_objdump" = ""; then
11275 if test "$aros_kernel_objdump" = "no"; then
11278 if test "$req_avail" = "no"; then
11279 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11285 $as_echo_n "checking which target tools to use... " >&6; }
11286 if test "$aros_target_toolchain" = "yes"; then
11287 if test "$aros_toolchain" = "llvm" ; then
11290 msg_result
=$target_tool_prefix
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11293 $as_echo "$msg_result" >&6; }
11294 # We are building AROS crosstools
11295 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11296 orig_target_cc
="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11297 orig_target_cxx
="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11298 orig_target_cpp
="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11299 orig_target_ld
="${tmp_tool_prefix}${toolchain_ld}"
11300 orig_target_as
="${tmp_tool_prefix}${toolchain_as}"
11301 orig_target_ar
="${tmp_tool_prefix}${toolchain_ar}"
11302 orig_target_ranlib
="${tmp_tool_prefix}${toolchain_ranlib}"
11303 orig_target_nm
="${tmp_tool_prefix}${toolchain_nm}"
11304 orig_target_strip
="${tmp_tool_prefix}${toolchain_strip}"
11305 orig_target_objcopy
="${tmp_tool_prefix}${toolchain_objcopy}"
11306 orig_target_objdump
="${tmp_tool_prefix}${toolchain_objdump}"
11308 # Determine whether AROS or ELF tools should be used
11309 if test "$aros_tool_prefix" = "none"; then
11310 aros_tool_prefix
="${elf_tool_prefix}"
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11314 $as_echo "$aros_tool_prefix" >&6; }
11315 # We are *not* building AROS crosstools - use the AROS or ELF tools
11317 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11318 if test "$cross_compiling" = "yes" ; then
11319 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11320 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11322 $as_echo_n "checking for $ac_word... " >&6; }
11323 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11324 $as_echo_n "(cached) " >&6
11326 case $orig_target_cpp in
11328 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11332 for as_dir
in $PATH
11335 test -z "$as_dir" && as_dir
=.
11336 for ac_exec_ext
in '' $ac_executable_extensions; do
11337 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11338 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11349 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11350 if test -n "$orig_target_cpp"; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11352 $as_echo "$orig_target_cpp" >&6; }
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11360 if test "$GCC" = "yes"; then
11361 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
11362 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11363 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11365 $as_echo_n "checking for $ac_word... " >&6; }
11366 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11367 $as_echo_n "(cached) " >&6
11369 case $orig_target_cpp in
11371 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11375 for as_dir
in `dirname $aros_gcc_cpp`
11378 test -z "$as_dir" && as_dir
=.
11379 for ac_exec_ext
in '' $ac_executable_extensions; do
11380 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11381 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11393 if test -n "$orig_target_cpp"; then
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11395 $as_echo "$orig_target_cpp" >&6; }
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398 $as_echo "no" >&6; }
11403 if test "$orig_target_cpp" = ""; then
11404 # Extract the first word of "cpp", so it can be a program name with args.
11405 set dummy cpp
; ac_word
=$2
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11407 $as_echo_n "checking for $ac_word... " >&6; }
11408 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11409 $as_echo_n "(cached) " >&6
11411 case $orig_target_cpp in
11413 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11417 for as_dir
in $PATH
11420 test -z "$as_dir" && as_dir
=.
11421 for ac_exec_ext
in '' $ac_executable_extensions; do
11422 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11423 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11434 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11435 if test -n "$orig_target_cpp"; then
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11437 $as_echo "$orig_target_cpp" >&6; }
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11440 $as_echo "no" >&6; }
11447 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11448 set dummy
${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word
=$2
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450 $as_echo_n "checking for $ac_word... " >&6; }
11451 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11452 $as_echo_n "(cached) " >&6
11454 case $orig_target_cpp in
11456 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11460 for as_dir
in $PATH
11463 test -z "$as_dir" && as_dir
=.
11464 for ac_exec_ext
in '' $ac_executable_extensions; do
11465 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11466 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11477 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11478 if test -n "$orig_target_cpp"; then
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11480 $as_echo "$orig_target_cpp" >&6; }
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483 $as_echo "no" >&6; }
11490 if test "$orig_target_cpp" = ""; then
11493 if test "$orig_target_cpp" = "no"; then
11496 if test "$req_avail" = "no"; then
11497 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11500 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11501 if test "$cross_compiling" = "yes" ; then
11502 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11503 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if ${ac_cv_path_orig_target_cc+:} false
; then :
11507 $as_echo_n "(cached) " >&6
11509 case $orig_target_cc in
11511 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11515 for as_dir
in $PATH
11518 test -z "$as_dir" && as_dir
=.
11519 for ac_exec_ext
in '' $ac_executable_extensions; do
11520 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11521 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 orig_target_cc
=$ac_cv_path_orig_target_cc
11533 if test -n "$orig_target_cc"; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11535 $as_echo "$orig_target_cc" >&6; }
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11543 if test "$GCC" = "yes"; then
11544 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11545 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11546 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if ${ac_cv_path_orig_target_cc+:} false
; then :
11550 $as_echo_n "(cached) " >&6
11552 case $orig_target_cc in
11554 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11558 for as_dir
in `dirname $aros_gcc_gcc`
11561 test -z "$as_dir" && as_dir
=.
11562 for ac_exec_ext
in '' $ac_executable_extensions; do
11563 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11564 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 orig_target_cc
=$ac_cv_path_orig_target_cc
11576 if test -n "$orig_target_cc"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11578 $as_echo "$orig_target_cc" >&6; }
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11586 if test "$orig_target_cc" = ""; then
11587 # Extract the first word of "gcc", so it can be a program name with args.
11588 set dummy gcc
; ac_word
=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if ${ac_cv_path_orig_target_cc+:} false
; then :
11592 $as_echo_n "(cached) " >&6
11594 case $orig_target_cc in
11596 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11600 for as_dir
in $PATH
11603 test -z "$as_dir" && as_dir
=.
11604 for ac_exec_ext
in '' $ac_executable_extensions; do
11605 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11606 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 orig_target_cc
=$ac_cv_path_orig_target_cc
11618 if test -n "$orig_target_cc"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11620 $as_echo "$orig_target_cc" >&6; }
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11630 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11631 set dummy
${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word
=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if ${ac_cv_path_orig_target_cc+:} false
; then :
11635 $as_echo_n "(cached) " >&6
11637 case $orig_target_cc in
11639 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11643 for as_dir
in $PATH
11646 test -z "$as_dir" && as_dir
=.
11647 for ac_exec_ext
in '' $ac_executable_extensions; do
11648 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11649 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11660 orig_target_cc
=$ac_cv_path_orig_target_cc
11661 if test -n "$orig_target_cc"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11663 $as_echo "$orig_target_cc" >&6; }
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11673 if test "$orig_target_cc" = ""; then
11676 if test "$orig_target_cc" = "no"; then
11679 if test "$req_avail" = "no"; then
11680 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11683 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11684 if test "$cross_compiling" = "yes" ; then
11685 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11686 set dummy
${target_tool_prefix}g
++; ac_word
=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11690 $as_echo_n "(cached) " >&6
11692 case $orig_target_cxx in
11694 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11698 for as_dir
in $PATH
11701 test -z "$as_dir" && as_dir
=.
11702 for ac_exec_ext
in '' $ac_executable_extensions; do
11703 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11704 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11716 if test -n "$orig_target_cxx"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11718 $as_echo "$orig_target_cxx" >&6; }
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11726 if test "$GCC" = "yes"; then
11727 aros_gcc_g
++=`$CC -print-prog-name=g++`
11728 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11729 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731 $as_echo_n "checking for $ac_word... " >&6; }
11732 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11733 $as_echo_n "(cached) " >&6
11735 case $orig_target_cxx in
11737 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11741 for as_dir
in `dirname $aros_gcc_g++`
11744 test -z "$as_dir" && as_dir
=.
11745 for ac_exec_ext
in '' $ac_executable_extensions; do
11746 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11747 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11759 if test -n "$orig_target_cxx"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11761 $as_echo "$orig_target_cxx" >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11769 if test "$orig_target_cxx" = ""; then
11770 # Extract the first word of "g++", so it can be a program name with args.
11771 set dummy g
++; ac_word
=$2
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773 $as_echo_n "checking for $ac_word... " >&6; }
11774 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11775 $as_echo_n "(cached) " >&6
11777 case $orig_target_cxx in
11779 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11783 for as_dir
in $PATH
11786 test -z "$as_dir" && as_dir
=.
11787 for ac_exec_ext
in '' $ac_executable_extensions; do
11788 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11789 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11800 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11801 if test -n "$orig_target_cxx"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11803 $as_echo "$orig_target_cxx" >&6; }
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11813 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
11814 set dummy
${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word
=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11818 $as_echo_n "(cached) " >&6
11820 case $orig_target_cxx in
11822 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11826 for as_dir
in $PATH
11829 test -z "$as_dir" && as_dir
=.
11830 for ac_exec_ext
in '' $ac_executable_extensions; do
11831 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11832 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11843 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11844 if test -n "$orig_target_cxx"; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11846 $as_echo "$orig_target_cxx" >&6; }
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11856 if test "$orig_target_cxx" = ""; then
11859 if test "$orig_target_cxx" = "no"; then
11862 if test "$req_avail" = "no"; then
11863 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11866 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
11867 if test "$cross_compiling" = "yes" ; then
11868 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11869 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if ${ac_cv_path_orig_target_ld+:} false
; then :
11873 $as_echo_n "(cached) " >&6
11875 case $orig_target_ld in
11877 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11881 for as_dir
in $PATH
11884 test -z "$as_dir" && as_dir
=.
11885 for ac_exec_ext
in '' $ac_executable_extensions; do
11886 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11887 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11898 orig_target_ld
=$ac_cv_path_orig_target_ld
11899 if test -n "$orig_target_ld"; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11901 $as_echo "$orig_target_ld" >&6; }
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11909 if test "$GCC" = "yes"; then
11910 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11911 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11912 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if ${ac_cv_path_orig_target_ld+:} false
; then :
11916 $as_echo_n "(cached) " >&6
11918 case $orig_target_ld in
11920 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11924 for as_dir
in `dirname $aros_gcc_gcc`
11927 test -z "$as_dir" && as_dir
=.
11928 for ac_exec_ext
in '' $ac_executable_extensions; do
11929 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11930 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 orig_target_ld
=$ac_cv_path_orig_target_ld
11942 if test -n "$orig_target_ld"; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11944 $as_echo "$orig_target_ld" >&6; }
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11952 if test "$orig_target_ld" = ""; then
11953 # Extract the first word of "gcc", so it can be a program name with args.
11954 set dummy gcc
; ac_word
=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if ${ac_cv_path_orig_target_ld+:} false
; then :
11958 $as_echo_n "(cached) " >&6
11960 case $orig_target_ld in
11962 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11966 for as_dir
in $PATH
11969 test -z "$as_dir" && as_dir
=.
11970 for ac_exec_ext
in '' $ac_executable_extensions; do
11971 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11972 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11983 orig_target_ld
=$ac_cv_path_orig_target_ld
11984 if test -n "$orig_target_ld"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11986 $as_echo "$orig_target_ld" >&6; }
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989 $as_echo "no" >&6; }
11996 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
11997 set dummy
${aros_tool_prefix}${toolchain_ld}; ac_word
=$2
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999 $as_echo_n "checking for $ac_word... " >&6; }
12000 if ${ac_cv_path_orig_target_ld+:} false
; then :
12001 $as_echo_n "(cached) " >&6
12003 case $orig_target_ld in
12005 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12009 for as_dir
in $PATH
12012 test -z "$as_dir" && as_dir
=.
12013 for ac_exec_ext
in '' $ac_executable_extensions; do
12014 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12015 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 orig_target_ld
=$ac_cv_path_orig_target_ld
12027 if test -n "$orig_target_ld"; then
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12029 $as_echo "$orig_target_ld" >&6; }
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12039 if test "$orig_target_ld" = ""; then
12042 if test "$orig_target_ld" = "no"; then
12045 if test "$req_avail" = "no"; then
12046 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12049 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12050 if test "$cross_compiling" = "yes" ; then
12051 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12052 set dummy
${target_tool_prefix}as
; ac_word
=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_path_orig_target_as+:} false
; then :
12056 $as_echo_n "(cached) " >&6
12058 case $orig_target_as in
12060 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12064 for as_dir
in $PATH
12067 test -z "$as_dir" && as_dir
=.
12068 for ac_exec_ext
in '' $ac_executable_extensions; do
12069 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12070 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12081 orig_target_as
=$ac_cv_path_orig_target_as
12082 if test -n "$orig_target_as"; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12084 $as_echo "$orig_target_as" >&6; }
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12092 if test "$GCC" = "yes"; then
12093 aros_gcc_as
=`$CC -print-prog-name=as`
12094 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12095 set dummy
`basename $aros_gcc_as`; ac_word
=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if ${ac_cv_path_orig_target_as+:} false
; then :
12099 $as_echo_n "(cached) " >&6
12101 case $orig_target_as in
12103 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12107 for as_dir
in `dirname $aros_gcc_as`
12110 test -z "$as_dir" && as_dir
=.
12111 for ac_exec_ext
in '' $ac_executable_extensions; do
12112 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12113 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12124 orig_target_as
=$ac_cv_path_orig_target_as
12125 if test -n "$orig_target_as"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12127 $as_echo "$orig_target_as" >&6; }
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; }
12135 if test "$orig_target_as" = ""; then
12136 # Extract the first word of "as", so it can be a program name with args.
12137 set dummy as
; ac_word
=$2
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12139 $as_echo_n "checking for $ac_word... " >&6; }
12140 if ${ac_cv_path_orig_target_as+:} false
; then :
12141 $as_echo_n "(cached) " >&6
12143 case $orig_target_as in
12145 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12149 for as_dir
in $PATH
12152 test -z "$as_dir" && as_dir
=.
12153 for ac_exec_ext
in '' $ac_executable_extensions; do
12154 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12155 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12166 orig_target_as
=$ac_cv_path_orig_target_as
12167 if test -n "$orig_target_as"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12169 $as_echo "$orig_target_as" >&6; }
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12179 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12180 set dummy aros_tool_prefix
}${toolchain_as}; ac_word
=$2
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182 $as_echo_n "checking for $ac_word... " >&6; }
12183 if ${ac_cv_path_orig_target_as+:} false
; then :
12184 $as_echo_n "(cached) " >&6
12186 case $orig_target_as in
12188 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12192 for as_dir
in $PATH
12195 test -z "$as_dir" && as_dir
=.
12196 for ac_exec_ext
in '' $ac_executable_extensions; do
12197 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12198 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209 orig_target_as
=$ac_cv_path_orig_target_as
12210 if test -n "$orig_target_as"; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12212 $as_echo "$orig_target_as" >&6; }
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12222 if test "$orig_target_as" = ""; then
12225 if test "$orig_target_as" = "no"; then
12228 if test "$req_avail" = "no"; then
12229 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
12232 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12233 if test "$cross_compiling" = "yes" ; then
12234 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12235 set dummy
${target_tool_prefix}ar; ac_word
=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if ${ac_cv_path_orig_target_ar+:} false
; then :
12239 $as_echo_n "(cached) " >&6
12241 case $orig_target_ar in
12243 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12247 for as_dir
in $PATH
12250 test -z "$as_dir" && as_dir
=.
12251 for ac_exec_ext
in '' $ac_executable_extensions; do
12252 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264 orig_target_ar
=$ac_cv_path_orig_target_ar
12265 if test -n "$orig_target_ar"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12267 $as_echo "$orig_target_ar" >&6; }
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12275 if test "$GCC" = "yes"; then
12276 aros_gcc_ar
=`$CC -print-prog-name=ar`
12277 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12278 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if ${ac_cv_path_orig_target_ar+:} false
; then :
12282 $as_echo_n "(cached) " >&6
12284 case $orig_target_ar in
12286 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12290 for as_dir
in `dirname $aros_gcc_ar`
12293 test -z "$as_dir" && as_dir
=.
12294 for ac_exec_ext
in '' $ac_executable_extensions; do
12295 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12296 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 orig_target_ar
=$ac_cv_path_orig_target_ar
12308 if test -n "$orig_target_ar"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12310 $as_echo "$orig_target_ar" >&6; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12318 if test "$orig_target_ar" = ""; then
12319 # Extract the first word of "ar", so it can be a program name with args.
12320 set dummy
ar; ac_word
=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if ${ac_cv_path_orig_target_ar+:} false
; then :
12324 $as_echo_n "(cached) " >&6
12326 case $orig_target_ar in
12328 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12332 for as_dir
in $PATH
12335 test -z "$as_dir" && as_dir
=.
12336 for ac_exec_ext
in '' $ac_executable_extensions; do
12337 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12338 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12349 orig_target_ar
=$ac_cv_path_orig_target_ar
12350 if test -n "$orig_target_ar"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12352 $as_echo "$orig_target_ar" >&6; }
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12362 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12363 set dummy
${aros_tool_prefix}${toolchain_ar}; ac_word
=$2
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365 $as_echo_n "checking for $ac_word... " >&6; }
12366 if ${ac_cv_path_orig_target_ar+:} false
; then :
12367 $as_echo_n "(cached) " >&6
12369 case $orig_target_ar in
12371 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12375 for as_dir
in $PATH
12378 test -z "$as_dir" && as_dir
=.
12379 for ac_exec_ext
in '' $ac_executable_extensions; do
12380 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12381 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12392 orig_target_ar
=$ac_cv_path_orig_target_ar
12393 if test -n "$orig_target_ar"; then
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12395 $as_echo "$orig_target_ar" >&6; }
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12405 if test "$orig_target_ar" = ""; then
12408 if test "$orig_target_ar" = "no"; then
12411 if test "$req_avail" = "no"; then
12412 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12415 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12416 if test "$cross_compiling" = "yes" ; then
12417 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12418 set dummy
${target_tool_prefix}ar; ac_word
=$2
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420 $as_echo_n "checking for $ac_word... " >&6; }
12421 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12422 $as_echo_n "(cached) " >&6
12424 case $orig_target_ranlib in
12426 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12430 for as_dir
in $PATH
12433 test -z "$as_dir" && as_dir
=.
12434 for ac_exec_ext
in '' $ac_executable_extensions; do
12435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12436 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12448 if test -n "$orig_target_ranlib"; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12450 $as_echo "$orig_target_ranlib" >&6; }
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; }
12458 if test "$GCC" = "yes"; then
12459 aros_gcc_ar
=`$CC -print-prog-name=ar`
12460 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12461 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463 $as_echo_n "checking for $ac_word... " >&6; }
12464 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12465 $as_echo_n "(cached) " >&6
12467 case $orig_target_ranlib in
12469 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12473 for as_dir
in `dirname $aros_gcc_ar`
12476 test -z "$as_dir" && as_dir
=.
12477 for ac_exec_ext
in '' $ac_executable_extensions; do
12478 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12479 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12491 if test -n "$orig_target_ranlib"; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12493 $as_echo "$orig_target_ranlib" >&6; }
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12501 if test "$orig_target_ranlib" = ""; then
12502 # Extract the first word of "ar", so it can be a program name with args.
12503 set dummy
ar; ac_word
=$2
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12505 $as_echo_n "checking for $ac_word... " >&6; }
12506 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12507 $as_echo_n "(cached) " >&6
12509 case $orig_target_ranlib in
12511 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12515 for as_dir
in $PATH
12518 test -z "$as_dir" && as_dir
=.
12519 for ac_exec_ext
in '' $ac_executable_extensions; do
12520 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12521 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12533 if test -n "$orig_target_ranlib"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12535 $as_echo "$orig_target_ranlib" >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12545 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12546 set dummy
${aros_tool_prefix}${toolchain_ranlib}; ac_word
=$2
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12550 $as_echo_n "(cached) " >&6
12552 case $orig_target_ranlib in
12554 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12558 for as_dir
in $PATH
12561 test -z "$as_dir" && as_dir
=.
12562 for ac_exec_ext
in '' $ac_executable_extensions; do
12563 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12564 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12576 if test -n "$orig_target_ranlib"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12578 $as_echo "$orig_target_ranlib" >&6; }
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 $as_echo "no" >&6; }
12588 if test "$orig_target_ranlib" = ""; then
12591 if test "$orig_target_ranlib" = "no"; then
12594 if test "$req_avail" = "no"; then
12595 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12598 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12599 if test "$cross_compiling" = "yes" ; then
12600 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12601 set dummy
${target_tool_prefix}nm
; ac_word
=$2
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603 $as_echo_n "checking for $ac_word... " >&6; }
12604 if ${ac_cv_path_orig_target_nm+:} false
; then :
12605 $as_echo_n "(cached) " >&6
12607 case $orig_target_nm in
12609 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12613 for as_dir
in $PATH
12616 test -z "$as_dir" && as_dir
=.
12617 for ac_exec_ext
in '' $ac_executable_extensions; do
12618 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12619 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12630 orig_target_nm
=$ac_cv_path_orig_target_nm
12631 if test -n "$orig_target_nm"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12633 $as_echo "$orig_target_nm" >&6; }
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12641 if test "$GCC" = "yes"; then
12642 aros_gcc_nm
=`$CC -print-prog-name=nm`
12643 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12644 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_path_orig_target_nm+:} false
; then :
12648 $as_echo_n "(cached) " >&6
12650 case $orig_target_nm in
12652 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12656 for as_dir
in `dirname $aros_gcc_nm`
12659 test -z "$as_dir" && as_dir
=.
12660 for ac_exec_ext
in '' $ac_executable_extensions; do
12661 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12673 orig_target_nm
=$ac_cv_path_orig_target_nm
12674 if test -n "$orig_target_nm"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12676 $as_echo "$orig_target_nm" >&6; }
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12684 if test "$orig_target_nm" = ""; then
12685 # Extract the first word of "nm", so it can be a program name with args.
12686 set dummy nm
; ac_word
=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if ${ac_cv_path_orig_target_nm+:} false
; then :
12690 $as_echo_n "(cached) " >&6
12692 case $orig_target_nm in
12694 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12698 for as_dir
in $PATH
12701 test -z "$as_dir" && as_dir
=.
12702 for ac_exec_ext
in '' $ac_executable_extensions; do
12703 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12704 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12715 orig_target_nm
=$ac_cv_path_orig_target_nm
12716 if test -n "$orig_target_nm"; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12718 $as_echo "$orig_target_nm" >&6; }
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12728 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12729 set dummy
${aros_tool_prefix}${toolchain_nm}; ac_word
=$2
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731 $as_echo_n "checking for $ac_word... " >&6; }
12732 if ${ac_cv_path_orig_target_nm+:} false
; then :
12733 $as_echo_n "(cached) " >&6
12735 case $orig_target_nm in
12737 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12741 for as_dir
in $PATH
12744 test -z "$as_dir" && as_dir
=.
12745 for ac_exec_ext
in '' $ac_executable_extensions; do
12746 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12747 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12758 orig_target_nm
=$ac_cv_path_orig_target_nm
12759 if test -n "$orig_target_nm"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12761 $as_echo "$orig_target_nm" >&6; }
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12771 if test "$orig_target_nm" = ""; then
12774 if test "$orig_target_nm" = "no"; then
12777 if test "$req_avail" = "no"; then
12778 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12781 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
12782 if test "$cross_compiling" = "yes" ; then
12783 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12784 set dummy
${target_tool_prefix}strip
; ac_word
=$2
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12786 $as_echo_n "checking for $ac_word... " >&6; }
12787 if ${ac_cv_path_orig_target_strip+:} false
; then :
12788 $as_echo_n "(cached) " >&6
12790 case $orig_target_strip in
12792 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12796 for as_dir
in $PATH
12799 test -z "$as_dir" && as_dir
=.
12800 for ac_exec_ext
in '' $ac_executable_extensions; do
12801 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12802 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813 orig_target_strip
=$ac_cv_path_orig_target_strip
12814 if test -n "$orig_target_strip"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12816 $as_echo "$orig_target_strip" >&6; }
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12824 if test "$GCC" = "yes"; then
12825 aros_gcc_strip
=`$CC -print-prog-name=strip`
12826 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12827 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829 $as_echo_n "checking for $ac_word... " >&6; }
12830 if ${ac_cv_path_orig_target_strip+:} false
; then :
12831 $as_echo_n "(cached) " >&6
12833 case $orig_target_strip in
12835 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12839 for as_dir
in `dirname $aros_gcc_strip`
12842 test -z "$as_dir" && as_dir
=.
12843 for ac_exec_ext
in '' $ac_executable_extensions; do
12844 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12845 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12856 orig_target_strip
=$ac_cv_path_orig_target_strip
12857 if test -n "$orig_target_strip"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12859 $as_echo "$orig_target_strip" >&6; }
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12867 if test "$orig_target_strip" = ""; then
12868 # Extract the first word of "strip", so it can be a program name with args.
12869 set dummy strip
; ac_word
=$2
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12871 $as_echo_n "checking for $ac_word... " >&6; }
12872 if ${ac_cv_path_orig_target_strip+:} false
; then :
12873 $as_echo_n "(cached) " >&6
12875 case $orig_target_strip in
12877 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12881 for as_dir
in $PATH
12884 test -z "$as_dir" && as_dir
=.
12885 for ac_exec_ext
in '' $ac_executable_extensions; do
12886 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12887 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12898 orig_target_strip
=$ac_cv_path_orig_target_strip
12899 if test -n "$orig_target_strip"; then
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12901 $as_echo "$orig_target_strip" >&6; }
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 $as_echo "no" >&6; }
12911 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
12912 set dummy
${aros_tool_prefix}${toolchain_strip}; ac_word
=$2
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12914 $as_echo_n "checking for $ac_word... " >&6; }
12915 if ${ac_cv_path_orig_target_strip+:} false
; then :
12916 $as_echo_n "(cached) " >&6
12918 case $orig_target_strip in
12920 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12924 for as_dir
in $PATH
12927 test -z "$as_dir" && as_dir
=.
12928 for ac_exec_ext
in '' $ac_executable_extensions; do
12929 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12930 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12941 orig_target_strip
=$ac_cv_path_orig_target_strip
12942 if test -n "$orig_target_strip"; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12944 $as_echo "$orig_target_strip" >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947 $as_echo "no" >&6; }
12954 if test "$orig_target_strip" = ""; then
12957 if test "$orig_target_strip" = "no"; then
12960 if test "$req_avail" = "no"; then
12961 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12964 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
12965 if test "$cross_compiling" = "yes" ; then
12966 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12967 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969 $as_echo_n "checking for $ac_word... " >&6; }
12970 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
12971 $as_echo_n "(cached) " >&6
12973 case $orig_target_objcopy in
12975 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
12978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12979 for as_dir
in $PATH
12982 test -z "$as_dir" && as_dir
=.
12983 for ac_exec_ext
in '' $ac_executable_extensions; do
12984 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12985 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12996 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
12997 if test -n "$orig_target_objcopy"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12999 $as_echo "$orig_target_objcopy" >&6; }
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13007 if test "$GCC" = "yes"; then
13008 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
13009 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13010 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13012 $as_echo_n "checking for $ac_word... " >&6; }
13013 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13014 $as_echo_n "(cached) " >&6
13016 case $orig_target_objcopy in
13018 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13022 for as_dir
in `dirname $aros_gcc_objcopy`
13025 test -z "$as_dir" && as_dir
=.
13026 for ac_exec_ext
in '' $ac_executable_extensions; do
13027 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13028 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13039 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13040 if test -n "$orig_target_objcopy"; then
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13042 $as_echo "$orig_target_objcopy" >&6; }
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13050 if test "$orig_target_objcopy" = ""; then
13051 # Extract the first word of "objcopy", so it can be a program name with args.
13052 set dummy objcopy
; ac_word
=$2
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13054 $as_echo_n "checking for $ac_word... " >&6; }
13055 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13056 $as_echo_n "(cached) " >&6
13058 case $orig_target_objcopy in
13060 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13064 for as_dir
in $PATH
13067 test -z "$as_dir" && as_dir
=.
13068 for ac_exec_ext
in '' $ac_executable_extensions; do
13069 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13070 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13081 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13082 if test -n "$orig_target_objcopy"; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13084 $as_echo "$orig_target_objcopy" >&6; }
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 $as_echo "no" >&6; }
13094 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13095 set dummy
${aros_tool_prefix}${toolchain_objcopy}; ac_word
=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097 $as_echo_n "checking for $ac_word... " >&6; }
13098 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13099 $as_echo_n "(cached) " >&6
13101 case $orig_target_objcopy in
13103 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13107 for as_dir
in $PATH
13110 test -z "$as_dir" && as_dir
=.
13111 for ac_exec_ext
in '' $ac_executable_extensions; do
13112 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13113 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13124 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13125 if test -n "$orig_target_objcopy"; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13127 $as_echo "$orig_target_objcopy" >&6; }
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13137 if test "$orig_target_objcopy" = ""; then
13140 if test "$orig_target_objcopy" = "no"; then
13143 if test "$req_avail" = "no"; then
13144 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13147 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13148 if test "$cross_compiling" = "yes" ; then
13149 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13150 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152 $as_echo_n "checking for $ac_word... " >&6; }
13153 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13154 $as_echo_n "(cached) " >&6
13156 case $orig_target_objdump in
13158 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13162 for as_dir
in $PATH
13165 test -z "$as_dir" && as_dir
=.
13166 for ac_exec_ext
in '' $ac_executable_extensions; do
13167 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13168 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13180 if test -n "$orig_target_objdump"; then
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13182 $as_echo "$orig_target_objdump" >&6; }
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185 $as_echo "no" >&6; }
13190 if test "$GCC" = "yes"; then
13191 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
13192 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13193 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195 $as_echo_n "checking for $ac_word... " >&6; }
13196 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13197 $as_echo_n "(cached) " >&6
13199 case $orig_target_objdump in
13201 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13205 for as_dir
in `dirname $aros_gcc_objdump`
13208 test -z "$as_dir" && as_dir
=.
13209 for ac_exec_ext
in '' $ac_executable_extensions; do
13210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13211 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13222 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13223 if test -n "$orig_target_objdump"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13225 $as_echo "$orig_target_objdump" >&6; }
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13233 if test "$orig_target_objdump" = ""; then
13234 # Extract the first word of "objdump", so it can be a program name with args.
13235 set dummy objdump
; ac_word
=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13239 $as_echo_n "(cached) " >&6
13241 case $orig_target_objdump in
13243 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13247 for as_dir
in $PATH
13250 test -z "$as_dir" && as_dir
=.
13251 for ac_exec_ext
in '' $ac_executable_extensions; do
13252 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13253 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13265 if test -n "$orig_target_objdump"; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13267 $as_echo "$orig_target_objdump" >&6; }
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13277 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13278 set dummy
${aros_tool_prefix}${toolchain_objdump}; ac_word
=$2
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13280 $as_echo_n "checking for $ac_word... " >&6; }
13281 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13282 $as_echo_n "(cached) " >&6
13284 case $orig_target_objdump in
13286 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13290 for as_dir
in $PATH
13293 test -z "$as_dir" && as_dir
=.
13294 for ac_exec_ext
in '' $ac_executable_extensions; do
13295 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13296 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13308 if test -n "$orig_target_objdump"; then
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13310 $as_echo "$orig_target_objdump" >&6; }
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13313 $as_echo "no" >&6; }
13320 if test "$orig_target_objdump" = ""; then
13323 if test "$orig_target_objdump" = "no"; then
13326 if test "$req_avail" = "no"; then
13327 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13331 if test "$kernel_tool_prefix" = "none" ; then
13332 # No kernel tools specified
13333 # Assume target tools == kernel tools with ELF wrapper
13334 aros_kernel_cc
=$orig_target_cc
13335 aros_kernel_cxx
=$orig_target_cxx
13336 aros_kernel_cpp
=$orig_target_cpp
13337 aros_kernel_ld
=$orig_target_ld
13338 aros_kernel_as
=$orig_target_as
13339 aros_kernel_ar
=$orig_target_ar
13340 aros_kernel_ranlib
=$orig_target_ranlib
13341 aros_kernel_nm
=$orig_target_nm
13342 aros_kernel_strip
=$orig_target_strip
13343 aros_kernel_objcopy
=$orig_target_objcopy
13344 aros_kernel_objdump
=$orig_target_objdump
13345 use_kernel_cc_wrapper
=yes
13348 # At this point, all aros_kernel_* and aros_target_*
13349 # tools should be set up correctly
13351 CC
="$aros_kernel_cc $kernel_tool_flags"
13352 CPP
="$aros_kernel_cpp"
13354 #-----------------------------------------------------------------------------
13356 # Find all the tools we need to compile. This could be cross-compiling
13357 # though! If that is the case we use the GNU form of the target and
13358 # simply add this to the front of the binary name. This is rather simple,
13359 # but it should work under most circumstances.
13361 # The default tools are to use the same as the host, but only if the
13362 # host and target CPU are the same. With GCC this is normally enough.
13366 aros_shared_ld
="$aros_host_ld"
13368 aros_target_mkdep
="$aros_host_mkdep"
13370 # The default tools executables to be linked to.
13371 if test "$rescomp" != ""; then
13372 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13373 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375 $as_echo_n "checking for $ac_word... " >&6; }
13376 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
13377 $as_echo_n "(cached) " >&6
13379 case $aros_kernel_rescomp in
13381 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
13384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13385 for as_dir
in $PATH
13388 test -z "$as_dir" && as_dir
=.
13389 for ac_exec_ext
in '' $ac_executable_extensions; do
13390 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13391 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
13392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
13403 if test -n "$aros_kernel_rescomp"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13405 $as_echo "$aros_kernel_rescomp" >&6; }
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408 $as_echo "no" >&6; }
13413 if test "$aros_kernel_rescomp" = ""; then
13416 if test "$aros_kernel_rescomp" = "no"; then
13419 if test "$req_avail" = "no"; then
13420 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13424 # Set up the sources for the symlink farm
13425 if test "$crosstools" = "yes"; then
13426 crosstools_target
=tools-crosstools
13429 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
13430 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
13432 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13433 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13434 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13435 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13436 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13437 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13438 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13440 # aros_cc_pre is a variable that is added to the front of the compiler name
13441 # in the generated aros-gcc shell script. We need this to enable the cache
13442 # to work across cleaned builds. Also, support DISTCC using the correct
13443 # environment variable.
13446 if test "x${DISTCC}" != "x" ; then
13447 if test "x${CCACHE}" != "x" ; then
13448 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13450 aros_cc_pre
="${DISTCC} "
13453 if test "x${CCACHE}" != "x" ; then
13454 aros_cc_pre
="${CCACHE} "
13458 aros_target_nostdinc_cflags
=-nostdinc
13460 aros_target_nostartup_ldflags
=-nostartfiles
13462 aros_target_nix_ldflags
=-nix
13464 aros_target_detach_ldflags
=-detach
13466 aros_target_nostdlib_ldflags
=-nostdlib
13471 if test "$aros_target_toolchain" != "yes"; then
13472 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13473 if test "$GCC" = "yes"; then
13474 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13477 # We do not know which c compiler version we are going to build and what we need to know
13478 # here is different for different versions so this will be set later during the
13479 # build of crosstools.
13480 if test "$aros_toolchain" = "gnu" ; then
13481 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13482 elif test "$aros_toolchain" = "llvm" ; then
13483 prefix
="$AROS_CROSSTOOLSDIR/bin/"
13485 aros_target_cc_path
=@aros_target_cc_path@
13487 aros_target_cpp
="${prefix}${toolchain_cpp_preprocessor}"
13488 aros_target_cc
="${prefix}${toolchain_c_compiler}"
13489 aros_target_cxx
="${prefix}${toolchain_cxx_compiler}"
13490 aros_target_as
="${prefix}${toolchain_as}"
13491 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_ld}"
13492 aros_target_ar
="${prefix}${toolchain_ar} $aros_target_ar_flags"
13493 aros_target_objcopy
="${prefix}${toolchain_objcopy}"
13494 aros_target_objdump
="${prefix}${toolchain_objdump}"
13495 aros_target_ranlib
="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13496 aros_target_nm
="${prefix}${toolchain_nm} $aros_target_nm_flags"
13497 aros_target_strip
="${prefix}${toolchain_strip}"
13498 aros_plain_nm
="${prefix}${toolchain_nm}"
13499 aros_plain_ar
="${prefix}${toolchain_ar}"
13501 # Check whether --enable-includes was given.
13502 if test "${enable_includes+set}" = set; then :
13503 enableval
=$enable_includes; aros_target_incl
=$enable_includes
13505 aros_target_incl
=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13509 if test "$aros_kernel_includes" = ""; then
13510 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13511 aros_kernel_includes
="-isystem $aros_target_incl"
13515 if test "$aros_kernel_includes" != "" ; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13517 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13518 if test "$aros_kernel_cc_includes" = "" ; then
13519 # Try to guess where the directory is.
13520 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
13521 if test -d $aros_kernel_cc_includes; then
13522 # Check if there is also an include-fixed directory and add it
13523 # to kernel compiler's include path as it may contain some of
13524 # the headers we need.
13525 if test -d "$aros_kernel_cc_includes"-fixed; then
13526 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
13528 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13529 case ${host_cpu} in
13531 host_cpu_glibc
=i386
13534 host_cpu_glibc
=${host_cpu}
13537 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13538 aros_kernel_cc_includes
+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13541 # The directory doesn't exist, we need to do some more work.
13542 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
13544 # These are the headers we're looking for.
13545 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13546 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13550 for h
in $headers; do
13551 # Which other headers are needed by each of the above?
13552 deps
=$
(echo "#include <$h>" | \
13553 $aros_kernel_cc -E -M - 2>/dev
/null | \
13554 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13556 # Copy all the needed headers to a directory beneath gendir.
13559 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
13560 sed -n "s,^.*/include\(/.*\),\1,p")
13561 ! test -d $dir && mkdir
-p $dir
13562 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13568 $as_echo "$aros_kernel_cc_includes" >&6; }
13569 # Adding -nostdinc to kernel includes as they are always used together.
13570 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13573 if test "$crosstools" != "yes"; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13575 $as_echo_n "checking for the target compiler's include path... " >&6; }
13576 if test "$aros_target_cc_includes" = "" ; then
13577 #try to guess where the directory is
13578 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
13579 if ! test -d $aros_target_cc_includes; then
13580 #the directory doesn't exist, we need to do some more work
13581 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
13583 #these are the headers we're looking for
13584 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13585 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13589 for h
in $headers; do
13590 #which other headers each of the above headers needs?
13591 deps
=$
(echo "#include <$h>" | \
13592 $orig_target_cc -E -M - 2>/dev
/null | \
13593 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13595 #copy all the needed headers to a directory beneath gendir
13598 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
13599 sed -n "s,^.*/include\(/.*\),\1,p")
13600 ! test -d $dir && mkdir
-p $dir
13601 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13607 $as_echo "$aros_target_cc_includes" >&6; }
13609 # We do not know which c compiler version we are going to build and what we need to know
13610 # here is different for different versions so this will be set later during the
13611 # build of crosstools.
13612 aros_target_cc_includes
=@aros_target_cc_includes@
13616 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13617 # On GCC >= 4.0 -iquote should be used
13621 save_cflags
="$CFLAGS"
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13624 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13625 if test "x-$crosstools" != "x-yes"; then
13626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13637 if ac_fn_c_try_compile
"$LINENO"; then :
13642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13644 # we do know it is supported for the smallest version of ${toolchain_c_compiler} we are going to build
13645 # we assume it's also supported by later versions
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13649 $as_echo "$has_iquote" >&6; }
13650 if test "x-$has_iquote" = "x-yes" ; then
13651 host_cflags_iquote
=-iquote
13652 host_cflags_iquote_end
=
13654 host_cflags_iquote
=-I
13655 host_cflags_iquote_end
=-I-
13657 kernel_cflags_iquote
=$host_cflags_iquote
13658 kernel_cflags_iquote_end
=$host_cflags_iquote_end
13659 if test "x-$cross_compiling" = "x-yes"; then
13660 CC
="$aros_kernel_cc"
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13662 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13663 if test "x-$crosstools" != "x-yes"; then
13664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13675 if ac_fn_c_try_compile
"$LINENO"; then :
13676 use_no_stack_protector
="yes"
13678 use_no_stack_protector
="no"
13680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13682 # we do know it is supported for the smallest version of gcc we are going to build
13683 # we assume it's also supported by later versions
13684 use_no_stack_protector
=yes
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13687 $as_echo "$use_no_stack_protector" >&6; }
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13689 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13690 if test "x-$crosstools" != "x-yes"; then
13691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13702 if ac_fn_c_try_compile
"$LINENO"; then :
13707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13709 # we do know it is supported for the smallest version of gcc we are going to build
13710 # we assume it's also supported by later versions
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13714 $as_echo "$has_iquote" >&6; }
13715 if test "x-$has_iquote" = "x-yes" ; then
13716 kernel_cflags_iquote
=-iquote
13717 kernel_cflags_iquote_end
=
13719 kernel_cflags_iquote
=-I
13720 kernel_cflags_iquote_end
=-I-
13723 aros_cflags_iquote
=$kernel_cflags_iquote
13724 aros_cflags_iquote_end
=$kernel_cflags_iquote_end
13725 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13726 CC
="$orig_target_cc"
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13728 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13729 if test "x-$crosstools" != "x-yes"; then
13730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13741 if ac_fn_c_try_compile
"$LINENO"; then :
13746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13748 # we do know it is supported for the smallest version of gcc we are going to build
13749 # we assume it's also supported by later versions
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13753 $as_echo "$has_iquote" >&6; }
13754 if test "x-$has_iquote" = "x-yes" ; then
13755 aros_cflags_iquote
=-iquote
13756 aros_cflags_iquote_end
=
13758 aros_cflags_iquote
=-I
13759 aros_cflags_iquote_end
=-I-
13762 if test "x-$use_no_stack_protector" = "x-yes" ; then
13763 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
13766 #-----------------------------------------------------------------------------
13768 # Check if we can explicitly choose older version of symbol hashing
13770 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
13771 CC
="$aros_kernel_cc"
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13773 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13785 if ac_fn_c_try_link
"$LINENO"; then :
13786 use_hash_style
="yes"
13788 use_hash_style
="no"
13790 rm -f core conftest.err conftest.
$ac_objext \
13791 conftest
$ac_exeext conftest.
$ac_ext
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13793 $as_echo "$use_hash_style" >&6; }
13794 if test "x-$use_hash_style" = "x-yes" ; then
13795 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
13798 CFLAGS
="$save_cflags"
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13809 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13811 # Check whether --with-resolution was given.
13812 if test "${with_resolution+set}" = set; then :
13813 withval
=$with_resolution; resolution
=$withval
13818 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13819 if test "$resolution" = "yes" ; then
13822 if test "$resolution" = "no" ; then
13825 if test "$resolution" != "none" ; then
13826 aros_nominal_width
=`echo $resolution | cut -d'x' -f1`
13827 aros_nominal_height
=`echo $resolution | cut -d'x' -f2`
13828 aros_nominal_depth
=`echo $resolution | cut -d'x' -f3`
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13831 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13832 aros_cv_nominal_width
=$aros_nominal_width
13833 aros_cv_nominal_height
=$aros_nominal_height
13834 aros_cv_nominal_depth
=$aros_nominal_depth
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13837 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13839 # Check whether --with-serial-debug was given.
13840 if test "${with_serial_debug+set}" = set; then :
13841 withval
=$with_serial_debug; serial_debug
=$withval
13846 if test "$aros_serial_debug" = 0 ; then
13847 serial_debug_forced
=""
13848 if test "$serial_debug" = "yes" ; then
13851 if test "$serial_debug" = "no" ; then
13852 serial_debug
="none"
13855 serial_debug_forced
="(forced)"
13856 serial_debug
=$aros_serial_debug
13858 if test "$serial_debug" != "none" ; then
13859 aros_serial_debug
=$serial_debug
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13861 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864 $as_echo "no" >&6; }
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
13868 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
13869 # Check whether --enable-palm_debug_hack was given.
13870 if test "${enable_palm_debug_hack+set}" = set; then :
13871 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
13873 palm_debug_hack
="no"
13876 if test "$palm_debug_hack" = "yes" ; then
13877 aros_palm_debug_hack
="1"
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13880 $as_echo "$palm_debug_hack" >&6; }
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
13883 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
13884 # Check whether --enable-usb30_code was given.
13885 if test "${enable_usb30_code+set}" = set; then :
13886 enableval
=$enable_usb30_code; usb30_code
="yes"
13891 if test "$usb30_code" = "yes" ; then
13892 aros_config_cflags
="$aros_config_cflags -DAROS_USB30_CODE"
13893 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13896 $as_echo "$usb30_code" >&6; }
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
13899 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
13900 # Check whether --enable-nesting_supervisor was given.
13901 if test "${enable_nesting_supervisor+set}" = set; then :
13902 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
13904 nesting_supervisor
="no"
13907 if test "$nesting_supervisor" = "yes" ; then
13908 aros_nesting_supervisor
="1"
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13911 $as_echo "$nesting_supervisor" >&6; }
13913 if test "$aros_enable_mmu" = "" ; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
13915 $as_echo_n "checking whether MMU support is enabled... " >&6; }
13916 # Check whether --enable-mmu was given.
13917 if test "${enable_mmu+set}" = set; then :
13918 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
13920 aros_enable_mmu
="yes"
13923 if test "$aros_enable_mmu" = "" ; then
13924 aros_enable_mmu
="yes"
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13927 $as_echo "$aros_enable_mmu" >&6; }
13929 if test "$aros_enable_mmu" = "no" ; then
13930 aros_enable_mmu
="0"
13932 aros_enable_mmu
="1"
13936 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13938 if test "x-$need_dlopen" != "x-no" ; then
13941 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
13942 if test "x$ac_cv_func_dlopen" = xyes
; then :
13948 if test "x-$have_dl" = "x-no" ; then
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13950 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13951 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13952 $as_echo_n "(cached) " >&6
13954 ac_check_lib_save_LIBS
=$LIBS
13956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13959 /* Override any GCC internal prototype to avoid an error.
13960 Use char because int might match the return type of a GCC
13961 builtin and then its argument prototype would still apply. */
13974 if ac_fn_c_try_link
"$LINENO"; then :
13975 ac_cv_lib_dl_dlopen
=yes
13977 ac_cv_lib_dl_dlopen
=no
13979 rm -f core conftest.err conftest.
$ac_objext \
13980 conftest
$ac_exeext conftest.
$ac_ext
13981 LIBS
=$ac_check_lib_save_LIBS
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13984 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13985 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13987 aros_host_ldflags
="$aros_host_ldflags -ldl"
13993 if test "x-$have_dl" = "x-no" ; then
13994 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
14000 # Check whether --enable-x11_hidd was given.
14001 if test "${enable_x11_hidd+set}" = set; then :
14002 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
14004 x11_hidd
="$need_x11"
14007 case "x-$x11_hidd" in
14008 x-yes|x-no|x-auto
) ;;
14009 *) x11_hidd
="$need_x11" ;;
14014 if test "x-$x11_hidd" != "x-no" ; then
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14017 $as_echo_n "checking for X... " >&6; }
14020 # Check whether --with-x was given.
14021 if test "${with_x+set}" = set; then :
14025 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14026 if test "x$with_x" = xno
; then
14027 # The user explicitly disabled X.
14030 case $x_includes,$x_libraries in #(
14031 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
14032 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
14033 $as_echo_n "(cached) " >&6
14035 # One or both of the vars are not set, and there is no cached value.
14036 ac_x_includes
=no ac_x_libraries
=no
14037 rm -f -r conftest.dir
14038 if mkdir conftest.dir
; then
14040 cat >Imakefile
<<'_ACEOF'
14042 @echo incroot='${INCROOT}'
14044 @echo usrlibdir='${USRLIBDIR}'
14046 @echo libdir='${LIBDIR}'
14048 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14049 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14050 for ac_var
in incroot usrlibdir libdir
; do
14051 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14053 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14054 for ac_extension
in a so sl dylib la dll
; do
14055 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14056 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14057 ac_im_usrlibdir
=$ac_im_libdir; break
14060 # Screen out bogus values from the imake configuration. They are
14061 # bogus both because they are the default anyway, and because
14062 # using them would break gcc on systems where it needs fixed includes.
14063 case $ac_im_incroot in
14064 /usr
/include
) ac_x_includes
= ;;
14065 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14067 case $ac_im_usrlibdir in
14068 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14069 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14073 rm -f -r conftest.dir
14076 # Standard set of common directories for X headers.
14077 # Check X11 before X11Rn because it is often a symlink to the current release.
14091 /usr/local/X11/include
14092 /usr/local/X11R7/include
14093 /usr/local/X11R6/include
14094 /usr/local/X11R5/include
14095 /usr/local/X11R4/include
14097 /usr/local/include/X11
14098 /usr/local/include/X11R7
14099 /usr/local/include/X11R6
14100 /usr/local/include/X11R5
14101 /usr/local/include/X11R4
14105 /usr/XFree86/include/X11
14109 /usr/unsupported/include
14110 /usr/athena/include
14111 /usr/local/x11r5/include
14112 /usr/lpp/Xamples/include
14114 /usr/openwin/include
14115 /usr/openwin/share/include'
14117 if test "$ac_x_includes" = no
; then
14118 # Guess where to find include files, by looking for Xlib.h.
14119 # First, try using that file with no special directory specified.
14120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14122 #include <X11/Xlib.h>
14124 if ac_fn_c_try_cpp
"$LINENO"; then :
14125 # We can compile using X headers with no special include directory.
14128 for ac_dir
in $ac_x_header_dirs; do
14129 if test -r "$ac_dir/X11/Xlib.h"; then
14130 ac_x_includes
=$ac_dir
14135 rm -f conftest.err conftest.i conftest.
$ac_ext
14136 fi # $ac_x_includes = no
14138 if test "$ac_x_libraries" = no
; then
14139 # Check for the libraries.
14140 # See if we find them without any special options.
14141 # Don't add to $LIBS permanently.
14144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 #include <X11/Xlib.h>
14155 if ac_fn_c_try_link
"$LINENO"; then :
14157 # We can link X programs with no special library path.
14161 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14163 # Don't even attempt the hair of trying to link an X program!
14164 for ac_extension
in a so sl dylib la dll
; do
14165 if test -r "$ac_dir/libX11.$ac_extension"; then
14166 ac_x_libraries
=$ac_dir
14172 rm -f core conftest.err conftest.
$ac_objext \
14173 conftest
$ac_exeext conftest.
$ac_ext
14174 fi # $ac_x_libraries = no
14176 case $ac_x_includes,$ac_x_libraries in #(
14177 no
,* |
*,no |
*\'*)
14178 # Didn't find X, or a directory has "'" in its name.
14179 ac_cv_have_x
="have_x=no";; #(
14181 # Record where we found X for the cache.
14182 ac_cv_have_x
="have_x=yes\
14183 ac_x_includes='$ac_x_includes'\
14184 ac_x_libraries='$ac_x_libraries'"
14190 eval "$ac_cv_have_x"
14193 if test "$have_x" != yes; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14195 $as_echo "$have_x" >&6; }
14198 # If each of the values was on the command line, it overrides each guess.
14199 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14200 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14201 # Update the cache value to reflect the command line values.
14202 ac_cv_have_x
="have_x=yes\
14203 ac_x_includes='$x_includes'\
14204 ac_x_libraries='$x_libraries'"
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14206 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14211 for path
in $x_libraries
14213 x_cflags
="$x_cflags -L$path"
14216 for path
in $x_includes
14218 x_cflags
="$x_cflags -I$path"
14221 if test "x-$no_x" = "x-yes" ; then
14223 if test "x-$x11_hidd" != "x-auto" ; then
14224 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14231 # Check whether --enable-x11_shm was given.
14232 if test "${enable_x11_shm+set}" = set; then :
14233 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
14235 x11_hidd_shm
="auto"
14238 case "x-$x11_hidd_shm" in
14239 x-yes|x-no|x-auto
) ;;
14240 *) x11_hidd_shm
="auto" ;;
14245 if test "x-$x11_hidd_shm" != "x-no" ; then
14247 for ac_header
in sys
/ipc.h
14249 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14250 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
14251 cat >>confdefs.h
<<_ACEOF
14252 #define HAVE_SYS_IPC_H 1
14259 for ac_header
in sys
/shm.h
14261 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14262 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
14263 cat >>confdefs.h
<<_ACEOF
14264 #define HAVE_SYS_SHM_H 1
14272 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14274 save_cflags
="$CFLAGS"
14275 CFLAGS
="$CFLAGS $x_cflags"
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14277 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14278 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
14279 $as_echo_n "(cached) " >&6
14281 ac_check_lib_save_LIBS
=$LIBS
14282 LIBS
="-lXext $LIBS"
14283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14286 /* Override any GCC internal prototype to avoid an error.
14287 Use char because int might match the return type of a GCC
14288 builtin and then its argument prototype would still apply. */
14292 char XShmQueryExtension ();
14296 return XShmQueryExtension ();
14301 if ac_fn_c_try_link
"$LINENO"; then :
14302 ac_cv_lib_Xext_XShmQueryExtension
=yes
14304 ac_cv_lib_Xext_XShmQueryExtension
=no
14306 rm -f core conftest.err conftest.
$ac_objext \
14307 conftest
$ac_exeext conftest.
$ac_ext
14308 LIBS
=$ac_check_lib_save_LIBS
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14311 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14312 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
14316 CFLAGS
="$save_cflags"
14320 if test "x-$have_xshm" = "x-yes" ; then
14321 DO_XSHM_SUPPORT
="1"
14322 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14323 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14325 DO_XSHM_SUPPORT
="0"
14329 # Check whether --enable-x11_vidmode was given.
14330 if test "${enable_x11_vidmode+set}" = set; then :
14331 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
14333 x11_hidd_vidmode
="auto"
14336 case "x-$x11_hidd_vidmode" in
14337 x-yes|x-no|x-auto
) ;;
14338 *) x11_hidd_vidmode
="auto" ;;
14343 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14345 save_cflags
="$CFLAGS"
14346 CFLAGS
="$CFLAGS $x_cflags"
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14348 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14349 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
14350 $as_echo_n "(cached) " >&6
14352 ac_check_lib_save_LIBS
=$LIBS
14353 LIBS
="-lXxf86vm $LIBS"
14354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14363 char XF86VidModeQueryExtension ();
14367 return XF86VidModeQueryExtension ();
14372 if ac_fn_c_try_link
"$LINENO"; then :
14373 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
14375 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
14377 rm -f core conftest.err conftest.
$ac_objext \
14378 conftest
$ac_exeext conftest.
$ac_ext
14379 LIBS
=$ac_check_lib_save_LIBS
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14382 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14383 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
14387 CFLAGS
="$save_cflags"
14390 if test "x-$have_vidmode" = "x-yes" ; then
14391 DO_VIDMODE_SUPPORT
="1"
14392 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14393 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14395 DO_VIDMODE_SUPPORT
="0"
14399 aros_host_x11_includes
=$x_includes
14400 aros_host_x11_libdirs
=$x_libraries
14404 # Check whether --enable-sdl_hidd was given.
14405 if test "${enable_sdl_hidd+set}" = set; then :
14406 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
14411 case "x-$sdl_hidd" in
14412 x-yes|x-no|x-auto
) ;;
14413 *) sdl_hidd
="auto" ;;
14416 if test "x-$sdl_hidd" != "x-no" ; then
14420 # Check whether --with-sdl-prefix was given.
14421 if test "${with_sdl_prefix+set}" = set; then :
14422 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
14428 # Check whether --with-sdl-exec-prefix was given.
14429 if test "${with_sdl_exec_prefix+set}" = set; then :
14430 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
14435 # Check whether --enable-sdltest was given.
14436 if test "${enable_sdltest+set}" = set; then :
14437 enableval
=$enable_sdltest;
14443 if test x
$sdl_exec_prefix != x
; then
14444 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14445 if test x
${SDL_CONFIG+set} != xset
; then
14446 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
14449 if test x
$sdl_prefix != x
; then
14450 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
14451 if test x
${SDL_CONFIG+set} != xset
; then
14452 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
14456 as_save_PATH
="$PATH"
14457 if test "x$prefix" != xNONE
; then
14458 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
14460 # Extract the first word of "sdl-config", so it can be a program name with args.
14461 set dummy sdl-config
; ac_word
=$2
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14463 $as_echo_n "checking for $ac_word... " >&6; }
14464 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
14465 $as_echo_n "(cached) " >&6
14467 case $SDL_CONFIG in
14469 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
14472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14473 for as_dir
in $PATH
14476 test -z "$as_dir" && as_dir
=.
14477 for ac_exec_ext
in '' $ac_executable_extensions; do
14478 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14479 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14487 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
14491 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
14492 if test -n "$SDL_CONFIG"; then
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14494 $as_echo "$SDL_CONFIG" >&6; }
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14501 PATH
="$as_save_PATH"
14502 min_sdl_version
=$SDL_VERSION
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14504 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14506 if test "$SDL_CONFIG" = "no" ; then
14509 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
14510 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
14512 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
14513 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14514 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
14515 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14516 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
14517 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14518 if test "x$enable_sdltest" = "xyes" ; then
14519 ac_save_CFLAGS
="$CFLAGS"
14520 ac_save_CXXFLAGS
="$CXXFLAGS"
14521 ac_save_LIBS
="$LIBS"
14522 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14523 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14524 LIBS
="$LIBS $SDL_LIBS"
14526 if test "$cross_compiling" = yes; then :
14527 echo $ac_n "cross compiling; assumed OK... $ac_c"
14529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14533 #include <stdlib.h>
14534 #include <string.h>
14538 my_strdup (char *str)
14544 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14545 strcpy (new_str, str);
14553 int main (int argc, char *argv[])
14555 int major, minor, micro;
14558 /* This hangs on some systems (?)
14559 system ("touch conf.sdltest");
14561 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14563 /* HP/UX 9 (%@#!) writes to sscanf strings */
14564 tmp_version = my_strdup("$min_sdl_version");
14565 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
14566 printf("%s, bad version string\n", "$min_sdl_version");
14570 if (($sdl_major_version > major) ||
14571 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14572 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14578 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14579 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14580 printf("*** best to upgrade to the required version.\n");
14581 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14582 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14583 printf("*** config.cache before re-running configure\n");
14590 if ac_fn_c_try_run
"$LINENO"; then :
14595 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14596 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14599 CFLAGS
="$ac_save_CFLAGS"
14600 CXXFLAGS
="$ac_save_CXXFLAGS"
14601 LIBS
="$ac_save_LIBS"
14604 if test "x$no_sdl" = x
; then
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14606 $as_echo "yes" >&6; }
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14610 $as_echo "no" >&6; }
14611 if test "$SDL_CONFIG" = "no" ; then
14612 echo "*** The sdl-config script installed by SDL could not be found"
14613 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14614 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14615 echo "*** full path to sdl-config."
14617 if test -f conf.sdltest
; then
14620 echo "*** Could not run SDL test program, checking why..."
14621 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14622 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14623 LIBS
="$LIBS $SDL_LIBS"
14624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14625 /* end confdefs.h. */
14630 int main(int argc, char *argv[])
14633 #define main K_and_R_C_main
14643 if ac_fn_c_try_link
"$LINENO"; then :
14644 echo "*** The test program compiled, but did not run. This usually means"
14645 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14646 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14647 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14648 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14649 echo "*** is required on your system"
14651 echo "*** If you have an old version installed, it is best to remove it, although"
14652 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14654 echo "*** The test program failed to compile or link. See the file config.log for the"
14655 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14656 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14657 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14659 rm -f core conftest.err conftest.
$ac_objext \
14660 conftest
$ac_exeext conftest.
$ac_ext
14661 CFLAGS
="$ac_save_CFLAGS"
14662 CXXFLAGS
="$ac_save_CXXFLAGS"
14663 LIBS
="$ac_save_LIBS"
14675 if test "x-$have_sdl" != "x-yes" ; then
14677 if test "x-$sdl_hidd" != "x-auto" ; then
14678 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14683 aros_host_sdl_cflags
=$SDL_CFLAGS
14684 aros_host_sdl_libs
=$SDL_LIBS
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14692 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14693 # Check whether --enable-dbus was given.
14694 if test "${enable_dbus+set}" = set; then :
14695 enableval
=$enable_dbus; dbus
="yes"
14700 if test "$dbus" = "yes" ; then
14702 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
14703 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
14704 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
14705 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14710 $as_echo "$dbus" >&6; }
14712 if test "$use_kernel_cc_wrapper" = "yes" ; then
14713 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14730 # Compatability with other Amiga-like operation systems
14834 # Hosted Graphics Related
14852 # Native version related
14856 # Palm native version related
14859 # Unix/Hosted version related
14865 # Apple iOS related
14870 # ARM default GCC target related
14898 # Collect-aros stuff: "-ius" to ignore undefined symbols
14901 # C compiler related
14906 #ObjC compiler related
14915 case "$aros_flavour" in
14916 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
14917 aros_flavour
="emulation" ;;
14918 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14919 aros_flavour
="emulation" ;;
14920 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
14921 aros_flavour
="standalone";;
14922 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14923 aros_flavour
="standalone";;
14924 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
14925 aros_flavour
="native" ;;
14926 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14927 aros_flavour
="native" ;;
14928 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
14929 aros_flavour
="linklib" ;;
14930 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14931 aros_flavour
="palmnative" ;;
14932 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14933 aros_flavour
="mac68knative" ;;
14934 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14935 aros_flavour
="ppcnative" ;;
14938 if test ! -d ${aros_inc_dir} ; then
14939 ${MKDIR} ${aros_inc_dir}
14941 if test ! -d ${aros_geninc_dir} ; then
14942 ${MKDIR} ${aros_geninc_dir}
14944 if test ! -d ${aros_hostcfg_dir} ; then
14945 ${MKDIR} ${aros_hostcfg_dir}
14947 if test ! -d ${aros_targetcfg_dir} ; then
14948 ${MKDIR} ${aros_targetcfg_dir}
14950 if test ! -d ${aros_tools_dir} ; then
14951 ${MKDIR} ${aros_tools_dir}
14953 if test ! -d ${aros_scripts_dir} ; then
14954 ${MKDIR} ${aros_scripts_dir}
14957 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14960 # Generic build tools (metamake, etc)
14961 ac_config_commands
="$ac_config_commands genmf-executable-support"
14963 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 ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
14967 ac_config_commands
="$ac_config_commands binutils-support"
14969 ac_config_files
="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14972 # Bare Elf support script and spec
14973 if test "${use_kernel_cc_wrapper}" = "yes"; then
14974 ac_config_commands
="$ac_config_commands elf-compiler-support"
14976 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"
14980 # Host compiler support scripts and spec
14981 if test "${aros_target_toolchain}" = "no"; then
14982 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
14984 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"
14989 if test "$aros_target_variant" == "android"; then
14990 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14995 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
14998 cat >confcache
<<\_ACEOF
14999 # This file is a shell script that caches the results of configure
15000 # tests run on this system so they can be shared between configure
15001 # scripts and configure runs, see configure's option --config-cache.
15002 # It is not useful on other systems. If it contains results you don't
15003 # want to keep, you may remove or edit it.
15005 # config.status only pays attention to the cache file if you give it
15006 # the --recheck option to rerun configure.
15008 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15009 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15010 # following values.
15014 # The following way of writing the cache mishandles newlines in values,
15015 # but we know of no workaround that is simple, portable, and efficient.
15016 # So, we kill variables containing newlines.
15017 # Ultrix sh set writes to stderr and can't be redirected directly,
15018 # and sets the high bit in the cache file unless we assign to the vars.
15020 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15021 eval ac_val
=\$
$ac_var
15025 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15029 _ | IFS | as_nl
) ;; #(
15030 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15031 *) { eval $ac_var=; unset $ac_var;} ;;
15037 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15038 *${as_nl}ac_space
=\
*)
15039 # `set' does not quote correctly, so add quotes: double-quote
15040 # substitution turns \\\\ into \\, and sed turns \\ into \.
15043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15046 # `set' quotes correctly as required by POSIX, so do not add quotes.
15047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15056 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15058 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15060 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15061 if test -w "$cache_file"; then
15062 if test "x$cache_file" != "x/dev/null"; then
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15064 $as_echo "$as_me: updating cache $cache_file" >&6;}
15065 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15066 cat confcache
>"$cache_file"
15068 case $cache_file in #(
15070 mv -f confcache
"$cache_file"$$
&&
15071 mv -f "$cache_file"$$
"$cache_file" ;; #(
15073 mv -f confcache
"$cache_file" ;;
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15079 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15084 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15085 # Let make expand exec_prefix.
15086 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15088 DEFS
=-DHAVE_CONFIG_H
15093 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15094 # 1. Remove the extension, and $U if already installed.
15095 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15096 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15097 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15098 # will be set to the directory where LIBOBJS objects are built.
15099 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15100 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15102 LIBOBJS
=$ac_libobjs
15104 LTLIBOBJS
=$ac_ltlibobjs
15108 : "${CONFIG_STATUS=./config.status}"
15110 ac_clean_files_save
=$ac_clean_files
15111 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15113 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15115 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15117 # Generated by $as_me.
15118 # Run this file to recreate the current configuration.
15119 # Compiler output produced by configure, useful for debugging
15120 # configure, is in config.log if it exists.
15123 ac_cs_recheck=false
15126 SHELL=\${CONFIG_SHELL-$SHELL}
15129 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15130 ## -------------------- ##
15131 ## M4sh Initialization. ##
15132 ## -------------------- ##
15134 # Be more Bourne compatible
15135 DUALCASE
=1; export DUALCASE
# for MKS sh
15136 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15139 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15140 # is contrary to our usage. Disable this feature.
15141 alias -g '${1+"$@"}'='"$@"'
15142 setopt NO_GLOB_SUBST
15144 case `(set -o) 2>/dev/null` in #(
15156 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15157 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15158 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15159 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15160 # Prefer a ksh shell builtin over an external printf program on Solaris,
15161 # but without wasting forks for bash or zsh.
15162 if test -z "$BASH_VERSION$ZSH_VERSION" \
15163 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15164 as_echo='print
-r --'
15165 as_echo_n='print
-rn --'
15166 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15167 as_echo='printf %s
\n'
15168 as_echo_n='printf %s
'
15170 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15171 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15172 as_echo_n='/usr
/ucb
/echo -n'
15174 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15175 as_echo_n_body='eval
15179 expr "X$arg" : "X\\(.*\\)$as_nl";
15180 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15182 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15184 export as_echo_n_body
15185 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15187 export as_echo_body
15188 as_echo='sh
-c $as_echo_body as_echo
'
15191 # The user is always right.
15192 if test "${PATH_SEPARATOR+set}" != set; then
15194 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15195 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15202 # We need space, tab and new line, in precisely that order. Quoting is
15203 # there to prevent editors from complaining about space-tab.
15204 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15205 # splitting by setting IFS to empty value.)
15208 # Find who we are. Look in the path if we contain no directory separator.
15211 *[\\/]* ) as_myself=$0 ;;
15212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15213 for as_dir in $PATH
15216 test -z "$as_dir" && as_dir=.
15217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15223 # We did not find ourselves, most probably we were run as `sh COMMAND'
15224 # in which case we are not to be found in the path.
15225 if test "x$as_myself" = x
; then
15228 if test ! -f "$as_myself"; then
15229 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15233 # Unset variables that we do not need and which cause bugs (e.g. in
15234 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15235 # suppresses any "Segmentation fault" message there. '((' could
15236 # trigger a bug in pdksh 5.2.14.
15237 for as_var
in BASH_ENV ENV MAIL MAILPATH
15238 do eval test x\
${$as_var+set} = xset \
15239 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15252 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15255 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15256 # ----------------------------------------
15257 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15258 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15259 # script with STATUS, using 1 if that was 0.
15262 as_status
=$1; test $as_status -eq 0 && as_status
=1
15264 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15265 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15267 $as_echo "$as_me: error: $2" >&2
15268 as_fn_exit
$as_status
15272 # as_fn_set_status STATUS
15273 # -----------------------
15274 # Set $? to STATUS, without forking.
15275 as_fn_set_status
()
15278 } # as_fn_set_status
15280 # as_fn_exit STATUS
15281 # -----------------
15282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15286 as_fn_set_status
$1
15292 # Portably unset VAR.
15295 { eval $1=; unset $1;}
15297 as_unset
=as_fn_unset
15298 # as_fn_append VAR VALUE
15299 # ----------------------
15300 # Append the text in VALUE to the end of the definition contained in VAR. Take
15301 # advantage of any shell optimizations that allow amortized linear growth over
15302 # repeated appends, instead of the typical quadratic growth present in naive
15304 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15305 eval 'as_fn_append ()
15316 # as_fn_arith ARG...
15317 # ------------------
15318 # Perform arithmetic evaluation on the ARGs, and store the result in the
15319 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15320 # must be portable across $(()) and expr.
15321 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15322 eval 'as_fn_arith ()
15329 as_val
=`expr "$@" || test $? -eq 1`
15334 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15335 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15341 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15342 as_basename
=basename
15347 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15353 as_me
=`$as_basename -- "$0" ||
15354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15355 X"$0" : 'X\(//\)$' \| \
15356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15358 sed '/^.*\/\([^/][^/]*\)\/*$/{
15372 # Avoid depending upon Character Ranges.
15373 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15374 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15375 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15376 as_cr_digits
='0123456789'
15377 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15379 ECHO_C
= ECHO_N
= ECHO_T
=
15380 case `echo -n x` in #(((((
15382 case `echo 'xy\c'` in
15383 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15385 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15392 rm -f conf$$ conf$$.exe conf$$.
file
15393 if test -d conf$$.dir
; then
15394 rm -f conf$$.dir
/conf$$.
file
15397 mkdir conf$$.dir
2>/dev
/null
15399 if (echo >conf$$.
file) 2>/dev
/null
; then
15400 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15402 # ... but there are two gotchas:
15403 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15404 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15405 # In both cases, we have to default to `cp -pR'.
15406 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15408 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15416 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15417 rmdir conf$$.dir
2>/dev
/null
15422 # Create "$as_dir" as a directory, including parents if necessary.
15427 -*) as_dir
=.
/$as_dir;;
15429 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15433 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15434 *) as_qdir
=$as_dir;;
15436 as_dirs
="'$as_qdir' $as_dirs"
15437 as_dir
=`$as_dirname -- "$as_dir" ||
15438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15439 X"$as_dir" : 'X\(//\)[^/]' \| \
15440 X"$as_dir" : 'X\(//\)$' \| \
15441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15442 $as_echo X"$as_dir" |
15443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15447 /^X\(\/\/\)[^/].*/{
15460 test -d "$as_dir" && break
15462 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15463 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15467 if mkdir
-p .
2>/dev
/null
; then
15468 as_mkdir_p
='mkdir -p "$as_dir"'
15470 test -d .
/-p && rmdir .
/-p
15475 # as_fn_executable_p FILE
15476 # -----------------------
15477 # Test if FILE is an executable regular file.
15478 as_fn_executable_p
()
15480 test -f "$1" && test -x "$1"
15481 } # as_fn_executable_p
15482 as_test_x
='test -x'
15483 as_executable_p
=as_fn_executable_p
15485 # Sed expression to map a string onto a valid CPP name.
15486 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15488 # Sed expression to map a string onto a valid variable name.
15489 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15493 ## ----------------------------------- ##
15494 ## Main body of $CONFIG_STATUS script. ##
15495 ## ----------------------------------- ##
15497 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15500 # Save the log message, to keep $0 and so on meaningful, and to
15501 # report actual input values of CONFIG_FILES etc. instead of their
15502 # values after options handling.
15504 This file was extended by $as_me, which was
15505 generated by GNU Autoconf 2.69. Invocation command line was
15507 CONFIG_FILES = $CONFIG_FILES
15508 CONFIG_HEADERS = $CONFIG_HEADERS
15509 CONFIG_LINKS = $CONFIG_LINKS
15510 CONFIG_COMMANDS = $CONFIG_COMMANDS
15513 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15518 case $ac_config_files in *"
15519 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15522 case $ac_config_headers in *"
15523 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15528 # Files that config.status was made for.
15529 config_files="$ac_config_files"
15530 config_headers="$ac_config_headers"
15531 config_commands="$ac_config_commands"
15535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15537 \`$as_me' instantiates files and other configuration actions
15538 from templates according to the current configuration. Unless the files
15539 and actions are specified as TAGs, all are instantiated by default.
15541 Usage: $0 [OPTION]... [TAG]...
15543 -h, --help print this help, then exit
15544 -V, --version print version number and configuration settings, then exit
15545 --config print configuration, then exit
15546 -q, --quiet, --silent
15547 do not print progress messages
15548 -d, --debug don't remove temporary files
15549 --recheck update $as_me by reconfiguring in the same conditions
15550 --file=FILE[:TEMPLATE]
15551 instantiate the configuration file FILE
15552 --header=FILE[:TEMPLATE]
15553 instantiate the configuration header FILE
15555 Configuration files:
15558 Configuration headers:
15561 Configuration commands:
15564 Report bugs to the package provider."
15567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15568 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15571 configured by $0, generated by GNU Autoconf 2.69,
15572 with options \\"\$ac_cs_config\\"
15574 Copyright (C) 2012 Free Software Foundation, Inc.
15575 This config.status script is free software; the Free Software Foundation
15576 gives unlimited permission to copy, distribute and modify it."
15580 test -n "\$AWK" || AWK=awk
15583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15584 # The default lists apply if the user does not specify any file.
15590 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15591 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15595 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15607 # Handling of the options.
15608 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15610 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15611 $as_echo "$ac_cs_version"; exit ;;
15612 --config |
--confi |
--conf |
--con |
--co |
--c )
15613 $as_echo "$ac_cs_config"; exit ;;
15614 --debug |
--debu |
--deb |
--de |
--d |
-d )
15616 --file |
--fil |
--fi |
--f )
15619 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15620 '') as_fn_error $?
"missing file argument" ;;
15622 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15623 ac_need_defaults
=false
;;
15624 --header |
--heade |
--head |
--hea )
15627 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15629 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15630 ac_need_defaults
=false
;;
15632 # Conflict between --help and --header
15633 as_fn_error $?
"ambiguous option: \`$1'
15634 Try \`$0 --help' for more information.";;
15635 --help |
--hel |
-h )
15636 $as_echo "$ac_cs_usage"; exit ;;
15637 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15638 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15641 # This is an error.
15642 -*) as_fn_error $?
"unrecognized option: \`$1'
15643 Try \`$0 --help' for more information." ;;
15645 *) as_fn_append ac_config_targets
" $1"
15646 ac_need_defaults
=false
;;
15652 ac_configure_extra_args
=
15654 if $ac_cs_silent; then
15656 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15661 if \$ac_cs_recheck; then
15662 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15664 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15665 CONFIG_SHELL='$SHELL'
15666 export CONFIG_SHELL
15671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15675 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15676 ## Running $as_me. ##
15682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15686 aros_tools_dir=${aros_tools_dir}
15689 aros_host_exe_suffix=${aros_host_exe_suffix}
15690 aros_tools_dir=${aros_tools_dir}
15691 aros_target_cpu=${aros_target_cpu}
15692 aros_target_arch=${aros_target_arch}
15693 aros_target_suffix=${aros_target_suffix}
15694 orig_target_nm=${orig_target_nm}
15695 orig_target_as=${orig_target_as}
15696 orig_target_ar=${orig_target_ar}
15697 orig_target_ranlib=${orig_target_ranlib}
15698 orig_target_objdump=${orig_target_objdump}
15699 orig_target_objcopy=${orig_target_objcopy}
15700 orig_target_strip=${orig_target_strip}
15701 aros_kernel_ld=${aros_kernel_ld}
15705 aros_host_exe_suffix=${aros_host_exe_suffix}
15706 aros_tools_dir=${aros_tools_dir}
15707 aros_target_cpu=${aros_target_cpu}
15708 aros_target_arch=${aros_target_arch}
15709 aros_target_suffix=${aros_target_suffix}
15710 aros_kernel_ld=${aros_kernel_ld}
15714 aros_host_exe_suffix=${aros_host_exe_suffix}
15715 aros_tools_dir=${aros_tools_dir}
15716 aros_target_cpu=${aros_target_cpu}
15717 aros_target_arch=${aros_target_arch}
15718 aros_target_suffix=${aros_target_suffix}
15724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15726 # Handling of arguments.
15727 for ac_config_target
in $ac_config_targets
15729 case $ac_config_target in
15730 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15731 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
15732 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15733 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
15734 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15735 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15736 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15737 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15738 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15739 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
15740 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15741 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15742 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
15743 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
15744 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in" ;;
15745 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
15746 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15747 "${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" ;;
15748 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15749 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15750 "${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" ;;
15751 "${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" ;;
15752 "${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" ;;
15753 "${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" ;;
15754 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15756 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15761 # If the user did not use the arguments to specify the items to instantiate,
15762 # then the envvar interface is used. Set only those that are not.
15763 # We use the long form for the default assignment because of an extremely
15764 # bizarre bug on SunOS 4.1.3.
15765 if $ac_need_defaults; then
15766 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15767 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15768 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15771 # Have a temporary directory for convenience. Make it in the build tree
15772 # simply because there is no reason against having it here, and in addition,
15773 # creating and moving files from /tmp can sometimes cause problems.
15774 # Hook for its removal unless debugging.
15775 # Note that there is a small window in which the directory will not be cleaned:
15776 # after its creation but before its name has been assigned to `$tmp'.
15780 trap 'exit_status=$?
15781 : "${ac_tmp:=$tmp}"
15782 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15784 trap 'as_fn_exit 1' 1 2 13 15
15786 # Create a (secure) tmp directory for tmp files.
15789 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15793 tmp
=.
/conf$$
-$RANDOM
15794 (umask 077 && mkdir
"$tmp")
15795 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15798 # Set up the scripts for CONFIG_FILES section.
15799 # No need to generate them if there are no CONFIG_FILES.
15800 # This happens for instance with `./config.status config.h'.
15801 if test -n "$CONFIG_FILES"; then
15804 ac_cr
=`echo X | tr X '\015'`
15805 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15806 # But we know of no other shell where ac_cr would be empty at this
15807 # point, so we can use a bashism as a fallback.
15808 if test "x$ac_cr" = x
; then
15809 eval ac_cr
=\$
\'\\r
\'
15811 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15812 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15815 ac_cs_awk_cr
=$ac_cr
15818 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15823 echo "cat >conf$$subs.awk <<_ACEOF" &&
15824 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15826 } >conf$$subs.sh ||
15827 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15828 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15830 for ac_last_try in false false false false false :; do
15831 . ./conf$$subs.sh ||
15832 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15834 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15835 if test $ac_delim_n = $ac_delim_num; then
15837 elif $ac_last_try; then
15838 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15840 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15843 rm -f conf$$subs.sh
15845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15846 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15850 s/^/S["/; s
/!.
*/"]=/
15860 s/\(.\{148\}\)..*/\1/
15862 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15867 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15874 s/\(.\{148\}\)..*/\1/
15876 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15880 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15885 ' <conf$$subs.awk | sed '
15890 ' >>$CONFIG_STATUS || ac_write_fail=1
15891 rm -f conf$$subs.awk
15892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15894 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15895 for (key in S) S_is_set[key] = 1
15901 nfields = split(line, field, "@
")
15903 len = length(field[1])
15904 for (i = 2; i < nfields; i++) {
15906 keylen = length(key)
15907 if (S_is_set[key]) {
15909 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15910 len += length(value) + length(field[++i])
15921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15922 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15923 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15926 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15927 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15930 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15931 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15932 # trailing colons and then remove the whole line if VPATH becomes empty
15933 # (actually we leave an empty line to preserve line numbers).
15934 if test "x
$srcdir" = x.; then
15935 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15954 fi # test -n "$CONFIG_FILES"
15956 # Set up the scripts for CONFIG_HEADERS section.
15957 # No need to generate them if there are no CONFIG_HEADERS.
15958 # This happens for instance with `./config.status Makefile'.
15959 if test -n "$CONFIG_HEADERS"; then
15960 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
15964 # Transform confdefs.h into an awk script `defines.awk', embedded as
15965 # here-document in config.status, that substitutes the proper values into
15966 # config.h.in to produce config.h.
15968 # Create a delimiter string that does not exist in confdefs.h, to ease
15969 # handling of long lines.
15971 for ac_last_try in false false :; do
15972 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
15973 if test -z "$ac_tt"; then
15975 elif $ac_last_try; then
15976 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15978 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15982 # For the awk script, D is an array of macro values keyed by name,
15983 # likewise P contains macro parameters if any. Preserve backslash
15984 # newline sequences.
15986 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15988 s/.\{148\}/&'"$ac_delim"'/g
15991 s/^[ ]*#[ ]*define[ ][ ]*/ /
15998 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16000 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16004 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16005 D["\
1"]=" \
3\\\\\\n
"\\/p
16007 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16012 s/.\{148\}/&'"$ac_delim"'/g
16017 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16020 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16022 ' <confdefs.h | sed '
16023 s/'"$ac_delim"'/"\\\
16024 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16027 for (key in D) D_is_set[key] = 1
16030 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16032 split(line, arg, " ")
16033 if (arg[1] == "#") {
16037 defundef
= substr
(arg
[1], 2)
16040 split(mac1
, mac2
, "(") #)
16042 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16043 if (D_is_set
[macro
]) {
16044 # Preserve the white space surrounding the "#".
16045 print prefix
"define", macro P
[macro
] D
[macro
]
16048 # Replace #undef with comments. This is necessary, for example,
16049 # in the case of _POSIX_SOURCE, which is predefined and required
16050 # on some systems where configure will not decide to define it.
16051 if (defundef
== "undef") {
16052 print
"/*", prefix defundef
, macro
, "*/"
16060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16061 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16062 fi # test -n "$CONFIG_HEADERS"
16065 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16070 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16072 case $ac_mode$ac_tag in
16074 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16075 :[FH
]-) ac_tag
=-:-;;
16076 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16093 -) ac_f
="$ac_tmp/stdin";;
16094 *) # Look for the file first in the build tree, then in the source tree
16095 # (if the path is not absolute). The absolute path cannot be DOS-style,
16096 # because $ac_f cannot contain `:'.
16100 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16102 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16104 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16105 as_fn_append ac_file_inputs
" '$ac_f'"
16108 # Let's still pretend it is `configure' which instantiates (i.e., don't
16109 # use $as_me), people would be surprised to read:
16110 # /* config.h. Generated by config.status. */
16111 configure_input
='Generated from '`
16112 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16114 if test x
"$ac_file" != x-
; then
16115 configure_input
="$ac_file. $configure_input"
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16117 $as_echo "$as_me: creating $ac_file" >&6;}
16119 # Neutralize special characters interpreted by sed in replacement strings.
16120 case $configure_input in #(
16121 *\
&* |
*\|
* |
*\\* )
16122 ac_sed_conf_input
=`$as_echo "$configure_input" |
16123 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16124 *) ac_sed_conf_input
=$configure_input;;
16128 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16129 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16134 ac_dir
=`$as_dirname -- "$ac_file" ||
16135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16136 X"$ac_file" : 'X\(//\)[^/]' \| \
16137 X"$ac_file" : 'X\(//\)$' \| \
16138 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16139 $as_echo X"$ac_file" |
16140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16144 /^X\(\/\/\)[^/].*/{
16157 as_dir
="$ac_dir"; as_fn_mkdir_p
16161 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16163 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16164 # A ".." for each directory in $ac_dir_suffix.
16165 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16166 case $ac_top_builddir_sub in
16167 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16168 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16171 ac_abs_top_builddir
=$ac_pwd
16172 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16173 # for backward compatibility:
16174 ac_top_builddir
=$ac_top_build_prefix
16177 .
) # We are building in place.
16179 ac_top_srcdir
=$ac_top_builddir_sub
16180 ac_abs_top_srcdir
=$ac_pwd ;;
16181 [\\/]* | ?
:[\\/]* ) # Absolute name.
16182 ac_srcdir
=$srcdir$ac_dir_suffix;
16183 ac_top_srcdir
=$srcdir
16184 ac_abs_top_srcdir
=$srcdir ;;
16185 *) # Relative name.
16186 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16187 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16188 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16190 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16202 # If the template does not know about datarootdir, expand it.
16203 # FIXME: This hack should be removed a few years after 2.60.
16204 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16215 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16216 *datarootdir
*) ac_datarootdir_seen
=yes;;
16217 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16219 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16222 ac_datarootdir_hack='
16223 s&@datadir@&$datadir&g
16224 s&@docdir@&$docdir&g
16225 s&@infodir@&$infodir&g
16226 s&@localedir@&$localedir&g
16227 s&@mandir@&$mandir&g
16228 s&\\\${datarootdir}&$datarootdir&g' ;;
16232 # Neutralize VPATH when `$srcdir' = `.'.
16233 # Shell code in configure.ac might set extrasub.
16234 # FIXME: do we really want to maintain this feature?
16235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16236 ac_sed_extra="$ac_vpsub
16239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16241 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16242 s|@configure_input@|
$ac_sed_conf_input|
;t t
16243 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16244 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16245 s
&@srcdir@
&$ac_srcdir&;t t
16246 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16247 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16248 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16249 s
&@builddir@
&$ac_builddir&;t t
16250 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16251 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16252 $ac_datarootdir_hack
16254 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16255 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16257 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16258 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16259 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16260 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16262 which seems to be undefined. Please make sure it is defined" >&5
16263 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16264 which seems to be undefined. Please make sure it is defined" >&2;}
16266 rm -f "$ac_tmp/stdin"
16268 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16269 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16277 if test x"$ac_file" != x-; then
16279 $as_echo "/* $configure_input */" \
16280 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16281 } >"$ac_tmp/config.h" \
16282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16283 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16285 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16288 mv "$ac_tmp/config.h" "$ac_file" \
16289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16292 $as_echo "/* $configure_input */" \
16293 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16294 || as_fn_error $? "could not create -" "$LINENO" 5
16298 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16299 $as_echo "$as_me: executing $ac_file commands" >&6;}
16304 case $ac_file$ac_mode in
16305 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16306 "binutils-support":C)
16307 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16309 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16311 chmod a+x ${prefix2}-ld
16313 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16314 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16315 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16316 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16317 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16318 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16319 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16321 "elf-compiler-support":C)
16322 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16324 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16326 chmod a+x ${prefix2}-gcc
16328 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16330 "host-compiler-wrapper-support":C)
16331 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16333 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16335 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16344 ac_clean_files=$ac_clean_files_save
16346 test $ac_write_fail = 0 ||
16347 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16350 # configure is writing to config.log, and then calls config.status.
16351 # config.status does its own redirection, appending to config.log.
16352 # Unfortunately, on DOS this fails, as config.log is still kept open
16353 # by configure, so config.status won't be able to
write to it
; its
16354 # output is simply discarded. So we exec the FD to /dev/null,
16355 # effectively closing config.log, so it can be properly (re)opened and
16356 # appended to by config.status. When coming back to configure, we
16357 # need to make the FD available again.
16358 if test "$no_create" != yes; then
16360 ac_config_status_args
=
16361 test "$silent" = yes &&
16362 ac_config_status_args
="$ac_config_status_args --quiet"
16364 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16366 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16367 # would make configure fail if this is the last instruction.
16368 $ac_cs_success || as_fn_exit
1
16370 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16372 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16377 #XXX compatability...
16378 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
16380 if test -n "$aros_shared_cflags" ; then
16381 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16382 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg