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 -lpng16" >&5
6062 $as_echo_n "checking for png_read_png in -lpng16... " >&6; }
6063 if ${ac_cv_lib_png16_png_read_png+:} false
; then :
6064 $as_echo_n "(cached) " >&6
6066 ac_check_lib_save_LIBS
=$LIBS
6067 LIBS
="-lpng16 $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_png16_png_read_png
=yes
6089 ac_cv_lib_png16_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_png16_png_read_png" >&5
6096 $as_echo "$ac_cv_lib_png16_png_read_png" >&6; }
6097 if test "x$ac_cv_lib_png16_png_read_png" = xyes
; then :
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6101 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6102 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6103 $as_echo_n "(cached) " >&6
6105 ac_check_lib_save_LIBS
=$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_png_png_read_png
=yes
6128 ac_cv_lib_png_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_png_png_read_png" >&5
6135 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6136 if test "x$ac_cv_lib_png_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
="arm"
8092 aros_object_format
="armelf_aros"
8093 aros_flavour
="emulation"
8094 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8095 gcc_target_cpu
="arm"
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 android_tool_dir_prefix
="arm-linux-androideabi"
8101 android_tool_prefix
="arm-linux-androideabi"
8102 android_ndk_arch
="arm"
8103 kernel_tool_prefix
="arm-linux-gnueabihf-"
8106 aros_target_cpu
="arm"
8107 aros_object_format
="armelf_aros"
8108 aros_flavour
="emulation"
8109 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8110 gcc_target_cpu
="arm"
8111 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8112 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8113 aros_arch_libs
="-laeabi"
8114 android_tool_dir_prefix
="arm-linux-androideabi"
8115 android_tool_prefix
="arm-linux-androideabi"
8116 android_ndk_arch
="arm"
8117 kernel_tool_prefix
="arm-linux-gnueabi-"
8120 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8123 case "$aros_target_variant" in
8126 if test "$android_ndk_arch" = ""; then
8127 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8130 aros_nominal_width
=320
8131 aros_nominal_height
=480
8132 if test "$aros_android_ndk" = "none"; then
8133 aros_kernel_cflags
="-mandroid"
8134 aros_kernel_ldflags
="-mandroid"
8137 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8138 kernel_tool_version
=""
8139 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8140 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
8141 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
8142 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8143 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
8146 host_android_gfx
=yes
8147 # Disable implicit PIC mode
8148 aros_target_cflags
="$aros_target_cflags -fno-pic"
8149 kernel_tool_prefix
="$android_tool_prefix-"
8155 aros_target_arch
="pc"
8156 aros_shared_default
="no"
8157 target_bootloader
="grub2"
8158 case "$target_cpu" in
8160 aros_target_cpu
="i386"
8163 if test "$aros_object_format" = "" ; then
8164 aros_object_format
="elf_i386"
8166 aros_flavour
="standalone"
8167 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8168 aros_kernel_ldflags
="-Wl,-melf_i386"
8169 aros_nominal_width
=640
8170 aros_nominal_height
=480
8171 gcc_target_cpu
="i386"
8174 aros_target_cpu
="x86_64"
8176 if test "$aros_object_format" = "" ; then
8177 aros_object_format
="elf_x86_64"
8179 aros_flavour
="standalone"
8180 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8181 aros_config_cflags
="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8182 aros_kernel_ldflags
=""
8183 aros_nominal_width
=640
8184 aros_nominal_height
=480
8185 case "$aros_target_variant" in
8187 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8192 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8198 aros_target_arch
="prep"
8199 aros_shared_default
="no"
8200 aros_target_cpu
="ppc"
8201 aros_object_format
="elf32ppc"
8202 aros_flavour
="ppcnative"
8203 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8204 aros_kernel_ldflags
=""
8205 aros_nominal_width
=640
8206 aros_nominal_height
=480
8207 gcc_target_cpu
="ppc"
8211 aros_target_arch
="freebsd"
8212 aros_target_family
="unix"
8213 aros_target_cpu
="i386"
8214 aros_flavour
="emulation"
8215 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8216 gcc_target_cpu
="i386"
8218 aros_target_strip_flags
="-x"
8222 aros_target_arch
="darwin"
8223 aros_target_family
="unix"
8224 aros_flavour
="emulation"
8225 case "$target_cpu" in
8227 aros_ios_platform
="iPhoneSimulator"
8228 aros_target_cpu
="i386"
8229 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8230 aros_kernel_ldflags
=""
8231 aros_macosx_version
="10.4"
8232 aros_nominal_depth
=8
8233 gcc_target_cpu
="i386"
8234 aros_object_format
="elf_i386"
8235 aros_kernel_ar_flags
="-cr"
8236 aros_target_strip_flags
="-x"
8237 kernel_tool_flags
="-m32"
8240 aros_target_cpu
="x86_64"
8241 aros_object_format
="elf_x86_64"
8242 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8243 aros_macosx_version
="10.6"
8244 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8245 aros_kernel_cflags
="-m64"
8246 aros_kernel_ldflags
="-m64"
8247 aros_target_cflags
="-mcmodel=large"
8248 aros_nominal_depth
=8
8250 aros_kernel_ar_flags
="-cr"
8253 aros_kernel_ranlib
="ranlib"
8255 aros_kernel_strip
="strip"
8256 kernel_tool_prefix
="i686-apple-darwin10-"
8259 aros_target_cpu
="ppc"
8260 aros_object_format
="elf32ppc"
8261 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8262 aros_kernel_ldflags
=""
8263 aros_macosx_version
="10.0"
8264 aros_nominal_depth
=8
8265 gcc_target_cpu
="ppc"
8267 aros_kernel_ar_flags
="-cr"
8268 aros_kernel_ld
="ld -arch ppc"
8269 aros_kernel_as
="as -arch ppc"
8270 aros_kernel_ranlib
="ranlib -arch ppc"
8271 aros_kernel_nm
="nm -arch ppc"
8272 aros_kernel_strip
="strip -arch ppc"
8273 kernel_tool_prefix
="powerpc-apple-darwin10-"
8276 aros_ios_platform
="iPhoneOS"
8277 aros_target_cpu
="arm"
8278 aros_object_format
="armelf_aros"
8279 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8280 aros_arch_libs
="-laeabi"
8281 aros_nominal_depth
=8
8282 gcc_target_cpu
="arm"
8284 aros_kernel_ar_flags
="-cr"
8285 aros_kernel_ld
="ld -arch arm"
8286 aros_kernel_ranlib
="ranlib -arch arm"
8287 kernel_tool_prefix
="arm-apple-darwin10-"
8288 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8291 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8294 case "$aros_target_variant" in
8296 aros_ios_version
="3.0"
8297 aros_nominal_width
=320
8298 aros_nominal_height
=480
8299 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8300 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
8301 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
8303 # This is here because it may depend on iOS or SDK version
8304 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8305 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8306 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8309 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8310 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8316 aros_target_arch
="dragonfly"
8317 aros_target_family
="unix"
8318 aros_flavour
="emulation"
8319 case "$target_cpu" in
8321 aros_target_cpu
="i386"
8322 aros_object_format
="elf_i386"
8323 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8326 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8327 aros_target_cpu
="x86_64"
8328 aros_object_format
="elf_x86_64"
8329 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8332 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8338 aros_target_arch
="netbsd"
8339 aros_target_family
="unix"
8340 case "$target_cpu" in
8342 aros_target_cpu
="m68k"
8343 aros_object_format
="m68kelf"
8344 aros_flavour
="emulcompat"
8345 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8346 gcc_target_cpu
="mc68000"
8349 aros_target_cpu
="i386"
8350 aros_object_format
="elf_i386"
8351 aros_flavour
="emulation"
8352 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8353 aros_nominal_depth
=8
8354 gcc_target_cpu
="i386"
8357 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8360 aros_target_genmap
="-Wl,-M -Xlinker >"
8361 aros_flavour
="emulation"
8362 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8366 aros_target_arch
="openbsd"
8367 aros_target_family
="unix"
8368 case "$target_cpu" in
8370 aros_target_cpu
="i386"
8371 aros_object_format
="elf_i386"
8372 aros_flavour
="emulation"
8373 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8374 gcc_target_cpu
="i386"
8377 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8380 aros_target_genmap
="-Wl,-M -Xlinker >"
8381 aros_target_nm_flags
="-u"
8382 aros_flavour
="emulation"
8386 aros_target_arch
="solaris"
8387 aros_target_family
="unix"
8388 case "$target_cpu" in
8390 aros_target_cpu
="i386"
8391 aros_object_format
="elf_i386"
8392 aros_flavour
="emulation"
8393 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8394 aros_nominal_depth
=8
8395 gcc_target_cpu
="i386"
8398 aros_target_cpu
="sparc"
8399 aros_object_format
="elf_sparc"
8400 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8401 gcc_target_cpu
="sparc"
8404 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8407 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
8408 aros_flavour
="emulation"
8412 aros_target_arch
="morphos"
8413 aros_shared_default
="no"
8414 aros_target_cpu
="ppc"
8415 aros_object_format
="elf_ppc"
8416 aros_flavour
="nativecompat"
8417 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8418 gcc_target_cpu
="ppc"
8422 aros_target_arch
="sam440"
8423 aros_shared_default
="no"
8424 aros_target_cpu
="ppc"
8425 aros_object_format
="elf32ppc"
8426 aros_flavour
="ppcnative"
8427 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8428 aros_kernel_ldflags
=""
8429 aros_nominal_width
=1024
8430 aros_nominal_height
=768
8431 aros_nominal_depth
=24
8432 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8433 gcc_target_cpu
="powerpc"
8437 aros_target_arch
="efika"
8438 aros_shared_default
="no"
8439 aros_target_cpu
="arm"
8440 aros_object_format
="armelf_aros"
8441 aros_flavour
="standalone"
8442 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8443 aros_kernel_ldflags
=""
8444 aros_nominal_width
=1024
8445 aros_nominal_height
=600
8446 aros_arch_libs
="-laeabi"
8447 gcc_default_cpu
="armv7-a"
8448 gcc_default_fpu
="vfpv3"
8449 aros_config_cflags
="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8450 aros_config_aflags
="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8451 aros_optimization_cflags
="$aros_optimization_cflags -Os"
8452 case "$target_cpu" in
8454 gcc_default_float_abi
="hard"
8459 gcc_default_float_abi
="softfp"
8462 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8468 aros_target_arch
="chrp"
8469 aros_shared_default
="no"
8470 aros_target_cpu
="ppc"
8471 aros_object_format
="elf32ppc"
8472 aros_flavour
="ppcnative"
8473 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8474 aros_kernel_ldflags
=""
8475 aros_nominal_width
=640
8476 aros_nominal_height
=480
8477 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8478 gcc_target_cpu
="powerpc"
8479 case "$aros_target_variant" in
8481 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8487 aros_flavour
="standalone"
8488 aros_target_arch
="raspi"
8489 aros_target_cpu
="arm"
8490 aros_object_format
="armelf_aros"
8491 aros_shared_default
="no"
8492 aros_arch_libs
="-laeabi"
8494 gcc_default_cpu
="armv6zk"
8495 gcc_default_cpu_tune
="arm1176jzf-s"
8497 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8498 aros_config_cflags
="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8499 aros_config_aflags
="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8500 aros_kernel_cflags
="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8501 aros_target_cflags
="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8502 case "$aros_target_variant" in
8504 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8510 aros_flavour
="standalone"
8511 aros_target_arch
="stm32f7_discovery"
8512 aros_target_cpu
="arm"
8513 aros_target_cpu_mode
="thumb2"
8514 aros_object_format
="armelf_aros"
8515 aros_shared_default
="no"
8517 # stm32f7 has DSP opcode support
8518 gcc_default_cpu
="armv7e-m"
8519 # gcc_default_cpu="armv7-m"
8520 gcc_default_cpu_tune
="cortex-m7"
8521 gcc_default_fpu
="fpv4-sp-d16"
8522 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8523 # gcc_default_fpu="fpv5-sp-d16"
8524 gcc_default_float_abi
="hard"
8526 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dthumb"
8530 aros_target_arch
="amiga"
8531 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8532 aros_shared_default
="no"
8534 case "$target_cpu" in
8536 # Check whether --enable-amigaos_compliance was given.
8537 if test "${enable_amigaos_compliance+set}" = set; then :
8538 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
8542 aros_target_cpu
="m68k"
8543 aros_object_format
="m68kelf"
8544 aros_flavour
="standcompat"
8545 gcc_target_cpu
="m68000"
8546 aros_nowarn_flags
="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8547 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8548 aros_optimization_cflags
="$aros_optimization_cflags -Os"
8549 aros_config_aflags
="$aros_config_aflags"
8550 aros_target_strip_flags
="-R.comment --strip-debug"
8551 aros_nominal_width
=640
8552 aros_nominal_height
=256
8553 aros_nominal_depth
=2
8557 aros_flavour
="native"
8558 gcc_target_cpu
="ppc"
8561 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8567 aros_target_arch
="mingw32"
8568 aros_shared_default
="no"
8569 aros_flavour
="emulation"
8570 aros_shared_cflags
=""
8571 need_crosstools
="yes"
8574 case "$target_cpu" in
8576 aros_target_cpu
="i386"
8577 aros_object_format
="elf_i386"
8578 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8579 aros_nominal_depth
=8
8580 gcc_target_cpu
="i386"
8582 kernel_tool_prefix
="i386-mingw32-"
8585 aros_target_cpu
="x86_64"
8586 aros_object_format
="elf_x86_64"
8587 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8588 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8589 aros_nominal_depth
=8
8590 kernel_tool_prefix
="x86_64-w64-mingw32-"
8593 aros_target_cpu
="arm"
8594 aros_object_format
="armelf_aros"
8595 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8596 aros_arch_libs
="-laeabi"
8597 aros_nominal_depth
=8
8598 gcc_target_cpu
="arm"
8599 gcc_default_float_abi
="soft"
8600 kernel_tool_prefix
="arm-mingw32ce-"
8601 aros_nominal_width
=160
8602 aros_nominal_height
=160
8605 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8608 if test $host_os = "cygwin"; then
8609 aros_kernel_cflags
="-mno-cygwin"
8613 aros_target_arch
="pp"
8614 aros_shared_default
="no"
8615 case "$target_cpu" in
8617 aros_target_cpu
="m68k"
8618 aros_object_format
="m68kelf"
8619 aros_flavour
="palmnative"
8620 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8621 aros_nominal_width
=160
8622 aros_nominal_height
=160
8623 aros_nominal_depth
=1
8624 aros_target_ar_flags
="cru"
8625 aros_compiler_libs
="-lgcc1"
8626 aros_shared_default
=no
8627 aros_shared_cflags
="-fpic"
8628 aros_shared_aflags
=""
8629 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8630 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8631 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8632 aros_debug_aflags
=""
8633 aros_debug_ldflags
="$aros_symbols_debug"
8634 aros_mungwall_debug
="0"
8635 aros_modules_debug
="0"
8636 gcc_target_cpu
="mc68000"
8637 ignore_undefined_symbols
="-ius"
8640 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8646 aros_target_arch
="mac"
8647 aros_shared_default
="no"
8648 case "$target_cpu" in
8650 aros_target_cpu
="m68k"
8651 aros_object_format
="m68kelf"
8652 aros_flavour
="mac68knative"
8653 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8654 aros_nominal_width
=512
8655 aros_nominal_height
=384
8656 aros_nominal_depth
=8
8657 aros_target_ar_flags
="cru"
8658 aros_compiler_libs
="-lgcc1"
8659 aros_shared_default
=no
8660 aros_shared_cflags
="-fpic"
8661 aros_shared_aflags
=""
8662 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8663 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8664 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8665 aros_debug_aflags
=""
8666 aros_debug_ldflags
="$aros_symbols_debug"
8667 aros_mungwall_debug
="0"
8668 aros_modules_debug
="0"
8669 gcc_target_cpu
="mc68000"
8670 ignore_undefined_symbols
="-ius"
8673 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8679 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
8683 #-----------------------------------------------------------------------------
8684 crosstools_guess
="yes"
8685 aros_target_toolchain
="no"
8686 aros_config_sysroot
=""
8687 aros_kernel_sysroot
=""
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8690 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8692 # Check whether --with-kernel-toolchain-prefix was given.
8693 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8694 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8698 $as_echo "$kernel_tool_prefix" >&6; }
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8701 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8703 # Check whether --with-elf-toolchain-prefix was given.
8704 if test "${with_elf_toolchain_prefix+set}" = set; then :
8705 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
8706 crosstools_guess
="no"
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8710 $as_echo "$elf_tool_prefix" >&6; }
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8713 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8715 # Check whether --with-aros-toolchain was given.
8716 if test "${with_aros_toolchain+set}" = set; then :
8717 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
8718 crosstools_guess
="no"
8721 if test "$aros_tool_prefix" = "yes" ; then
8722 aros_tool_prefix
=$aros_target_cpu-aros-
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8725 $as_echo "$aros_tool_prefix" >&6; }
8727 #-----------------------------------------------------------------------------
8728 # Checking if we should build crosstools..
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8730 $as_echo_n "checking whether to build crosstools... " >&6; }
8731 # Check whether --enable-crosstools was given.
8732 if test "${enable_crosstools+set}" = set; then :
8733 enableval
=$enable_crosstools; crosstools
="$enableval"
8735 crosstools
="$crosstools_guess"
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8739 $as_echo "$crosstools" >&6; }
8741 if test "${crosstools}" = "yes"; then
8742 if test "${crosstools_guess}" = "no"; then
8743 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8747 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
8748 aros_target_toolchain
="yes"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8752 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8754 # Check whether --with-aros-toolchain-install was given.
8755 if test "${with_aros_toolchain_install+set}" = set; then :
8756 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
8759 if test "x$aros_toolchain_install" = "x"; then
8760 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8762 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
8763 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
8764 if test "$crosstools_guess" = "no" ; then
8765 toolchain_needs_sysroot
=yes
8767 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8768 aros_kernel_sysroot
= $aros_config_sysroot
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8773 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8776 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8777 if test "$toolchain_needs_sysroot" = "yes" ; then
8778 aros_config_sysroot
="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8781 $as_echo "$toolchain_needs_sysroot" >&6; }
8783 #-----------------------------------------------------------------------------
8784 if test "$aros_toolchain" = "gnu" ; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8786 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8789 # Check whether --with-binutils-version was given.
8790 if test "${with_binutils_version+set}" = set; then :
8791 withval
=$with_binutils_version; use_binutils_version
="$withval"
8793 use_binutils_version
=""
8796 if test "$use_binutils_version" = ""; then
8797 target_binutils_version
="$default_binutils_version"
8799 target_binutils_version
="$use_binutils_version"
8801 if test "$aros_toolchain" = "gnu" ; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8803 $as_echo "$target_binutils_version" >&6; }
8807 # Helper to identify gcc version
8810 #-----------------------------------------------------------------------------
8811 if test "$aros_toolchain" = "gnu" ; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8813 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8816 # Check whether --with-gcc-version was given.
8817 if test "${with_gcc_version+set}" = set; then :
8818 withval
=$with_gcc_version; use_gcc_version
="$withval"
8823 if test "$use_gcc_version" = ""; then
8824 if test "${crosstools}" = "no"; then
8825 if test "x$aros_toolchain_install" != "x"; then
8827 target_gcc_version
=""
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8829 $as_echo_n "checking gcc version... " >&6; }
8830 if ${ax_cv_gcc_version+:} false
; then :
8831 $as_echo_n "(cached) " >&6
8834 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
8835 if test "x$ax_cv_gcc_version" = "x"; then :
8837 ax_cv_gcc_version
=""
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8843 $as_echo "$ax_cv_gcc_version" >&6; }
8844 target_gcc_version
=$ax_cv_gcc_version
8849 if test "$use_gcc_version" = ""; then
8850 target_gcc_version
="$default_gcc_version"
8853 target_gcc_version
="$use_gcc_version"
8855 if test "$aros_toolchain" = "gnu" ; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8857 $as_echo "$target_gcc_version" >&6; }
8859 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'.' -f1)
8860 GCC_VERSION_MINOR
=$
(echo $target_gcc_version | cut
-d'.' -f2)
8861 GCC_VERSION_PATCH
=$
(echo $target_gcc_version | cut
-d'.' -f3)
8863 gcc_fix_bitfields
="false"
8864 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8865 gcc_fix_bitfields
="true"
8867 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8868 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8869 gcc_fix_bitfields
="true"
8874 if test "$gcc_fix_bitfields" = "true" ; then
8875 case "$aros_target_cpu" in
8877 aros_kernel_cflags
="$aros_kernel_cflags -mno-ms-bitfields"
8878 aros_target_cflags
="$aros_target_cflags -mno-ms-bitfields"
8881 aros_kernel_cflags
="$aros_kernel_cflags -mno-ms-bitfields"
8882 aros_target_cflags
="$aros_target_cflags -mno-ms-bitfields"
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8889 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8890 # Check whether --enable-objc was given.
8891 if test "${enable_objc+set}" = set; then :
8892 enableval
=$enable_objc; objc
="$enableval"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8898 $as_echo "$objc" >&6; }
8899 if test "x$objc" = "xyes"; then
8902 objc_target
="no-objc"
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8906 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8907 # Check whether --enable-java was given.
8908 if test "${enable_java+set}" = set; then :
8909 enableval
=$enable_java; java
="$enableval"
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8915 $as_echo "$java" >&6; }
8916 if test "x$java" != "xno"; then
8919 java_target
="no-java"
8922 spec_obj_format
="-m $aros_object_format"
8923 # Now process extra architecture-specific options.
8924 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8925 # as well as floating-point ABI.
8926 case "$aros_target_cpu" in
8928 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8931 if test "$gcc_default_cpu" = ""; then
8932 gcc_default_cpu
="armv6"
8934 if test "$gcc_default_fpu" = ""; then
8935 gcc_default_fpu
="vfp"
8937 if test "$gcc_default_float_abi" = ""; then
8938 if test "$target_cpu" = "armhf"; then
8939 gcc_default_float_abi
="hard"
8941 gcc_default_float_abi
="softfp"
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8946 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8948 # Check whether --with-cpu was given.
8949 if test "${with_cpu+set}" = set; then :
8950 withval
=$with_cpu; aros_gcc_cpu
="$withval"
8952 aros_gcc_cpu
=$gcc_default_cpu
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8956 $as_echo "$aros_gcc_cpu" >&6; }
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8959 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8961 # Check whether --with-fpu was given.
8962 if test "${with_fpu+set}" = set; then :
8963 withval
=$with_fpu; aros_gcc_fpu
="$withval"
8965 aros_gcc_fpu
=$gcc_default_fpu
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8969 $as_echo "$aros_gcc_fpu" >&6; }
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8972 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8974 # Check whether --with-float was given.
8975 if test "${with_float+set}" = set; then :
8976 withval
=$with_float; aros_gcc_float_abi
="$withval"
8978 aros_gcc_float_abi
=$gcc_default_float_abi
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8982 $as_echo "$aros_gcc_float_abi" >&6; }
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
8985 $as_echo_n "checking Which ARM mode to use... " >&6; }
8986 if test "$aros_target_cpu_mode" = ""; then
8987 aros_target_cpu_mode
="arm32"
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
8989 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
8992 $as_echo "$aros_target_cpu_mode" >&6; }
8995 case "$aros_target_cpu_mode" in
8997 gcc_default_mode
="arm"
8998 aros_isa_flags
="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9001 as_fn_error $?
"ARM 64-bit mode is unsupported" "$LINENO" 5
9004 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9007 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9010 gcc_default_mode
="thumb"
9011 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9012 aros_isa_flags
="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9015 as_fn_error $?
"Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9019 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9020 aros_config_aflags
="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9023 aros_isa_flags
="-m32 -march=i486"
9024 aros_kernel_cflags
="$aros_kernel_cflags $aros_isa_flags"
9025 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
9029 # Some architectures may need custom ELF specs.
9030 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
9031 elf_specs_in
=config
/${aros_object_format}-specs.
in
9033 elf_specs_in
=config
/elf-specs.
in
9036 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9037 # Since we override specs, we may need to put these defines there
9038 if test "$gcc_target_cpu" != ""; then
9039 gcc_target_cpu
="-D__${gcc_target_cpu}__"
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9043 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9045 # Check whether --with-portssources was given.
9046 if test "${with_portssources+set}" = set; then :
9047 withval
=$with_portssources; with_portssrcdir
=$withval
9049 with_portssrcdir
="default"
9052 if test "$with_portssrcdir" = "default"; then
9053 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9055 AROS_PORTSSRCDIR
="$with_portssrcdir"
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9058 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9061 $as_echo_n "checking which bootloader to use... " >&6; }
9063 # Check whether --with-bootloader was given.
9064 if test "${with_bootloader+set}" = set; then :
9065 withval
=$with_bootloader; target_bootloader
=$withval
9067 target_bootloader
=$target_bootloader
9070 if test "$target_bootloader" = "none"; then
9071 aros_target_bootloader
=""
9073 aros_target_bootloader
="$target_bootloader"
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9076 $as_echo "$target_bootloader" >&6; }
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9079 $as_echo_n "checking which icon-set to use... " >&6; }
9081 # Check whether --with-iconset was given.
9082 if test "${with_iconset+set}" = set; then :
9083 withval
=$with_iconset; target_iconset
=$withval
9085 target_iconset
="default"
9088 if test "$target_iconset" = "default"; then
9089 aros_target_iconset
="Gorilla"
9090 target_iconset
="default (Gorilla)"
9092 aros_target_iconset
="$target_iconset"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9095 $as_echo "$target_iconset" >&6; }
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9098 $as_echo_n "checking which GUI Theme to use... " >&6; }
9100 # Check whether --with-theme was given.
9101 if test "${with_theme+set}" = set; then :
9102 withval
=$with_theme; target_guitheme
=$withval
9104 target_guitheme
="default"
9107 if test "$target_guitheme" = "default"; then
9108 aros_target_guitheme
="Ice"
9110 aros_target_guitheme
="$target_guitheme"
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9113 $as_echo "$aros_target_guitheme" >&6; }
9115 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9119 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9123 if test "$aros_host_cpu" == "x86_64" ; then
9124 if test "$aros_target_cpu" == "i386" ; then
9129 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9130 if test "$aros_host_arch" != "$aros_target_arch" ; then
9134 if test "$host_cc_elf" = "no" ; then
9139 if test "$cross_compiling" = "no" ; then
9140 kernel_tool_prefix
=""
9141 if test "$host_cc_elf" = "yes" ; then
9146 if test "$kernel_tool_version" != ""; then
9147 kernel_tool_version
="-$kernel_tool_version"
9150 #######################################################################
9151 ## Compute what toolchains to use, and their paths ##
9152 #######################################################################
9154 # This takes, as input:
9155 # crosstools {yes,no}
9156 # kernel_tool_version {"",[version]}
9157 # target_tool_version {"",[version]}
9158 # kernel_tool_prefix {none,[some-arch-os-]}
9160 # target_tool_prefix ${aros_target_cpu}-aros-
9161 # aros_tool_prefix ${aros_target_cpu}-aros-
9164 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9165 # Where the 'kernel' binaries are located
9166 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9167 # Where the 'target' binaries are located
9168 # (not the symlink farm - that is aros_target_*!)
9171 # if crosstools then
9172 # if kernel_tools_prefix = "no-kernel-prefix-"
9173 # aros_kernel_* = crosstools cc paths
9174 # aros_kernel_cc = elf cc wrapper around crosstools cc
9176 # VALIDATE(${kernel_tools_prefix}*)
9177 # aros_kernel_* = ${kernel_tools_prefix}*
9178 # if ${kernel_tools_prefix}cc is an AROS gcc
9179 # aros_kernel_cc = ${kernel_tools_prefix}cc
9181 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9185 # orig_target_* = aros built crosstools
9186 # orig_target_cc = elf cc wrapper around crosstools cc
9188 # VALIDATE(${kernel_tools_prefix}*)
9190 # orig_target_* = aros_kernel_*
9191 # if aros_kernel_cc is an AROS gcc
9192 # orig_target_cc = aros_kernel_cc
9194 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9198 if test "$aros_toolchain" = "gnu" ; then
9199 target_tool_prefix
="${aros_target_cpu}-aros-"
9200 elif test "$aros_toolchain" = "llvm" ; then
9201 target_tool_prefix
="bin/"
9204 if test "$kernel_tool_prefix" != "" ; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9206 $as_echo_n "checking which kernel tools... " >&6; }
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9208 $as_echo "$kernel_tool_prefix" >&6; };
9211 if test "$kernel_tool_prefix" = "none" ; then
9212 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9213 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9216 # Kernel tools required - find them
9217 # Note that 'normally', aros_kernel_* overrides will be
9218 # empty, unless specified in the per-arch sections above.
9219 if test "x$aros_kernel_cpp" = "x"; then
9220 aros_kernel_cpp
=${kernel_tool_prefix}${CPP}
9223 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9224 if test "$cross_compiling" = "yes" ; then
9225 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9226 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9228 $as_echo_n "checking for $ac_word... " >&6; }
9229 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9230 $as_echo_n "(cached) " >&6
9232 case $aros_kernel_cpp in
9234 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9241 test -z "$as_dir" && as_dir
=.
9242 for ac_exec_ext
in '' $ac_executable_extensions; do
9243 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9244 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9255 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9256 if test -n "$aros_kernel_cpp"; then
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9258 $as_echo "$aros_kernel_cpp" >&6; }
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261 $as_echo "no" >&6; }
9266 if test "$GCC" = "yes"; then
9267 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
9268 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9269 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271 $as_echo_n "checking for $ac_word... " >&6; }
9272 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9273 $as_echo_n "(cached) " >&6
9275 case $aros_kernel_cpp in
9277 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9281 for as_dir
in `dirname $aros_gcc_cpp`
9284 test -z "$as_dir" && as_dir
=.
9285 for ac_exec_ext
in '' $ac_executable_extensions; do
9286 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9287 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9298 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9299 if test -n "$aros_kernel_cpp"; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9301 $as_echo "$aros_kernel_cpp" >&6; }
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304 $as_echo "no" >&6; }
9309 if test "$aros_kernel_cpp" = ""; then
9310 # Extract the first word of "cpp", so it can be a program name with args.
9311 set dummy cpp
; ac_word
=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9315 $as_echo_n "(cached) " >&6
9317 case $aros_kernel_cpp in
9319 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9326 test -z "$as_dir" && as_dir
=.
9327 for ac_exec_ext
in '' $ac_executable_extensions; do
9328 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9329 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9340 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9341 if test -n "$aros_kernel_cpp"; then
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9343 $as_echo "$aros_kernel_cpp" >&6; }
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346 $as_echo "no" >&6; }
9353 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9354 set dummy
$aros_kernel_cpp${kernel_tool_version}; ac_word
=$2
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9356 $as_echo_n "checking for $ac_word... " >&6; }
9357 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9358 $as_echo_n "(cached) " >&6
9360 case $aros_kernel_cpp in
9362 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9369 test -z "$as_dir" && as_dir
=.
9370 for ac_exec_ext
in '' $ac_executable_extensions; do
9371 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9372 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9383 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9384 if test -n "$aros_kernel_cpp"; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9386 $as_echo "$aros_kernel_cpp" >&6; }
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389 $as_echo "no" >&6; }
9396 if test "$aros_kernel_cpp" = ""; then
9399 if test "$aros_kernel_cpp" = "no"; then
9402 if test "$req_avail" = "no"; then
9403 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9405 if test "x$aros_kernel_cc" = "x"; then
9406 aros_kernel_cc
=${kernel_tool_prefix}${CC}
9409 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9410 if test "$cross_compiling" = "yes" ; then
9411 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9412 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9414 $as_echo_n "checking for $ac_word... " >&6; }
9415 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9416 $as_echo_n "(cached) " >&6
9418 case $aros_kernel_cc in
9420 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9427 test -z "$as_dir" && as_dir
=.
9428 for ac_exec_ext
in '' $ac_executable_extensions; do
9429 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9430 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9442 if test -n "$aros_kernel_cc"; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9444 $as_echo "$aros_kernel_cc" >&6; }
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 $as_echo "no" >&6; }
9452 if test "$GCC" = "yes"; then
9453 aros_gcc_cc
=`$CC -print-prog-name=cc`
9454 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9455 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457 $as_echo_n "checking for $ac_word... " >&6; }
9458 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9459 $as_echo_n "(cached) " >&6
9461 case $aros_kernel_cc in
9463 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9467 for as_dir
in `dirname $aros_gcc_cc`
9470 test -z "$as_dir" && as_dir
=.
9471 for ac_exec_ext
in '' $ac_executable_extensions; do
9472 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9473 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9485 if test -n "$aros_kernel_cc"; then
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9487 $as_echo "$aros_kernel_cc" >&6; }
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9490 $as_echo "no" >&6; }
9495 if test "$aros_kernel_cc" = ""; then
9496 # Extract the first word of "cc", so it can be a program name with args.
9497 set dummy cc
; ac_word
=$2
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9499 $as_echo_n "checking for $ac_word... " >&6; }
9500 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9501 $as_echo_n "(cached) " >&6
9503 case $aros_kernel_cc in
9505 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9512 test -z "$as_dir" && as_dir
=.
9513 for ac_exec_ext
in '' $ac_executable_extensions; do
9514 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9515 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9526 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9527 if test -n "$aros_kernel_cc"; then
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9529 $as_echo "$aros_kernel_cc" >&6; }
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532 $as_echo "no" >&6; }
9539 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9540 set dummy
$aros_kernel_cc${kernel_tool_version}; ac_word
=$2
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542 $as_echo_n "checking for $ac_word... " >&6; }
9543 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9544 $as_echo_n "(cached) " >&6
9546 case $aros_kernel_cc in
9548 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9555 test -z "$as_dir" && as_dir
=.
9556 for ac_exec_ext
in '' $ac_executable_extensions; do
9557 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9558 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9569 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9570 if test -n "$aros_kernel_cc"; then
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9572 $as_echo "$aros_kernel_cc" >&6; }
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575 $as_echo "no" >&6; }
9582 if test "$aros_kernel_cc" = ""; then
9585 if test "$aros_kernel_cc" = "no"; then
9588 if test "$req_avail" = "no"; then
9589 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9591 if test "x$aros_kernel_cxx" = "x"; then
9592 aros_kernel_cxx
=${kernel_tool_prefix}${CXX}
9595 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9596 if test "$cross_compiling" = "yes" ; then
9597 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9598 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9600 $as_echo_n "checking for $ac_word... " >&6; }
9601 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9602 $as_echo_n "(cached) " >&6
9604 case $aros_kernel_cxx in
9606 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9613 test -z "$as_dir" && as_dir
=.
9614 for ac_exec_ext
in '' $ac_executable_extensions; do
9615 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9616 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9627 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9628 if test -n "$aros_kernel_cxx"; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9630 $as_echo "$aros_kernel_cxx" >&6; }
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9638 if test "$GCC" = "yes"; then
9639 aros_gcc_cxx
=`$CC -print-prog-name=cxx`
9640 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9641 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9643 $as_echo_n "checking for $ac_word... " >&6; }
9644 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9645 $as_echo_n "(cached) " >&6
9647 case $aros_kernel_cxx in
9649 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9653 for as_dir
in `dirname $aros_gcc_cxx`
9656 test -z "$as_dir" && as_dir
=.
9657 for ac_exec_ext
in '' $ac_executable_extensions; do
9658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9659 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9670 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9671 if test -n "$aros_kernel_cxx"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9673 $as_echo "$aros_kernel_cxx" >&6; }
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676 $as_echo "no" >&6; }
9681 if test "$aros_kernel_cxx" = ""; then
9682 # Extract the first word of "cxx", so it can be a program name with args.
9683 set dummy cxx
; ac_word
=$2
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9685 $as_echo_n "checking for $ac_word... " >&6; }
9686 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9687 $as_echo_n "(cached) " >&6
9689 case $aros_kernel_cxx in
9691 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9698 test -z "$as_dir" && as_dir
=.
9699 for ac_exec_ext
in '' $ac_executable_extensions; do
9700 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9701 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9712 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9713 if test -n "$aros_kernel_cxx"; then
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9715 $as_echo "$aros_kernel_cxx" >&6; }
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718 $as_echo "no" >&6; }
9725 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9726 set dummy
$aros_kernel_cxx${kernel_tool_version}; ac_word
=$2
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9728 $as_echo_n "checking for $ac_word... " >&6; }
9729 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9730 $as_echo_n "(cached) " >&6
9732 case $aros_kernel_cxx in
9734 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9741 test -z "$as_dir" && as_dir
=.
9742 for ac_exec_ext
in '' $ac_executable_extensions; do
9743 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9744 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9756 if test -n "$aros_kernel_cxx"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9758 $as_echo "$aros_kernel_cxx" >&6; }
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9767 # If it's set, make sure it's really there
9768 if test "x$aros_kernel_cxx" != "x" ; then
9770 if test "$aros_kernel_cxx" = ""; then
9773 if test "$aros_kernel_cxx" = "no"; then
9776 if test "$req_avail" = "no"; then
9777 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9781 if test "$aros_kernel_ld" = ""; then
9782 if test "$cross_compiling" = "yes" ; then
9783 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9784 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9788 $as_echo_n "(cached) " >&6
9790 case $aros_kernel_ld in
9792 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9799 test -z "$as_dir" && as_dir
=.
9800 for ac_exec_ext
in '' $ac_executable_extensions; do
9801 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9802 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9814 if test -n "$aros_kernel_ld"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9816 $as_echo "$aros_kernel_ld" >&6; }
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819 $as_echo "no" >&6; }
9824 if test "$GCC" = "yes"; then
9825 aros_gcc_ld
=`$CC -print-prog-name=ld`
9826 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9827 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9829 $as_echo_n "checking for $ac_word... " >&6; }
9830 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9831 $as_echo_n "(cached) " >&6
9833 case $aros_kernel_ld in
9835 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9839 for as_dir
in `dirname $aros_gcc_ld`
9842 test -z "$as_dir" && as_dir
=.
9843 for ac_exec_ext
in '' $ac_executable_extensions; do
9844 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9845 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9856 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9857 if test -n "$aros_kernel_ld"; then
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9859 $as_echo "$aros_kernel_ld" >&6; }
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862 $as_echo "no" >&6; }
9867 if test "$aros_kernel_ld" = ""; then
9868 # Extract the first word of "ld", so it can be a program name with args.
9869 set dummy ld
; ac_word
=$2
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871 $as_echo_n "checking for $ac_word... " >&6; }
9872 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9873 $as_echo_n "(cached) " >&6
9875 case $aros_kernel_ld in
9877 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9884 test -z "$as_dir" && as_dir
=.
9885 for ac_exec_ext
in '' $ac_executable_extensions; do
9886 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9887 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9899 if test -n "$aros_kernel_ld"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9901 $as_echo "$aros_kernel_ld" >&6; }
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9911 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9912 set dummy
$aros_kernel_ld; ac_word
=$2
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914 $as_echo_n "checking for $ac_word... " >&6; }
9915 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9916 $as_echo_n "(cached) " >&6
9918 case $aros_kernel_ld in
9920 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9927 test -z "$as_dir" && as_dir
=.
9928 for ac_exec_ext
in '' $ac_executable_extensions; do
9929 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9930 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9941 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9942 if test -n "$aros_kernel_ld"; then
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9944 $as_echo "$aros_kernel_ld" >&6; }
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9954 if test "$aros_kernel_ld" = ""; then
9957 if test "$aros_kernel_ld" = "no"; then
9960 if test "$req_avail" = "no"; then
9961 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9964 if test "$aros_kernel_as" = ""; then
9965 if test "$cross_compiling" = "yes" ; then
9966 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9967 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969 $as_echo_n "checking for $ac_word... " >&6; }
9970 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9971 $as_echo_n "(cached) " >&6
9973 case $aros_kernel_as in
9975 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9982 test -z "$as_dir" && as_dir
=.
9983 for ac_exec_ext
in '' $ac_executable_extensions; do
9984 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9985 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9997 if test -n "$aros_kernel_as"; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9999 $as_echo "$aros_kernel_as" >&6; }
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10002 $as_echo "no" >&6; }
10007 if test "$GCC" = "yes"; then
10008 aros_gcc_as
=`$CC -print-prog-name=as`
10009 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10010 set dummy
`basename $aros_gcc_as`; ac_word
=$2
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012 $as_echo_n "checking for $ac_word... " >&6; }
10013 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10014 $as_echo_n "(cached) " >&6
10016 case $aros_kernel_as in
10018 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10022 for as_dir
in `dirname $aros_gcc_as`
10025 test -z "$as_dir" && as_dir
=.
10026 for ac_exec_ext
in '' $ac_executable_extensions; do
10027 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10028 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10040 if test -n "$aros_kernel_as"; then
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10042 $as_echo "$aros_kernel_as" >&6; }
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045 $as_echo "no" >&6; }
10050 if test "$aros_kernel_as" = ""; then
10051 # Extract the first word of "as", so it can be a program name with args.
10052 set dummy as
; ac_word
=$2
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10054 $as_echo_n "checking for $ac_word... " >&6; }
10055 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10056 $as_echo_n "(cached) " >&6
10058 case $aros_kernel_as in
10060 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10064 for as_dir
in $PATH
10067 test -z "$as_dir" && as_dir
=.
10068 for ac_exec_ext
in '' $ac_executable_extensions; do
10069 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10070 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10081 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10082 if test -n "$aros_kernel_as"; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10084 $as_echo "$aros_kernel_as" >&6; }
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10094 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10095 set dummy
$aros_kernel_as; ac_word
=$2
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 $as_echo_n "checking for $ac_word... " >&6; }
10098 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10099 $as_echo_n "(cached) " >&6
10101 case $aros_kernel_as in
10103 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10107 for as_dir
in $PATH
10110 test -z "$as_dir" && as_dir
=.
10111 for ac_exec_ext
in '' $ac_executable_extensions; do
10112 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10113 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10125 if test -n "$aros_kernel_as"; then
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10127 $as_echo "$aros_kernel_as" >&6; }
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10137 if test "$aros_kernel_as" = ""; then
10140 if test "$aros_kernel_as" = "no"; then
10143 if test "$req_avail" = "no"; then
10144 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
10147 if test "$aros_kernel_ar" = ""; then
10148 if test "$cross_compiling" = "yes" ; then
10149 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10150 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152 $as_echo_n "checking for $ac_word... " >&6; }
10153 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10154 $as_echo_n "(cached) " >&6
10156 case $aros_kernel_ar in
10158 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10162 for as_dir
in $PATH
10165 test -z "$as_dir" && as_dir
=.
10166 for ac_exec_ext
in '' $ac_executable_extensions; do
10167 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10168 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10179 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10180 if test -n "$aros_kernel_ar"; then
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10182 $as_echo "$aros_kernel_ar" >&6; }
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185 $as_echo "no" >&6; }
10190 if test "$GCC" = "yes"; then
10191 aros_gcc_ar
=`$CC -print-prog-name=ar`
10192 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10193 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10195 $as_echo_n "checking for $ac_word... " >&6; }
10196 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10197 $as_echo_n "(cached) " >&6
10199 case $aros_kernel_ar in
10201 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10205 for as_dir
in `dirname $aros_gcc_ar`
10208 test -z "$as_dir" && as_dir
=.
10209 for ac_exec_ext
in '' $ac_executable_extensions; do
10210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10211 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10222 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10223 if test -n "$aros_kernel_ar"; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10225 $as_echo "$aros_kernel_ar" >&6; }
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228 $as_echo "no" >&6; }
10233 if test "$aros_kernel_ar" = ""; then
10234 # Extract the first word of "ar", so it can be a program name with args.
10235 set dummy
ar; ac_word
=$2
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237 $as_echo_n "checking for $ac_word... " >&6; }
10238 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10239 $as_echo_n "(cached) " >&6
10241 case $aros_kernel_ar in
10243 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10247 for as_dir
in $PATH
10250 test -z "$as_dir" && as_dir
=.
10251 for ac_exec_ext
in '' $ac_executable_extensions; do
10252 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10253 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10264 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10265 if test -n "$aros_kernel_ar"; then
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10267 $as_echo "$aros_kernel_ar" >&6; }
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10277 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10278 set dummy
$aros_kernel_ar; ac_word
=$2
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280 $as_echo_n "checking for $ac_word... " >&6; }
10281 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10282 $as_echo_n "(cached) " >&6
10284 case $aros_kernel_ar in
10286 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10290 for as_dir
in $PATH
10293 test -z "$as_dir" && as_dir
=.
10294 for ac_exec_ext
in '' $ac_executable_extensions; do
10295 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10296 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10308 if test -n "$aros_kernel_ar"; then
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10310 $as_echo "$aros_kernel_ar" >&6; }
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10320 if test "$aros_kernel_ar" = ""; then
10323 if test "$aros_kernel_ar" = "no"; then
10326 if test "$req_avail" = "no"; then
10327 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10330 if test "$aros_kernel_ranlib" = ""; then
10331 if test "$cross_compiling" = "yes" ; then
10332 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10333 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335 $as_echo_n "checking for $ac_word... " >&6; }
10336 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10337 $as_echo_n "(cached) " >&6
10339 case $aros_kernel_ranlib in
10341 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10345 for as_dir
in $PATH
10348 test -z "$as_dir" && as_dir
=.
10349 for ac_exec_ext
in '' $ac_executable_extensions; do
10350 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10351 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10362 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10363 if test -n "$aros_kernel_ranlib"; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10365 $as_echo "$aros_kernel_ranlib" >&6; }
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368 $as_echo "no" >&6; }
10373 if test "$GCC" = "yes"; then
10374 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
10375 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10376 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378 $as_echo_n "checking for $ac_word... " >&6; }
10379 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10380 $as_echo_n "(cached) " >&6
10382 case $aros_kernel_ranlib in
10384 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10388 for as_dir
in `dirname $aros_gcc_ranlib`
10391 test -z "$as_dir" && as_dir
=.
10392 for ac_exec_ext
in '' $ac_executable_extensions; do
10393 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10394 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10406 if test -n "$aros_kernel_ranlib"; then
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10408 $as_echo "$aros_kernel_ranlib" >&6; }
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10416 if test "$aros_kernel_ranlib" = ""; then
10417 # Extract the first word of "ranlib", so it can be a program name with args.
10418 set dummy ranlib
; ac_word
=$2
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10420 $as_echo_n "checking for $ac_word... " >&6; }
10421 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10422 $as_echo_n "(cached) " >&6
10424 case $aros_kernel_ranlib in
10426 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10430 for as_dir
in $PATH
10433 test -z "$as_dir" && as_dir
=.
10434 for ac_exec_ext
in '' $ac_executable_extensions; do
10435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10436 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10447 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10448 if test -n "$aros_kernel_ranlib"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10450 $as_echo "$aros_kernel_ranlib" >&6; }
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 $as_echo "no" >&6; }
10460 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10461 set dummy
$aros_kernel_ranlib; ac_word
=$2
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463 $as_echo_n "checking for $ac_word... " >&6; }
10464 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10465 $as_echo_n "(cached) " >&6
10467 case $aros_kernel_ranlib in
10469 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10473 for as_dir
in $PATH
10476 test -z "$as_dir" && as_dir
=.
10477 for ac_exec_ext
in '' $ac_executable_extensions; do
10478 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10479 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10491 if test -n "$aros_kernel_ranlib"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10493 $as_echo "$aros_kernel_ranlib" >&6; }
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10503 if test "$aros_kernel_ranlib" = ""; then
10506 if test "$aros_kernel_ranlib" = "no"; then
10509 if test "$req_avail" = "no"; then
10510 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10513 if test "$aros_kernel_nm" = ""; then
10514 if test "$cross_compiling" = "yes" ; then
10515 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10516 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518 $as_echo_n "checking for $ac_word... " >&6; }
10519 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10520 $as_echo_n "(cached) " >&6
10522 case $aros_kernel_nm in
10524 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10528 for as_dir
in $PATH
10531 test -z "$as_dir" && as_dir
=.
10532 for ac_exec_ext
in '' $ac_executable_extensions; do
10533 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10534 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10546 if test -n "$aros_kernel_nm"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10548 $as_echo "$aros_kernel_nm" >&6; }
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10556 if test "$GCC" = "yes"; then
10557 aros_gcc_nm
=`$CC -print-prog-name=nm`
10558 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10559 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561 $as_echo_n "checking for $ac_word... " >&6; }
10562 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10563 $as_echo_n "(cached) " >&6
10565 case $aros_kernel_nm in
10567 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10571 for as_dir
in `dirname $aros_gcc_nm`
10574 test -z "$as_dir" && as_dir
=.
10575 for ac_exec_ext
in '' $ac_executable_extensions; do
10576 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10577 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10588 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10589 if test -n "$aros_kernel_nm"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10591 $as_echo "$aros_kernel_nm" >&6; }
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10599 if test "$aros_kernel_nm" = ""; then
10600 # Extract the first word of "nm", so it can be a program name with args.
10601 set dummy nm
; ac_word
=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10605 $as_echo_n "(cached) " >&6
10607 case $aros_kernel_nm in
10609 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10613 for as_dir
in $PATH
10616 test -z "$as_dir" && as_dir
=.
10617 for ac_exec_ext
in '' $ac_executable_extensions; do
10618 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10619 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10630 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10631 if test -n "$aros_kernel_nm"; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10633 $as_echo "$aros_kernel_nm" >&6; }
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; }
10643 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10644 set dummy
$aros_kernel_nm; ac_word
=$2
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10646 $as_echo_n "checking for $ac_word... " >&6; }
10647 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10648 $as_echo_n "(cached) " >&6
10650 case $aros_kernel_nm in
10652 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10656 for as_dir
in $PATH
10659 test -z "$as_dir" && as_dir
=.
10660 for ac_exec_ext
in '' $ac_executable_extensions; do
10661 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10662 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10673 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10674 if test -n "$aros_kernel_nm"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10676 $as_echo "$aros_kernel_nm" >&6; }
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10686 if test "$aros_kernel_nm" = ""; then
10689 if test "$aros_kernel_nm" = "no"; then
10692 if test "$req_avail" = "no"; then
10693 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10696 if test "$aros_kernel_strip" = ""; then
10697 if test "$cross_compiling" = "yes" ; then
10698 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10699 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701 $as_echo_n "checking for $ac_word... " >&6; }
10702 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10703 $as_echo_n "(cached) " >&6
10705 case $aros_kernel_strip in
10707 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10711 for as_dir
in $PATH
10714 test -z "$as_dir" && as_dir
=.
10715 for ac_exec_ext
in '' $ac_executable_extensions; do
10716 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10717 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10729 if test -n "$aros_kernel_strip"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10731 $as_echo "$aros_kernel_strip" >&6; }
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10739 if test "$GCC" = "yes"; then
10740 aros_gcc_strip
=`$CC -print-prog-name=strip`
10741 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10742 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10746 $as_echo_n "(cached) " >&6
10748 case $aros_kernel_strip in
10750 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10754 for as_dir
in `dirname $aros_gcc_strip`
10757 test -z "$as_dir" && as_dir
=.
10758 for ac_exec_ext
in '' $ac_executable_extensions; do
10759 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10760 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10771 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10772 if test -n "$aros_kernel_strip"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10774 $as_echo "$aros_kernel_strip" >&6; }
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10782 if test "$aros_kernel_strip" = ""; then
10783 # Extract the first word of "strip", so it can be a program name with args.
10784 set dummy strip
; ac_word
=$2
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786 $as_echo_n "checking for $ac_word... " >&6; }
10787 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10788 $as_echo_n "(cached) " >&6
10790 case $aros_kernel_strip in
10792 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10796 for as_dir
in $PATH
10799 test -z "$as_dir" && as_dir
=.
10800 for ac_exec_ext
in '' $ac_executable_extensions; do
10801 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10802 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10814 if test -n "$aros_kernel_strip"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10816 $as_echo "$aros_kernel_strip" >&6; }
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10826 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10827 set dummy
$aros_kernel_strip; ac_word
=$2
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829 $as_echo_n "checking for $ac_word... " >&6; }
10830 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10831 $as_echo_n "(cached) " >&6
10833 case $aros_kernel_strip in
10835 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10839 for as_dir
in $PATH
10842 test -z "$as_dir" && as_dir
=.
10843 for ac_exec_ext
in '' $ac_executable_extensions; do
10844 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10845 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10857 if test -n "$aros_kernel_strip"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10859 $as_echo "$aros_kernel_strip" >&6; }
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10869 if test "$aros_kernel_strip" = ""; then
10872 if test "$aros_kernel_strip" = "no"; then
10875 if test "$req_avail" = "no"; then
10876 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10879 # Objcopy and objdump are not required for the kernel
10880 # toolchain on many architectures.
10881 # So we'll look for them, but not make them strictly required.
10883 if test "$aros_kernel_objcopy" = ""; then
10884 if test "$cross_compiling" = "yes" ; then
10885 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10886 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10888 $as_echo_n "checking for $ac_word... " >&6; }
10889 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10890 $as_echo_n "(cached) " >&6
10892 case $aros_kernel_objcopy in
10894 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10898 for as_dir
in $PATH
10901 test -z "$as_dir" && as_dir
=.
10902 for ac_exec_ext
in '' $ac_executable_extensions; do
10903 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10904 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10915 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10916 if test -n "$aros_kernel_objcopy"; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10918 $as_echo "$aros_kernel_objcopy" >&6; }
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 $as_echo "no" >&6; }
10926 if test "$GCC" = "yes"; then
10927 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
10928 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10929 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10931 $as_echo_n "checking for $ac_word... " >&6; }
10932 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10933 $as_echo_n "(cached) " >&6
10935 case $aros_kernel_objcopy in
10937 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10941 for as_dir
in `dirname $aros_gcc_objcopy`
10944 test -z "$as_dir" && as_dir
=.
10945 for ac_exec_ext
in '' $ac_executable_extensions; do
10946 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10947 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10958 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10959 if test -n "$aros_kernel_objcopy"; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10961 $as_echo "$aros_kernel_objcopy" >&6; }
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10969 if test "$aros_kernel_objcopy" = ""; then
10970 # Extract the first word of "objcopy", so it can be a program name with args.
10971 set dummy objcopy
; ac_word
=$2
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973 $as_echo_n "checking for $ac_word... " >&6; }
10974 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10975 $as_echo_n "(cached) " >&6
10977 case $aros_kernel_objcopy in
10979 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10983 for as_dir
in $PATH
10986 test -z "$as_dir" && as_dir
=.
10987 for ac_exec_ext
in '' $ac_executable_extensions; do
10988 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10989 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11000 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11001 if test -n "$aros_kernel_objcopy"; then
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11003 $as_echo "$aros_kernel_objcopy" >&6; }
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11013 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11014 set dummy
$aros_kernel_objcopy; ac_word
=$2
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11016 $as_echo_n "checking for $ac_word... " >&6; }
11017 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11018 $as_echo_n "(cached) " >&6
11020 case $aros_kernel_objcopy in
11022 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11026 for as_dir
in $PATH
11029 test -z "$as_dir" && as_dir
=.
11030 for ac_exec_ext
in '' $ac_executable_extensions; do
11031 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11032 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11044 if test -n "$aros_kernel_objcopy"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11046 $as_echo "$aros_kernel_objcopy" >&6; }
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11056 if test "$aros_kernel_objdump" = ""; then
11057 if test "$cross_compiling" = "yes" ; then
11058 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11059 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061 $as_echo_n "checking for $ac_word... " >&6; }
11062 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11063 $as_echo_n "(cached) " >&6
11065 case $aros_kernel_objdump in
11067 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11071 for as_dir
in $PATH
11074 test -z "$as_dir" && as_dir
=.
11075 for ac_exec_ext
in '' $ac_executable_extensions; do
11076 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11077 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11089 if test -n "$aros_kernel_objdump"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11091 $as_echo "$aros_kernel_objdump" >&6; }
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11099 if test "$GCC" = "yes"; then
11100 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
11101 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11102 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11106 $as_echo_n "(cached) " >&6
11108 case $aros_kernel_objdump in
11110 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11114 for as_dir
in `dirname $aros_gcc_objdump`
11117 test -z "$as_dir" && as_dir
=.
11118 for ac_exec_ext
in '' $ac_executable_extensions; do
11119 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11120 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11131 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11132 if test -n "$aros_kernel_objdump"; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11134 $as_echo "$aros_kernel_objdump" >&6; }
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11142 if test "$aros_kernel_objdump" = ""; then
11143 # Extract the first word of "objdump", so it can be a program name with args.
11144 set dummy objdump
; ac_word
=$2
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11146 $as_echo_n "checking for $ac_word... " >&6; }
11147 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11148 $as_echo_n "(cached) " >&6
11150 case $aros_kernel_objdump in
11152 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11156 for as_dir
in $PATH
11159 test -z "$as_dir" && as_dir
=.
11160 for ac_exec_ext
in '' $ac_executable_extensions; do
11161 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11162 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11174 if test -n "$aros_kernel_objdump"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11176 $as_echo "$aros_kernel_objdump" >&6; }
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11186 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11187 set dummy
$aros_kernel_objdump; ac_word
=$2
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189 $as_echo_n "checking for $ac_word... " >&6; }
11190 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11191 $as_echo_n "(cached) " >&6
11193 case $aros_kernel_objdump in
11195 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11199 for as_dir
in $PATH
11202 test -z "$as_dir" && as_dir
=.
11203 for ac_exec_ext
in '' $ac_executable_extensions; do
11204 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11205 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11217 if test -n "$aros_kernel_objdump"; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11219 $as_echo "$aros_kernel_objdump" >&6; }
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; }
11228 if test "x${crosstools}" != "xyes" ; then
11230 if test "$aros_kernel_objcopy" = ""; then
11233 if test "$aros_kernel_objcopy" = "no"; then
11236 if test "$req_avail" = "no"; then
11237 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11240 if test "$aros_kernel_objdump" = ""; then
11243 if test "$aros_kernel_objdump" = "no"; then
11246 if test "$req_avail" = "no"; then
11247 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11253 $as_echo_n "checking which target tools to use... " >&6; }
11254 if test "$aros_target_toolchain" = "yes"; then
11255 if test "$aros_toolchain" = "llvm" ; then
11258 msg_result
=$target_tool_prefix
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11261 $as_echo "$msg_result" >&6; }
11262 # We are building AROS crosstools
11263 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11264 orig_target_cc
="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11265 orig_target_cxx
="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11266 orig_target_cpp
="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11267 orig_target_ld
="${tmp_tool_prefix}${toolchain_ld}"
11268 orig_target_as
="${tmp_tool_prefix}${toolchain_as}"
11269 orig_target_ar
="${tmp_tool_prefix}${toolchain_ar}"
11270 orig_target_ranlib
="${tmp_tool_prefix}${toolchain_ranlib}"
11271 orig_target_nm
="${tmp_tool_prefix}${toolchain_nm}"
11272 orig_target_strip
="${tmp_tool_prefix}${toolchain_strip}"
11273 orig_target_objcopy
="${tmp_tool_prefix}${toolchain_objcopy}"
11274 orig_target_objdump
="${tmp_tool_prefix}${toolchain_objdump}"
11276 # Determine whether AROS or ELF tools should be used
11277 if test "$aros_tool_prefix" = "none"; then
11278 aros_tool_prefix
="${elf_tool_prefix}"
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11282 $as_echo "$aros_tool_prefix" >&6; }
11283 # We are *not* building AROS crosstools - use the AROS or ELF tools
11285 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11286 if test "$cross_compiling" = "yes" ; then
11287 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11288 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290 $as_echo_n "checking for $ac_word... " >&6; }
11291 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11292 $as_echo_n "(cached) " >&6
11294 case $orig_target_cpp in
11296 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11300 for as_dir
in $PATH
11303 test -z "$as_dir" && as_dir
=.
11304 for ac_exec_ext
in '' $ac_executable_extensions; do
11305 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11306 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11317 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11318 if test -n "$orig_target_cpp"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11320 $as_echo "$orig_target_cpp" >&6; }
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11328 if test "$GCC" = "yes"; then
11329 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
11330 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11331 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11333 $as_echo_n "checking for $ac_word... " >&6; }
11334 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11335 $as_echo_n "(cached) " >&6
11337 case $orig_target_cpp in
11339 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11343 for as_dir
in `dirname $aros_gcc_cpp`
11346 test -z "$as_dir" && as_dir
=.
11347 for ac_exec_ext
in '' $ac_executable_extensions; do
11348 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11349 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11361 if test -n "$orig_target_cpp"; then
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11363 $as_echo "$orig_target_cpp" >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11371 if test "$orig_target_cpp" = ""; then
11372 # Extract the first word of "cpp", so it can be a program name with args.
11373 set dummy cpp
; ac_word
=$2
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 $as_echo_n "checking for $ac_word... " >&6; }
11376 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11377 $as_echo_n "(cached) " >&6
11379 case $orig_target_cpp in
11381 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11385 for as_dir
in $PATH
11388 test -z "$as_dir" && as_dir
=.
11389 for ac_exec_ext
in '' $ac_executable_extensions; do
11390 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11391 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11403 if test -n "$orig_target_cpp"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11405 $as_echo "$orig_target_cpp" >&6; }
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11415 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11416 set dummy
${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word
=$2
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418 $as_echo_n "checking for $ac_word... " >&6; }
11419 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11420 $as_echo_n "(cached) " >&6
11422 case $orig_target_cpp in
11424 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11428 for as_dir
in $PATH
11431 test -z "$as_dir" && as_dir
=.
11432 for ac_exec_ext
in '' $ac_executable_extensions; do
11433 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11434 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11445 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11446 if test -n "$orig_target_cpp"; then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11448 $as_echo "$orig_target_cpp" >&6; }
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 $as_echo "no" >&6; }
11458 if test "$orig_target_cpp" = ""; then
11461 if test "$orig_target_cpp" = "no"; then
11464 if test "$req_avail" = "no"; then
11465 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11468 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11469 if test "$cross_compiling" = "yes" ; then
11470 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11471 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473 $as_echo_n "checking for $ac_word... " >&6; }
11474 if ${ac_cv_path_orig_target_cc+:} false
; then :
11475 $as_echo_n "(cached) " >&6
11477 case $orig_target_cc in
11479 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11483 for as_dir
in $PATH
11486 test -z "$as_dir" && as_dir
=.
11487 for ac_exec_ext
in '' $ac_executable_extensions; do
11488 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11489 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11500 orig_target_cc
=$ac_cv_path_orig_target_cc
11501 if test -n "$orig_target_cc"; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11503 $as_echo "$orig_target_cc" >&6; }
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11511 if test "$GCC" = "yes"; then
11512 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11513 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11514 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if ${ac_cv_path_orig_target_cc+:} false
; then :
11518 $as_echo_n "(cached) " >&6
11520 case $orig_target_cc in
11522 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11526 for as_dir
in `dirname $aros_gcc_gcc`
11529 test -z "$as_dir" && as_dir
=.
11530 for ac_exec_ext
in '' $ac_executable_extensions; do
11531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11532 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11543 orig_target_cc
=$ac_cv_path_orig_target_cc
11544 if test -n "$orig_target_cc"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11546 $as_echo "$orig_target_cc" >&6; }
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11554 if test "$orig_target_cc" = ""; then
11555 # Extract the first word of "gcc", so it can be a program name with args.
11556 set dummy gcc
; ac_word
=$2
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558 $as_echo_n "checking for $ac_word... " >&6; }
11559 if ${ac_cv_path_orig_target_cc+:} false
; then :
11560 $as_echo_n "(cached) " >&6
11562 case $orig_target_cc in
11564 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11568 for as_dir
in $PATH
11571 test -z "$as_dir" && as_dir
=.
11572 for ac_exec_ext
in '' $ac_executable_extensions; do
11573 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11574 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11585 orig_target_cc
=$ac_cv_path_orig_target_cc
11586 if test -n "$orig_target_cc"; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11588 $as_echo "$orig_target_cc" >&6; }
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 $as_echo "no" >&6; }
11598 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11599 set dummy
${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word
=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 $as_echo_n "checking for $ac_word... " >&6; }
11602 if ${ac_cv_path_orig_target_cc+:} false
; then :
11603 $as_echo_n "(cached) " >&6
11605 case $orig_target_cc in
11607 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11611 for as_dir
in $PATH
11614 test -z "$as_dir" && as_dir
=.
11615 for ac_exec_ext
in '' $ac_executable_extensions; do
11616 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11617 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 orig_target_cc
=$ac_cv_path_orig_target_cc
11629 if test -n "$orig_target_cc"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11631 $as_echo "$orig_target_cc" >&6; }
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11641 if test "$orig_target_cc" = ""; then
11644 if test "$orig_target_cc" = "no"; then
11647 if test "$req_avail" = "no"; then
11648 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11651 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11652 if test "$cross_compiling" = "yes" ; then
11653 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11654 set dummy
${target_tool_prefix}g
++; ac_word
=$2
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656 $as_echo_n "checking for $ac_word... " >&6; }
11657 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11658 $as_echo_n "(cached) " >&6
11660 case $orig_target_cxx in
11662 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11666 for as_dir
in $PATH
11669 test -z "$as_dir" && as_dir
=.
11670 for ac_exec_ext
in '' $ac_executable_extensions; do
11671 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11672 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11684 if test -n "$orig_target_cxx"; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11686 $as_echo "$orig_target_cxx" >&6; }
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689 $as_echo "no" >&6; }
11694 if test "$GCC" = "yes"; then
11695 aros_gcc_g
++=`$CC -print-prog-name=g++`
11696 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11697 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11701 $as_echo_n "(cached) " >&6
11703 case $orig_target_cxx in
11705 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11709 for as_dir
in `dirname $aros_gcc_g++`
11712 test -z "$as_dir" && as_dir
=.
11713 for ac_exec_ext
in '' $ac_executable_extensions; do
11714 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11715 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11726 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11727 if test -n "$orig_target_cxx"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11729 $as_echo "$orig_target_cxx" >&6; }
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11737 if test "$orig_target_cxx" = ""; then
11738 # Extract the first word of "g++", so it can be a program name with args.
11739 set dummy g
++; ac_word
=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11743 $as_echo_n "(cached) " >&6
11745 case $orig_target_cxx in
11747 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11751 for as_dir
in $PATH
11754 test -z "$as_dir" && as_dir
=.
11755 for ac_exec_ext
in '' $ac_executable_extensions; do
11756 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11757 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11768 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11769 if test -n "$orig_target_cxx"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11771 $as_echo "$orig_target_cxx" >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11781 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
11782 set dummy
${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word
=$2
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784 $as_echo_n "checking for $ac_word... " >&6; }
11785 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11786 $as_echo_n "(cached) " >&6
11788 case $orig_target_cxx in
11790 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11794 for as_dir
in $PATH
11797 test -z "$as_dir" && as_dir
=.
11798 for ac_exec_ext
in '' $ac_executable_extensions; do
11799 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11800 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11811 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11812 if test -n "$orig_target_cxx"; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11814 $as_echo "$orig_target_cxx" >&6; }
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11824 if test "$orig_target_cxx" = ""; then
11827 if test "$orig_target_cxx" = "no"; then
11830 if test "$req_avail" = "no"; then
11831 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11834 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
11835 if test "$cross_compiling" = "yes" ; then
11836 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11837 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839 $as_echo_n "checking for $ac_word... " >&6; }
11840 if ${ac_cv_path_orig_target_ld+:} false
; then :
11841 $as_echo_n "(cached) " >&6
11843 case $orig_target_ld in
11845 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11849 for as_dir
in $PATH
11852 test -z "$as_dir" && as_dir
=.
11853 for ac_exec_ext
in '' $ac_executable_extensions; do
11854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11855 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 orig_target_ld
=$ac_cv_path_orig_target_ld
11867 if test -n "$orig_target_ld"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11869 $as_echo "$orig_target_ld" >&6; }
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11877 if test "$GCC" = "yes"; then
11878 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11879 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11880 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if ${ac_cv_path_orig_target_ld+:} false
; then :
11884 $as_echo_n "(cached) " >&6
11886 case $orig_target_ld in
11888 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11892 for as_dir
in `dirname $aros_gcc_gcc`
11895 test -z "$as_dir" && as_dir
=.
11896 for ac_exec_ext
in '' $ac_executable_extensions; do
11897 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11898 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 orig_target_ld
=$ac_cv_path_orig_target_ld
11910 if test -n "$orig_target_ld"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11912 $as_echo "$orig_target_ld" >&6; }
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11920 if test "$orig_target_ld" = ""; then
11921 # Extract the first word of "gcc", so it can be a program name with args.
11922 set dummy gcc
; ac_word
=$2
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11924 $as_echo_n "checking for $ac_word... " >&6; }
11925 if ${ac_cv_path_orig_target_ld+:} false
; then :
11926 $as_echo_n "(cached) " >&6
11928 case $orig_target_ld in
11930 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11934 for as_dir
in $PATH
11937 test -z "$as_dir" && as_dir
=.
11938 for ac_exec_ext
in '' $ac_executable_extensions; do
11939 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11940 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11951 orig_target_ld
=$ac_cv_path_orig_target_ld
11952 if test -n "$orig_target_ld"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11954 $as_echo "$orig_target_ld" >&6; }
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11964 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
11965 set dummy
${aros_tool_prefix}${toolchain_ld}; ac_word
=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 $as_echo_n "checking for $ac_word... " >&6; }
11968 if ${ac_cv_path_orig_target_ld+:} false
; then :
11969 $as_echo_n "(cached) " >&6
11971 case $orig_target_ld in
11973 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11977 for as_dir
in $PATH
11980 test -z "$as_dir" && as_dir
=.
11981 for ac_exec_ext
in '' $ac_executable_extensions; do
11982 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11983 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11994 orig_target_ld
=$ac_cv_path_orig_target_ld
11995 if test -n "$orig_target_ld"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11997 $as_echo "$orig_target_ld" >&6; }
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12007 if test "$orig_target_ld" = ""; then
12010 if test "$orig_target_ld" = "no"; then
12013 if test "$req_avail" = "no"; then
12014 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12017 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12018 if test "$cross_compiling" = "yes" ; then
12019 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12020 set dummy
${target_tool_prefix}as
; ac_word
=$2
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if ${ac_cv_path_orig_target_as+:} false
; then :
12024 $as_echo_n "(cached) " >&6
12026 case $orig_target_as in
12028 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12032 for as_dir
in $PATH
12035 test -z "$as_dir" && as_dir
=.
12036 for ac_exec_ext
in '' $ac_executable_extensions; do
12037 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12038 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12049 orig_target_as
=$ac_cv_path_orig_target_as
12050 if test -n "$orig_target_as"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12052 $as_echo "$orig_target_as" >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12060 if test "$GCC" = "yes"; then
12061 aros_gcc_as
=`$CC -print-prog-name=as`
12062 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12063 set dummy
`basename $aros_gcc_as`; ac_word
=$2
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065 $as_echo_n "checking for $ac_word... " >&6; }
12066 if ${ac_cv_path_orig_target_as+:} false
; then :
12067 $as_echo_n "(cached) " >&6
12069 case $orig_target_as in
12071 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12075 for as_dir
in `dirname $aros_gcc_as`
12078 test -z "$as_dir" && as_dir
=.
12079 for ac_exec_ext
in '' $ac_executable_extensions; do
12080 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12081 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12092 orig_target_as
=$ac_cv_path_orig_target_as
12093 if test -n "$orig_target_as"; then
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12095 $as_echo "$orig_target_as" >&6; }
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098 $as_echo "no" >&6; }
12103 if test "$orig_target_as" = ""; then
12104 # Extract the first word of "as", so it can be a program name with args.
12105 set dummy as
; ac_word
=$2
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if ${ac_cv_path_orig_target_as+:} false
; then :
12109 $as_echo_n "(cached) " >&6
12111 case $orig_target_as in
12113 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12117 for as_dir
in $PATH
12120 test -z "$as_dir" && as_dir
=.
12121 for ac_exec_ext
in '' $ac_executable_extensions; do
12122 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12123 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12134 orig_target_as
=$ac_cv_path_orig_target_as
12135 if test -n "$orig_target_as"; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12137 $as_echo "$orig_target_as" >&6; }
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 $as_echo "no" >&6; }
12147 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12148 set dummy aros_tool_prefix
}${toolchain_as}; ac_word
=$2
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12150 $as_echo_n "checking for $ac_word... " >&6; }
12151 if ${ac_cv_path_orig_target_as+:} false
; then :
12152 $as_echo_n "(cached) " >&6
12154 case $orig_target_as in
12156 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12160 for as_dir
in $PATH
12163 test -z "$as_dir" && as_dir
=.
12164 for ac_exec_ext
in '' $ac_executable_extensions; do
12165 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12166 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12177 orig_target_as
=$ac_cv_path_orig_target_as
12178 if test -n "$orig_target_as"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12180 $as_echo "$orig_target_as" >&6; }
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12190 if test "$orig_target_as" = ""; then
12193 if test "$orig_target_as" = "no"; then
12196 if test "$req_avail" = "no"; then
12197 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
12200 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12201 if test "$cross_compiling" = "yes" ; then
12202 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12203 set dummy
${target_tool_prefix}ar; ac_word
=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if ${ac_cv_path_orig_target_ar+:} false
; then :
12207 $as_echo_n "(cached) " >&6
12209 case $orig_target_ar in
12211 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12215 for as_dir
in $PATH
12218 test -z "$as_dir" && as_dir
=.
12219 for ac_exec_ext
in '' $ac_executable_extensions; do
12220 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12221 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12232 orig_target_ar
=$ac_cv_path_orig_target_ar
12233 if test -n "$orig_target_ar"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12235 $as_echo "$orig_target_ar" >&6; }
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12243 if test "$GCC" = "yes"; then
12244 aros_gcc_ar
=`$CC -print-prog-name=ar`
12245 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12246 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if ${ac_cv_path_orig_target_ar+:} false
; then :
12250 $as_echo_n "(cached) " >&6
12252 case $orig_target_ar in
12254 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12258 for as_dir
in `dirname $aros_gcc_ar`
12261 test -z "$as_dir" && as_dir
=.
12262 for ac_exec_ext
in '' $ac_executable_extensions; do
12263 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12264 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12275 orig_target_ar
=$ac_cv_path_orig_target_ar
12276 if test -n "$orig_target_ar"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12278 $as_echo "$orig_target_ar" >&6; }
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12286 if test "$orig_target_ar" = ""; then
12287 # Extract the first word of "ar", so it can be a program name with args.
12288 set dummy
ar; ac_word
=$2
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12290 $as_echo_n "checking for $ac_word... " >&6; }
12291 if ${ac_cv_path_orig_target_ar+:} false
; then :
12292 $as_echo_n "(cached) " >&6
12294 case $orig_target_ar in
12296 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12300 for as_dir
in $PATH
12303 test -z "$as_dir" && as_dir
=.
12304 for ac_exec_ext
in '' $ac_executable_extensions; do
12305 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12306 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12317 orig_target_ar
=$ac_cv_path_orig_target_ar
12318 if test -n "$orig_target_ar"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12320 $as_echo "$orig_target_ar" >&6; }
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12330 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12331 set dummy
${aros_tool_prefix}${toolchain_ar}; ac_word
=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 $as_echo_n "checking for $ac_word... " >&6; }
12334 if ${ac_cv_path_orig_target_ar+:} false
; then :
12335 $as_echo_n "(cached) " >&6
12337 case $orig_target_ar in
12339 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12343 for as_dir
in $PATH
12346 test -z "$as_dir" && as_dir
=.
12347 for ac_exec_ext
in '' $ac_executable_extensions; do
12348 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12360 orig_target_ar
=$ac_cv_path_orig_target_ar
12361 if test -n "$orig_target_ar"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12363 $as_echo "$orig_target_ar" >&6; }
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12373 if test "$orig_target_ar" = ""; then
12376 if test "$orig_target_ar" = "no"; then
12379 if test "$req_avail" = "no"; then
12380 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12383 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12384 if test "$cross_compiling" = "yes" ; then
12385 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12386 set dummy
${target_tool_prefix}ar; ac_word
=$2
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12388 $as_echo_n "checking for $ac_word... " >&6; }
12389 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12390 $as_echo_n "(cached) " >&6
12392 case $orig_target_ranlib in
12394 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12398 for as_dir
in $PATH
12401 test -z "$as_dir" && as_dir
=.
12402 for ac_exec_ext
in '' $ac_executable_extensions; do
12403 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12404 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12415 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12416 if test -n "$orig_target_ranlib"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12418 $as_echo "$orig_target_ranlib" >&6; }
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12426 if test "$GCC" = "yes"; then
12427 aros_gcc_ar
=`$CC -print-prog-name=ar`
12428 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12429 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431 $as_echo_n "checking for $ac_word... " >&6; }
12432 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12433 $as_echo_n "(cached) " >&6
12435 case $orig_target_ranlib in
12437 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12441 for as_dir
in `dirname $aros_gcc_ar`
12444 test -z "$as_dir" && as_dir
=.
12445 for ac_exec_ext
in '' $ac_executable_extensions; do
12446 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12447 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12459 if test -n "$orig_target_ranlib"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12461 $as_echo "$orig_target_ranlib" >&6; }
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12469 if test "$orig_target_ranlib" = ""; then
12470 # Extract the first word of "ar", so it can be a program name with args.
12471 set dummy
ar; ac_word
=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12475 $as_echo_n "(cached) " >&6
12477 case $orig_target_ranlib in
12479 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12483 for as_dir
in $PATH
12486 test -z "$as_dir" && as_dir
=.
12487 for ac_exec_ext
in '' $ac_executable_extensions; do
12488 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12489 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12500 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12501 if test -n "$orig_target_ranlib"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12503 $as_echo "$orig_target_ranlib" >&6; }
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12513 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12514 set dummy
${aros_tool_prefix}${toolchain_ranlib}; ac_word
=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12518 $as_echo_n "(cached) " >&6
12520 case $orig_target_ranlib in
12522 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12526 for as_dir
in $PATH
12529 test -z "$as_dir" && as_dir
=.
12530 for ac_exec_ext
in '' $ac_executable_extensions; do
12531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12532 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12543 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12544 if test -n "$orig_target_ranlib"; then
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12546 $as_echo "$orig_target_ranlib" >&6; }
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12556 if test "$orig_target_ranlib" = ""; then
12559 if test "$orig_target_ranlib" = "no"; then
12562 if test "$req_avail" = "no"; then
12563 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12566 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12567 if test "$cross_compiling" = "yes" ; then
12568 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12569 set dummy
${target_tool_prefix}nm
; ac_word
=$2
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12571 $as_echo_n "checking for $ac_word... " >&6; }
12572 if ${ac_cv_path_orig_target_nm+:} false
; then :
12573 $as_echo_n "(cached) " >&6
12575 case $orig_target_nm in
12577 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12581 for as_dir
in $PATH
12584 test -z "$as_dir" && as_dir
=.
12585 for ac_exec_ext
in '' $ac_executable_extensions; do
12586 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12587 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 orig_target_nm
=$ac_cv_path_orig_target_nm
12599 if test -n "$orig_target_nm"; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12601 $as_echo "$orig_target_nm" >&6; }
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12609 if test "$GCC" = "yes"; then
12610 aros_gcc_nm
=`$CC -print-prog-name=nm`
12611 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12612 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12614 $as_echo_n "checking for $ac_word... " >&6; }
12615 if ${ac_cv_path_orig_target_nm+:} false
; then :
12616 $as_echo_n "(cached) " >&6
12618 case $orig_target_nm in
12620 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12624 for as_dir
in `dirname $aros_gcc_nm`
12627 test -z "$as_dir" && as_dir
=.
12628 for ac_exec_ext
in '' $ac_executable_extensions; do
12629 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12630 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12641 orig_target_nm
=$ac_cv_path_orig_target_nm
12642 if test -n "$orig_target_nm"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12644 $as_echo "$orig_target_nm" >&6; }
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12652 if test "$orig_target_nm" = ""; then
12653 # Extract the first word of "nm", so it can be a program name with args.
12654 set dummy nm
; ac_word
=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if ${ac_cv_path_orig_target_nm+:} false
; then :
12658 $as_echo_n "(cached) " >&6
12660 case $orig_target_nm in
12662 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12666 for as_dir
in $PATH
12669 test -z "$as_dir" && as_dir
=.
12670 for ac_exec_ext
in '' $ac_executable_extensions; do
12671 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12672 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12683 orig_target_nm
=$ac_cv_path_orig_target_nm
12684 if test -n "$orig_target_nm"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12686 $as_echo "$orig_target_nm" >&6; }
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12696 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12697 set dummy
${aros_tool_prefix}${toolchain_nm}; ac_word
=$2
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699 $as_echo_n "checking for $ac_word... " >&6; }
12700 if ${ac_cv_path_orig_target_nm+:} false
; then :
12701 $as_echo_n "(cached) " >&6
12703 case $orig_target_nm in
12705 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12709 for as_dir
in $PATH
12712 test -z "$as_dir" && as_dir
=.
12713 for ac_exec_ext
in '' $ac_executable_extensions; do
12714 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12715 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12726 orig_target_nm
=$ac_cv_path_orig_target_nm
12727 if test -n "$orig_target_nm"; then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12729 $as_echo "$orig_target_nm" >&6; }
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732 $as_echo "no" >&6; }
12739 if test "$orig_target_nm" = ""; then
12742 if test "$orig_target_nm" = "no"; then
12745 if test "$req_avail" = "no"; then
12746 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12749 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
12750 if test "$cross_compiling" = "yes" ; then
12751 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12752 set dummy
${target_tool_prefix}strip
; ac_word
=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if ${ac_cv_path_orig_target_strip+:} false
; then :
12756 $as_echo_n "(cached) " >&6
12758 case $orig_target_strip in
12760 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12764 for as_dir
in $PATH
12767 test -z "$as_dir" && as_dir
=.
12768 for ac_exec_ext
in '' $ac_executable_extensions; do
12769 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12770 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12781 orig_target_strip
=$ac_cv_path_orig_target_strip
12782 if test -n "$orig_target_strip"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12784 $as_echo "$orig_target_strip" >&6; }
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12792 if test "$GCC" = "yes"; then
12793 aros_gcc_strip
=`$CC -print-prog-name=strip`
12794 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12795 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if ${ac_cv_path_orig_target_strip+:} false
; then :
12799 $as_echo_n "(cached) " >&6
12801 case $orig_target_strip in
12803 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12807 for as_dir
in `dirname $aros_gcc_strip`
12810 test -z "$as_dir" && as_dir
=.
12811 for ac_exec_ext
in '' $ac_executable_extensions; do
12812 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12813 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 orig_target_strip
=$ac_cv_path_orig_target_strip
12825 if test -n "$orig_target_strip"; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12827 $as_echo "$orig_target_strip" >&6; }
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12835 if test "$orig_target_strip" = ""; then
12836 # Extract the first word of "strip", so it can be a program name with args.
12837 set dummy strip
; ac_word
=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if ${ac_cv_path_orig_target_strip+:} false
; then :
12841 $as_echo_n "(cached) " >&6
12843 case $orig_target_strip in
12845 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12849 for as_dir
in $PATH
12852 test -z "$as_dir" && as_dir
=.
12853 for ac_exec_ext
in '' $ac_executable_extensions; do
12854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12855 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12866 orig_target_strip
=$ac_cv_path_orig_target_strip
12867 if test -n "$orig_target_strip"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12869 $as_echo "$orig_target_strip" >&6; }
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12879 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
12880 set dummy
${aros_tool_prefix}${toolchain_strip}; ac_word
=$2
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882 $as_echo_n "checking for $ac_word... " >&6; }
12883 if ${ac_cv_path_orig_target_strip+:} false
; then :
12884 $as_echo_n "(cached) " >&6
12886 case $orig_target_strip in
12888 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12892 for as_dir
in $PATH
12895 test -z "$as_dir" && as_dir
=.
12896 for ac_exec_ext
in '' $ac_executable_extensions; do
12897 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12898 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12909 orig_target_strip
=$ac_cv_path_orig_target_strip
12910 if test -n "$orig_target_strip"; then
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12912 $as_echo "$orig_target_strip" >&6; }
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12922 if test "$orig_target_strip" = ""; then
12925 if test "$orig_target_strip" = "no"; then
12928 if test "$req_avail" = "no"; then
12929 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12932 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
12933 if test "$cross_compiling" = "yes" ; then
12934 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12935 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937 $as_echo_n "checking for $ac_word... " >&6; }
12938 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
12939 $as_echo_n "(cached) " >&6
12941 case $orig_target_objcopy in
12943 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
12946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12947 for as_dir
in $PATH
12950 test -z "$as_dir" && as_dir
=.
12951 for ac_exec_ext
in '' $ac_executable_extensions; do
12952 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12953 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12964 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
12965 if test -n "$orig_target_objcopy"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12967 $as_echo "$orig_target_objcopy" >&6; }
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970 $as_echo "no" >&6; }
12975 if test "$GCC" = "yes"; then
12976 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
12977 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12978 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12980 $as_echo_n "checking for $ac_word... " >&6; }
12981 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
12982 $as_echo_n "(cached) " >&6
12984 case $orig_target_objcopy in
12986 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
12989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12990 for as_dir
in `dirname $aros_gcc_objcopy`
12993 test -z "$as_dir" && as_dir
=.
12994 for ac_exec_ext
in '' $ac_executable_extensions; do
12995 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12996 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
12997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13008 if test -n "$orig_target_objcopy"; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13010 $as_echo "$orig_target_objcopy" >&6; }
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013 $as_echo "no" >&6; }
13018 if test "$orig_target_objcopy" = ""; then
13019 # Extract the first word of "objcopy", so it can be a program name with args.
13020 set dummy objcopy
; ac_word
=$2
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022 $as_echo_n "checking for $ac_word... " >&6; }
13023 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13024 $as_echo_n "(cached) " >&6
13026 case $orig_target_objcopy in
13028 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13032 for as_dir
in $PATH
13035 test -z "$as_dir" && as_dir
=.
13036 for ac_exec_ext
in '' $ac_executable_extensions; do
13037 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13038 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13049 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13050 if test -n "$orig_target_objcopy"; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13052 $as_echo "$orig_target_objcopy" >&6; }
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055 $as_echo "no" >&6; }
13062 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13063 set dummy
${aros_tool_prefix}${toolchain_objcopy}; ac_word
=$2
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13065 $as_echo_n "checking for $ac_word... " >&6; }
13066 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13067 $as_echo_n "(cached) " >&6
13069 case $orig_target_objcopy in
13071 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13075 for as_dir
in $PATH
13078 test -z "$as_dir" && as_dir
=.
13079 for ac_exec_ext
in '' $ac_executable_extensions; do
13080 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13081 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13092 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13093 if test -n "$orig_target_objcopy"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13095 $as_echo "$orig_target_objcopy" >&6; }
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13105 if test "$orig_target_objcopy" = ""; then
13108 if test "$orig_target_objcopy" = "no"; then
13111 if test "$req_avail" = "no"; then
13112 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13115 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13116 if test "$cross_compiling" = "yes" ; then
13117 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13118 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120 $as_echo_n "checking for $ac_word... " >&6; }
13121 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13122 $as_echo_n "(cached) " >&6
13124 case $orig_target_objdump in
13126 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13130 for as_dir
in $PATH
13133 test -z "$as_dir" && as_dir
=.
13134 for ac_exec_ext
in '' $ac_executable_extensions; do
13135 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13136 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13148 if test -n "$orig_target_objdump"; then
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13150 $as_echo "$orig_target_objdump" >&6; }
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 $as_echo "no" >&6; }
13158 if test "$GCC" = "yes"; then
13159 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
13160 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13161 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163 $as_echo_n "checking for $ac_word... " >&6; }
13164 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13165 $as_echo_n "(cached) " >&6
13167 case $orig_target_objdump in
13169 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13173 for as_dir
in `dirname $aros_gcc_objdump`
13176 test -z "$as_dir" && as_dir
=.
13177 for ac_exec_ext
in '' $ac_executable_extensions; do
13178 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13179 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13191 if test -n "$orig_target_objdump"; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13193 $as_echo "$orig_target_objdump" >&6; }
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196 $as_echo "no" >&6; }
13201 if test "$orig_target_objdump" = ""; then
13202 # Extract the first word of "objdump", so it can be a program name with args.
13203 set dummy objdump
; ac_word
=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13207 $as_echo_n "(cached) " >&6
13209 case $orig_target_objdump in
13211 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13215 for as_dir
in $PATH
13218 test -z "$as_dir" && as_dir
=.
13219 for ac_exec_ext
in '' $ac_executable_extensions; do
13220 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13221 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13232 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13233 if test -n "$orig_target_objdump"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13235 $as_echo "$orig_target_objdump" >&6; }
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13245 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13246 set dummy
${aros_tool_prefix}${toolchain_objdump}; ac_word
=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 $as_echo_n "checking for $ac_word... " >&6; }
13249 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13250 $as_echo_n "(cached) " >&6
13252 case $orig_target_objdump in
13254 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13258 for as_dir
in $PATH
13261 test -z "$as_dir" && as_dir
=.
13262 for ac_exec_ext
in '' $ac_executable_extensions; do
13263 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13264 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13276 if test -n "$orig_target_objdump"; then
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13278 $as_echo "$orig_target_objdump" >&6; }
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13288 if test "$orig_target_objdump" = ""; then
13291 if test "$orig_target_objdump" = "no"; then
13294 if test "$req_avail" = "no"; then
13295 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13299 if test "$kernel_tool_prefix" = "none" ; then
13300 # No kernel tools specified
13301 # Assume target tools == kernel tools with ELF wrapper
13302 aros_kernel_cc
=$orig_target_cc
13303 aros_kernel_cxx
=$orig_target_cxx
13304 aros_kernel_cpp
=$orig_target_cpp
13305 aros_kernel_ld
=$orig_target_ld
13306 aros_kernel_as
=$orig_target_as
13307 aros_kernel_ar
=$orig_target_ar
13308 aros_kernel_ranlib
=$orig_target_ranlib
13309 aros_kernel_nm
=$orig_target_nm
13310 aros_kernel_strip
=$orig_target_strip
13311 aros_kernel_objcopy
=$orig_target_objcopy
13312 aros_kernel_objdump
=$orig_target_objdump
13313 use_kernel_cc_wrapper
=yes
13316 # At this point, all aros_kernel_* and aros_target_*
13317 # tools should be set up correctly
13319 CC
="$aros_kernel_cc $kernel_tool_flags"
13320 CPP
="$aros_kernel_cpp"
13322 #-----------------------------------------------------------------------------
13324 # Find all the tools we need to compile. This could be cross-compiling
13325 # though! If that is the case we use the GNU form of the target and
13326 # simply add this to the front of the binary name. This is rather simple,
13327 # but it should work under most circumstances.
13329 # The default tools are to use the same as the host, but only if the
13330 # host and target CPU are the same. With GCC this is normally enough.
13334 aros_shared_ld
="$aros_host_ld"
13336 aros_target_mkdep
="$aros_host_mkdep"
13338 # The default tools executables to be linked to.
13339 if test "$rescomp" != ""; then
13340 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13341 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343 $as_echo_n "checking for $ac_word... " >&6; }
13344 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
13345 $as_echo_n "(cached) " >&6
13347 case $aros_kernel_rescomp in
13349 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
13352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13353 for as_dir
in $PATH
13356 test -z "$as_dir" && as_dir
=.
13357 for ac_exec_ext
in '' $ac_executable_extensions; do
13358 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13359 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
13360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13370 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
13371 if test -n "$aros_kernel_rescomp"; then
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13373 $as_echo "$aros_kernel_rescomp" >&6; }
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376 $as_echo "no" >&6; }
13381 if test "$aros_kernel_rescomp" = ""; then
13384 if test "$aros_kernel_rescomp" = "no"; then
13387 if test "$req_avail" = "no"; then
13388 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13392 # Set up the sources for the symlink farm
13393 if test "$crosstools" = "yes"; then
13394 crosstools_target
=tools-crosstools
13397 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
13398 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
13400 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13401 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13402 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13403 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13404 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13405 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13406 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13408 # aros_cc_pre is a variable that is added to the front of the compiler name
13409 # in the generated aros-gcc shell script. We need this to enable the cache
13410 # to work across cleaned builds. Also, support DISTCC using the correct
13411 # environment variable.
13414 if test "x${DISTCC}" != "x" ; then
13415 if test "x${CCACHE}" != "x" ; then
13416 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13418 aros_cc_pre
="${DISTCC} "
13421 if test "x${CCACHE}" != "x" ; then
13422 aros_cc_pre
="${CCACHE} "
13426 aros_target_nostdinc_cflags
=-nostdinc
13428 aros_target_nostartup_ldflags
=-nostartfiles
13430 aros_target_nix_ldflags
=-nix
13432 aros_target_detach_ldflags
=-detach
13434 aros_target_nostdlib_ldflags
=-nostdlib
13439 if test "$aros_target_toolchain" != "yes"; then
13440 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13441 if test "$GCC" = "yes"; then
13442 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13445 # We do not know which c compiler version we are going to build and what we need to know
13446 # here is different for different versions so this will be set later during the
13447 # build of crosstools.
13448 if test "$aros_toolchain" = "gnu" ; then
13449 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13450 elif test "$aros_toolchain" = "llvm" ; then
13451 prefix
="$AROS_CROSSTOOLSDIR/bin/"
13453 aros_target_cc_path
=@aros_target_cc_path@
13455 aros_target_cpp
="${prefix}${toolchain_cpp_preprocessor}"
13456 aros_target_cc
="${prefix}${toolchain_c_compiler}"
13457 aros_target_cxx
="${prefix}${toolchain_cxx_compiler}"
13458 aros_target_as
="${prefix}${toolchain_as}"
13459 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_ld}"
13460 aros_target_ar
="${prefix}${toolchain_ar} $aros_target_ar_flags"
13461 aros_target_objcopy
="${prefix}${toolchain_objcopy}"
13462 aros_target_objdump
="${prefix}${toolchain_objdump}"
13463 aros_target_ranlib
="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13464 aros_target_nm
="${prefix}${toolchain_nm} $aros_target_nm_flags"
13465 aros_target_strip
="${prefix}${toolchain_strip}"
13466 aros_plain_nm
="${prefix}${toolchain_nm}"
13467 aros_plain_ar
="${prefix}${toolchain_ar}"
13469 # Check whether --enable-includes was given.
13470 if test "${enable_includes+set}" = set; then :
13471 enableval
=$enable_includes; aros_target_incl
=$enable_includes
13473 aros_target_incl
=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13477 if test "$aros_kernel_includes" = ""; then
13478 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13479 aros_kernel_includes
="-isystem $aros_target_incl"
13483 if test "$aros_kernel_includes" != "" ; then
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13485 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13486 if test "$aros_kernel_cc_includes" = "" ; then
13487 # Try to guess where the directory is.
13488 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
13489 if test -d $aros_kernel_cc_includes; then
13490 # Check if there is also an include-fixed directory and add it
13491 # to kernel compiler's include path as it may contain some of
13492 # the headers we need.
13493 if test -d "$aros_kernel_cc_includes"-fixed; then
13494 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
13496 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13497 case ${host_cpu} in
13499 host_cpu_glibc
=i386
13502 host_cpu_glibc
=${host_cpu}
13505 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13506 aros_kernel_cc_includes
+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13509 # The directory doesn't exist, we need to do some more work.
13510 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
13512 # These are the headers we're looking for.
13513 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13514 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13518 for h
in $headers; do
13519 # Which other headers are needed by each of the above?
13520 deps
=$
(echo "#include <$h>" | \
13521 $aros_kernel_cc -E -M - 2>/dev
/null | \
13522 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13524 # Copy all the needed headers to a directory beneath gendir.
13527 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
13528 sed -n "s,^.*/include\(/.*\),\1,p")
13529 ! test -d $dir && mkdir
-p $dir
13530 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13536 $as_echo "$aros_kernel_cc_includes" >&6; }
13537 # Adding -nostdinc to kernel includes as they are always used together.
13538 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13541 if test "$crosstools" != "yes"; then
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13543 $as_echo_n "checking for the target compiler's include path... " >&6; }
13544 if test "$aros_target_cc_includes" = "" ; then
13545 #try to guess where the directory is
13546 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
13547 if ! test -d $aros_target_cc_includes; then
13548 #the directory doesn't exist, we need to do some more work
13549 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
13551 #these are the headers we're looking for
13552 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13553 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13557 for h
in $headers; do
13558 #which other headers each of the above headers needs?
13559 deps
=$
(echo "#include <$h>" | \
13560 $orig_target_cc -E -M - 2>/dev
/null | \
13561 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13563 #copy all the needed headers to a directory beneath gendir
13566 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
13567 sed -n "s,^.*/include\(/.*\),\1,p")
13568 ! test -d $dir && mkdir
-p $dir
13569 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13575 $as_echo "$aros_target_cc_includes" >&6; }
13577 # We do not know which c compiler version we are going to build and what we need to know
13578 # here is different for different versions so this will be set later during the
13579 # build of crosstools.
13580 aros_target_cc_includes
=@aros_target_cc_includes@
13584 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13585 # On GCC >= 4.0 -iquote should be used
13589 save_cflags
="$CFLAGS"
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13592 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13593 if test "x-$crosstools" != "x-yes"; then
13594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13605 if ac_fn_c_try_compile
"$LINENO"; then :
13610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13612 # we do know it is supported for the smallest version of ${toolchain_c_compiler} we are going to build
13613 # we assume it's also supported by later versions
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13617 $as_echo "$has_iquote" >&6; }
13618 if test "x-$has_iquote" = "x-yes" ; then
13619 host_cflags_iquote
=-iquote
13620 host_cflags_iquote_end
=
13622 host_cflags_iquote
=-I
13623 host_cflags_iquote_end
=-I-
13625 kernel_cflags_iquote
=$host_cflags_iquote
13626 kernel_cflags_iquote_end
=$host_cflags_iquote_end
13627 if test "x-$cross_compiling" = "x-yes"; then
13628 CC
="$aros_kernel_cc"
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13630 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13631 if test "x-$crosstools" != "x-yes"; then
13632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13643 if ac_fn_c_try_compile
"$LINENO"; then :
13644 use_no_stack_protector
="yes"
13646 use_no_stack_protector
="no"
13648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13650 # we do know it is supported for the smallest version of gcc we are going to build
13651 # we assume it's also supported by later versions
13652 use_no_stack_protector
=yes
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13655 $as_echo "$use_no_stack_protector" >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13657 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13658 if test "x-$crosstools" != "x-yes"; then
13659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13670 if ac_fn_c_try_compile
"$LINENO"; then :
13675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13677 # we do know it is supported for the smallest version of gcc we are going to build
13678 # we assume it's also supported by later versions
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13682 $as_echo "$has_iquote" >&6; }
13683 if test "x-$has_iquote" = "x-yes" ; then
13684 kernel_cflags_iquote
=-iquote
13685 kernel_cflags_iquote_end
=
13687 kernel_cflags_iquote
=-I
13688 kernel_cflags_iquote_end
=-I-
13691 aros_cflags_iquote
=$kernel_cflags_iquote
13692 aros_cflags_iquote_end
=$kernel_cflags_iquote_end
13693 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13694 CC
="$orig_target_cc"
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13696 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13697 if test "x-$crosstools" != "x-yes"; then
13698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13709 if ac_fn_c_try_compile
"$LINENO"; then :
13714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13716 # we do know it is supported for the smallest version of gcc we are going to build
13717 # we assume it's also supported by later versions
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13721 $as_echo "$has_iquote" >&6; }
13722 if test "x-$has_iquote" = "x-yes" ; then
13723 aros_cflags_iquote
=-iquote
13724 aros_cflags_iquote_end
=
13726 aros_cflags_iquote
=-I
13727 aros_cflags_iquote_end
=-I-
13730 if test "x-$use_no_stack_protector" = "x-yes" ; then
13731 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
13734 #-----------------------------------------------------------------------------
13736 # Check if we can explicitly choose older version of symbol hashing
13738 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
13739 CC
="$aros_kernel_cc"
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13741 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13753 if ac_fn_c_try_link
"$LINENO"; then :
13754 use_hash_style
="yes"
13756 use_hash_style
="no"
13758 rm -f core conftest.err conftest.
$ac_objext \
13759 conftest
$ac_exeext conftest.
$ac_ext
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13761 $as_echo "$use_hash_style" >&6; }
13762 if test "x-$use_hash_style" = "x-yes" ; then
13763 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
13766 CFLAGS
="$save_cflags"
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13777 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13779 # Check whether --with-resolution was given.
13780 if test "${with_resolution+set}" = set; then :
13781 withval
=$with_resolution; resolution
=$withval
13786 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13787 if test "$resolution" = "yes" ; then
13790 if test "$resolution" = "no" ; then
13793 if test "$resolution" != "none" ; then
13794 aros_nominal_width
=`echo $resolution | cut -d'x' -f1`
13795 aros_nominal_height
=`echo $resolution | cut -d'x' -f2`
13796 aros_nominal_depth
=`echo $resolution | cut -d'x' -f3`
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13799 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13800 aros_cv_nominal_width
=$aros_nominal_width
13801 aros_cv_nominal_height
=$aros_nominal_height
13802 aros_cv_nominal_depth
=$aros_nominal_depth
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13805 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13807 # Check whether --with-serial-debug was given.
13808 if test "${with_serial_debug+set}" = set; then :
13809 withval
=$with_serial_debug; serial_debug
=$withval
13814 if test "$aros_serial_debug" = 0 ; then
13815 serial_debug_forced
=""
13816 if test "$serial_debug" = "yes" ; then
13819 if test "$serial_debug" = "no" ; then
13820 serial_debug
="none"
13823 serial_debug_forced
="(forced)"
13824 serial_debug
=$aros_serial_debug
13826 if test "$serial_debug" != "none" ; then
13827 aros_serial_debug
=$serial_debug
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13829 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832 $as_echo "no" >&6; }
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
13836 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
13837 # Check whether --enable-palm_debug_hack was given.
13838 if test "${enable_palm_debug_hack+set}" = set; then :
13839 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
13841 palm_debug_hack
="no"
13844 if test "$palm_debug_hack" = "yes" ; then
13845 aros_palm_debug_hack
="1"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13848 $as_echo "$palm_debug_hack" >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
13851 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
13852 # Check whether --enable-usb30_code was given.
13853 if test "${enable_usb30_code+set}" = set; then :
13854 enableval
=$enable_usb30_code; usb30_code
="yes"
13859 if test "$usb30_code" = "yes" ; then
13860 aros_config_cflags
="$aros_config_cflags -DAROS_USB30_CODE"
13861 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13864 $as_echo "$usb30_code" >&6; }
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
13867 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
13868 # Check whether --enable-nesting_supervisor was given.
13869 if test "${enable_nesting_supervisor+set}" = set; then :
13870 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
13872 nesting_supervisor
="no"
13875 if test "$nesting_supervisor" = "yes" ; then
13876 aros_nesting_supervisor
="1"
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13879 $as_echo "$nesting_supervisor" >&6; }
13881 if test "$aros_enable_mmu" = "" ; then
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
13883 $as_echo_n "checking whether MMU support is enabled... " >&6; }
13884 # Check whether --enable-mmu was given.
13885 if test "${enable_mmu+set}" = set; then :
13886 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
13888 aros_enable_mmu
="yes"
13891 if test "$aros_enable_mmu" = "" ; then
13892 aros_enable_mmu
="yes"
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13895 $as_echo "$aros_enable_mmu" >&6; }
13897 if test "$aros_enable_mmu" = "no" ; then
13898 aros_enable_mmu
="0"
13900 aros_enable_mmu
="1"
13904 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13906 if test "x-$need_dlopen" != "x-no" ; then
13909 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
13910 if test "x$ac_cv_func_dlopen" = xyes
; then :
13916 if test "x-$have_dl" = "x-no" ; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13918 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13919 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13920 $as_echo_n "(cached) " >&6
13922 ac_check_lib_save_LIBS
=$LIBS
13924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h. */
13927 /* Override any GCC internal prototype to avoid an error.
13928 Use char because int might match the return type of a GCC
13929 builtin and then its argument prototype would still apply. */
13942 if ac_fn_c_try_link
"$LINENO"; then :
13943 ac_cv_lib_dl_dlopen
=yes
13945 ac_cv_lib_dl_dlopen
=no
13947 rm -f core conftest.err conftest.
$ac_objext \
13948 conftest
$ac_exeext conftest.
$ac_ext
13949 LIBS
=$ac_check_lib_save_LIBS
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13952 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13953 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13955 aros_host_ldflags
="$aros_host_ldflags -ldl"
13961 if test "x-$have_dl" = "x-no" ; then
13962 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
13968 # Check whether --enable-x11_hidd was given.
13969 if test "${enable_x11_hidd+set}" = set; then :
13970 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
13972 x11_hidd
="$need_x11"
13975 case "x-$x11_hidd" in
13976 x-yes|x-no|x-auto
) ;;
13977 *) x11_hidd
="$need_x11" ;;
13982 if test "x-$x11_hidd" != "x-no" ; then
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13985 $as_echo_n "checking for X... " >&6; }
13988 # Check whether --with-x was given.
13989 if test "${with_x+set}" = set; then :
13993 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13994 if test "x$with_x" = xno
; then
13995 # The user explicitly disabled X.
13998 case $x_includes,$x_libraries in #(
13999 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
14000 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
14001 $as_echo_n "(cached) " >&6
14003 # One or both of the vars are not set, and there is no cached value.
14004 ac_x_includes
=no ac_x_libraries
=no
14005 rm -f -r conftest.dir
14006 if mkdir conftest.dir
; then
14008 cat >Imakefile
<<'_ACEOF'
14010 @echo incroot='${INCROOT}'
14012 @echo usrlibdir='${USRLIBDIR}'
14014 @echo libdir='${LIBDIR}'
14016 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14017 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14018 for ac_var
in incroot usrlibdir libdir
; do
14019 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14021 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14022 for ac_extension
in a so sl dylib la dll
; do
14023 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14024 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14025 ac_im_usrlibdir
=$ac_im_libdir; break
14028 # Screen out bogus values from the imake configuration. They are
14029 # bogus both because they are the default anyway, and because
14030 # using them would break gcc on systems where it needs fixed includes.
14031 case $ac_im_incroot in
14032 /usr
/include
) ac_x_includes
= ;;
14033 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14035 case $ac_im_usrlibdir in
14036 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14037 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14041 rm -f -r conftest.dir
14044 # Standard set of common directories for X headers.
14045 # Check X11 before X11Rn because it is often a symlink to the current release.
14059 /usr/local/X11/include
14060 /usr/local/X11R7/include
14061 /usr/local/X11R6/include
14062 /usr/local/X11R5/include
14063 /usr/local/X11R4/include
14065 /usr/local/include/X11
14066 /usr/local/include/X11R7
14067 /usr/local/include/X11R6
14068 /usr/local/include/X11R5
14069 /usr/local/include/X11R4
14073 /usr/XFree86/include/X11
14077 /usr/unsupported/include
14078 /usr/athena/include
14079 /usr/local/x11r5/include
14080 /usr/lpp/Xamples/include
14082 /usr/openwin/include
14083 /usr/openwin/share/include'
14085 if test "$ac_x_includes" = no
; then
14086 # Guess where to find include files, by looking for Xlib.h.
14087 # First, try using that file with no special directory specified.
14088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 #include <X11/Xlib.h>
14092 if ac_fn_c_try_cpp
"$LINENO"; then :
14093 # We can compile using X headers with no special include directory.
14096 for ac_dir
in $ac_x_header_dirs; do
14097 if test -r "$ac_dir/X11/Xlib.h"; then
14098 ac_x_includes
=$ac_dir
14103 rm -f conftest.err conftest.i conftest.
$ac_ext
14104 fi # $ac_x_includes = no
14106 if test "$ac_x_libraries" = no
; then
14107 # Check for the libraries.
14108 # See if we find them without any special options.
14109 # Don't add to $LIBS permanently.
14112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 #include <X11/Xlib.h>
14123 if ac_fn_c_try_link
"$LINENO"; then :
14125 # We can link X programs with no special library path.
14129 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14131 # Don't even attempt the hair of trying to link an X program!
14132 for ac_extension
in a so sl dylib la dll
; do
14133 if test -r "$ac_dir/libX11.$ac_extension"; then
14134 ac_x_libraries
=$ac_dir
14140 rm -f core conftest.err conftest.
$ac_objext \
14141 conftest
$ac_exeext conftest.
$ac_ext
14142 fi # $ac_x_libraries = no
14144 case $ac_x_includes,$ac_x_libraries in #(
14145 no
,* |
*,no |
*\'*)
14146 # Didn't find X, or a directory has "'" in its name.
14147 ac_cv_have_x
="have_x=no";; #(
14149 # Record where we found X for the cache.
14150 ac_cv_have_x
="have_x=yes\
14151 ac_x_includes='$ac_x_includes'\
14152 ac_x_libraries='$ac_x_libraries'"
14158 eval "$ac_cv_have_x"
14161 if test "$have_x" != yes; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14163 $as_echo "$have_x" >&6; }
14166 # If each of the values was on the command line, it overrides each guess.
14167 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14168 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14169 # Update the cache value to reflect the command line values.
14170 ac_cv_have_x
="have_x=yes\
14171 ac_x_includes='$x_includes'\
14172 ac_x_libraries='$x_libraries'"
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14174 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14179 for path
in $x_libraries
14181 x_cflags
="$x_cflags -L$path"
14184 for path
in $x_includes
14186 x_cflags
="$x_cflags -I$path"
14189 if test "x-$no_x" = "x-yes" ; then
14191 if test "x-$x11_hidd" != "x-auto" ; then
14192 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14199 # Check whether --enable-x11_shm was given.
14200 if test "${enable_x11_shm+set}" = set; then :
14201 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
14203 x11_hidd_shm
="auto"
14206 case "x-$x11_hidd_shm" in
14207 x-yes|x-no|x-auto
) ;;
14208 *) x11_hidd_shm
="auto" ;;
14213 if test "x-$x11_hidd_shm" != "x-no" ; then
14215 for ac_header
in sys
/ipc.h
14217 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14218 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
14219 cat >>confdefs.h
<<_ACEOF
14220 #define HAVE_SYS_IPC_H 1
14227 for ac_header
in sys
/shm.h
14229 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14230 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
14231 cat >>confdefs.h
<<_ACEOF
14232 #define HAVE_SYS_SHM_H 1
14240 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14242 save_cflags
="$CFLAGS"
14243 CFLAGS
="$CFLAGS $x_cflags"
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14245 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14246 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
14247 $as_echo_n "(cached) " >&6
14249 ac_check_lib_save_LIBS
=$LIBS
14250 LIBS
="-lXext $LIBS"
14251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14254 /* Override any GCC internal prototype to avoid an error.
14255 Use char because int might match the return type of a GCC
14256 builtin and then its argument prototype would still apply. */
14260 char XShmQueryExtension ();
14264 return XShmQueryExtension ();
14269 if ac_fn_c_try_link
"$LINENO"; then :
14270 ac_cv_lib_Xext_XShmQueryExtension
=yes
14272 ac_cv_lib_Xext_XShmQueryExtension
=no
14274 rm -f core conftest.err conftest.
$ac_objext \
14275 conftest
$ac_exeext conftest.
$ac_ext
14276 LIBS
=$ac_check_lib_save_LIBS
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14279 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14280 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
14284 CFLAGS
="$save_cflags"
14288 if test "x-$have_xshm" = "x-yes" ; then
14289 DO_XSHM_SUPPORT
="1"
14290 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14291 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14293 DO_XSHM_SUPPORT
="0"
14297 # Check whether --enable-x11_vidmode was given.
14298 if test "${enable_x11_vidmode+set}" = set; then :
14299 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
14301 x11_hidd_vidmode
="auto"
14304 case "x-$x11_hidd_vidmode" in
14305 x-yes|x-no|x-auto
) ;;
14306 *) x11_hidd_vidmode
="auto" ;;
14311 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14313 save_cflags
="$CFLAGS"
14314 CFLAGS
="$CFLAGS $x_cflags"
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14316 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14317 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
14318 $as_echo_n "(cached) " >&6
14320 ac_check_lib_save_LIBS
=$LIBS
14321 LIBS
="-lXxf86vm $LIBS"
14322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14325 /* Override any GCC internal prototype to avoid an error.
14326 Use char because int might match the return type of a GCC
14327 builtin and then its argument prototype would still apply. */
14331 char XF86VidModeQueryExtension ();
14335 return XF86VidModeQueryExtension ();
14340 if ac_fn_c_try_link
"$LINENO"; then :
14341 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
14343 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
14345 rm -f core conftest.err conftest.
$ac_objext \
14346 conftest
$ac_exeext conftest.
$ac_ext
14347 LIBS
=$ac_check_lib_save_LIBS
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14350 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14351 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
14355 CFLAGS
="$save_cflags"
14358 if test "x-$have_vidmode" = "x-yes" ; then
14359 DO_VIDMODE_SUPPORT
="1"
14360 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14361 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14363 DO_VIDMODE_SUPPORT
="0"
14367 aros_host_x11_includes
=$x_includes
14368 aros_host_x11_libdirs
=$x_libraries
14372 # Check whether --enable-sdl_hidd was given.
14373 if test "${enable_sdl_hidd+set}" = set; then :
14374 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
14379 case "x-$sdl_hidd" in
14380 x-yes|x-no|x-auto
) ;;
14381 *) sdl_hidd
="auto" ;;
14384 if test "x-$sdl_hidd" != "x-no" ; then
14388 # Check whether --with-sdl-prefix was given.
14389 if test "${with_sdl_prefix+set}" = set; then :
14390 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
14396 # Check whether --with-sdl-exec-prefix was given.
14397 if test "${with_sdl_exec_prefix+set}" = set; then :
14398 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
14403 # Check whether --enable-sdltest was given.
14404 if test "${enable_sdltest+set}" = set; then :
14405 enableval
=$enable_sdltest;
14411 if test x
$sdl_exec_prefix != x
; then
14412 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14413 if test x
${SDL_CONFIG+set} != xset
; then
14414 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
14417 if test x
$sdl_prefix != x
; then
14418 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
14419 if test x
${SDL_CONFIG+set} != xset
; then
14420 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
14424 as_save_PATH
="$PATH"
14425 if test "x$prefix" != xNONE
; then
14426 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
14428 # Extract the first word of "sdl-config", so it can be a program name with args.
14429 set dummy sdl-config
; ac_word
=$2
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14431 $as_echo_n "checking for $ac_word... " >&6; }
14432 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
14433 $as_echo_n "(cached) " >&6
14435 case $SDL_CONFIG in
14437 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
14440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14441 for as_dir
in $PATH
14444 test -z "$as_dir" && as_dir
=.
14445 for ac_exec_ext
in '' $ac_executable_extensions; do
14446 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14447 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14455 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
14459 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
14460 if test -n "$SDL_CONFIG"; then
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14462 $as_echo "$SDL_CONFIG" >&6; }
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465 $as_echo "no" >&6; }
14469 PATH
="$as_save_PATH"
14470 min_sdl_version
=$SDL_VERSION
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14472 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14474 if test "$SDL_CONFIG" = "no" ; then
14477 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
14478 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
14480 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
14481 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14482 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
14483 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14484 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
14485 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14486 if test "x$enable_sdltest" = "xyes" ; then
14487 ac_save_CFLAGS
="$CFLAGS"
14488 ac_save_CXXFLAGS
="$CXXFLAGS"
14489 ac_save_LIBS
="$LIBS"
14490 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14491 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14492 LIBS
="$LIBS $SDL_LIBS"
14494 if test "$cross_compiling" = yes; then :
14495 echo $ac_n "cross compiling; assumed OK... $ac_c"
14497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14501 #include <stdlib.h>
14502 #include <string.h>
14506 my_strdup (char *str)
14512 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14513 strcpy (new_str, str);
14521 int main (int argc, char *argv[])
14523 int major, minor, micro;
14526 /* This hangs on some systems (?)
14527 system ("touch conf.sdltest");
14529 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14531 /* HP/UX 9 (%@#!) writes to sscanf strings */
14532 tmp_version = my_strdup("$min_sdl_version");
14533 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
14534 printf("%s, bad version string\n", "$min_sdl_version");
14538 if (($sdl_major_version > major) ||
14539 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14540 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14546 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14547 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14548 printf("*** best to upgrade to the required version.\n");
14549 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14550 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14551 printf("*** config.cache before re-running configure\n");
14558 if ac_fn_c_try_run
"$LINENO"; then :
14563 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14564 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14567 CFLAGS
="$ac_save_CFLAGS"
14568 CXXFLAGS
="$ac_save_CXXFLAGS"
14569 LIBS
="$ac_save_LIBS"
14572 if test "x$no_sdl" = x
; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14574 $as_echo "yes" >&6; }
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14578 $as_echo "no" >&6; }
14579 if test "$SDL_CONFIG" = "no" ; then
14580 echo "*** The sdl-config script installed by SDL could not be found"
14581 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14582 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14583 echo "*** full path to sdl-config."
14585 if test -f conf.sdltest
; then
14588 echo "*** Could not run SDL test program, checking why..."
14589 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14590 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14591 LIBS
="$LIBS $SDL_LIBS"
14592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14598 int main(int argc, char *argv[])
14601 #define main K_and_R_C_main
14611 if ac_fn_c_try_link
"$LINENO"; then :
14612 echo "*** The test program compiled, but did not run. This usually means"
14613 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14614 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14615 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14616 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14617 echo "*** is required on your system"
14619 echo "*** If you have an old version installed, it is best to remove it, although"
14620 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14622 echo "*** The test program failed to compile or link. See the file config.log for the"
14623 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14624 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14625 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14627 rm -f core conftest.err conftest.
$ac_objext \
14628 conftest
$ac_exeext conftest.
$ac_ext
14629 CFLAGS
="$ac_save_CFLAGS"
14630 CXXFLAGS
="$ac_save_CXXFLAGS"
14631 LIBS
="$ac_save_LIBS"
14643 if test "x-$have_sdl" != "x-yes" ; then
14645 if test "x-$sdl_hidd" != "x-auto" ; then
14646 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14651 aros_host_sdl_cflags
=$SDL_CFLAGS
14652 aros_host_sdl_libs
=$SDL_LIBS
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14660 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14661 # Check whether --enable-dbus was given.
14662 if test "${enable_dbus+set}" = set; then :
14663 enableval
=$enable_dbus; dbus
="yes"
14668 if test "$dbus" = "yes" ; then
14670 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
14671 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
14672 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
14673 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14678 $as_echo "$dbus" >&6; }
14680 if test "$use_kernel_cc_wrapper" = "yes" ; then
14681 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14698 # Compatability with other Amiga-like operation systems
14802 # Hosted Graphics Related
14820 # Native version related
14824 # Palm native version related
14827 # Unix/Hosted version related
14833 # Apple iOS related
14838 # ARM default GCC target related
14866 # Collect-aros stuff: "-ius" to ignore undefined symbols
14869 # C compiler related
14874 #ObjC compiler related
14883 case "$aros_flavour" in
14884 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
14885 aros_flavour
="emulation" ;;
14886 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14887 aros_flavour
="emulation" ;;
14888 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
14889 aros_flavour
="standalone";;
14890 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14891 aros_flavour
="standalone";;
14892 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
14893 aros_flavour
="native" ;;
14894 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14895 aros_flavour
="native" ;;
14896 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
14897 aros_flavour
="linklib" ;;
14898 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14899 aros_flavour
="palmnative" ;;
14900 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14901 aros_flavour
="mac68knative" ;;
14902 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14903 aros_flavour
="ppcnative" ;;
14906 if test ! -d ${aros_inc_dir} ; then
14907 ${MKDIR} ${aros_inc_dir}
14909 if test ! -d ${aros_geninc_dir} ; then
14910 ${MKDIR} ${aros_geninc_dir}
14912 if test ! -d ${aros_hostcfg_dir} ; then
14913 ${MKDIR} ${aros_hostcfg_dir}
14915 if test ! -d ${aros_targetcfg_dir} ; then
14916 ${MKDIR} ${aros_targetcfg_dir}
14918 if test ! -d ${aros_tools_dir} ; then
14919 ${MKDIR} ${aros_tools_dir}
14921 if test ! -d ${aros_scripts_dir} ; then
14922 ${MKDIR} ${aros_scripts_dir}
14925 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14928 # Generic build tools (metamake, etc)
14929 ac_config_commands
="$ac_config_commands genmf-executable-support"
14931 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"
14935 ac_config_commands
="$ac_config_commands binutils-support"
14937 ac_config_files
="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14940 # Bare Elf support script and spec
14941 if test "${use_kernel_cc_wrapper}" = "yes"; then
14942 ac_config_commands
="$ac_config_commands elf-compiler-support"
14944 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"
14948 # Host compiler support scripts and spec
14949 if test "${aros_target_toolchain}" = "no"; then
14950 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
14952 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"
14957 if test "$aros_target_variant" == "android"; then
14958 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14963 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
14966 cat >confcache
<<\_ACEOF
14967 # This file is a shell script that caches the results of configure
14968 # tests run on this system so they can be shared between configure
14969 # scripts and configure runs, see configure's option --config-cache.
14970 # It is not useful on other systems. If it contains results you don't
14971 # want to keep, you may remove or edit it.
14973 # config.status only pays attention to the cache file if you give it
14974 # the --recheck option to rerun configure.
14976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14978 # following values.
14982 # The following way of writing the cache mishandles newlines in values,
14983 # but we know of no workaround that is simple, portable, and efficient.
14984 # So, we kill variables containing newlines.
14985 # Ultrix sh set writes to stderr and can't be redirected directly,
14986 # and sets the high bit in the cache file unless we assign to the vars.
14988 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14989 eval ac_val
=\$
$ac_var
14993 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14997 _ | IFS | as_nl
) ;; #(
14998 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14999 *) { eval $ac_var=; unset $ac_var;} ;;
15005 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15006 *${as_nl}ac_space
=\
*)
15007 # `set' does not quote correctly, so add quotes: double-quote
15008 # substitution turns \\\\ into \\, and sed turns \\ into \.
15011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15014 # `set' quotes correctly as required by POSIX, so do not add quotes.
15015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15026 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15028 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15029 if test -w "$cache_file"; then
15030 if test "x$cache_file" != "x/dev/null"; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15032 $as_echo "$as_me: updating cache $cache_file" >&6;}
15033 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15034 cat confcache
>"$cache_file"
15036 case $cache_file in #(
15038 mv -f confcache
"$cache_file"$$
&&
15039 mv -f "$cache_file"$$
"$cache_file" ;; #(
15041 mv -f confcache
"$cache_file" ;;
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15052 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15053 # Let make expand exec_prefix.
15054 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15056 DEFS
=-DHAVE_CONFIG_H
15061 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15062 # 1. Remove the extension, and $U if already installed.
15063 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15064 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15065 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15066 # will be set to the directory where LIBOBJS objects are built.
15067 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15068 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15070 LIBOBJS
=$ac_libobjs
15072 LTLIBOBJS
=$ac_ltlibobjs
15076 : "${CONFIG_STATUS=./config.status}"
15078 ac_clean_files_save
=$ac_clean_files
15079 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15081 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15083 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15085 # Generated by $as_me.
15086 # Run this file to recreate the current configuration.
15087 # Compiler output produced by configure, useful for debugging
15088 # configure, is in config.log if it exists.
15091 ac_cs_recheck=false
15094 SHELL=\${CONFIG_SHELL-$SHELL}
15097 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15098 ## -------------------- ##
15099 ## M4sh Initialization. ##
15100 ## -------------------- ##
15102 # Be more Bourne compatible
15103 DUALCASE
=1; export DUALCASE
# for MKS sh
15104 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15107 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15108 # is contrary to our usage. Disable this feature.
15109 alias -g '${1+"$@"}'='"$@"'
15110 setopt NO_GLOB_SUBST
15112 case `(set -o) 2>/dev/null` in #(
15124 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15125 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15126 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15127 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15128 # Prefer a ksh shell builtin over an external printf program on Solaris,
15129 # but without wasting forks for bash or zsh.
15130 if test -z "$BASH_VERSION$ZSH_VERSION" \
15131 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15132 as_echo='print
-r --'
15133 as_echo_n='print
-rn --'
15134 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15135 as_echo='printf %s
\n'
15136 as_echo_n='printf %s
'
15138 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15139 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15140 as_echo_n='/usr
/ucb
/echo -n'
15142 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15143 as_echo_n_body='eval
15147 expr "X$arg" : "X\\(.*\\)$as_nl";
15148 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15150 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15152 export as_echo_n_body
15153 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15155 export as_echo_body
15156 as_echo='sh
-c $as_echo_body as_echo
'
15159 # The user is always right.
15160 if test "${PATH_SEPARATOR+set}" != set; then
15162 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15163 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15170 # We need space, tab and new line, in precisely that order. Quoting is
15171 # there to prevent editors from complaining about space-tab.
15172 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15173 # splitting by setting IFS to empty value.)
15176 # Find who we are. Look in the path if we contain no directory separator.
15179 *[\\/]* ) as_myself=$0 ;;
15180 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15181 for as_dir in $PATH
15184 test -z "$as_dir" && as_dir=.
15185 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15191 # We did not find ourselves, most probably we were run as `sh COMMAND'
15192 # in which case we are not to be found in the path.
15193 if test "x$as_myself" = x
; then
15196 if test ! -f "$as_myself"; then
15197 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15201 # Unset variables that we do not need and which cause bugs (e.g. in
15202 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15203 # suppresses any "Segmentation fault" message there. '((' could
15204 # trigger a bug in pdksh 5.2.14.
15205 for as_var
in BASH_ENV ENV MAIL MAILPATH
15206 do eval test x\
${$as_var+set} = xset \
15207 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15220 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15223 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15224 # ----------------------------------------
15225 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15226 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15227 # script with STATUS, using 1 if that was 0.
15230 as_status
=$1; test $as_status -eq 0 && as_status
=1
15232 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15233 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15235 $as_echo "$as_me: error: $2" >&2
15236 as_fn_exit
$as_status
15240 # as_fn_set_status STATUS
15241 # -----------------------
15242 # Set $? to STATUS, without forking.
15243 as_fn_set_status
()
15246 } # as_fn_set_status
15248 # as_fn_exit STATUS
15249 # -----------------
15250 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15254 as_fn_set_status
$1
15260 # Portably unset VAR.
15263 { eval $1=; unset $1;}
15265 as_unset
=as_fn_unset
15266 # as_fn_append VAR VALUE
15267 # ----------------------
15268 # Append the text in VALUE to the end of the definition contained in VAR. Take
15269 # advantage of any shell optimizations that allow amortized linear growth over
15270 # repeated appends, instead of the typical quadratic growth present in naive
15272 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15273 eval 'as_fn_append ()
15284 # as_fn_arith ARG...
15285 # ------------------
15286 # Perform arithmetic evaluation on the ARGs, and store the result in the
15287 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15288 # must be portable across $(()) and expr.
15289 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15290 eval 'as_fn_arith ()
15297 as_val
=`expr "$@" || test $? -eq 1`
15302 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15303 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15309 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15310 as_basename
=basename
15315 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15321 as_me
=`$as_basename -- "$0" ||
15322 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15323 X"$0" : 'X\(//\)$' \| \
15324 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15326 sed '/^.*\/\([^/][^/]*\)\/*$/{
15340 # Avoid depending upon Character Ranges.
15341 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15342 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15343 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15344 as_cr_digits
='0123456789'
15345 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15347 ECHO_C
= ECHO_N
= ECHO_T
=
15348 case `echo -n x` in #(((((
15350 case `echo 'xy\c'` in
15351 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15353 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15360 rm -f conf$$ conf$$.exe conf$$.
file
15361 if test -d conf$$.dir
; then
15362 rm -f conf$$.dir
/conf$$.
file
15365 mkdir conf$$.dir
2>/dev
/null
15367 if (echo >conf$$.
file) 2>/dev
/null
; then
15368 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15370 # ... but there are two gotchas:
15371 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15372 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15373 # In both cases, we have to default to `cp -pR'.
15374 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15376 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15384 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15385 rmdir conf$$.dir
2>/dev
/null
15390 # Create "$as_dir" as a directory, including parents if necessary.
15395 -*) as_dir
=.
/$as_dir;;
15397 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15401 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15402 *) as_qdir
=$as_dir;;
15404 as_dirs
="'$as_qdir' $as_dirs"
15405 as_dir
=`$as_dirname -- "$as_dir" ||
15406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15407 X"$as_dir" : 'X\(//\)[^/]' \| \
15408 X"$as_dir" : 'X\(//\)$' \| \
15409 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15410 $as_echo X"$as_dir" |
15411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15415 /^X\(\/\/\)[^/].*/{
15428 test -d "$as_dir" && break
15430 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15431 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15435 if mkdir
-p .
2>/dev
/null
; then
15436 as_mkdir_p
='mkdir -p "$as_dir"'
15438 test -d .
/-p && rmdir .
/-p
15443 # as_fn_executable_p FILE
15444 # -----------------------
15445 # Test if FILE is an executable regular file.
15446 as_fn_executable_p
()
15448 test -f "$1" && test -x "$1"
15449 } # as_fn_executable_p
15450 as_test_x
='test -x'
15451 as_executable_p
=as_fn_executable_p
15453 # Sed expression to map a string onto a valid CPP name.
15454 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15456 # Sed expression to map a string onto a valid variable name.
15457 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15461 ## ----------------------------------- ##
15462 ## Main body of $CONFIG_STATUS script. ##
15463 ## ----------------------------------- ##
15465 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15468 # Save the log message, to keep $0 and so on meaningful, and to
15469 # report actual input values of CONFIG_FILES etc. instead of their
15470 # values after options handling.
15472 This file was extended by $as_me, which was
15473 generated by GNU Autoconf 2.69. Invocation command line was
15475 CONFIG_FILES = $CONFIG_FILES
15476 CONFIG_HEADERS = $CONFIG_HEADERS
15477 CONFIG_LINKS = $CONFIG_LINKS
15478 CONFIG_COMMANDS = $CONFIG_COMMANDS
15481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15486 case $ac_config_files in *"
15487 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15490 case $ac_config_headers in *"
15491 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15496 # Files that config.status was made for.
15497 config_files="$ac_config_files"
15498 config_headers="$ac_config_headers"
15499 config_commands="$ac_config_commands"
15503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15505 \`$as_me' instantiates files and other configuration actions
15506 from templates according to the current configuration. Unless the files
15507 and actions are specified as TAGs, all are instantiated by default.
15509 Usage: $0 [OPTION]... [TAG]...
15511 -h, --help print this help, then exit
15512 -V, --version print version number and configuration settings, then exit
15513 --config print configuration, then exit
15514 -q, --quiet, --silent
15515 do not print progress messages
15516 -d, --debug don't remove temporary files
15517 --recheck update $as_me by reconfiguring in the same conditions
15518 --file=FILE[:TEMPLATE]
15519 instantiate the configuration file FILE
15520 --header=FILE[:TEMPLATE]
15521 instantiate the configuration header FILE
15523 Configuration files:
15526 Configuration headers:
15529 Configuration commands:
15532 Report bugs to the package provider."
15535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15536 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15539 configured by $0, generated by GNU Autoconf 2.69,
15540 with options \\"\$ac_cs_config\\"
15542 Copyright (C) 2012 Free Software Foundation, Inc.
15543 This config.status script is free software; the Free Software Foundation
15544 gives unlimited permission to copy, distribute and modify it."
15548 test -n "\$AWK" || AWK=awk
15551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15552 # The default lists apply if the user does not specify any file.
15558 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15559 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15563 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15575 # Handling of the options.
15576 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15578 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15579 $as_echo "$ac_cs_version"; exit ;;
15580 --config |
--confi |
--conf |
--con |
--co |
--c )
15581 $as_echo "$ac_cs_config"; exit ;;
15582 --debug |
--debu |
--deb |
--de |
--d |
-d )
15584 --file |
--fil |
--fi |
--f )
15587 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15588 '') as_fn_error $?
"missing file argument" ;;
15590 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15591 ac_need_defaults
=false
;;
15592 --header |
--heade |
--head |
--hea )
15595 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15597 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15598 ac_need_defaults
=false
;;
15600 # Conflict between --help and --header
15601 as_fn_error $?
"ambiguous option: \`$1'
15602 Try \`$0 --help' for more information.";;
15603 --help |
--hel |
-h )
15604 $as_echo "$ac_cs_usage"; exit ;;
15605 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15606 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15609 # This is an error.
15610 -*) as_fn_error $?
"unrecognized option: \`$1'
15611 Try \`$0 --help' for more information." ;;
15613 *) as_fn_append ac_config_targets
" $1"
15614 ac_need_defaults
=false
;;
15620 ac_configure_extra_args
=
15622 if $ac_cs_silent; then
15624 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15629 if \$ac_cs_recheck; then
15630 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15632 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15633 CONFIG_SHELL='$SHELL'
15634 export CONFIG_SHELL
15639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15644 ## Running $as_me. ##
15650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15654 aros_tools_dir=${aros_tools_dir}
15657 aros_host_exe_suffix=${aros_host_exe_suffix}
15658 aros_tools_dir=${aros_tools_dir}
15659 aros_target_cpu=${aros_target_cpu}
15660 aros_target_arch=${aros_target_arch}
15661 aros_target_suffix=${aros_target_suffix}
15662 orig_target_nm=${orig_target_nm}
15663 orig_target_as=${orig_target_as}
15664 orig_target_ar=${orig_target_ar}
15665 orig_target_ranlib=${orig_target_ranlib}
15666 orig_target_objdump=${orig_target_objdump}
15667 orig_target_objcopy=${orig_target_objcopy}
15668 orig_target_strip=${orig_target_strip}
15669 aros_kernel_ld=${aros_kernel_ld}
15673 aros_host_exe_suffix=${aros_host_exe_suffix}
15674 aros_tools_dir=${aros_tools_dir}
15675 aros_target_cpu=${aros_target_cpu}
15676 aros_target_arch=${aros_target_arch}
15677 aros_target_suffix=${aros_target_suffix}
15678 aros_kernel_ld=${aros_kernel_ld}
15682 aros_host_exe_suffix=${aros_host_exe_suffix}
15683 aros_tools_dir=${aros_tools_dir}
15684 aros_target_cpu=${aros_target_cpu}
15685 aros_target_arch=${aros_target_arch}
15686 aros_target_suffix=${aros_target_suffix}
15692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15694 # Handling of arguments.
15695 for ac_config_target
in $ac_config_targets
15697 case $ac_config_target in
15698 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15699 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
15700 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15701 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
15702 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15703 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15704 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15705 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15706 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15707 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
15708 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15709 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15710 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
15711 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
15712 "${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" ;;
15713 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
15714 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15715 "${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" ;;
15716 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15717 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15718 "${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" ;;
15719 "${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" ;;
15720 "${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" ;;
15721 "${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" ;;
15722 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15724 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15729 # If the user did not use the arguments to specify the items to instantiate,
15730 # then the envvar interface is used. Set only those that are not.
15731 # We use the long form for the default assignment because of an extremely
15732 # bizarre bug on SunOS 4.1.3.
15733 if $ac_need_defaults; then
15734 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15735 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15736 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15739 # Have a temporary directory for convenience. Make it in the build tree
15740 # simply because there is no reason against having it here, and in addition,
15741 # creating and moving files from /tmp can sometimes cause problems.
15742 # Hook for its removal unless debugging.
15743 # Note that there is a small window in which the directory will not be cleaned:
15744 # after its creation but before its name has been assigned to `$tmp'.
15748 trap 'exit_status=$?
15749 : "${ac_tmp:=$tmp}"
15750 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15752 trap 'as_fn_exit 1' 1 2 13 15
15754 # Create a (secure) tmp directory for tmp files.
15757 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15761 tmp
=.
/conf$$
-$RANDOM
15762 (umask 077 && mkdir
"$tmp")
15763 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15766 # Set up the scripts for CONFIG_FILES section.
15767 # No need to generate them if there are no CONFIG_FILES.
15768 # This happens for instance with `./config.status config.h'.
15769 if test -n "$CONFIG_FILES"; then
15772 ac_cr
=`echo X | tr X '\015'`
15773 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15774 # But we know of no other shell where ac_cr would be empty at this
15775 # point, so we can use a bashism as a fallback.
15776 if test "x$ac_cr" = x
; then
15777 eval ac_cr
=\$
\'\\r
\'
15779 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15780 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15783 ac_cs_awk_cr
=$ac_cr
15786 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15791 echo "cat >conf$$subs.awk <<_ACEOF" &&
15792 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15794 } >conf$$subs.sh ||
15795 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15796 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15798 for ac_last_try in false false false false false :; do
15799 . ./conf$$subs.sh ||
15800 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15802 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15803 if test $ac_delim_n = $ac_delim_num; then
15805 elif $ac_last_try; then
15806 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15808 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15811 rm -f conf$$subs.sh
15813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15814 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15818 s/^/S["/; s
/!.
*/"]=/
15828 s/\(.\{148\}\)..*/\1/
15830 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15835 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15842 s/\(.\{148\}\)..*/\1/
15844 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15848 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15853 ' <conf$$subs.awk | sed '
15858 ' >>$CONFIG_STATUS || ac_write_fail=1
15859 rm -f conf$$subs.awk
15860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15862 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15863 for (key in S) S_is_set[key] = 1
15869 nfields = split(line, field, "@
")
15871 len = length(field[1])
15872 for (i = 2; i < nfields; i++) {
15874 keylen = length(key)
15875 if (S_is_set[key]) {
15877 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15878 len += length(value) + length(field[++i])
15889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15890 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15891 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15894 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15895 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15898 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15899 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15900 # trailing colons and then remove the whole line if VPATH becomes empty
15901 # (actually we leave an empty line to preserve line numbers).
15902 if test "x
$srcdir" = x.; then
15903 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15922 fi # test -n "$CONFIG_FILES"
15924 # Set up the scripts for CONFIG_HEADERS section.
15925 # No need to generate them if there are no CONFIG_HEADERS.
15926 # This happens for instance with `./config.status Makefile'.
15927 if test -n "$CONFIG_HEADERS"; then
15928 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
15932 # Transform confdefs.h into an awk script `defines.awk', embedded as
15933 # here-document in config.status, that substitutes the proper values into
15934 # config.h.in to produce config.h.
15936 # Create a delimiter string that does not exist in confdefs.h, to ease
15937 # handling of long lines.
15939 for ac_last_try in false false :; do
15940 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
15941 if test -z "$ac_tt"; then
15943 elif $ac_last_try; then
15944 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15946 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15950 # For the awk script, D is an array of macro values keyed by name,
15951 # likewise P contains macro parameters if any. Preserve backslash
15952 # newline sequences.
15954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15956 s/.\{148\}/&'"$ac_delim"'/g
15959 s/^[ ]*#[ ]*define[ ][ ]*/ /
15966 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15968 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15973 D["\
1"]=" \
3\\\\\\n
"\\/p
15975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15980 s/.\{148\}/&'"$ac_delim"'/g
15985 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15988 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15990 ' <confdefs.h | sed '
15991 s/'"$ac_delim"'/"\\\
15992 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15995 for (key in D) D_is_set[key] = 1
15998 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16000 split(line, arg, " ")
16001 if (arg[1] == "#") {
16005 defundef
= substr
(arg
[1], 2)
16008 split(mac1
, mac2
, "(") #)
16010 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16011 if (D_is_set
[macro
]) {
16012 # Preserve the white space surrounding the "#".
16013 print prefix
"define", macro P
[macro
] D
[macro
]
16016 # Replace #undef with comments. This is necessary, for example,
16017 # in the case of _POSIX_SOURCE, which is predefined and required
16018 # on some systems where configure will not decide to define it.
16019 if (defundef
== "undef") {
16020 print
"/*", prefix defundef
, macro
, "*/"
16028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16029 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16030 fi # test -n "$CONFIG_HEADERS"
16033 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16038 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16040 case $ac_mode$ac_tag in
16042 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16043 :[FH
]-) ac_tag
=-:-;;
16044 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16061 -) ac_f
="$ac_tmp/stdin";;
16062 *) # Look for the file first in the build tree, then in the source tree
16063 # (if the path is not absolute). The absolute path cannot be DOS-style,
16064 # because $ac_f cannot contain `:'.
16068 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16070 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16072 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16073 as_fn_append ac_file_inputs
" '$ac_f'"
16076 # Let's still pretend it is `configure' which instantiates (i.e., don't
16077 # use $as_me), people would be surprised to read:
16078 # /* config.h. Generated by config.status. */
16079 configure_input
='Generated from '`
16080 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16082 if test x
"$ac_file" != x-
; then
16083 configure_input
="$ac_file. $configure_input"
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16085 $as_echo "$as_me: creating $ac_file" >&6;}
16087 # Neutralize special characters interpreted by sed in replacement strings.
16088 case $configure_input in #(
16089 *\
&* |
*\|
* |
*\\* )
16090 ac_sed_conf_input
=`$as_echo "$configure_input" |
16091 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16092 *) ac_sed_conf_input
=$configure_input;;
16096 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16097 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16102 ac_dir
=`$as_dirname -- "$ac_file" ||
16103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16104 X"$ac_file" : 'X\(//\)[^/]' \| \
16105 X"$ac_file" : 'X\(//\)$' \| \
16106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16107 $as_echo X"$ac_file" |
16108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16112 /^X\(\/\/\)[^/].*/{
16125 as_dir
="$ac_dir"; as_fn_mkdir_p
16129 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16131 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16132 # A ".." for each directory in $ac_dir_suffix.
16133 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16134 case $ac_top_builddir_sub in
16135 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16136 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16139 ac_abs_top_builddir
=$ac_pwd
16140 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16141 # for backward compatibility:
16142 ac_top_builddir
=$ac_top_build_prefix
16145 .
) # We are building in place.
16147 ac_top_srcdir
=$ac_top_builddir_sub
16148 ac_abs_top_srcdir
=$ac_pwd ;;
16149 [\\/]* | ?
:[\\/]* ) # Absolute name.
16150 ac_srcdir
=$srcdir$ac_dir_suffix;
16151 ac_top_srcdir
=$srcdir
16152 ac_abs_top_srcdir
=$srcdir ;;
16153 *) # Relative name.
16154 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16155 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16156 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16158 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16170 # If the template does not know about datarootdir, expand it.
16171 # FIXME: This hack should be removed a few years after 2.60.
16172 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16183 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16184 *datarootdir
*) ac_datarootdir_seen
=yes;;
16185 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16187 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16190 ac_datarootdir_hack='
16191 s&@datadir@&$datadir&g
16192 s&@docdir@&$docdir&g
16193 s&@infodir@&$infodir&g
16194 s&@localedir@&$localedir&g
16195 s&@mandir@&$mandir&g
16196 s&\\\${datarootdir}&$datarootdir&g' ;;
16200 # Neutralize VPATH when `$srcdir' = `.'.
16201 # Shell code in configure.ac might set extrasub.
16202 # FIXME: do we really want to maintain this feature?
16203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16204 ac_sed_extra="$ac_vpsub
16207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16209 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16210 s|@configure_input@|
$ac_sed_conf_input|
;t t
16211 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16212 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16213 s
&@srcdir@
&$ac_srcdir&;t t
16214 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16215 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16216 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16217 s
&@builddir@
&$ac_builddir&;t t
16218 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16219 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16220 $ac_datarootdir_hack
16222 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16223 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16225 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16226 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16227 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16228 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16230 which seems to be undefined. Please make sure it is defined" >&5
16231 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16232 which seems to be undefined. Please make sure it is defined" >&2;}
16234 rm -f "$ac_tmp/stdin"
16236 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16237 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16245 if test x"$ac_file" != x-; then
16247 $as_echo "/* $configure_input */" \
16248 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16249 } >"$ac_tmp/config.h" \
16250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16251 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16253 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16256 mv "$ac_tmp/config.h" "$ac_file" \
16257 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16260 $as_echo "/* $configure_input */" \
16261 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16262 || as_fn_error $? "could not create -" "$LINENO" 5
16266 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16267 $as_echo "$as_me: executing $ac_file commands" >&6;}
16272 case $ac_file$ac_mode in
16273 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16274 "binutils-support":C)
16275 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16277 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16279 chmod a+x ${prefix2}-ld
16281 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16282 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16283 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16284 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16285 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16286 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16287 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16289 "elf-compiler-support":C)
16290 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16292 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16294 chmod a+x ${prefix2}-gcc
16296 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16298 "host-compiler-wrapper-support":C)
16299 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16301 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16303 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16312 ac_clean_files=$ac_clean_files_save
16314 test $ac_write_fail = 0 ||
16315 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16318 # configure is writing to config.log, and then calls config.status.
16319 # config.status does its own redirection, appending to config.log.
16320 # Unfortunately, on DOS this fails, as config.log is still kept open
16321 # by configure, so config.status won't be able to
write to it
; its
16322 # output is simply discarded. So we exec the FD to /dev/null,
16323 # effectively closing config.log, so it can be properly (re)opened and
16324 # appended to by config.status. When coming back to configure, we
16325 # need to make the FD available again.
16326 if test "$no_create" != yes; then
16328 ac_config_status_args
=
16329 test "$silent" = yes &&
16330 ac_config_status_args
="$ac_config_status_args --quiet"
16332 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16334 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16335 # would make configure fail if this is the last instruction.
16336 $ac_cs_success || as_fn_exit
1
16338 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16340 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16345 #XXX compatability...
16346 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
16348 if test -n "$aros_shared_cflags" ; then
16349 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16350 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg