2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars
='LTLIBOBJS
627 target_binutils_version
629 ignore_undefined_symbols
643 gcc_default_float_abi
651 aros_nesting_supervisor
659 aros_host_x11_ldflags
670 crosstools_cxx_target
674 aros_optimization_cflags
677 aros_target_strip_flags
685 aros_kernel_objcflags
712 aros_target_cc_includes
728 aros_target_bootloader
750 aros_amigaos_compliance
758 aros_target_toolchain
767 kernel_cflags_iquote_end
769 host_cflags_iquote_end
772 aros_target_nostdlib_ldflags
773 aros_target_detach_ldflags
774 aros_target_nix_ldflags
775 aros_target_nostartup_ldflags
776 aros_target_nostdinc_cflags
815 arosconfig_use_libpngconfig
898 program_transform_name
911 enable_option_checking
922 with_kernel_gcc_version
925 enable_target_variant
932 enable_amigaos_compliance
933 with_kernel_toolchain_prefix
934 with_elf_toolchain_prefix
937 with_aros_toolchain_install
938 with_binutils_version
952 enable_palm_debug_hack
954 enable_nesting_supervisor
966 ac_precious_vars
='build_alias
982 # Initialize some variables set by options.
984 ac_init_version
=false
985 ac_unrecognized_opts
=
987 # The variables have the same names as the options, with
988 # dashes changed to underlines.
996 program_transform_name
=s
,x
,x
,
1004 # Installation directory options.
1005 # These are left unexpanded so users can "make install exec_prefix=/foo"
1006 # and all the variables that are supposed to be based on exec_prefix
1007 # by default will actually change.
1008 # Use braces instead of parens because sh, perl, etc. also accept them.
1009 # (The list follows the same order as the GNU Coding Standards.)
1010 bindir
='${exec_prefix}/bin'
1011 sbindir
='${exec_prefix}/sbin'
1012 libexecdir
='${exec_prefix}/libexec'
1013 datarootdir
='${prefix}/share'
1014 datadir
='${datarootdir}'
1015 sysconfdir
='${prefix}/etc'
1016 sharedstatedir
='${prefix}/com'
1017 localstatedir
='${prefix}/var'
1018 includedir
='${prefix}/include'
1019 oldincludedir
='/usr/include'
1020 docdir
='${datarootdir}/doc/${PACKAGE}'
1021 infodir
='${datarootdir}/info'
1026 libdir
='${exec_prefix}/lib'
1027 localedir
='${datarootdir}/locale'
1028 mandir
='${datarootdir}/man'
1034 # If the previous option needs an argument, assign it.
1035 if test -n "$ac_prev"; then
1036 eval $ac_prev=\
$ac_option
1042 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1047 # Accept the important Cygnus configure options, so we can diagnose typos.
1049 case $ac_dashdash$ac_option in
1053 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1055 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1056 bindir
=$ac_optarg ;;
1058 -build |
--build |
--buil |
--bui |
--bu)
1059 ac_prev
=build_alias
;;
1060 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1061 build_alias
=$ac_optarg ;;
1063 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1064 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1065 ac_prev
=cache_file
;;
1066 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1067 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1068 cache_file
=$ac_optarg ;;
1070 --config-cache |
-C)
1071 cache_file
=config.cache
;;
1073 -datadir |
--datadir |
--datadi |
--datad)
1075 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1076 datadir
=$ac_optarg ;;
1078 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1079 |
--dataroo |
--dataro |
--datar)
1080 ac_prev
=datarootdir
;;
1081 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1082 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1083 datarootdir
=$ac_optarg ;;
1085 -disable-* |
--disable-*)
1086 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1089 as_fn_error $?
"invalid feature name: $ac_useropt"
1090 ac_useropt_orig
=$ac_useropt
1091 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "enable_
$ac_useropt"
1096 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1097 ac_unrecognized_sep
=', ';;
1099 eval enable_
$ac_useropt=no
;;
1101 -docdir |
--docdir |
--docdi |
--doc |
--do)
1103 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1104 docdir
=$ac_optarg ;;
1106 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1108 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1109 dvidir
=$ac_optarg ;;
1111 -enable-* |
--enable-*)
1112 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1115 as_fn_error $?
"invalid feature name: $ac_useropt"
1116 ac_useropt_orig
=$ac_useropt
1117 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1120 "enable_
$ac_useropt"
1122 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1123 ac_unrecognized_sep
=', ';;
1125 eval enable_
$ac_useropt=\
$ac_optarg ;;
1127 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1128 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1129 |
--exec |
--exe |
--ex)
1130 ac_prev
=exec_prefix
;;
1131 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1132 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1133 |
--exec=* |
--exe=* |
--ex=*)
1134 exec_prefix
=$ac_optarg ;;
1136 -gas |
--gas |
--ga |
--g)
1137 # Obsolete; use --with-gas.
1140 -help |
--help |
--hel |
--he |
-h)
1141 ac_init_help
=long
;;
1142 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1143 ac_init_help
=recursive
;;
1144 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1145 ac_init_help
=short
;;
1147 -host |
--host |
--hos |
--ho)
1148 ac_prev
=host_alias
;;
1149 -host=* |
--host=* |
--hos=* |
--ho=*)
1150 host_alias
=$ac_optarg ;;
1152 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1154 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1156 htmldir
=$ac_optarg ;;
1158 -includedir |
--includedir |
--includedi |
--included |
--include \
1159 |
--includ |
--inclu |
--incl |
--inc)
1160 ac_prev
=includedir
;;
1161 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1162 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1163 includedir
=$ac_optarg ;;
1165 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1167 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1168 infodir
=$ac_optarg ;;
1170 -libdir |
--libdir |
--libdi |
--libd)
1172 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1173 libdir
=$ac_optarg ;;
1175 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1176 |
--libexe |
--libex |
--libe)
1177 ac_prev
=libexecdir
;;
1178 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1179 |
--libexe=* |
--libex=* |
--libe=*)
1180 libexecdir
=$ac_optarg ;;
1182 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1183 ac_prev
=localedir
;;
1184 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1185 localedir
=$ac_optarg ;;
1187 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1188 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1189 ac_prev
=localstatedir
;;
1190 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1191 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1192 localstatedir
=$ac_optarg ;;
1194 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1196 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1197 mandir
=$ac_optarg ;;
1199 -nfp |
--nfp |
--nf)
1200 # Obsolete; use --without-fp.
1203 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1204 |
--no-cr |
--no-c |
-n)
1207 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1208 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1211 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1212 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1213 |
--oldin |
--oldi |
--old |
--ol |
--o)
1214 ac_prev
=oldincludedir
;;
1215 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1216 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1217 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1218 oldincludedir
=$ac_optarg ;;
1220 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1222 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1223 prefix
=$ac_optarg ;;
1225 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1226 |
--program-pre |
--program-pr |
--program-p)
1227 ac_prev
=program_prefix
;;
1228 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1229 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1230 program_prefix
=$ac_optarg ;;
1232 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1233 |
--program-suf |
--program-su |
--program-s)
1234 ac_prev
=program_suffix
;;
1235 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1236 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1237 program_suffix
=$ac_optarg ;;
1239 -program-transform-name |
--program-transform-name \
1240 |
--program-transform-nam |
--program-transform-na \
1241 |
--program-transform-n |
--program-transform- \
1242 |
--program-transform |
--program-transfor \
1243 |
--program-transfo |
--program-transf \
1244 |
--program-trans |
--program-tran \
1245 |
--progr-tra |
--program-tr |
--program-t)
1246 ac_prev
=program_transform_name
;;
1247 -program-transform-name=* |
--program-transform-name=* \
1248 |
--program-transform-nam=* |
--program-transform-na=* \
1249 |
--program-transform-n=* |
--program-transform-=* \
1250 |
--program-transform=* |
--program-transfor=* \
1251 |
--program-transfo=* |
--program-transf=* \
1252 |
--program-trans=* |
--program-tran=* \
1253 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1254 program_transform_name
=$ac_optarg ;;
1256 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1258 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1259 pdfdir
=$ac_optarg ;;
1261 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1263 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1266 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1267 |
-silent |
--silent |
--silen |
--sile |
--sil)
1270 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1272 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1274 sbindir
=$ac_optarg ;;
1276 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1277 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1278 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1280 ac_prev
=sharedstatedir
;;
1281 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1282 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1283 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1285 sharedstatedir
=$ac_optarg ;;
1287 -site |
--site |
--sit)
1289 -site=* |
--site=* |
--sit=*)
1292 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1294 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1295 srcdir
=$ac_optarg ;;
1297 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1298 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1299 ac_prev
=sysconfdir
;;
1300 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1301 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1302 sysconfdir
=$ac_optarg ;;
1304 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1305 ac_prev
=target_alias
;;
1306 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1307 target_alias
=$ac_optarg ;;
1309 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1312 -version |
--version |
--versio |
--versi |
--vers |
-V)
1313 ac_init_version
=: ;;
1316 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1327 ac_unrecognized_sep
=', ';;
1329 eval with_
$ac_useropt=\
$ac_optarg ;;
1331 -without-* |
--without-*)
1332 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1335 as_fn_error $?
"invalid package name: $ac_useropt"
1336 ac_useropt_orig
=$ac_useropt
1337 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338 case $ac_user_opts in
1342 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1343 ac_unrecognized_sep
=', ';;
1345 eval with_
$ac_useropt=no
;;
1348 # Obsolete; use --with-x.
1351 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1352 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1353 ac_prev
=x_includes
;;
1354 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1355 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1356 x_includes
=$ac_optarg ;;
1358 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1359 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1360 ac_prev
=x_libraries
;;
1361 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1362 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1363 x_libraries
=$ac_optarg ;;
1365 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1366 Try \`$0 --help' for more information"
1370 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1371 # Reject names that are not valid shell variable names.
1372 case $ac_envvar in #(
1373 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1374 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1376 eval $ac_envvar=\
$ac_optarg
1377 export $ac_envvar ;;
1380 # FIXME: should be removed in autoconf 3.0.
1381 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1382 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1383 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1384 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1390 if test -n "$ac_prev"; then
1391 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1392 as_fn_error $?
"missing argument to $ac_option"
1395 if test -n "$ac_unrecognized_opts"; then
1396 case $enable_option_checking in
1398 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1399 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1403 # Check all directory arguments for consistency.
1404 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1405 datadir sysconfdir sharedstatedir localstatedir includedir \
1406 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1407 libdir localedir mandir
1409 eval ac_val
=\$
$ac_var
1410 # Remove trailing slashes.
1413 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1414 eval $ac_var=\
$ac_val;;
1416 # Be sure to have absolute directory names.
1418 [\\/$
]* | ?
:[\\/]* ) continue;;
1419 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1421 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1424 # There might be people who depend on the old broken behavior: `$host'
1425 # used to hold the argument of --host etc.
1426 # FIXME: To remove some day.
1429 target
=$target_alias
1431 # FIXME: To remove some day.
1432 if test "x$host_alias" != x
; then
1433 if test "x$build_alias" = x
; then
1434 cross_compiling
=maybe
1435 elif test "x$build_alias" != "x$host_alias"; then
1441 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1443 test "$silent" = yes && exec 6>/dev
/null
1446 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1447 ac_ls_di
=`ls -di .` &&
1448 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1449 as_fn_error $?
"working directory cannot be determined"
1450 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1451 as_fn_error $?
"pwd does not report name of working directory"
1454 # Find the source files, if location was not specified.
1455 if test -z "$srcdir"; then
1456 ac_srcdir_defaulted
=yes
1457 # Try the directory containing this script, then the parent directory.
1458 ac_confdir
=`$as_dirname -- "$as_myself" ||
1459 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1460 X"$as_myself" : 'X\(//\)[^/]' \| \
1461 X"$as_myself" : 'X\(//\)$' \| \
1462 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1463 $as_echo X"$as_myself" |
1464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1486 ac_srcdir_defaulted
=no
1488 if test ! -r "$srcdir/$ac_unique_file"; then
1489 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1490 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1492 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1494 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1496 # When building in place, set srcdir=.
1497 if test "$ac_abs_confdir" = "$ac_pwd"; then
1500 # Remove unnecessary trailing slashes from srcdir.
1501 # Double slashes in file names in object file debugging info
1502 # mess up M-x gdb in Emacs.
1504 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1506 for ac_var
in $ac_precious_vars; do
1507 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1508 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1509 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1510 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1514 # Report the --help message.
1516 if test "$ac_init_help" = "long"; then
1517 # Omit some internal or obsolete options to make the list less imposing.
1518 # This message is too long to be a string in the A/UX 3.1 sh.
1520 \`configure' configures this package to adapt to many kinds of systems.
1522 Usage: $0 [OPTION]... [VAR=VALUE]...
1524 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1525 VAR=VALUE. See below for descriptions of some of the useful variables.
1527 Defaults for the options are specified in brackets.
1530 -h, --help display this help and exit
1531 --help=short display options specific to this package
1532 --help=recursive display the short help of all the included packages
1533 -V, --version display version information and exit
1534 -q, --quiet, --silent do not print \`checking ...' messages
1535 --cache-file=FILE cache test results in FILE [disabled]
1536 -C, --config-cache alias for \`--cache-file=config.cache'
1537 -n, --no-create do not create output files
1538 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1540 Installation directories:
1541 --prefix=PREFIX install architecture-independent files in PREFIX
1542 [$ac_default_prefix]
1543 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1546 By default, \`make install' will install all the files in
1547 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1548 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1549 for instance \`--prefix=\$HOME'.
1551 For better control, use the options below.
1553 Fine tuning of the installation directories:
1554 --bindir=DIR user executables [EPREFIX/bin]
1555 --sbindir=DIR system admin executables [EPREFIX/sbin]
1556 --libexecdir=DIR program executables [EPREFIX/libexec]
1557 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1558 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1559 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1560 --libdir=DIR object code libraries [EPREFIX/lib]
1561 --includedir=DIR C header files [PREFIX/include]
1562 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1563 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1564 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1565 --infodir=DIR info documentation [DATAROOTDIR/info]
1566 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1567 --mandir=DIR man documentation [DATAROOTDIR/man]
1568 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1569 --htmldir=DIR html documentation [DOCDIR]
1570 --dvidir=DIR dvi documentation [DOCDIR]
1571 --pdfdir=DIR pdf documentation [DOCDIR]
1572 --psdir=DIR ps documentation [DOCDIR]
1578 --x-includes=DIR X include files are
in DIR
1579 --x-libraries=DIR X library files are
in DIR
1582 --build=BUILD configure
for building on BUILD
[guessed
]
1583 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1587 if test -n "$ac_init_help"; then
1592 --disable-option-checking ignore unrecognized
--enable/--with options
1593 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1594 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1595 --disable-libpng-config disable libpng-config
test and configuration
1596 --enable-lto=yes|no Enable link
time optimizations
if the target
1597 compiler supports them
(default
=no
)
1598 --enable-coverage=yes|no
1599 Enable coverage instrumentation
if the target
1600 compiler supports it
(default
=no
)
1601 --enable-build-type=TYPE
1602 Select the build
type. Available types are
:
1603 personal
, nightly
, snapshot
, milestone
, release. Do
1604 NOT use this option unless you know what you are
1605 doing
! (default
=personal
)
1606 --enable-debug=list Enable different types of debug. Commas or
1607 whitespaces can be used to separate the items
in the
1608 list. Available types of debug are
: all
, none
,
1609 messages
, stack
, mungwall
, modules
, symbols. If no
1610 list is provided
then "all" is assumed.
1612 --enable-distcc Use distcc as a front end to the compiler
1614 --enable-ccache Use ccache as a front end to the compiler
1616 --enable-target-variant=NAME
1617 Enable a specific target variant
(default
=none
)
1618 --enable-amigaos-compliance=VERSION
1619 Enforce userspace AmigaOS compliance to a specific
1620 KickStart version
(default
=none
).
1621 --disable-crosstools Do not build cross-compiler toolchain
1622 --enable-objc Enable Objectve-C support
(default
=no
)
1623 --enable-java Enable Java support
(default
=no
)
1624 --enable-includes=dir Alternative system include directory
1625 --enable-palm-debug-hack
1626 Enable palm debug output hack
in palm native
1628 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1629 --enable-nesting-supervisor
1630 Enable nesting supervisor support
in unix
1632 --disable-mmu Disable MMU support
(default
=enabled
)
1633 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1634 --enable-x11-shm use X11 shared memory
(default
=auto
)
1635 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1636 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1637 --disable-sdltest Do not try to compile and run a
test SDL program
1638 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1641 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1642 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1643 --with-c-compiler=VERSION
1644 Use specified c compiler
for building AROS
1645 --with-cxx-compiler=VERSION
1646 Use specified c
++ compiler building AROS
1647 --with-toolchain=family Which toolchain family to crosscompile with
1649 --with-kernel-gcc-version=VERSION
1650 Use gcc-VERSION
for building bootstrap
1651 --with-optimization=FLAGS
1652 Use optimization flags FLAGS
(e.g
1653 --with-optimization=-O2).
1654 --with-paranoia=(yes|no|FLAGS
)
1655 Specific compiler warning FLAGS to
enable for
1656 paranoia builds
(default
=-Wall -Werror)
1657 --with-xcode=PATH Specify XCode path
for iOS targets
1658 (default
=/Developer
).
1659 --with-sdk-version=VERSION
1660 Use iOS SDK version VERSION
(default
=4.1).
1661 --with-sdk=PATH Specify Android SDK path
1662 (default
=$default_android_sdk).
1663 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1664 --with-sdk-version=LEVEL
1665 Use Android SDK
for API LEVEL
(default
=12).
1666 --with-ndk-version=LEVEL
1667 Use Android NDK
for API LEVEL
(default
=9).
1668 --with-apk-version=(release|debug
)
1669 Which version of AROSBootstrap.apk to compile.
1670 Release version needs key
for signing
, debug version
1671 will only run
in emulator.
(default
=release
)
1672 --with-kernel-toolchain-prefix=...
1673 Specify crosscompile toolchain prefix
for kernel
1675 --with-elf-toolchain-prefix=...
1676 Specify crosscompile toolchain prefix to wrap
for
1678 --with-aros-toolchain=PREFIX
1679 Specify prebuilt AROS toolchain. Use
yes for default
1681 --with-aros-toolchain-install=DIR
1682 Where to
install or search
for cross tools binaries
1683 --with-binutils-version=VERSION
1684 Use binutils-VERSION
for building AROS
1685 --with-gcc-version=VERSION
1686 Compile gcc-VERSION
for AROS
1687 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1688 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1689 --with-float=<spec
> Specify floating point ABI
1690 (default
=$gcc_default_float_abi).
1691 --with-portssources=DIR Where to download sourcecode
for external ports
1692 --with-bootloader=NAME Use a specific bootloader
1693 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1694 --with-theme=NAME Use a specific GUI Theme
1695 --with-resolution=XRESxYRESxDEPTH
1696 Default resolution of the initial WorkbenchScreen
1697 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1698 --with-x use the X Window System
1699 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1700 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1702 Some influential environment variables
:
1703 CXX C
++ compiler
command
1704 CXXFLAGS C
++ compiler flags
1705 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1706 nonstandard directory
<lib dir
>
1707 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1708 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1709 you have headers
in a nonstandard directory
<include dir
>
1710 CC C compiler
command
1711 CFLAGS C compiler flags
1713 PYTHON the Python interpreter
1714 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1716 Use these variables to override the choices made by
`configure' or to help
1717 it to find libraries and programs with nonstandard names/locations.
1719 Report bugs to the package provider.
1724 if test "$ac_init_help" = "recursive"; then
1725 # If there are subdirs, report their specific --help.
1726 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1727 test -d "$ac_dir" ||
1728 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1733 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1736 # A ".." for each directory in $ac_dir_suffix.
1737 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1738 case $ac_top_builddir_sub in
1739 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1740 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1743 ac_abs_top_builddir=$ac_pwd
1744 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1745 # for backward compatibility:
1746 ac_top_builddir=$ac_top_build_prefix
1749 .) # We are building in place.
1751 ac_top_srcdir=$ac_top_builddir_sub
1752 ac_abs_top_srcdir=$ac_pwd ;;
1753 [\\/]* | ?:[\\/]* ) # Absolute name.
1754 ac_srcdir=$srcdir$ac_dir_suffix;
1755 ac_top_srcdir=$srcdir
1756 ac_abs_top_srcdir=$srcdir ;;
1758 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1759 ac_top_srcdir=$ac_top_build_prefix$srcdir
1760 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1762 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1764 cd "$ac_dir" || { ac_status=$?; continue; }
1765 # Check for guested configure.
1766 if test -f "$ac_srcdir/configure.gnu"; then
1768 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1769 elif test -f "$ac_srcdir/configure"; then
1771 $SHELL "$ac_srcdir/configure" --help=recursive
1773 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1775 cd "$ac_pwd" || { ac_status=$?; break; }
1779 test -n "$ac_init_help" && exit $ac_status
1780 if $ac_init_version; then
1783 generated by GNU Autoconf 2.69
1785 Copyright (C) 2012 Free Software Foundation, Inc.
1786 This configure script is free software; the Free Software Foundation
1787 gives unlimited permission to copy, distribute and modify it.
1792 ## ------------------------ ##
1793 ## Autoconf initialization. ##
1794 ## ------------------------ ##
1796 # ac_fn_cxx_try_compile LINENO
1797 # ----------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1806 *) ac_try_echo
=$ac_try;;
1808 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1812 if test -s conftest.err
; then
1813 grep -v '^ *+' conftest.err
>conftest.er1
1814 cat conftest.er1
>&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.
$ac_objext; then :
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.
$ac_ext >&5
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status
$ac_retval
1832 } # ac_fn_cxx_try_compile
1834 # ac_fn_c_try_compile LINENO
1835 # --------------------------
1836 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_compile
()
1839 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1840 rm -f conftest.
$ac_objext
1841 if { { ac_try
="$ac_compile"
1843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_compile") 2>conftest.err
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest.$ac_objext; then :
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_c_try_compile
1872 # ac_fn_c_try_cpp LINENO
1873 # ----------------------
1874 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1881 *) ac_try_echo
=$ac_try;;
1883 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1887 if test -s conftest.err
; then
1888 grep -v '^ *+' conftest.err
>conftest.er1
1889 cat conftest.er1
>&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } > conftest.i
&& {
1894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.
$ac_ext >&5
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status
$ac_retval
1909 # ac_fn_c_try_link LINENO
1910 # -----------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1914 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1915 rm -f conftest.
$ac_objext conftest
$ac_exeext
1916 if { { ac_try
="$ac_link"
1918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 test -x conftest$ac_exeext
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1953 } # ac_fn_c_try_link
1955 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1956 # -------------------------------------------------------
1957 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1958 # the include files in INCLUDES and setting the cache variable VAR
1960 ac_fn_c_check_header_mongrel ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if eval \${$3+:} false; then :
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1973 # Is the header compilable?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1975 $as_echo_n "checking $2 usability... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_header_compiler=yes
1984 ac_header_compiler=no
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1988 $as_echo "$ac_header_compiler" >&6; }
1990 # Is the header present?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1992 $as_echo_n "checking $2 presence... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1997 if ac_fn_c_try_cpp "$LINENO"; then :
1998 ac_header_preproc=yes
2000 ac_header_preproc=no
2002 rm -f conftest.err conftest.i conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2004 $as_echo "$ac_header_preproc" >&6; }
2006 # So? What about this header?
2007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2010 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2016 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2018 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2020 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2022 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if eval \${$3+:} false; then :
2030 $as_echo_n "(cached) " >&6
2032 eval "$3=\$ac_header_compiler"
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 } # ac_fn_c_check_header_mongrel
2042 # ac_fn_c_try_run LINENO
2043 # ----------------------
2044 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2045 # that executables *can* be run.
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 if { { ac_try="$ac_link"
2051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2052 *) ac_try_echo
=$ac_try;;
2054 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_link") 2>&5
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2060 { { case "(($ac_try" in
2061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_try") 2>&5
2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; }; }; then :
2072 $as_echo "$as_me: program exited with status $ac_status" >&5
2073 $as_echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2076 ac_retval=$ac_status
2078 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080 as_fn_set_status $ac_retval
2084 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2085 # -------------------------------------------------------
2086 # Tests whether HEADER exists and can be compiled using the include files in
2087 # INCLUDES, setting the cache variable VAR accordingly.
2088 ac_fn_c_check_header_compile ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if eval \${$3+:} false; then :
2094 $as_echo_n "(cached) " >&6
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2101 if ac_fn_c_try_compile "$LINENO"; then :
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 } # ac_fn_c_check_header_compile
2115 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2116 # ----------------------------------------------------
2117 # Tries to find if the field MEMBER exists in type AGGR, after including
2118 # INCLUDES, setting cache variable VAR accordingly.
2119 ac_fn_c_check_member ()
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2123 $as_echo_n "checking for $2.$3... " >&6; }
2124 if eval \${$4+:} false; then :
2125 $as_echo_n "(cached) " >&6
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2140 if ac_fn_c_try_compile "$LINENO"; then :
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2150 if (sizeof ac_aggr.$3)
2156 if ac_fn_c_try_compile "$LINENO"; then :
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 } # ac_fn_c_check_member
2172 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2173 # ---------------------------------------------
2174 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2176 ac_fn_c_check_decl ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2180 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2182 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2183 if eval \${$3+:} false; then :
2184 $as_echo_n "(cached) " >&6
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2192 #ifndef $as_decl_name
2194 (void) $as_decl_use;
2196 (void) $as_decl_name;
2204 if ac_fn_c_try_compile "$LINENO"; then :
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213 $as_echo "$ac_res" >&6; }
2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 } # ac_fn_c_check_decl
2218 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2219 # -------------------------------------------
2220 # Tests whether TYPE exists after having included INCLUDES, setting cache
2221 # variable VAR accordingly.
2222 ac_fn_c_check_type ()
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \${$3+:} false; then :
2228 $as_echo_n "(cached) " >&6
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2256 if ac_fn_c_try_compile "$LINENO"; then :
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 } # ac_fn_c_check_type
2272 # ac_fn_c_check_func LINENO FUNC VAR
2273 # ----------------------------------
2274 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2275 ac_fn_c_check_func ()
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if eval \${$3+:} false; then :
2281 $as_echo_n "(cached) " >&6
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2285 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2287 #define $2 innocuous_$2
2289 /* System header to define __stub macros and hopefully few prototypes,
2290 which can conflict with char $2 (); below.
2291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2292 <limits.h> exists even on freestanding compilers. */
2295 # include <limits.h>
2297 # include <assert.h>
2302 /* Override any GCC internal prototype to avoid an error.
2303 Use char because int might match the return type of a GCC
2304 builtin and then its argument prototype would still apply. */
2309 /* The GNU C library defines this for functions which it implements
2310 to always fail with ENOSYS. Some functions are actually named
2311 something starting with __ and the normal name is an alias. */
2312 #if defined __stub_$2 || defined __stub___$2
2324 if ac_fn_c_try_link "$LINENO"; then :
2329 rm -f core conftest.err conftest.$ac_objext \
2330 conftest$ac_exeext conftest.$ac_ext
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2334 $as_echo "$ac_res" >&6; }
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337 } # ac_fn_c_check_func
2338 cat >config.log <<_ACEOF
2339 This file contains any messages produced by compilers while
2340 running configure, to aid debugging if configure makes a mistake.
2342 It was created by $as_me, which was
2343 generated by GNU Autoconf 2.69. Invocation command line was
2355 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2356 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2357 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2358 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2359 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2361 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2362 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2364 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2365 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2366 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2367 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2368 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2369 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2370 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 test -z "$as_dir" && as_dir=.
2379 $as_echo "PATH: $as_dir"
2395 # Keep a trace of the command line.
2396 # Strip out --no-create and --no-recursion so they do not pile up.
2397 # Strip out --silent because we don't want to record it for future runs.
2398 # Also quote any args containing shell meta-characters.
2399 # Make two passes to allow for proper duplicate-argument suppression.
2403 ac_must_keep_next=false
2409 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2411 | -silent | --silent | --silen | --sile | --sil)
2414 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2417 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2419 as_fn_append ac_configure_args1 " '$ac_arg'"
2420 if test $ac_must_keep_next = true; then
2421 ac_must_keep_next=false # Got value, back to normal.
2424 *=* | --config-cache | -C | -disable-* | --disable-* \
2425 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2426 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2427 | -with-* | --with-* | -without-* | --without-* | --x)
2428 case "$ac_configure_args0 " in
2429 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2432 -* ) ac_must_keep_next=true ;;
2435 as_fn_append ac_configure_args " '$ac_arg'"
2440 { ac_configure_args0=; unset ac_configure_args0;}
2441 { ac_configure_args1=; unset ac_configure_args1;}
2443 # When interrupted or exit'd, cleanup temporary files, and complete
2444 # config.log. We remove comments because anyway the quotes in there
2445 # would cause problems or look ugly.
2446 # WARNING: Use '\'' to represent an apostrophe within the trap.
2447 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2448 trap 'exit_status=$?
2449 # Save into config.log some information that might help in debugging.
2453 $as_echo "## ---------------- ##
2454 ## Cache variables. ##
2455 ## ---------------- ##"
2457 # The following way of writing the cache mishandles newlines in values,
2459 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2460 eval ac_val=\$$ac_var
2464 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2465 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2468 _ | IFS | as_nl) ;; #(
2469 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2470 *) { eval $ac_var=; unset $ac_var;} ;;
2475 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2476 *${as_nl}ac_space=\ *)
2478 "s/'\''/'\''\\\\'\'''\''/g;
2479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2489 $as_echo "## ----------------- ##
2490 ## Output variables. ##
2491 ## ----------------- ##"
2493 for ac_var in $ac_subst_vars
2495 eval ac_val=\$$ac_var
2497 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2499 $as_echo "$ac_var='\''$ac_val'\''"
2503 if test -n "$ac_subst_files"; then
2504 $as_echo "## ------------------- ##
2505 ## File substitutions. ##
2506 ## ------------------- ##"
2508 for ac_var in $ac_subst_files
2510 eval ac_val=\$$ac_var
2512 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514 $as_echo "$ac_var='\''$ac_val'\''"
2519 if test -s confdefs.h; then
2520 $as_echo "## ----------- ##
2527 test "$ac_signal" != 0 &&
2528 $as_echo "$as_me: caught signal $ac_signal"
2529 $as_echo "$as_me: exit $exit_status"
2531 rm -f core *.core core.conftest.* &&
2532 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2535 for ac_signal in 1 2 13 15; do
2536 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2541 rm -f -r conftest* confdefs.h
2543 $as_echo "/* confdefs.h */" > confdefs.h
2545 # Predefined preprocessor variables.
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_NAME "$PACKAGE_NAME"
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_STRING "$PACKAGE_STRING"
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_URL "$PACKAGE_URL"
2572 # Let the site file select an alternate cache file if it wants to.
2573 # Prefer an explicitly selected file to automatically selected ones.
2576 if test -n "$CONFIG_SITE"; then
2577 # We do not want a PATH search for config.site.
2578 case $CONFIG_SITE in #((
2579 -*) ac_site_file1=./$CONFIG_SITE;;
2580 */*) ac_site_file1=$CONFIG_SITE;;
2581 *) ac_site_file1=./$CONFIG_SITE;;
2583 elif test "x$prefix" != xNONE; then
2584 ac_site_file1=$prefix/share/config.site
2585 ac_site_file2=$prefix/etc/config.site
2587 ac_site_file1=$ac_default_prefix/share/config.site
2588 ac_site_file2=$ac_default_prefix/etc/config.site
2590 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2592 test "x$ac_site_file" = xNONE && continue
2593 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2595 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2596 sed 's/^/| /' "$ac_site_file" >&5
2598 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2600 as_fn_error $? "failed to load site
script $ac_site_file
2601 See \
`config.log' for more details" "$LINENO" 5; }
2605 if test -r "$cache_file"; then
2606 # Some versions of bash will fail to source /dev/null (special files
2607 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2608 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2610 $as_echo "$as_me: loading cache $cache_file" >&6;}
2612 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2613 *) . "./$cache_file";;
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2618 $as_echo "$as_me: creating cache $cache_file" >&6;}
2622 as_fn_append ac_header_list " stdlib.h"
2623 as_fn_append ac_header_list " unistd.h"
2624 as_fn_append ac_header_list " sys/param.h"
2625 # Check that the precious variables saved in the cache have kept the same
2627 ac_cache_corrupted=false
2628 for ac_var in $ac_precious_vars; do
2629 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2630 eval ac_new_set=\$ac_env_${ac_var}_set
2631 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2632 eval ac_new_val=\$ac_env_${ac_var}_value
2633 case $ac_old_set,$ac_new_set in
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2636 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2637 ac_cache_corrupted=: ;;
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2640 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2641 ac_cache_corrupted=: ;;
2644 if test "x$ac_old_val" != "x$ac_new_val"; then
2645 # differences in whitespace do not lead to failure.
2646 ac_old_val_w=`echo x
$ac_old_val`
2647 ac_new_val_w=`echo x
$ac_new_val`
2648 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2650 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2651 ac_cache_corrupted=:
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2654 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2655 eval $ac_var=\$ac_old_val
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2658 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2660 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2663 # Pass precious variables to config.status.
2664 if test "$ac_new_set" = set; then
2666 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2667 *) ac_arg=$ac_var=$ac_new_val ;;
2669 case " $ac_configure_args " in
2670 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2671 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2675 if $ac_cache_corrupted; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2679 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2680 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2682 ## -------------------- ##
2683 ## Main body of script. ##
2684 ## -------------------- ##
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2696 if test -f "$ac_dir/install-sh"; then
2698 ac_install_sh="$ac_aux_dir/install-sh -c"
2700 elif test -f "$ac_dir/install.sh"; then
2702 ac_install_sh="$ac_aux_dir/install.sh -c"
2704 elif test -f "$ac_dir/shtool"; then
2706 ac_install_sh="$ac_aux_dir/shtool install -c"
2710 if test -z "$ac_aux_dir"; then
2711 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2714 # These three variables are undocumented and unsupported,
2715 # and are intended to be withdrawn in a future Autoconf release.
2716 # They can cause serious problems if a builder's source tree is in a directory
2717 # whose full name contains unusual characters.
2718 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2719 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2720 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2724 # Check what host we are running on.
2725 # If a target is not suggested, we use this one.
2726 # Note that what we call a target, Autoconf calls a host.
2727 # Make sure we can run config.sub.
2728 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2729 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2732 $as_echo_n "checking build system type... " >&6; }
2733 if ${ac_cv_build+:} false; then :
2734 $as_echo_n "(cached) " >&6
2736 ac_build_alias=$build_alias
2737 test "x$ac_build_alias" = x &&
2738 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2739 test "x$ac_build_alias" = x &&
2740 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2741 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2742 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2746 $as_echo "$ac_cv_build" >&6; }
2747 case $ac_cv_build in
2749 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2752 ac_save_IFS=$IFS; IFS='-'
2758 # Remember, the first character of IFS is used to create $*,
2759 # except with old shells:
2762 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2766 $as_echo_n "checking host system type... " >&6; }
2767 if ${ac_cv_host+:} false; then :
2768 $as_echo_n "(cached) " >&6
2770 if test "x$host_alias" = x; then
2771 ac_cv_host=$ac_cv_build
2773 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2779 $as_echo "$ac_cv_host" >&6; }
2782 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2785 ac_save_IFS=$IFS; IFS='-'
2791 # Remember, the first character of IFS is used to create $*,
2792 # except with old shells:
2795 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2799 # Default versions for the gnu tools we build
2800 default_gcc_version="4.6.4"
2801 default_binutils_version="2.23.2"
2802 default_grub2_version="2.02"
2803 target_grub2_version=$default_grub2_version
2805 # The AROS target is slightly different to the normal GNU style
2806 # format. We don't have the middle part, and we reverse the order
2807 # of the $(CPU) and $(OS) bits.
2809 # Don't strip the version of the target yet, it might be
2810 # useful on some systems.
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2813 $as_echo_n "checking for AROS style target... " >&6; }
2815 if test "$target" = "NONE" ; then
2816 target=$host_os-$host_cpu
2818 if test "$target" = "" ; then
2819 target=$host_os-$host_cpu
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2823 $as_echo "$target" >&6; }
2825 if test "$host_os" = "mingw32" ; then
2829 # Don't know where else to put this...
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2831 $as_echo_n "checking building AROS in... " >&6; }
2832 AROS_BUILDDIR=`${PWDCMD-pwd}`
2833 AROS_BUILDDIR_UNIX=${PWD}
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2835 $as_echo "$AROS_BUILDDIR" >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2838 $as_echo_n "checking AROS source in... " >&6; }
2839 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2842 $as_echo "$SRCDIR" >&6; }
2844 # Parse the target field into something useful.
2846 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2847 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2850 # Some debug output, to be removed again.
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2852 $as_echo_n "checking for target system (debug output)... " >&6; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2854 $as_echo "$target_os" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2856 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2858 $as_echo "$target_cpu" >&6; }
2860 aros_nominal_width=800
2861 aros_nominal_height=600
2862 aros_nominal_depth=4
2865 default_c_compilers="gcc clang cc"
2867 # Check whether --with-c-compiler was given.
2868 if test "${with_c_compiler+set}" = set; then :
2869 withval=$with_c_compiler; use_c_compiler="$withval"
2874 if test "$use_c_compiler" = ""; then
2875 host_c_compilers="$default_c_compilers"
2877 host_c_compilers="$use_c_compiler"
2880 default_cxx_compilers="g++ clang++ c++"
2882 # Check whether --with-cxx-compiler was given.
2883 if test "${with_cxx_compiler+set}" = set; then :
2884 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2889 if test "$use_cxx_compiler" = ""; then
2890 host_cxx_compilers="$default_cxx_compilers"
2892 host_cxx_compilers="$use_cxx_compiler"
2896 # The first step is to find the host binaries.
2897 # Check for a compiler.
2898 # Due to a bug in autoconf check for c++ compiler first.
2899 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2901 ac_cpp='$CXXCPP $CPPFLAGS'
2902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2905 if test -z "$CXX"; then
2906 if test -n "$CCC"; then
2909 if test -n "$ac_tool_prefix"; then
2910 for ac_prog in ${host_cxx_compilers}
2912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_CXX+:} false; then :
2917 $as_echo_n "(cached) " >&6
2919 if test -n "$CXX"; then
2920 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 if test -n "$CXX"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2942 $as_echo "$CXX" >&6; }
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2949 test -n "$CXX" && break
2952 if test -z "$CXX"; then
2954 for ac_prog in ${host_cxx_compilers}
2956 # Extract the first word of "$ac_prog", so it can be a program name with args.
2957 set dummy $ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$ac_ct_CXX"; then
2964 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_ac_ct_CXX="$ac_prog"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2984 if test -n "$ac_ct_CXX"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2986 $as_echo "$ac_ct_CXX" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2993 test -n "$ac_ct_CXX" && break
2996 if test "x$ac_ct_CXX" = x; then
2999 case $cross_compiling:$ac_tool_warned in
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3011 # Provide some information about the compiler.
3012 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3015 for ac_option in --version -v -V -qversion; do
3016 { { ac_try="$ac_compiler $ac_option >&5"
3018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3019 *) ac_try_echo
=$ac_try;;
3021 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3022 $as_echo "$ac_try_echo"; } >&5
3023 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3025 if test -s conftest.err
; then
3027 ... rest of stderr output deleted ...
3028 10q' conftest.err
>conftest.er1
3029 cat conftest.er1
>&5
3031 rm -f conftest.er1 conftest.err
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }
3036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3047 ac_clean_files_save
=$ac_clean_files
3048 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3049 # Try to create an executable without -o first, disregard a.out.
3050 # It will help us diagnose broken compilers, and finding out an intuition
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3053 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3054 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3056 # The possible output files:
3057 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3060 for ac_file
in $ac_files
3063 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3064 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3069 if { { ac_try
="$ac_link_default"
3071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_link_default") 2>&5
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3081 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3082 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3083 # so that the user can short-circuit this test for compilers unknown to
3085 for ac_file in $ac_files ''
3087 test -f "$ac_file" || continue
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3092 # We found the default executable, but exeext='' is most
3096 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 # We set ac_cv_exeext here because the later test for it is not
3101 # safe: cross compilers may not add the suffix if given an `-o'
3102 # argument, so we may need to know it at that point already.
3103 # Even if this section looks crufty: it has the advantage of
3110 test "$ac_cv_exeext" = no && ac_cv_exeext=
3115 if test -z "$ac_file"; then :
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 $as_echo "$as_me: failed program was:" >&5
3119 sed 's
/^
/|
/' conftest.$ac_ext >&5
3121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3123 as_fn_error 77 "C++ compiler cannot create executables
3124 See \`config.log
' for more details" "$LINENO" 5; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3127 $as_echo "yes" >&6; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3130 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3132 $as_echo "$ac_file" >&6; }
3133 ac_exeext=$ac_cv_exeext
3135 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3136 ac_clean_files=$ac_clean_files_save
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3138 $as_echo_n "checking for suffix of executables... " >&6; }
3139 if { { ac_try="$ac_link"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_link") 2>&5
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; then :
3150 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3151 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3152 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3154 for ac_file
in conftest.exe conftest conftest.
*; do
3155 test -f "$ac_file" ||
continue
3157 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3158 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details" "$LINENO" 5; }
3169 rm -f conftest conftest
$ac_cv_exeext
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3171 $as_echo "$ac_cv_exeext" >&6; }
3173 rm -f conftest.
$ac_ext
3174 EXEEXT
=$ac_cv_exeext
3176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3182 FILE *f = fopen ("conftest.out", "w");
3183 return ferror (f) || fclose (f) != 0;
3189 ac_clean_files
="$ac_clean_files conftest.out"
3190 # Check that the compiler produces executables we can run. If not, either
3191 # the compiler is broken, or we cross compile.
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3193 $as_echo_n "checking whether we are cross compiling... " >&6; }
3194 if test "$cross_compiling" != yes; then
3195 { { ac_try
="$ac_link"
3197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_link") 2>&5
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }
3206 if { ac_try='./conftest$ac_cv_exeext'
3207 { { case "(($ac_try" in
3208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3209 *) ac_try_echo
=$ac_try;;
3211 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_try") 2>&5
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }; }; then
3219 if test "$cross_compiling" = maybe
; then
3222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224 as_fn_error $?
"cannot run C++ compiled programs.
3225 If you meant to cross compile, use \`--host'.
3226 See \`config.log' for more details" "$LINENO" 5; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3231 $as_echo "$cross_compiling" >&6; }
3233 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3234 ac_clean_files
=$ac_clean_files_save
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3236 $as_echo_n "checking for suffix of object files... " >&6; }
3237 if ${ac_cv_objext+:} false
; then :
3238 $as_echo_n "(cached) " >&6
3240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3251 rm -f conftest.o conftest.obj
3252 if { { ac_try
="$ac_compile"
3254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_compile") 2>&5
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 for ac_file in conftest.o conftest.obj conftest.*; do
3264 test -f "$ac_file" || continue;
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3278 See \
`config.log' for more details" "$LINENO" 5; }
3280 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3283 $as_echo "$ac_cv_objext" >&6; }
3284 OBJEXT=$ac_cv_objext
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3287 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3288 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3289 $as_echo_n "(cached) " >&6
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3305 if ac_fn_cxx_try_compile "$LINENO"; then :
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3315 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3316 if test $ac_compiler_gnu = yes; then
3321 ac_test_CXXFLAGS=${CXXFLAGS+set}
3322 ac_save_CXXFLAGS=$CXXFLAGS
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3324 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3325 if ${ac_cv_prog_cxx_g+:} false; then :
3326 $as_echo_n "(cached) " >&6
3328 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3329 ac_cxx_werror_flag=yes
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3343 if ac_fn_cxx_try_compile "$LINENO"; then :
3344 ac_cv_prog_cxx_g=yes
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3358 if ac_fn_cxx_try_compile "$LINENO"; then :
3361 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3374 if ac_fn_cxx_try_compile "$LINENO"; then :
3375 ac_cv_prog_cxx_g=yes
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3385 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3386 if test "$ac_test_CXXFLAGS" = set; then
3387 CXXFLAGS=$ac_save_CXXFLAGS
3388 elif test $ac_cv_prog_cxx_g = yes; then
3389 if test "$GXX" = yes; then
3395 if test "$GXX" = yes; then
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 if test -n "$ac_tool_prefix"; then
3413 for ac_prog in ${host_c_compilers}
3415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if ${ac_cv_prog_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 if test -n "$CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445 $as_echo "$CC" >&6; }
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3452 test -n "$CC" && break
3455 if test -z "$CC"; then
3457 for ac_prog in ${host_c_compilers}
3459 # Extract the first word of "$ac_prog", so it can be a program name with args.
3460 set dummy $ac_prog; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$ac_ct_CC"; then
3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_ac_ct_CC="$ac_prog"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3487 if test -n "$ac_ct_CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3489 $as_echo "$ac_ct_CC" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3496 test -n "$ac_ct_CC" && break
3499 if test "x$ac_ct_CC" = x; then
3502 case $cross_compiling:$ac_tool_warned in
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3506 ac_tool_warned=yes ;;
3513 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3516 See \
`config.log' for more details" "$LINENO" 5; }
3518 # Provide some information about the compiler.
3519 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3522 for ac_option in --version -v -V -qversion; do
3523 { { ac_try="$ac_compiler $ac_option >&5"
3525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3526 *) ac_try_echo
=$ac_try;;
3528 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3532 if test -s conftest.err
; then
3534 ... rest of stderr output deleted ...
3535 10q' conftest.err
>conftest.er1
3536 cat conftest.er1
>&5
3538 rm -f conftest.er1 conftest.err
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3544 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545 if ${ac_cv_c_compiler_gnu+:} false
; then :
3546 $as_echo_n "(cached) " >&6
3548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3562 if ac_fn_c_try_compile
"$LINENO"; then :
3567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3568 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3572 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3573 if test $ac_compiler_gnu = yes; then
3578 ac_test_CFLAGS
=${CFLAGS+set}
3579 ac_save_CFLAGS
=$CFLAGS
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3581 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3582 if ${ac_cv_prog_cc_g+:} false
; then :
3583 $as_echo_n "(cached) " >&6
3585 ac_save_c_werror_flag
=$ac_c_werror_flag
3586 ac_c_werror_flag
=yes
3589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3600 if ac_fn_c_try_compile
"$LINENO"; then :
3604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3615 if ac_fn_c_try_compile
"$LINENO"; then :
3618 ac_c_werror_flag
=$ac_save_c_werror_flag
3620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3631 if ac_fn_c_try_compile
"$LINENO"; then :
3634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3639 ac_c_werror_flag
=$ac_save_c_werror_flag
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3642 $as_echo "$ac_cv_prog_cc_g" >&6; }
3643 if test "$ac_test_CFLAGS" = set; then
3644 CFLAGS
=$ac_save_CFLAGS
3645 elif test $ac_cv_prog_cc_g = yes; then
3646 if test "$GCC" = yes; then
3652 if test "$GCC" = yes; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3659 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660 if ${ac_cv_prog_cc_c89+:} false
; then :
3661 $as_echo_n "(cached) " >&6
3663 ac_cv_prog_cc_c89
=no
3665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3671 struct buf { int x; };
3672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3673 static char *e (p, i)
3679 static char *f (char * (*g) (char **, int), char **p, ...)
3684 s = g (p, va_arg (v,int));
3689 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3690 function prototypes and stuff, but not '\xHH' hex character constants.
3691 These don't provoke an error unfortunately, instead are silently treated
3692 as 'x'. The following induces an error, until -std is added to get
3693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3694 array size at least. It's necessary to write '\x00'==0 to get something
3695 that's true only with -std. */
3696 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3699 inside strings and character constants. */
3701 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703 int test (int i, double x);
3704 struct s1 {int (*f) (int a);};
3705 struct s2 {int (*f) (double a);};
3706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3717 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720 CC
="$ac_save_CC $ac_arg"
3721 if ac_fn_c_try_compile
"$LINENO"; then :
3722 ac_cv_prog_cc_c89
=$ac_arg
3724 rm -f core conftest.err conftest.
$ac_objext
3725 test "x$ac_cv_prog_cc_c89" != "xno" && break
3727 rm -f conftest.
$ac_ext
3732 case "x$ac_cv_prog_cc_c89" in
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3735 $as_echo "none needed" >&6; } ;;
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3738 $as_echo "unsupported" >&6; } ;;
3740 CC
="$CC $ac_cv_prog_cc_c89"
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3742 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3749 ac_cpp
='$CPP $CPPFLAGS'
3750 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3754 aros_host_def_cc
="$CC"
3755 case $ac_cv_prog_cc_stdc in #(
3757 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3760 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3761 if ${ac_cv_prog_cc_c99+:} false
; then :
3762 $as_echo_n "(cached) " >&6
3764 ac_cv_prog_cc_c99
=no
3766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3769 #include <stdbool.h>
3774 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3775 #define debug(...) fprintf (stderr, __VA_ARGS__)
3776 #define showlist(...) puts (#__VA_ARGS__)
3777 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3779 test_varargs_macros (void)
3784 debug ("X = %d\n", x);
3785 showlist (The first, second, and third items.);
3786 report (x>y, "x is %d but y is %d", x, y);
3789 // Check long long types.
3790 #define BIG64 18446744073709551615ull
3791 #define BIG32 4294967295ul
3792 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3794 your preprocessor is broken;
3798 your preprocessor is broken;
3800 static long long int bignum = -9223372036854775807LL;
3801 static unsigned long long int ubignum = BIG64;
3803 struct incomplete_array
3811 const wchar_t *name;
3815 typedef const char *ccp;
3818 test_restrict (ccp restrict text)
3820 // See if C++-style comments work.
3821 // Iterate through items via the restricted pointer.
3822 // Also check for declarations in for loops.
3823 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3828 // Check varargs and va_copy.
3830 test_varargs (const char *format, ...)
3833 va_start (args, format);
3835 va_copy (args_copy, args);
3846 str = va_arg (args_copy, const char *);
3849 number = va_arg (args_copy, int);
3852 fnumber = va_arg (args_copy, double);
3867 _Bool success = false;
3870 if (test_restrict ("String literal") == 0)
3872 char *restrict newvar = "Another string";
3875 test_varargs ("s, d' f .", "string", 65, 34.234);
3876 test_varargs_macros ();
3878 // Check flexible array members.
3879 struct incomplete_array *ia =
3880 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3882 for (int i = 0; i < ia->datasize; ++i)
3883 ia->data[i] = i * 1.234;
3885 // Check named initializers.
3886 struct named_init ni = {
3888 .name = L"Test wide string",
3889 .average = 543.34343,
3894 int dynamic_array[ni.number];
3895 dynamic_array[ni.number - 1] = 543;
3897 // work around unused variable warnings
3898 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3899 || dynamic_array[ni.number - 1] != 543);
3905 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3907 CC
="$ac_save_CC $ac_arg"
3908 if ac_fn_c_try_compile
"$LINENO"; then :
3909 ac_cv_prog_cc_c99
=$ac_arg
3911 rm -f core conftest.err conftest.
$ac_objext
3912 test "x$ac_cv_prog_cc_c99" != "xno" && break
3914 rm -f conftest.
$ac_ext
3919 case "x$ac_cv_prog_cc_c99" in
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3922 $as_echo "none needed" >&6; } ;;
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3925 $as_echo "unsupported" >&6; } ;;
3927 CC
="$CC $ac_cv_prog_cc_c99"
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3929 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3931 if test "x$ac_cv_prog_cc_c99" != xno
; then :
3932 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3935 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3936 if ${ac_cv_prog_cc_c89+:} false
; then :
3937 $as_echo_n "(cached) " >&6
3939 ac_cv_prog_cc_c89
=no
3941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3946 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3947 struct buf { int x; };
3948 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3949 static char *e (p, i)
3955 static char *f (char * (*g) (char **, int), char **p, ...)
3960 s = g (p, va_arg (v,int));
3965 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3966 function prototypes and stuff, but not '\xHH' hex character constants.
3967 These don't provoke an error unfortunately, instead are silently treated
3968 as 'x'. The following induces an error, until -std is added to get
3969 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3970 array size at least. It's necessary to write '\x00'==0 to get something
3971 that's true only with -std. */
3972 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3974 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3975 inside strings and character constants. */
3977 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3979 int test (int i, double x);
3980 struct s1 {int (*f) (int a);};
3981 struct s2 {int (*f) (double a);};
3982 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3988 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3993 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3994 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3996 CC
="$ac_save_CC $ac_arg"
3997 if ac_fn_c_try_compile
"$LINENO"; then :
3998 ac_cv_prog_cc_c89
=$ac_arg
4000 rm -f core conftest.err conftest.
$ac_objext
4001 test "x$ac_cv_prog_cc_c89" != "xno" && break
4003 rm -f conftest.
$ac_ext
4008 case "x$ac_cv_prog_cc_c89" in
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4011 $as_echo "none needed" >&6; } ;;
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4014 $as_echo "unsupported" >&6; } ;;
4016 CC
="$CC $ac_cv_prog_cc_c89"
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4018 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4020 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4021 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4023 ac_cv_prog_cc_stdc
=no
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4030 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4031 if ${ac_cv_prog_cc_stdc+:} false
; then :
4032 $as_echo_n "(cached) " >&6
4035 case $ac_cv_prog_cc_stdc in #(
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4038 $as_echo "unsupported" >&6; } ;; #(
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4041 $as_echo "none needed" >&6; } ;; #(
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4044 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4048 ac_cpp
='$CPP $CPPFLAGS'
4049 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4053 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4054 # On Suns, sometimes $CPP names a directory.
4055 if test -n "$CPP" && test -d "$CPP"; then
4058 if test -z "$CPP"; then
4059 if ${ac_cv_prog_CPP+:} false
; then :
4060 $as_echo_n "(cached) " >&6
4062 # Double quotes because CPP needs to be expanded
4063 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4066 for ac_c_preproc_warn_flag
in '' yes
4068 # Use a header file that comes with gcc, so configuring glibc
4069 # with a fresh cross-compiler works.
4070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071 # <limits.h> exists even on freestanding compilers.
4072 # On the NeXT, cc -E runs the code through the compiler's parser,
4073 # not just through cpp. "Syntax error" is here to catch this case.
4074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4077 # include <limits.h>
4079 # include <assert.h>
4083 if ac_fn_c_try_cpp
"$LINENO"; then :
4086 # Broken: fails on valid input.
4089 rm -f conftest.err conftest.i conftest.
$ac_ext
4091 # OK, works on sane cases. Now check whether nonexistent headers
4092 # can be detected and how.
4093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <ac_nonexistent.h>
4097 if ac_fn_c_try_cpp
"$LINENO"; then :
4098 # Broken: success on invalid input.
4101 # Passes both tests.
4105 rm -f conftest.err conftest.i conftest.
$ac_ext
4108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4109 rm -f conftest.i conftest.err conftest.
$ac_ext
4110 if $ac_preproc_ok; then :
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4123 $as_echo "$CPP" >&6; }
4125 for ac_c_preproc_warn_flag
in '' yes
4127 # Use a header file that comes with gcc, so configuring glibc
4128 # with a fresh cross-compiler works.
4129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4130 # <limits.h> exists even on freestanding compilers.
4131 # On the NeXT, cc -E runs the code through the compiler's parser,
4132 # not just through cpp. "Syntax error" is here to catch this case.
4133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4136 # include <limits.h>
4138 # include <assert.h>
4142 if ac_fn_c_try_cpp
"$LINENO"; then :
4145 # Broken: fails on valid input.
4148 rm -f conftest.err conftest.i conftest.
$ac_ext
4150 # OK, works on sane cases. Now check whether nonexistent headers
4151 # can be detected and how.
4152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154 #include <ac_nonexistent.h>
4156 if ac_fn_c_try_cpp
"$LINENO"; then :
4157 # Broken: success on invalid input.
4160 # Passes both tests.
4164 rm -f conftest.err conftest.i conftest.
$ac_ext
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.i conftest.err conftest.
$ac_ext
4169 if $ac_preproc_ok; then :
4172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4174 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4175 See \`config.log' for more details" "$LINENO" 5; }
4179 ac_cpp
='$CPP $CPPFLAGS'
4180 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4185 # Check for a compatible awk
4186 for ac_prog
in gawk nawk
4188 # Extract the first word of "$ac_prog", so it can be a program name with args.
4189 set dummy
$ac_prog; ac_word
=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if ${ac_cv_prog_AWK+:} false
; then :
4193 $as_echo_n "(cached) " >&6
4195 if test -n "$AWK"; then
4196 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4202 test -z "$as_dir" && as_dir
=.
4203 for ac_exec_ext
in '' $ac_executable_extensions; do
4204 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_AWK
="$ac_prog"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 if test -n "$AWK"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4218 $as_echo "$AWK" >&6; }
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4225 test -n "$AWK" && break
4229 if test "$AWK" = ""; then
4232 if test "$AWK" = "no"; then
4235 if test "$req_avail" = "no"; then
4236 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4238 # Extract the first word of "mmake", so it can be a program name with args.
4239 set dummy mmake
; ac_word
=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_MMAKE+:} false
; then :
4243 $as_echo_n "(cached) " >&6
4245 if test -n "$MMAKE"; then
4246 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir
=.
4253 for ac_exec_ext
in '' $ac_executable_extensions; do
4254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_MMAKE
="mmake "
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 MMAKE
=$ac_cv_prog_MMAKE
4266 if test -n "$MMAKE"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4268 $as_echo "$MMAKE" >&6; }
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4276 # Perform some default variable assignments. Note all of these will be
4277 # Regenerated from the script, so there is no need to cache them.
4279 aros_build_host
=$host
4280 aros_host_cpp
="$CPP"
4282 aros_host_cxx
="$CXX"
4283 if test "$GCC" = "yes"; then
4284 aros_gcc_ld
=`$CC -print-prog-name=ld`
4285 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4286 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if ${ac_cv_path_aros_host_ld+:} false
; then :
4290 $as_echo_n "(cached) " >&6
4292 case $aros_host_ld in
4294 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4298 for as_dir
in `dirname $aros_gcc_ld`
4301 test -z "$as_dir" && as_dir
=.
4302 for ac_exec_ext
in '' $ac_executable_extensions; do
4303 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4304 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 aros_host_ld
=$ac_cv_path_aros_host_ld
4316 if test -n "$aros_host_ld"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4318 $as_echo "$aros_host_ld" >&6; }
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4326 if test "$aros_host_ld" = ""; then
4327 # Extract the first word of "ld", so it can be a program name with args.
4328 set dummy ld
; ac_word
=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if ${ac_cv_path_aros_host_ld+:} false
; then :
4332 $as_echo_n "(cached) " >&6
4334 case $aros_host_ld in
4336 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir
=.
4344 for ac_exec_ext
in '' $ac_executable_extensions; do
4345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4346 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 aros_host_ld
=$ac_cv_path_aros_host_ld
4358 if test -n "$aros_host_ld"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4360 $as_echo "$aros_host_ld" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4369 if test "$aros_host_ld" = ""; then
4372 if test "$aros_host_ld" = "no"; then
4375 if test "$req_avail" = "no"; then
4376 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4378 aros_host_make
="make"
4379 aros_host_cflags
="$CFLAGS"
4380 aros_host_cxxflags
="$CXXFLAGS"
4381 aros_host_cppflags
="$CPPFLAGS"
4382 aros_host_ldflags
="$LDFLAGS"
4383 aros_host_debug
="-g -O0"
4384 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4385 aros_host_mkargs
="--no-print-directory"
4386 aros_host_exe_suffix
="$EXEEXT"
4387 aros_host_lib_suffix
=""
4389 # Ignore all compliance, AROS ROMs = 0
4390 # KickStart v1.0 = 30
4391 # KickStart v1.3 = 34
4392 # KickStart v2.0 = 37
4393 # KickStart v3.0 = 39
4394 # KickStart v3.1 = 40
4396 aros_amigaos_compliance
=0
4398 for ac_prog
in aclocal aclocal19 aclocal-1.9
4400 # Extract the first word of "$ac_prog", so it can be a program name with args.
4401 set dummy
$ac_prog; ac_word
=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4405 $as_echo_n "(cached) " >&6
4407 if test -n "$aros_host_aclocal"; then
4408 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4414 test -z "$as_dir" && as_dir
=.
4415 for ac_exec_ext
in '' $ac_executable_extensions; do
4416 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4417 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4428 if test -n "$aros_host_aclocal"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4430 $as_echo "$aros_host_aclocal" >&6; }
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4437 test -n "$aros_host_aclocal" && break
4440 for ac_prog
in autoconf autoconf259 autoconf253
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443 set dummy
$ac_prog; ac_word
=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4447 $as_echo_n "(cached) " >&6
4449 if test -n "$aros_host_autoconf"; then
4450 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir
=.
4457 for ac_exec_ext
in '' $ac_executable_extensions; do
4458 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4470 if test -n "$aros_host_autoconf"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4472 $as_echo "$aros_host_autoconf" >&6; }
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4479 test -n "$aros_host_autoconf" && break
4482 for ac_prog
in autoheader autoheader259 autoheader253
4484 # Extract the first word of "$ac_prog", so it can be a program name with args.
4485 set dummy
$ac_prog; ac_word
=$2
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4489 $as_echo_n "(cached) " >&6
4491 if test -n "$aros_host_autoheader"; then
4492 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4498 test -z "$as_dir" && as_dir
=.
4499 for ac_exec_ext
in '' $ac_executable_extensions; do
4500 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4512 if test -n "$aros_host_autoheader"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4514 $as_echo "$aros_host_autoheader" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4521 test -n "$aros_host_autoheader" && break
4524 for ac_prog
in automake automake19 automake-1.9
4526 # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy
$ac_prog; ac_word
=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4531 $as_echo_n "(cached) " >&6
4533 if test -n "$aros_host_automake"; then
4534 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir
=.
4541 for ac_exec_ext
in '' $ac_executable_extensions; do
4542 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_aros_host_automake
="$ac_prog"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 aros_host_automake
=$ac_cv_prog_aros_host_automake
4554 if test -n "$aros_host_automake"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4556 $as_echo "$aros_host_automake" >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4563 test -n "$aros_host_automake" && break
4568 if test "$aros_host_aclocal" = ""; then
4571 if test "$aros_host_aclocal" = "no"; then
4574 if test "$req_avail" = "no"; then
4575 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4578 if test "$aros_host_automake" = ""; then
4581 if test "$aros_host_automake" = "no"; then
4584 if test "$req_avail" = "no"; then
4585 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4588 case "$aros_host_cc" in
4590 aros_host_cc_pipe
=""
4593 aros_host_cc_pipe
="-pipe"
4596 aros_host_cc_pipe
=""
4599 aros_host_cc_pipe
=""
4603 aros_kernel_cc_includes
=""
4604 aros_target_cc_includes
=""
4607 # ----------------------------------------------------------------------------------------
4608 # Host-specific defaults
4610 # This is the main host configuration section. It is where the host
4611 # can change the values of any variables it needs to change. We do
4612 # not look at anything that compiles to the target yet, we'll get
4617 aros_host_arch
="aros"
4618 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4621 aros_host_cpu
="i386"
4624 aros_host_cpu
="x86_64"
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4631 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4632 aros_host_cpu
="$host_cpu"
4638 aros_host_arch
="linux"
4639 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4640 android_build_os
="linux-x86"
4641 android_tool
="android"
4642 default_android_sdk
="/opt/android-sdk-linux_x86"
4645 aros_host_cpu
="i386"
4648 aros_host_cpu
="x86_64"
4651 aros_host_cpu
="m68k"
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4661 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4662 aros_host_cpu
="$host_cpu"
4668 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4669 aros_host_make
="gmake"
4670 aros_host_arch
="freebsd"
4671 aros_host_cpu
="i386"
4673 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4677 aros_object_format
="elf_i386"
4681 aros_object_format
="elf_i386_fbsd"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4689 $as_echo_n "checking for macOS SDK files... " >&6; }
4690 LOC
=$
( xcode-select
-p )
4691 if test $?
!= 0; then :
4692 as_fn_error $?
"XCode incorrectly configured!
4693 please run 'xcode-select --install' before
4694 re-running configure" "$LINENO" 5
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4697 $as_echo "$LOC" >&6; }
4698 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4699 aros_host_arch
="darwin"
4701 if [ -z ${SED+x} ]; then SED
="gsed"; fi
4702 android_build_os
="darwin-x86"
4703 android_tool
="android"
4704 default_android_sdk
="/android-sdk-mac_x86"
4707 aros_host_cpu
="i386"
4710 aros_host_cpu
="x86_64"
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4717 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4718 aros_host_cpu
="$host_cpu"
4722 aros_host_ldflags
="$aros_host_ldflags -liconv"
4727 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4728 aros_host_make
="gmake"
4729 aros_host_arch
="dragonfly"
4732 aros_host_cpu
="i386"
4735 aros_host_cpu
="x86_64"
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4739 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4740 aros_host_cpu
="$host_cpu"
4746 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4747 aros_host_make
="gmake"
4748 aros_host_arch
="netbsd"
4751 aros_host_cpu
="i386"
4754 aros_host_cpu
="m68k"
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4758 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4759 aros_host_cpu
="$host_cpu"
4762 aros_host_lib_suffix
=".0.0"
4766 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4767 aros_host_make
="gmake"
4768 aros_host_arch
="openbsd"
4771 aros_host_cpu
="i386"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4775 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4776 aros_host_cpu
="$host_cpu"
4782 aros_host_arch
="solaris"
4783 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4786 aros_host_cpu
="i386"
4789 aros_host_cpu
="sparc"
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4793 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4794 aros_host_cpu
="$host_cpu"
4800 aros_host_arch
="morphos"
4806 aros_host_arch
="amiga"
4812 TOUCH
="/gg/bin/touch"
4815 aros_host_cpu
="m68k"
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4822 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4823 aros_host_cpu
="$host_cpu"
4829 aros_host_arch
="cygwin"
4830 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4832 android_build_os
="windows"
4833 android_tool
="android.bat"
4834 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4838 aros_host_cpu
="i386"
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4842 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4843 aros_host_cpu
="$host_cpu"
4849 aros_host_arch
="mingw32"
4850 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4852 android_build_os
="windows"
4853 android_tool
="android.bat"
4854 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4856 libpng_libextra
="-lws2_32"
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4862 $as_echo_n "checking for Windows native gcc target... " >&6; }
4863 host_cpu
=`gcc -dumpmachine`
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4865 $as_echo "$host_cpu" >&6; }
4872 aros_host_cpu
="i386"
4876 aros_host_cpu
="i386"
4880 aros_host_cpu
="x86_64"
4881 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4886 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4887 aros_host_cpu
="$host_cpu"
4892 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4896 # Extract the first word of "ar", so it can be a program name with args.
4897 set dummy
ar; ac_word
=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_prog_aros_host_ar+:} false
; then :
4901 $as_echo_n "(cached) " >&6
4903 if test -n "$aros_host_ar"; then
4904 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir
=.
4911 for ac_exec_ext
in '' $ac_executable_extensions; do
4912 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_aros_host_ar
="ar cr"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 aros_host_ar
=$ac_cv_prog_aros_host_ar
4924 if test -n "$aros_host_ar"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4926 $as_echo "$aros_host_ar" >&6; }
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4934 if test "$aros_host_ar" = ""; then
4937 if test "$aros_host_ar" = "no"; then
4940 if test "$req_avail" = "no"; then
4941 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4943 # Extract the first word of "ranlib", so it can be a program name with args.
4944 set dummy ranlib
; ac_word
=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if ${ac_cv_prog_aros_host_ranlib+:} false
; then :
4948 $as_echo_n "(cached) " >&6
4950 if test -n "$aros_host_ranlib"; then
4951 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4957 test -z "$as_dir" && as_dir
=.
4958 for ac_exec_ext
in '' $ac_executable_extensions; do
4959 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4960 ac_cv_prog_aros_host_ranlib
="ranlib "
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4971 if test -n "$aros_host_ranlib"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4973 $as_echo "$aros_host_ranlib" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4981 if test "$aros_host_ranlib" = ""; then
4984 if test "$aros_host_ranlib" = "no"; then
4987 if test "$req_avail" = "no"; then
4988 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4990 # Extract the first word of "strip", so it can be a program name with args.
4991 set dummy strip
; ac_word
=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if ${ac_cv_prog_aros_host_strip+:} false
; then :
4995 $as_echo_n "(cached) " >&6
4997 if test -n "$aros_host_strip"; then
4998 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
5000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir
=.
5005 for ac_exec_ext
in '' $ac_executable_extensions; do
5006 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5007 ac_cv_prog_aros_host_strip
="strip "
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 aros_host_strip
=$ac_cv_prog_aros_host_strip
5018 if test -n "$aros_host_strip"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5020 $as_echo "$aros_host_strip" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5028 if test "$aros_host_strip" = ""; then
5031 if test "$aros_host_strip" = "no"; then
5034 if test "$req_avail" = "no"; then
5035 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5038 # Extract the first word of "rm", so it can be a program name with args.
5039 set dummy
rm; ac_word
=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if ${ac_cv_prog_RM+:} false
; then :
5043 $as_echo_n "(cached) " >&6
5045 if test -n "$RM"; then
5046 ac_cv_prog_RM
="$RM" # Let the user override the test.
5048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5052 test -z "$as_dir" && as_dir
=.
5053 for ac_exec_ext
in '' $ac_executable_extensions; do
5054 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5055 ac_cv_prog_RM
="rm -rf"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 if test -n "$RM"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5068 $as_echo "$RM" >&6; }
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5076 if test "$RM" = ""; then
5079 if test "$RM" = "no"; then
5082 if test "$req_avail" = "no"; then
5083 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5085 # Extract the first word of "cp", so it can be a program name with args.
5086 set dummy
cp; ac_word
=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_CP+:} false
; then :
5090 $as_echo_n "(cached) " >&6
5092 if test -n "$CP"; then
5093 ac_cv_prog_CP
="$CP" # Let the user override the test.
5095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5099 test -z "$as_dir" && as_dir
=.
5100 for ac_exec_ext
in '' $ac_executable_extensions; do
5101 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 if test -n "$CP"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5115 $as_echo "$CP" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5123 if test "$CP" = ""; then
5126 if test "$CP" = "no"; then
5129 if test "$req_avail" = "no"; then
5130 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5132 # Extract the first word of "mv", so it can be a program name with args.
5133 set dummy
mv; ac_word
=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if ${ac_cv_prog_MV+:} false
; then :
5137 $as_echo_n "(cached) " >&6
5139 if test -n "$MV"; then
5140 ac_cv_prog_MV
="$MV" # Let the user override the test.
5142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir
=.
5147 for ac_exec_ext
in '' $ac_executable_extensions; do
5148 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 if test -n "$MV"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5162 $as_echo "$MV" >&6; }
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5170 if test "$MV" = ""; then
5173 if test "$MV" = "no"; then
5176 if test "$req_avail" = "no"; then
5177 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5179 # Extract the first word of "echo", so it can be a program name with args.
5180 set dummy
echo; ac_word
=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_prog_ECHO+:} false
; then :
5184 $as_echo_n "(cached) " >&6
5186 if test -n "$ECHO"; then
5187 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir
=.
5194 for ac_exec_ext
in '' $ac_executable_extensions; do
5195 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_ECHO
="echo "
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 ECHO
=$ac_cv_prog_ECHO
5207 if test -n "$ECHO"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5209 $as_echo "$ECHO" >&6; }
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5217 if test "$ECHO" = ""; then
5220 if test "$ECHO" = "no"; then
5223 if test "$req_avail" = "no"; then
5224 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5226 # Extract the first word of "mkdir", so it can be a program name with args.
5227 set dummy mkdir
; ac_word
=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_MKDIR+:} false
; then :
5231 $as_echo_n "(cached) " >&6
5233 if test -n "$MKDIR"; then
5234 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir
=.
5241 for ac_exec_ext
in '' $ac_executable_extensions; do
5242 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_prog_MKDIR
="mkdir -p"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 MKDIR
=$ac_cv_prog_MKDIR
5254 if test -n "$MKDIR"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5256 $as_echo "$MKDIR" >&6; }
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5264 if test "$MKDIR" = ""; then
5267 if test "$MKDIR" = "no"; then
5270 if test "$req_avail" = "no"; then
5271 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5273 # Extract the first word of "touch", so it can be a program name with args.
5274 set dummy
touch; ac_word
=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_TOUCH+:} false
; then :
5278 $as_echo_n "(cached) " >&6
5280 if test -n "$TOUCH"; then
5281 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir
=.
5288 for ac_exec_ext
in '' $ac_executable_extensions; do
5289 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_prog_TOUCH
="touch "
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 TOUCH
=$ac_cv_prog_TOUCH
5301 if test -n "$TOUCH"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5303 $as_echo "$TOUCH" >&6; }
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5311 if test "$TOUCH" = ""; then
5314 if test "$TOUCH" = "no"; then
5317 if test "$req_avail" = "no"; then
5318 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5320 # Extract the first word of "sort", so it can be a program name with args.
5321 set dummy
sort; ac_word
=$2
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if ${ac_cv_prog_SORT+:} false
; then :
5325 $as_echo_n "(cached) " >&6
5327 if test -n "$SORT"; then
5328 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5334 test -z "$as_dir" && as_dir
=.
5335 for ac_exec_ext
in '' $ac_executable_extensions; do
5336 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_prog_SORT
="sort "
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 SORT
=$ac_cv_prog_SORT
5348 if test -n "$SORT"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5350 $as_echo "$SORT" >&6; }
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5358 if test "$SORT" = ""; then
5361 if test "$SORT" = "no"; then
5364 if test "$req_avail" = "no"; then
5365 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5367 # Extract the first word of "uniq", so it can be a program name with args.
5368 set dummy
uniq; ac_word
=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_prog_UNIQ+:} false
; then :
5372 $as_echo_n "(cached) " >&6
5374 if test -n "$UNIQ"; then
5375 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5381 test -z "$as_dir" && as_dir
=.
5382 for ac_exec_ext
in '' $ac_executable_extensions; do
5383 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_UNIQ
="uniq "
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 UNIQ
=$ac_cv_prog_UNIQ
5395 if test -n "$UNIQ"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5397 $as_echo "$UNIQ" >&6; }
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5405 if test "$UNIQ" = ""; then
5408 if test "$UNIQ" = "no"; then
5411 if test "$req_avail" = "no"; then
5412 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5414 # Extract the first word of "true", so it can be a program name with args.
5415 set dummy true
; ac_word
=$2
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if ${ac_cv_prog_NOP+:} false
; then :
5419 $as_echo_n "(cached) " >&6
5421 if test -n "$NOP"; then
5422 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5428 test -z "$as_dir" && as_dir
=.
5429 for ac_exec_ext
in '' $ac_executable_extensions; do
5430 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5431 ac_cv_prog_NOP
="true "
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 if test -n "$NOP"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5444 $as_echo "$NOP" >&6; }
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5452 if test "$NOP" = ""; then
5455 if test "$NOP" = "no"; then
5458 if test "$req_avail" = "no"; then
5459 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5461 # Extract the first word of "cat", so it can be a program name with args.
5462 set dummy
cat; ac_word
=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if ${ac_cv_prog_CAT+:} false
; then :
5466 $as_echo_n "(cached) " >&6
5468 if test -n "$CAT"; then
5469 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5475 test -z "$as_dir" && as_dir
=.
5476 for ac_exec_ext
in '' $ac_executable_extensions; do
5477 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_CAT
="cat "
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 if test -n "$CAT"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5491 $as_echo "$CAT" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5499 if test "$CAT" = ""; then
5502 if test "$CAT" = "no"; then
5505 if test "$req_avail" = "no"; then
5506 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5508 # Extract the first word of "bison", so it can be a program name with args.
5509 set dummy bison
; ac_word
=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if ${ac_cv_prog_BISON+:} false
; then :
5513 $as_echo_n "(cached) " >&6
5515 if test -n "$BISON"; then
5516 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5522 test -z "$as_dir" && as_dir
=.
5523 for ac_exec_ext
in '' $ac_executable_extensions; do
5524 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5525 ac_cv_prog_BISON
="bison "
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 BISON
=$ac_cv_prog_BISON
5536 if test -n "$BISON"; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5538 $as_echo "$BISON" >&6; }
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 $as_echo "no" >&6; }
5546 if test "$BISON" = ""; then
5549 if test "$BISON" = "no"; then
5552 if test "$req_avail" = "no"; then
5553 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5555 # Extract the first word of "flex", so it can be a program name with args.
5556 set dummy flex
; ac_word
=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_prog_FLEX+:} false
; then :
5560 $as_echo_n "(cached) " >&6
5562 if test -n "$FLEX"; then
5563 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir
=.
5570 for ac_exec_ext
in '' $ac_executable_extensions; do
5571 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5572 ac_cv_prog_FLEX
="flex "
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 FLEX
=$ac_cv_prog_FLEX
5583 if test -n "$FLEX"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5585 $as_echo "$FLEX" >&6; }
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5593 if test "$FLEX" = ""; then
5596 if test "$FLEX" = "no"; then
5599 if test "$req_avail" = "no"; then
5600 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5602 # Extract the first word of "pngtopnm", so it can be a program name with args.
5603 set dummy pngtopnm
; ac_word
=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5607 $as_echo_n "(cached) " >&6
5609 if test -n "$PNGTOPNM"; then
5610 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir
=.
5617 for ac_exec_ext
in '' $ac_executable_extensions; do
5618 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_PNGTOPNM
="pngtopnm "
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5630 if test -n "$PNGTOPNM"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5632 $as_echo "$PNGTOPNM" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5640 if test "$PNGTOPNM" = ""; then
5643 if test "$PNGTOPNM" = "no"; then
5646 if test "$req_avail" = "no"; then
5647 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5649 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5650 set dummy ppmtoilbm
; ac_word
=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5654 $as_echo_n "(cached) " >&6
5656 if test -n "$PPMTOILBM"; then
5657 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5663 test -z "$as_dir" && as_dir
=.
5664 for ac_exec_ext
in '' $ac_executable_extensions; do
5665 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5666 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5677 if test -n "$PPMTOILBM"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5679 $as_echo "$PPMTOILBM" >&6; }
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5687 if test "$PPMTOILBM" = ""; then
5690 if test "$PPMTOILBM" = "no"; then
5693 if test "$req_avail" = "no"; then
5694 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5696 # Extract the first word of "sed", so it can be a program name with args.
5697 set dummy
sed; ac_word
=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_prog_SED+:} false
; then :
5701 $as_echo_n "(cached) " >&6
5703 if test -n "$SED"; then
5704 ac_cv_prog_SED
="$SED" # Let the user override the test.
5706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5710 test -z "$as_dir" && as_dir
=.
5711 for ac_exec_ext
in '' $ac_executable_extensions; do
5712 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_SED
="sed "
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 if test -n "$SED"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5726 $as_echo "$SED" >&6; }
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5734 if test "$SED" = ""; then
5737 if test "$SED" = "no"; then
5740 if test "$req_avail" = "no"; then
5741 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5743 # Extract the first word of "chmod", so it can be a program name with args.
5744 set dummy
chmod; ac_word
=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if ${ac_cv_prog_CHMOD+:} false
; then :
5748 $as_echo_n "(cached) " >&6
5750 if test -n "$CHMOD"; then
5751 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir
=.
5758 for ac_exec_ext
in '' $ac_executable_extensions; do
5759 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_CHMOD
="chmod "
5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 CHMOD
=$ac_cv_prog_CHMOD
5771 if test -n "$CHMOD"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5773 $as_echo "$CHMOD" >&6; }
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5781 if test "$CHMOD" = ""; then
5784 if test "$CHMOD" = "no"; then
5787 if test "$req_avail" = "no"; then
5788 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5790 # Extract the first word of "patch", so it can be a program name with args.
5791 set dummy
patch; ac_word
=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_prog_PATCH+:} false
; then :
5795 $as_echo_n "(cached) " >&6
5797 if test -n "$PATCH"; then
5798 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5804 test -z "$as_dir" && as_dir
=.
5805 for ac_exec_ext
in '' $ac_executable_extensions; do
5806 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_PATCH
="patch "
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 PATCH
=$ac_cv_prog_PATCH
5818 if test -n "$PATCH"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5820 $as_echo "$PATCH" >&6; }
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5828 if test "$PATCH" = ""; then
5831 if test "$PATCH" = "no"; then
5834 if test "$req_avail" = "no"; then
5835 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5844 if test -n "$PYTHON"; then
5845 # If the user set $PYTHON, use it and don't search something else.
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5847 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5849 # split strings by '.' and convert to numeric. Append some zeros
5850 # because we need at least 4 digits for the hex conversion.
5851 # map returns an iterator in Python 3.0 and a list in 2.x
5852 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5854 # xrange is not present in Python 3.0 and range returns an iterator
5855 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5856 sys.exit(sys.hexversion < minverhex)"
5857 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5858 ($PYTHON -c "$prog") >&5 2>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; then :
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5863 $as_echo "yes" >&6; }
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 as_fn_error $?
"Python interpreter is too old" "$LINENO" 5
5869 am_display_PYTHON
=$PYTHON
5871 # Otherwise, try each interpreter until we find one that satisfies
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5874 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5875 if ${am_cv_pathless_PYTHON+:} false
; then :
5876 $as_echo_n "(cached) " >&6
5879 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
5880 test "$am_cv_pathless_PYTHON" = none
&& break
5882 # split strings by '.' and convert to numeric. Append some zeros
5883 # because we need at least 4 digits for the hex conversion.
5884 # map returns an iterator in Python 3.0 and a list in 2.x
5885 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5887 # xrange is not present in Python 3.0 and range returns an iterator
5888 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5889 sys.exit(sys.hexversion < minverhex)"
5890 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5891 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; then :
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5900 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5901 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5902 if test "$am_cv_pathless_PYTHON" = none
; then
5905 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5906 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_path_PYTHON+:} false
; then :
5910 $as_echo_n "(cached) " >&6
5914 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5921 test -z "$as_dir" && as_dir
=.
5922 for ac_exec_ext
in '' $ac_executable_extensions; do
5923 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5924 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 PYTHON
=$ac_cv_path_PYTHON
5936 if test -n "$PYTHON"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5938 $as_echo "$PYTHON" >&6; }
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5946 am_display_PYTHON
=$am_cv_pathless_PYTHON
5950 if test "$PYTHON" = :; then
5951 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5956 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5957 if ${am_cv_python_version+:} false
; then :
5958 $as_echo_n "(cached) " >&6
5960 am_cv_python_version
=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5963 $as_echo "$am_cv_python_version" >&6; }
5964 PYTHON_VERSION
=$am_cv_python_version
5968 PYTHON_PREFIX
='${prefix}'
5970 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5975 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5976 if ${am_cv_python_platform+:} false
; then :
5977 $as_echo_n "(cached) " >&6
5979 am_cv_python_platform
=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5982 $as_echo "$am_cv_python_platform" >&6; }
5983 PYTHON_PLATFORM
=$am_cv_python_platform
5986 # Just factor out some code duplication.
5987 am_python_setup_sysconfig
="\
5989 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5990 # with python 3.x. See automake bug#10227.
5994 can_use_sysconfig = 0
5996 can_use_sysconfig = 1
5997 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5998 # <https://github.com/pypa/virtualenv/issues/118>
6000 from platform import python_implementation
6001 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6002 can_use_sysconfig = 0
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6008 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6009 if ${am_cv_python_pythondir+:} false
; then :
6010 $as_echo_n "(cached) " >&6
6012 if test "x$prefix" = xNONE
6014 am_py_prefix
=$ac_default_prefix
6016 am_py_prefix
=$prefix
6018 am_cv_python_pythondir
=`$PYTHON -c "
6019 $am_python_setup_sysconfig
6020 if can_use_sysconfig:
6021 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6023 from distutils import sysconfig
6024 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6025 sys.stdout.write(sitedir)"`
6026 case $am_cv_python_pythondir in
6028 am__strip_prefix
=`echo "$am_py_prefix" | sed 's|.|.|g'`
6029 am_cv_python_pythondir
=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6032 case $am_py_prefix in
6035 am_cv_python_pythondir
=$PYTHON_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6043 $as_echo "$am_cv_python_pythondir" >&6; }
6044 pythondir
=$am_cv_python_pythondir
6048 pkgpythondir
=\
${pythondir}/$PACKAGE
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6052 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6053 if ${am_cv_python_pyexecdir+:} false
; then :
6054 $as_echo_n "(cached) " >&6
6056 if test "x$exec_prefix" = xNONE
6058 am_py_exec_prefix
=$am_py_prefix
6060 am_py_exec_prefix
=$exec_prefix
6062 am_cv_python_pyexecdir
=`$PYTHON -c "
6063 $am_python_setup_sysconfig
6064 if can_use_sysconfig:
6065 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6067 from distutils import sysconfig
6068 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6069 sys.stdout.write(sitedir)"`
6070 case $am_cv_python_pyexecdir in
6071 $am_py_exec_prefix*)
6072 am__strip_prefix
=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6073 am_cv_python_pyexecdir
=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6076 case $am_py_exec_prefix in
6079 am_cv_python_pyexecdir
=$PYTHON_EXEC_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6087 $as_echo "$am_cv_python_pyexecdir" >&6; }
6088 pyexecdir
=$am_cv_python_pyexecdir
6092 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
6100 # Check whether --enable-libpng-config was given.
6101 if test "${enable_libpng_config+set}" = set; then :
6102 enableval
=$enable_libpng_config;
6105 if test "$enable_libpng_config" != "no"; then
6106 # Extract the first word of "libpng-config", so it can be a program name with args.
6107 set dummy libpng-config
; ac_word
=$2
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109 $as_echo_n "checking for $ac_word... " >&6; }
6110 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false
; then :
6111 $as_echo_n "(cached) " >&6
6113 if test -n "$arosconfig_use_libpngconfig"; then
6114 ac_cv_prog_arosconfig_use_libpngconfig
="$arosconfig_use_libpngconfig" # Let the user override the test.
6116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir
=.
6121 for ac_exec_ext
in '' $ac_executable_extensions; do
6122 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6123 ac_cv_prog_arosconfig_use_libpngconfig
="yes"
6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig
="no"
6134 arosconfig_use_libpngconfig
=$ac_cv_prog_arosconfig_use_libpngconfig
6135 if test -n "$arosconfig_use_libpngconfig"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6137 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6145 if test "$arosconfig_use_libpngconfig" = "yes"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6147 $as_echo_n "checking libpng-config library... " >&6; }
6148 libpng_incdir
="`libpng-config --cflags`"
6149 libpng_libextra
="$libpng_libextra `libpng-config --ldflags`"
6150 libpng
="`libpng-config --libs`"
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6152 $as_echo "$libpng" >&6; }
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6156 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6157 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6158 $as_echo_n "(cached) " >&6
6160 ac_check_lib_save_LIBS
=$LIBS
6162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6165 /* Override any GCC internal prototype to avoid an error.
6166 Use char because int might match the return type of a GCC
6167 builtin and then its argument prototype would still apply. */
6171 char png_read_png ();
6175 return png_read_png ();
6180 if ac_fn_c_try_link
"$LINENO"; then :
6181 ac_cv_lib_png_png_read_png
=yes
6183 ac_cv_lib_png_png_read_png
=no
6185 rm -f core conftest.err conftest.
$ac_objext \
6186 conftest
$ac_exeext conftest.
$ac_ext
6187 LIBS
=$ac_check_lib_save_LIBS
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6190 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6191 if test "x$ac_cv_lib_png_png_read_png" = xyes
; then :
6197 if test "$libpng_libextra" != ""; then
6198 if test "$libpng" != "no"; then
6199 libpng_libextra
="$libpng_libextra $libpng"
6204 if test "$libpng" = ""; then
6207 if test "$libpng" = "no"; then
6210 if test "$req_avail" = "no"; then
6211 as_fn_error $?
"libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6227 # Check for some includes for the X11 HIDD and the kernel
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6231 if ${ac_cv_path_GREP+:} false
; then :
6232 $as_echo_n "(cached) " >&6
6234 if test -z "$GREP"; then
6235 ac_path_GREP_found
=false
6236 # Loop through the user's path and test for each of PROGNAME-LIST
6237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6238 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6241 test -z "$as_dir" && as_dir
=.
6242 for ac_prog
in grep ggrep
; do
6243 for ac_exec_ext
in '' $ac_executable_extensions; do
6244 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6245 as_fn_executable_p
"$ac_path_GREP" ||
continue
6246 # Check for GNU ac_path_GREP and select it if it is found.
6247 # Check for GNU $ac_path_GREP
6248 case `"$ac_path_GREP" --version 2>&1` in
6250 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6253 $as_echo_n 0123456789 >"conftest.in"
6256 cat "conftest.in" "conftest.in" >"conftest.tmp"
6257 mv "conftest.tmp" "conftest.in"
6258 cp "conftest.in" "conftest.nl"
6259 $as_echo 'GREP' >> "conftest.nl"
6260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6261 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6262 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6264 # Best one so far, save it but keep looking for a better one
6265 ac_cv_path_GREP
="$ac_path_GREP"
6266 ac_path_GREP_max
=$ac_count
6268 # 10*(2^10) chars as input seems more than enough
6269 test $ac_count -gt 10 && break
6271 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6274 $ac_path_GREP_found && break 3
6279 if test -z "$ac_cv_path_GREP"; then
6280 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6283 ac_cv_path_GREP
=$GREP
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6288 $as_echo "$ac_cv_path_GREP" >&6; }
6289 GREP
="$ac_cv_path_GREP"
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6293 $as_echo_n "checking for egrep... " >&6; }
6294 if ${ac_cv_path_EGREP+:} false
; then :
6295 $as_echo_n "(cached) " >&6
6297 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6298 then ac_cv_path_EGREP
="$GREP -E"
6300 if test -z "$EGREP"; then
6301 ac_path_EGREP_found
=false
6302 # Loop through the user's path and test for each of PROGNAME-LIST
6303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6304 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6307 test -z "$as_dir" && as_dir
=.
6308 for ac_prog
in egrep; do
6309 for ac_exec_ext
in '' $ac_executable_extensions; do
6310 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6311 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6312 # Check for GNU ac_path_EGREP and select it if it is found.
6313 # Check for GNU $ac_path_EGREP
6314 case `"$ac_path_EGREP" --version 2>&1` in
6316 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6319 $as_echo_n 0123456789 >"conftest.in"
6322 cat "conftest.in" "conftest.in" >"conftest.tmp"
6323 mv "conftest.tmp" "conftest.in"
6324 cp "conftest.in" "conftest.nl"
6325 $as_echo 'EGREP' >> "conftest.nl"
6326 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6327 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6328 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6329 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6330 # Best one so far, save it but keep looking for a better one
6331 ac_cv_path_EGREP
="$ac_path_EGREP"
6332 ac_path_EGREP_max
=$ac_count
6334 # 10*(2^10) chars as input seems more than enough
6335 test $ac_count -gt 10 && break
6337 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6340 $ac_path_EGREP_found && break 3
6345 if test -z "$ac_cv_path_EGREP"; then
6346 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6349 ac_cv_path_EGREP
=$EGREP
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6355 $as_echo "$ac_cv_path_EGREP" >&6; }
6356 EGREP
="$ac_cv_path_EGREP"
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6360 $as_echo_n "checking for ANSI C header files... " >&6; }
6361 if ${ac_cv_header_stdc+:} false
; then :
6362 $as_echo_n "(cached) " >&6
6364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6379 if ac_fn_c_try_compile
"$LINENO"; then :
6380 ac_cv_header_stdc
=yes
6382 ac_cv_header_stdc
=no
6384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6386 if test $ac_cv_header_stdc = yes; then
6387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6394 $EGREP "memchr" >/dev
/null
2>&1; then :
6397 ac_cv_header_stdc
=no
6403 if test $ac_cv_header_stdc = yes; then
6404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6411 $EGREP "free" >/dev
/null
2>&1; then :
6414 ac_cv_header_stdc
=no
6420 if test $ac_cv_header_stdc = yes; then
6421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6422 if test "$cross_compiling" = yes; then :
6425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6429 #if ((' ' & 0x0FF) == 0x020)
6430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6433 # define ISLOWER(c) \
6434 (('a' <= (c) && (c) <= 'i') \
6435 || ('j' <= (c) && (c) <= 'r') \
6436 || ('s' <= (c) && (c) <= 'z'))
6437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6445 for (i = 0; i < 256; i++)
6446 if (XOR (islower (i), ISLOWER (i))
6447 || toupper (i) != TOUPPER (i))
6452 if ac_fn_c_try_run
"$LINENO"; then :
6455 ac_cv_header_stdc
=no
6457 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6458 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6464 $as_echo "$ac_cv_header_stdc" >&6; }
6465 if test $ac_cv_header_stdc = yes; then
6467 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6471 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6472 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6473 inttypes.h stdint.h unistd.h
6475 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6476 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6478 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6479 cat >>confdefs.h
<<_ACEOF
6480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6488 for ac_header
in sys
/ipc.h sys
/shm.h \
6489 sys
/mmap.h sys
/mman.h sysexits.h \
6490 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6493 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6494 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6495 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6496 cat >>confdefs.h
<<_ACEOF
6497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505 for ac_header
in sys
/mount.h
6507 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6509 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6510 cat >>confdefs.h
<<_ACEOF
6511 #define HAVE_SYS_MOUNT_H 1
6520 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6521 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6523 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6524 if eval \
${$as_ac_Header+:} false
; then :
6525 $as_echo_n "(cached) " >&6
6527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 #include <sys/types.h>
6541 if ac_fn_c_try_compile
"$LINENO"; then :
6542 eval "$as_ac_Header=yes"
6544 eval "$as_ac_Header=no"
6546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6548 eval ac_res
=\$
$as_ac_Header
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6552 cat >>confdefs.h
<<_ACEOF
6553 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6556 ac_header_dirent
=$ac_hdr; break
6560 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6561 if test $ac_header_dirent = dirent.h
; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6563 $as_echo_n "checking for library containing opendir... " >&6; }
6564 if ${ac_cv_search_opendir+:} false
; then :
6565 $as_echo_n "(cached) " >&6
6567 ac_func_search_save_LIBS
=$LIBS
6568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6571 /* Override any GCC internal prototype to avoid an error.
6572 Use char because int might match the return type of a GCC
6573 builtin and then its argument prototype would still apply. */
6586 for ac_lib
in '' dir
; do
6587 if test -z "$ac_lib"; then
6588 ac_res
="none required"
6591 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6593 if ac_fn_c_try_link
"$LINENO"; then :
6594 ac_cv_search_opendir
=$ac_res
6596 rm -f core conftest.err conftest.
$ac_objext \
6598 if ${ac_cv_search_opendir+:} false
; then :
6602 if ${ac_cv_search_opendir+:} false
; then :
6605 ac_cv_search_opendir
=no
6608 LIBS
=$ac_func_search_save_LIBS
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6611 $as_echo "$ac_cv_search_opendir" >&6; }
6612 ac_res
=$ac_cv_search_opendir
6613 if test "$ac_res" != no
; then :
6614 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6620 $as_echo_n "checking for library containing opendir... " >&6; }
6621 if ${ac_cv_search_opendir+:} false
; then :
6622 $as_echo_n "(cached) " >&6
6624 ac_func_search_save_LIBS
=$LIBS
6625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6628 /* Override any GCC internal prototype to avoid an error.
6629 Use char because int might match the return type of a GCC
6630 builtin and then its argument prototype would still apply. */
6643 for ac_lib
in '' x
; do
6644 if test -z "$ac_lib"; then
6645 ac_res
="none required"
6648 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6650 if ac_fn_c_try_link
"$LINENO"; then :
6651 ac_cv_search_opendir
=$ac_res
6653 rm -f core conftest.err conftest.
$ac_objext \
6655 if ${ac_cv_search_opendir+:} false
; then :
6659 if ${ac_cv_search_opendir+:} false
; then :
6662 ac_cv_search_opendir
=no
6665 LIBS
=$ac_func_search_save_LIBS
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6668 $as_echo "$ac_cv_search_opendir" >&6; }
6669 ac_res
=$ac_cv_search_opendir
6670 if test "$ac_res" != no
; then :
6671 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6678 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6679 if ${ac_cv_header_stat_broken+:} false
; then :
6680 $as_echo_n "(cached) " >&6
6682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 #include <sys/types.h>
6685 #include <sys/stat.h>
6687 #if defined S_ISBLK && defined S_IFDIR
6688 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6691 #if defined S_ISBLK && defined S_IFCHR
6692 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6695 #if defined S_ISLNK && defined S_IFREG
6696 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6699 #if defined S_ISSOCK && defined S_IFREG
6700 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6704 if ac_fn_c_try_compile
"$LINENO"; then :
6705 ac_cv_header_stat_broken
=no
6707 ac_cv_header_stat_broken
=yes
6709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6712 $as_echo "$ac_cv_header_stat_broken" >&6; }
6713 if test $ac_cv_header_stat_broken = yes; then
6715 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6720 $as_echo_n "checking for ANSI C header files... " >&6; }
6721 if ${ac_cv_header_stdc+:} false
; then :
6722 $as_echo_n "(cached) " >&6
6724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6739 if ac_fn_c_try_compile
"$LINENO"; then :
6740 ac_cv_header_stdc
=yes
6742 ac_cv_header_stdc
=no
6744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6746 if test $ac_cv_header_stdc = yes; then
6747 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6754 $EGREP "memchr" >/dev
/null
2>&1; then :
6757 ac_cv_header_stdc
=no
6763 if test $ac_cv_header_stdc = yes; then
6764 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6771 $EGREP "free" >/dev
/null
2>&1; then :
6774 ac_cv_header_stdc
=no
6780 if test $ac_cv_header_stdc = yes; then
6781 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6782 if test "$cross_compiling" = yes; then :
6785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6789 #if ((' ' & 0x0FF) == 0x020)
6790 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6791 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6793 # define ISLOWER(c) \
6794 (('a' <= (c) && (c) <= 'i') \
6795 || ('j' <= (c) && (c) <= 'r') \
6796 || ('s' <= (c) && (c) <= 'z'))
6797 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6800 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6805 for (i = 0; i < 256; i++)
6806 if (XOR (islower (i), ISLOWER (i))
6807 || toupper (i) != TOUPPER (i))
6812 if ac_fn_c_try_run
"$LINENO"; then :
6815 ac_cv_header_stdc
=no
6817 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6818 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6824 $as_echo "$ac_cv_header_stdc" >&6; }
6825 if test $ac_cv_header_stdc = yes; then
6827 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6832 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6833 if ${ac_cv_header_sys_wait_h+:} false
; then :
6834 $as_echo_n "(cached) " >&6
6836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 #include <sys/types.h>
6839 #include <sys/wait.h>
6841 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6844 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6852 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6857 if ac_fn_c_try_compile
"$LINENO"; then :
6858 ac_cv_header_sys_wait_h
=yes
6860 ac_cv_header_sys_wait_h
=no
6862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6865 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6866 if test $ac_cv_header_sys_wait_h = yes; then
6868 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6873 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6874 if ${ac_cv_header_time+:} false
; then :
6875 $as_echo_n "(cached) " >&6
6877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 #include <sys/types.h>
6880 #include <sys/time.h>
6886 if ((struct tm *) 0)
6892 if ac_fn_c_try_compile
"$LINENO"; then :
6893 ac_cv_header_time
=yes
6895 ac_cv_header_time
=no
6897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6900 $as_echo "$ac_cv_header_time" >&6; }
6901 if test $ac_cv_header_time = yes; then
6903 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6907 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6908 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
6910 cat >>confdefs.h
<<_ACEOF
6911 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6915 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6920 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6921 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
6923 cat >>confdefs.h
<<_ACEOF
6924 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6928 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6931 case " $LIBOBJS " in
6932 *" fileblocks.$ac_objext "* ) ;;
6933 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6940 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6941 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
6943 cat >>confdefs.h
<<_ACEOF
6944 #define HAVE_STRUCT_STAT_ST_RDEV 1
6948 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6954 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6955 if ${ac_cv_struct_tm+:} false
; then :
6956 $as_echo_n "(cached) " >&6
6958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6960 #include <sys/types.h>
6967 int *p = &tm.tm_sec;
6973 if ac_fn_c_try_compile
"$LINENO"; then :
6974 ac_cv_struct_tm
=time.h
6976 ac_cv_struct_tm
=sys
/time.h
6978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6981 $as_echo "$ac_cv_struct_tm" >&6; }
6982 if test $ac_cv_struct_tm = sys
/time.h
; then
6984 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6988 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6989 #include <$ac_cv_struct_tm>
6992 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
6994 cat >>confdefs.h
<<_ACEOF
6995 #define HAVE_STRUCT_TM_TM_ZONE 1
7001 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7003 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7006 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7008 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
7014 cat >>confdefs.h
<<_ACEOF
7015 #define HAVE_DECL_TZNAME $ac_have_decl
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7019 $as_echo_n "checking for tzname... " >&6; }
7020 if ${ac_cv_var_tzname+:} false
; then :
7021 $as_echo_n "(cached) " >&6
7023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7026 #if !HAVE_DECL_TZNAME
7027 extern char *tzname[];
7033 return tzname[0][0];
7038 if ac_fn_c_try_link
"$LINENO"; then :
7039 ac_cv_var_tzname
=yes
7043 rm -f core conftest.err conftest.
$ac_objext \
7044 conftest
$ac_exeext conftest.
$ac_ext
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7047 $as_echo "$ac_cv_var_tzname" >&6; }
7048 if test $ac_cv_var_tzname = yes; then
7050 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7055 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7056 if test "x$ac_cv_type_off_t" = xyes
; then :
7060 cat >>confdefs.h
<<_ACEOF
7061 #define off_t long int
7066 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7067 if test "x$ac_cv_type_pid_t" = xyes
; then :
7071 cat >>confdefs.h
<<_ACEOF
7077 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7078 if test "x$ac_cv_type_size_t" = xyes
; then :
7082 cat >>confdefs.h
<<_ACEOF
7083 #define size_t unsigned int
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7089 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7090 if ${ac_cv_type_uid_t+:} false
; then :
7091 $as_echo_n "(cached) " >&6
7093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095 #include <sys/types.h>
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 $EGREP "uid_t" >/dev
/null
2>&1; then :
7100 ac_cv_type_uid_t
=yes
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7108 $as_echo "$ac_cv_type_uid_t" >&6; }
7109 if test $ac_cv_type_uid_t = no
; then
7111 $as_echo "#define uid_t int" >>confdefs.h
7114 $as_echo "#define gid_t int" >>confdefs.h
7119 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7120 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7122 cat >>confdefs.h
<<_ACEOF
7123 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7130 # Look for some functions
7131 for ac_func
in getpagesize kqueue statfs statvfs \
7132 clone kse_create rfork_thread thr_create sa_register \
7133 getcontext makecontext setcontext sigaltstack swapcontext
7135 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7136 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7137 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7138 cat >>confdefs.h
<<_ACEOF
7139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7149 for ac_header
in $ac_header_list
7151 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7152 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7154 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7155 cat >>confdefs.h
<<_ACEOF
7156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7170 for ac_func
in getpagesize
7172 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7173 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7174 cat >>confdefs.h
<<_ACEOF
7175 #define HAVE_GETPAGESIZE 1
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7182 $as_echo_n "checking for working mmap... " >&6; }
7183 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7184 $as_echo_n "(cached) " >&6
7186 if test "$cross_compiling" = yes; then :
7187 ac_cv_func_mmap_fixed_mapped
=no
7189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 $ac_includes_default
7192 /* malloc might have been renamed as rpl_malloc. */
7195 /* Thanks to Mike Haertel and Jim Avera for this test.
7196 Here is a matrix of mmap possibilities:
7197 mmap private not fixed
7198 mmap private fixed at somewhere currently unmapped
7199 mmap private fixed at somewhere already mapped
7200 mmap shared not fixed
7201 mmap shared fixed at somewhere currently unmapped
7202 mmap shared fixed at somewhere already mapped
7203 For private mappings, we should verify that changes cannot be read()
7204 back from the file, nor mmap's back from the file at a different
7205 address. (There have been systems where private was not correctly
7206 implemented like the infamous i386 svr4.0, and systems where the
7207 VM page cache was not coherent with the file system buffer cache
7208 like early versions of FreeBSD and possibly contemporary NetBSD.)
7209 For shared mappings, we should conversely verify that changes get
7210 propagated back to all the places they're supposed to be.
7212 Grep wants private fixed already mapped.
7213 The main things grep needs to know about mmap are:
7214 * does it exist and is it safe to write into the mmap'd area
7215 * how to use it (BSD variants) */
7218 #include <sys/mman.h>
7220 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7224 /* This mess was copied from the GNU getpagesize.h. */
7225 #ifndef HAVE_GETPAGESIZE
7226 # ifdef _SC_PAGESIZE
7227 # define getpagesize() sysconf(_SC_PAGESIZE)
7228 # else /* no _SC_PAGESIZE */
7229 # ifdef HAVE_SYS_PARAM_H
7230 # include <sys/param.h>
7231 # ifdef EXEC_PAGESIZE
7232 # define getpagesize() EXEC_PAGESIZE
7233 # else /* no EXEC_PAGESIZE */
7235 # define getpagesize() NBPG * CLSIZE
7238 # endif /* no CLSIZE */
7239 # else /* no NBPG */
7241 # define getpagesize() NBPC
7242 # else /* no NBPC */
7244 # define getpagesize() PAGESIZE
7245 # endif /* PAGESIZE */
7246 # endif /* no NBPC */
7247 # endif /* no NBPG */
7248 # endif /* no EXEC_PAGESIZE */
7249 # else /* no HAVE_SYS_PARAM_H */
7250 # define getpagesize() 8192 /* punt totally */
7251 # endif /* no HAVE_SYS_PARAM_H */
7252 # endif /* no _SC_PAGESIZE */
7254 #endif /* no HAVE_GETPAGESIZE */
7259 char *data, *data2, *data3;
7264 pagesize = getpagesize ();
7266 /* First, make a file with some known garbage in it. */
7267 data = (char *) malloc (pagesize);
7270 for (i = 0; i < pagesize; ++i)
7271 *(data + i) = rand ();
7273 fd = creat ("conftest.mmap", 0600);
7276 if (write (fd, data, pagesize) != pagesize)
7280 /* Next, check that the tail of a page is zero-filled. File must have
7281 non-zero length, otherwise we risk SIGBUS for entire page. */
7282 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7286 if (write (fd2, cdata2, 1) != 1)
7288 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7289 if (data2 == MAP_FAILED)
7291 for (i = 0; i < pagesize; ++i)
7295 if (munmap (data2, pagesize))
7298 /* Next, try to mmap the file at a fixed address which already has
7299 something else allocated at it. If we can, also make sure that
7300 we see the same garbage. */
7301 fd = open ("conftest.mmap", O_RDWR);
7304 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7305 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7307 for (i = 0; i < pagesize; ++i)
7308 if (*(data + i) != *(data2 + i))
7311 /* Finally, make sure that changes to the mapped area do not
7312 percolate back to the file as seen by read(). (This is a bug on
7313 some variants of i386 svr4.0.) */
7314 for (i = 0; i < pagesize; ++i)
7315 *(data2 + i) = *(data2 + i) + 1;
7316 data3 = (char *) malloc (pagesize);
7319 if (read (fd, data3, pagesize) != pagesize)
7321 for (i = 0; i < pagesize; ++i)
7322 if (*(data + i) != *(data3 + i))
7328 if ac_fn_c_try_run
"$LINENO"; then :
7329 ac_cv_func_mmap_fixed_mapped
=yes
7331 ac_cv_func_mmap_fixed_mapped
=no
7333 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7334 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7339 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7340 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7342 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7345 rm -f conftest.mmap conftest.txt
7348 #-----------------------------------------------------------------------------
7351 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7352 # it switched on by default, and we use the host compiler, so it compiles AROS
7353 # code with this enabled resulting in link failures as we don't have support
7356 # We use two methods to disable it. For the host compiler (used to compile
7357 # some hosted modules), we test to see if the compiler supports stack
7358 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7359 # work on all platforms.
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7363 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7364 save_cflags
="$CFLAGS"
7365 CFLAGS
="$CFLAGS -fno-stack-protector"
7366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7377 if ac_fn_c_try_compile
"$LINENO"; then :
7378 use_no_stack_protector
="yes"
7380 use_no_stack_protector
="no"
7382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7384 $as_echo "$use_no_stack_protector" >&6; }
7385 if test "x-$use_no_stack_protector" = "x-yes" ; then
7386 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7388 CFLAGS
="$save_cflags"
7390 #-----------------------------------------------------------------------------
7392 # Disable pointer-signedness warnings if the compiler recognises the option
7393 # (this only works for the host compiler at the moment)
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7396 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7397 save_cflags
="$CFLAGS"
7398 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7410 if ac_fn_c_try_compile
"$LINENO"; then :
7411 use_no_sign_warning
="yes"
7413 use_no_sign_warning
="no"
7415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7417 $as_echo "$use_no_sign_warning" >&6; }
7418 if test "x-$use_no_sign_warning" = "x-yes" ; then
7419 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7421 CFLAGS
="$save_cflags"
7423 #-----------------------------------------------------------------------------
7425 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7428 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7429 save_cflags
="$CFLAGS"
7430 CFLAGS
="$CFLAGS -fgnu89-inline"
7431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7442 if ac_fn_c_try_compile
"$LINENO"; then :
7443 use_gnu89_inline
="yes"
7445 use_gnu89_inline
="no"
7447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7449 $as_echo "$use_gnu89_inline" >&6; }
7450 if test "x-$use_gnu89_inline" = "x-yes" ; then
7451 gnu89_inline
="-fgnu89-inline"
7453 CFLAGS
="$save_cflags"
7456 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7457 # On GCC >= 4.0 -iquote should be used
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7460 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7461 CFLAGS
="$CFLAGS -iquote."
7462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7473 if ac_fn_c_try_compile
"$LINENO"; then :
7478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7480 $as_echo "$has_iquote" >&6; }
7481 if test "x-$has_iquote" = "x-yes" ; then
7482 host_cflags_iquote
=-iquote
7483 host_cflags_iquote_end
=
7485 host_cflags_iquote
=-I
7486 host_cflags_iquote_end
=-I-
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7490 $as_echo "$as_me: Performing target configuration..." >&6;}
7493 aros_nowarn_flags
="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7495 toolchain_needs_sysroot
=no
7500 aros_config_cppflags
=
7502 aros_config_cxxflags
=
7503 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
7504 aros_config_ldflags
=""
7506 aros_shared_default
=yes
7508 aros_shared_cflags
="-fPIC"
7509 aros_shared_aflags
=""
7510 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7511 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7513 aros_kernel_ar_flags
="cr"
7514 aros_target_ar_flags
="cr"
7515 aros_target_nm_flags
="-C -ul"
7516 aros_target_strip_flags
="--strip-unneeded -R.comment"
7521 aros_target_genmap
="-Wl,-Map -Xlinker"
7523 # Native flavour stuff
7524 aros_serial_debug
="0"
7526 # Palm native flavour stuff
7527 aros_palm_debug_hack
="0"
7529 # Unix flavour stuff
7530 aros_nesting_supervisor
="0"
7532 # Collect-aros stuff: "-ius" to ignore undefined symbols
7533 ignore_undefined_symbols
=""
7535 # Check for X11 by default
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7544 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7546 # Check whether --with-toolchain was given.
7547 if test "${with_toolchain+set}" = set; then :
7548 withval
=$with_toolchain; aros_toolchain
="$withval"
7550 aros_toolchain
="gnu"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7554 $as_echo "$aros_toolchain" >&6; }
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7558 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7559 # Check whether --enable-lto was given.
7560 if test "${enable_lto+set}" = set; then :
7561 enableval
=$enable_lto; aros_config_lto
="$enableval"
7563 aros_config_lto
="no"
7566 if test "$aros_config_lto" != "no"; then
7567 aros_config_lto
="yes"
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7570 $as_echo "$aros_config_lto" >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7573 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7574 # Check whether --enable-coverage was given.
7575 if test "${enable_coverage+set}" = set; then :
7576 enableval
=$enable_coverage; aros_config_coverage
="$enableval"
7578 aros_config_coverage
="no"
7581 if test "$aros_config_coverage" != "no"; then
7582 aros_config_coverage
="yes"
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7585 $as_echo "$aros_config_coverage" >&6; }
7589 case "$aros_toolchain" in
7591 # toolchain_needs_sysroot=yes
7592 toolchain_c_compiler
="clang"
7593 toolchain_cxx_compiler
="clang++"
7594 toolchain_cpp_preprocessor
="clang -E"
7595 toolchain_ld
="ld.lld"
7597 toolchain_as
="llvm-as"
7598 toolchain_ar
="llvm-ar"
7599 toolchain_ranlib
="llvm-ranlib"
7600 toolchain_nm
="llvm-nm"
7601 toolchain_strip
="true"
7602 toolchain_objcopy
="llvm-objcopy"
7603 toolchain_objdump
="llvm-objdump"
7606 toolchain_c_compiler
="gcc"
7607 toolchain_cxx_compiler
="g++"
7608 toolchain_cpp_preprocessor
="gcc -E"
7611 if test "$aros_config_lto" != "yes"; then
7614 toolchain_ranlib
="ranlib"
7617 toolchain_ld
="ld.bfd"
7618 toolchain_ar
="gcc-ar"
7619 toolchain_ranlib
="gcc-ranlib"
7620 toolchain_nm
="gcc-nm"
7622 toolchain_strip
="strip"
7623 toolchain_objcopy
="objcopy"
7624 toolchain_objdump
="objdump"
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7628 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7629 toolchain_c_compiler
="cc"
7630 toolchain_cxx_compiler
="c++"
7631 toolchain_cpp_preprocessor
="cpp"
7636 toolchain_ranlib
="ranlib"
7638 toolchain_strip
="strip"
7639 toolchain_objcopy
="objcopy"
7640 toolchain_objdump
="objdump"
7644 #-----------------------------------------------------------------------------
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7647 $as_echo_n "checking which type of build to do... " >&6; }
7648 # Check whether --enable-build_type was given.
7649 if test "${enable_build_type+set}" = set; then :
7650 enableval
=$enable_build_type; build_type
=$enableval
7652 build_type
="personal"
7656 if test "$build_type" = "nightly"; then
7657 build_type_string
="NIGHTLY"
7658 elif test "$build_type" = "snapshot"; then
7659 build_type_string
="SNAPSHOT"
7660 elif test "$build_type" = "milestone"; then
7661 build_type_string
="MILESTONE"
7662 elif test "$build_type" = "release"; then
7663 build_type_string
="RELEASE"
7665 build_type_string
="PERSONAL"
7666 build_type
="personal"
7669 aros_config_cppflags
="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7672 $as_echo "$build_type" >&6; }
7674 #-----------------------------------------------------------------------------
7675 all_debug_types
="messages stack modules mungwall symbols"
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7678 $as_echo_n "checking which debug types to enable... " >&6; }
7679 # Check whether --enable-debug was given.
7680 if test "${enable_debug+set}" = set; then :
7681 enableval
=$enable_debug; debug
="$enableval"
7687 if test "$debug" = "" -o "$debug" = "no"; then
7689 elif test "$debug" = "yes"; then
7693 if test "$debug" = "all" ; then
7694 debug
="messages stack modules symbols"
7695 for d
in $all_debug_types; do
7696 export aros_
${d}_debug
="1"
7699 for d
in $all_debug_types; do
7700 export aros_
${d}_debug
="0"
7704 if test "$debug" != "none"; then
7705 debug
=`echo $debug | sed s/,/\ /g`
7708 for d2
in $all_debug_types; do
7709 if test "$d2" = "$d"; then
7714 if test "$found" = "0"; then
7715 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7717 export aros_
${d}_debug
="1"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7722 $as_echo "$debug" >&6; }
7724 if test "$aros_messages_debug" = "1"; then
7725 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
7727 aros_messages_debug
=""
7729 if test "$aros_symbols_debug" = "1"; then
7730 aros_symbols_debug
="-g"
7732 aros_symbols_debug
=""
7735 # These are the flags to pass when compiling debugged programs
7736 aros_debug_cppflags
="$aros_messages_debug"
7737 aros_debug_cflags
="$aros_symbols_debug"
7738 aros_debug_cxxflags
=
7739 aros_debug_aflags
=""
7740 aros_debug_ldflags
="$aros_symbols_debug"
7742 #-----------------------------------------------------------------------------
7743 # Checking for distcc and ccache.
7745 # Always apply the transforms in this particular order. Basically you should
7746 # always run 'ccache distcc compiler' in that order for the best performance.
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7749 $as_echo_n "checking whether to enable distcc... " >&6; }
7750 # Check whether --enable-distcc was given.
7751 if test "${enable_distcc+set}" = set; then :
7752 enableval
=$enable_distcc; distcc
="$enableval"
7757 if test "$distcc" != "" -a "$distcc" != "no"; then
7758 # AC_CHECK_PROG will print out the result in this case
7759 # Extract the first word of "distcc", so it can be a program name with args.
7760 set dummy distcc
; ac_word
=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_path_DISTCC+:} false
; then :
7764 $as_echo_n "(cached) " >&6
7768 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
7771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7775 test -z "$as_dir" && as_dir
=.
7776 for ac_exec_ext
in '' $ac_executable_extensions; do
7777 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
7790 DISTCC
=$ac_cv_path_DISTCC
7791 if test -n "$DISTCC"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7793 $as_echo "$DISTCC" >&6; }
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7806 $as_echo_n "checking whether to enable ccache... " >&6; }
7807 # Check whether --enable-ccache was given.
7808 if test "${enable_ccache+set}" = set; then :
7809 enableval
=$enable_ccache; ccache
="$enableval"
7814 if test "$ccache" != "" -a "$ccache" != "no"; then
7815 # AC_CHECK_PROG will print out the result in this case
7816 # Extract the first word of "ccache", so it can be a program name with args.
7817 set dummy ccache
; ac_word
=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if ${ac_cv_prog_CCACHE+:} false
; then :
7821 $as_echo_n "(cached) " >&6
7823 if test -n "$CCACHE"; then
7824 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
7826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7830 test -z "$as_dir" && as_dir
=.
7831 for ac_exec_ext
in '' $ac_executable_extensions; do
7832 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7833 ac_cv_prog_CCACHE
="ccache"
7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 CCACHE
=$ac_cv_prog_CCACHE
7844 if test -n "$CCACHE"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7846 $as_echo "$CCACHE" >&6; }
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7858 #-----------------------------------------------------------------------------
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7860 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7862 # Check whether --with-kernel-gcc-version was given.
7863 if test "${with_kernel_gcc_version+set}" = set; then :
7864 withval
=$with_kernel_gcc_version; kernel_tool_version
="$withval"
7866 kernel_tool_version
=""
7869 if test "$kernel_tool_version" != "" ; then
7870 msg_result
=$kernel_tool_version
7872 msg_result
="default"
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7875 $as_echo "$msg_result" >&6; }
7877 #-----------------------------------------------------------------------------
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7879 $as_echo_n "checking what optimization flags to use... " >&6; }
7881 # Check whether --with-optimization was given.
7882 if test "${with_optimization+set}" = set; then :
7883 withval
=$with_optimization; optimization_level
="$withval"
7885 optimization_level
="unknown"
7888 if test "$optimization_level" = "unknown"; then
7889 optimization
="default"
7890 if test "$debug" != "none"; then
7891 optimization_level
="-O0"
7893 optimization_level
="-O2"
7896 optimization
="$optimization_level"
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7899 $as_echo "$optimization" >&6; }
7901 paranoia_default
=yes
7902 #-----------------------------------------------------------------------------
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7904 $as_echo_n "checking which paranoia flags to use... " >&6; }
7906 # Check whether --with-paranoia was given.
7907 if test "${with_paranoia+set}" = set; then :
7908 withval
=$with_paranoia; paranoia_flags
="$withval"
7910 paranoia_flags
="$paranoia_default"
7913 if test "$paranoia_flags" = "no"; then
7914 paranoia_flags
="-Wall -Werror-implicit-function-declaration"
7917 if test "$paranoia_flags" = "yes"; then
7918 paranoia_flags
="-Wall -Werror"
7920 msg_result
="$paranoia_flags"
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7923 $as_echo "$msg_result" >&6; }
7924 aros_warn_flags
="$aros_warn_flags $paranoia_flags"
7926 #-----------------------------------------------------------------------------
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7928 $as_echo_n "checking what target variant to enable... " >&6; }
7929 # Check whether --enable-target_variant was given.
7930 if test "${enable_target_variant+set}" = set; then :
7931 enableval
=$enable_target_variant; target_variant
=$enableval
7936 if test "$target_variant" = ""; then
7937 aros_target_variant
=""
7938 aros_target_suffix
=""
7941 aros_target_variant
="$target_variant"
7942 aros_target_suffix
="-$target_variant"
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7945 $as_echo "$enableval" >&6; }
7947 #-----------------------------------------------------------------------------
7948 # Target-specific defaults. You can override then on a per-target basis.
7950 # Bootloader name. Currently used by PC target.
7951 target_bootloader
="none"
7955 #-----------------------------------------------------------------------------
7956 # Additional options for some specific targets
7958 case "$aros_target_variant" in
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7961 $as_echo_n "checking XCode path... " >&6; }
7963 # Check whether --with-xcode was given.
7964 if test "${with_xcode+set}" = set; then :
7965 withval
=$with_xcode; aros_xcode_path
="$withval"
7967 aros_xcode_path
="/Developer"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7971 $as_echo "$aros_xcode_path" >&6; }
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7974 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7976 # Check whether --with-sdk-version was given.
7977 if test "${with_sdk_version+set}" = set; then :
7978 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7980 aros_sdk_version
="4.1"
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7984 $as_echo "$aros_sdk_version" >&6; }
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7990 $as_echo_n "checking Android SDK path... " >&6; }
7992 # Check whether --with-sdk was given.
7993 if test "${with_sdk+set}" = set; then :
7994 withval
=$with_sdk; aros_android_sdk
="$withval"
7996 aros_android_sdk
=$default_android_sdk
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8000 $as_echo "$aros_android_sdk" >&6; }
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8003 $as_echo_n "checking Android NDK path... " >&6; }
8005 # Check whether --with-ndk was given.
8006 if test "${with_ndk+set}" = set; then :
8007 withval
=$with_ndk; aros_android_ndk
="$withval"
8009 aros_android_ndk
="none"
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8013 $as_echo "$aros_android_ndk" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8016 $as_echo_n "checking what Android SDK version to use... " >&6; }
8018 # Check whether --with-sdk-version was given.
8019 if test "${with_sdk_version+set}" = set; then :
8020 withval
=$with_sdk_version; aros_sdk_version
="$withval"
8022 aros_sdk_version
="12"
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8026 $as_echo "$aros_sdk_version" >&6; }
8028 aros_android_level
=android-
$aros_sdk_version
8029 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
8030 echo "Platform $aros_android_level is not installed in your SDK"
8031 echo "Use --with-sdk-version=<API level number> to select another platform version"
8032 echo "You can check what plaform versions are installed in your SDK"
8033 echo "by examining contents of $aros_android_sdk/platforms directory"
8034 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
8037 export PATH
="$aros_android_sdk/tools:$PATH"
8038 # Extract the first word of "$android_tool", so it can be a program name with args.
8039 set dummy
$android_tool; ac_word
=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if ${ac_cv_path_android_tool+:} false
; then :
8043 $as_echo_n "(cached) " >&6
8045 case $android_tool in
8047 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
8050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8054 test -z "$as_dir" && as_dir
=.
8055 for ac_exec_ext
in '' $ac_executable_extensions; do
8056 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8057 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 android_tool
=$ac_cv_path_android_tool
8069 if test -n "$android_tool"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8071 $as_echo "$android_tool" >&6; }
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8079 if test "$android_tool" = ""; then
8082 if test "$android_tool" = "no"; then
8085 if test "$req_avail" = "no"; then
8086 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
8089 if test "$aros_android_ndk" != "none"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8091 $as_echo_n "checking what Android NDK version to use... " >&6; }
8093 # Check whether --with-ndk-version was given.
8094 if test "${with_ndk_version+set}" = set; then :
8095 withval
=$with_ndk_version; aros_ndk_version
="$withval"
8097 aros_ndk_version
="9"
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8101 $as_echo "$aros_ndk_version" >&6; }
8104 # Extract the first word of "ant", so it can be a program name with args.
8105 set dummy ant
; ac_word
=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if ${ac_cv_path_ant+:} false
; then :
8109 $as_echo_n "(cached) " >&6
8113 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
8116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8120 test -z "$as_dir" && as_dir
=.
8121 for ac_exec_ext
in '' $ac_executable_extensions; do
8122 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8123 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 if test -n "$ant"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8137 $as_echo "$ant" >&6; }
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8144 if test "$ant" = ""; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8146 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8150 $as_echo_n "checking Build debug or release apk... " >&6; }
8152 # Check whether --with-apk-version was given.
8153 if test "${with_apk_version+set}" = set; then :
8154 withval
=$with_apk_version; aros_android_antapk
=$withval
8156 aros_android_antapk
=release
8159 if test $aros_android_antapk != release
-a $aros_android_antapk != debug
; then
8160 as_fn_error $?
"apk-version has to be release or debug" "$LINENO" 5
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8163 $as_echo "$aros_android_antapk" >&6; }
8165 if test "$host_os" = "mingw32"; then
8166 android_tool
="cmd //c $android_tool"
8174 #-----------------------------------------------------------------------------
8175 # External toolchains
8176 kernel_tool_prefix
="none"
8177 aros_tool_prefix
="none"
8178 elf_tool_prefix
="${target_cpu}-elf-"
8179 x86_isa_extra
="ISA_X86_FLAGS := -m32 -march=i486"
8180 x86_64_isa_extra
="ISA_X8664_FLAGS := -mcmodel=large"
8183 # This is the target configuration switch.
8184 case "$target_os" in
8186 aros_target_arch
="linux"
8187 aros_target_family
="unix"
8188 case "$target_cpu" in
8190 aros_target_cpu
="m68k"
8191 aros_object_format
="m68kelf"
8192 aros_flavour
="emulcompat"
8193 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8194 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8195 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8196 gcc_target_cpu
="mc68000"
8199 aros_target_cpu
="i386"
8200 aros_object_format
="elf_i386"
8201 aros_flavour
="emulation"
8202 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8203 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8204 x86_64_isa_extra
="$x86_64_isa_extra -mno-red-zone"
8205 aros_kernel_ldflags
="-Wl,-melf_i386"
8206 aros_nominal_depth
=8
8207 gcc_target_cpu
="i386"
8208 pci_hidd_target
="hidd-pci-linux"
8209 android_tool_dir_prefix
="x86"
8210 android_tool_prefix
="i686-android-linux"
8211 android_ndk_arch
="x86"
8214 aros_target_cpu
="x86_64"
8215 aros_object_format
="elf_x86_64"
8216 aros_flavour
="emulation"
8217 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8218 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8219 x86_64_isa_extra
="$x86_64_isa_extra -mno-red-zone"
8220 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8221 aros_config_cxxflags
="$aros_config_cxxflags -fno-omit-frame-pointer"
8222 aros_nominal_depth
=8
8223 pci_hidd_target
="hidd-pci-linux"
8226 aros_target_cpu
="ppc"
8227 aros_object_format
="elf32ppc"
8228 aros_flavour
="emulation"
8229 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8230 aros_nominal_depth
=8
8231 gcc_target_cpu
="ppc"
8234 # Same as powerpc, but I need this for the nightly build to work again.
8235 # Actually, the nightly should be made working with powerpc target.
8236 # That just was too much work for the moment, another week or two.
8238 aros_target_cpu
="ppc"
8239 aros_object_format
="elf32ppc"
8240 aros_flavour
="emulation"
8241 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8242 aros_nominal_depth
=8
8243 gcc_target_cpu
="ppc"
8246 aros_target_cpu
="aarch64"
8247 target_cpu
="aarch64"
8248 aros_object_format
="aarch64elf_aros"
8249 aros_flavour
="emulation"
8250 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8251 gcc_target_cpu
="aarch64"
8252 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8253 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8254 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8255 aros_arch_libs
="-laeabi"
8256 gcc_default_float_abi
="hard"
8257 kernel_tool_prefix
="aarch64-linux-gnueabihf-"
8260 aros_target_cpu
="arm"
8262 aros_object_format
="armelf_aros"
8263 aros_flavour
="emulation"
8264 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8265 gcc_target_cpu
="arm"
8266 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8267 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8268 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8269 aros_arch_libs
="-laeabi"
8270 gcc_default_float_abi
="hard"
8271 android_tool_dir_prefix
="arm-linux-androideabi"
8272 android_tool_prefix
="arm-linux-androideabi"
8273 android_ndk_arch
="arm"
8274 kernel_tool_prefix
="arm-linux-gnueabihf-"
8277 aros_target_cpu
="arm"
8278 aros_object_format
="armelf_aros"
8279 aros_flavour
="emulation"
8280 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8281 gcc_target_cpu
="arm"
8282 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8283 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8284 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8285 aros_arch_libs
="-laeabi"
8286 android_tool_dir_prefix
="arm-linux-androideabi"
8287 android_tool_prefix
="arm-linux-androideabi"
8288 android_ndk_arch
="arm"
8289 kernel_tool_prefix
="arm-linux-gnueabi-"
8292 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8295 case "$aros_target_variant" in
8298 if test "$android_ndk_arch" = ""; then
8299 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8302 aros_nominal_width
=320
8303 aros_nominal_height
=480
8304 if test "$aros_android_ndk" = "none"; then
8305 aros_kernel_cflags
="-mandroid"
8306 aros_kernel_ldflags
="-mandroid"
8309 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8310 kernel_tool_version
=""
8311 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8312 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
8313 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
8314 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8315 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
8318 host_android_gfx
=yes
8319 # Disable implicit PIC mode
8320 aros_config_cflags
="$aros_config_cflags -fno-pic"
8321 kernel_tool_prefix
="$android_tool_prefix-"
8327 aros_target_arch
="pc"
8328 aros_shared_default
="no"
8329 target_bootloader
="grub2"
8330 case "$target_cpu" in
8332 aros_target_cpu
="i386"
8335 if test "$aros_object_format" = "" ; then
8336 aros_object_format
="elf_i386"
8338 aros_flavour
="standalone"
8339 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8340 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8341 x86_64_isa_extra
="$x86_64_isa_extra -mno-red-zone"
8342 aros_kernel_ldflags
="-Wl,-melf_i386"
8343 aros_nominal_width
=640
8344 aros_nominal_height
=480
8345 gcc_target_cpu
="i386"
8348 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
8349 aros_target_cpu
="x86_64"
8351 if test "$aros_object_format" = "" ; then
8352 aros_object_format
="elf_x86_64"
8354 aros_flavour
="standalone"
8355 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8356 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8357 x86_64_isa_extra
="$x86_64_isa_extra -mno-red-zone"
8358 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8359 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8360 aros_kernel_ldflags
=""
8361 aros_nominal_width
=640
8362 aros_nominal_height
=480
8363 case "$aros_target_variant" in
8365 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8370 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8376 aros_target_arch
="prep"
8377 aros_shared_default
="no"
8378 aros_target_cpu
="ppc"
8379 aros_object_format
="elf32ppc"
8380 aros_flavour
="ppcnative"
8381 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8382 aros_kernel_ldflags
=""
8383 aros_nominal_width
=640
8384 aros_nominal_height
=480
8385 gcc_target_cpu
="ppc"
8389 aros_target_arch
="freebsd"
8390 aros_target_family
="unix"
8391 aros_target_cpu
="i386"
8392 aros_flavour
="emulation"
8393 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8394 gcc_target_cpu
="i386"
8396 aros_target_strip_flags
="-x"
8400 aros_target_arch
="darwin"
8401 aros_target_family
="unix"
8402 aros_flavour
="emulation"
8403 case "$target_cpu" in
8405 aros_ios_platform
="iPhoneSimulator"
8406 aros_target_cpu
="i386"
8407 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8408 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8409 aros_kernel_ldflags
=""
8410 aros_macosx_version
="10.4"
8411 aros_nominal_depth
=8
8412 gcc_target_cpu
="i386"
8413 aros_object_format
="elf_i386"
8414 aros_kernel_ar_flags
="-cr"
8415 aros_target_strip_flags
="-x"
8416 kernel_tool_flags
="-m32"
8419 aros_target_cpu
="x86_64"
8420 aros_object_format
="elf_x86_64"
8421 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8422 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8423 aros_macosx_version
="10.6"
8424 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8425 aros_config_cxxflags
="$aros_config_cxxflags -fno-omit-frame-pointer"
8426 aros_kernel_cflags
="-m64"
8427 aros_kernel_ldflags
="-m64"
8428 aros_nominal_depth
=8
8430 aros_kernel_ar_flags
="-cr"
8433 aros_kernel_ranlib
="ranlib"
8435 aros_kernel_strip
="strip"
8436 kernel_tool_prefix
="i686-apple-darwin10-"
8439 aros_target_cpu
="ppc"
8440 aros_object_format
="elf32ppc"
8441 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8442 aros_kernel_ldflags
=""
8443 aros_macosx_version
="10.0"
8444 aros_nominal_depth
=8
8445 gcc_target_cpu
="ppc"
8447 aros_kernel_ar_flags
="-cr"
8448 aros_kernel_ld
="ld -arch ppc"
8449 aros_kernel_as
="as -arch ppc"
8450 aros_kernel_ranlib
="ranlib -arch ppc"
8451 aros_kernel_nm
="nm -arch ppc"
8452 aros_kernel_strip
="strip -arch ppc"
8453 kernel_tool_prefix
="powerpc-apple-darwin10-"
8456 aros_ios_platform
="iPhoneOS"
8457 aros_target_cpu
="arm"
8458 aros_object_format
="armelf_aros"
8459 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8460 aros_arch_libs
="-laeabi"
8461 aros_nominal_depth
=8
8462 gcc_target_cpu
="arm"
8464 aros_kernel_ar_flags
="-cr"
8465 aros_kernel_ld
="ld -arch arm"
8466 aros_kernel_ranlib
="ranlib -arch arm"
8467 kernel_tool_prefix
="arm-apple-darwin10-"
8468 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8471 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8474 case "$aros_target_variant" in
8476 aros_ios_version
="3.0"
8477 aros_nominal_width
=320
8478 aros_nominal_height
=480
8479 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8480 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
8481 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
8483 # This is here because it may depend on iOS or SDK version
8484 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8485 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8486 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8489 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8490 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8496 aros_target_arch
="dragonfly"
8497 aros_target_family
="unix"
8498 aros_flavour
="emulation"
8499 case "$target_cpu" in
8501 aros_target_cpu
="i386"
8502 aros_object_format
="elf_i386"
8503 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8504 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8507 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8508 aros_config_cxxflags
="$aros_config_cxxflags -fno-omit-frame-pointer"
8509 aros_target_cpu
="x86_64"
8510 aros_object_format
="elf_x86_64"
8511 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8512 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8515 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8521 aros_target_arch
="netbsd"
8522 aros_target_family
="unix"
8523 case "$target_cpu" in
8525 aros_target_cpu
="m68k"
8526 aros_object_format
="m68kelf"
8527 aros_flavour
="emulcompat"
8528 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8529 gcc_target_cpu
="mc68000"
8532 aros_target_cpu
="i386"
8533 aros_object_format
="elf_i386"
8534 aros_flavour
="emulation"
8535 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8536 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8537 aros_nominal_depth
=8
8538 gcc_target_cpu
="i386"
8541 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8544 aros_target_genmap
="-Wl,-M -Xlinker >"
8545 aros_flavour
="emulation"
8546 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8550 aros_target_arch
="openbsd"
8551 aros_target_family
="unix"
8552 case "$target_cpu" in
8554 aros_target_cpu
="i386"
8555 aros_object_format
="elf_i386"
8556 aros_flavour
="emulation"
8557 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8558 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8559 gcc_target_cpu
="i386"
8562 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8565 aros_target_genmap
="-Wl,-M -Xlinker >"
8566 aros_target_nm_flags
="-u"
8567 aros_flavour
="emulation"
8571 aros_target_arch
="solaris"
8572 aros_target_family
="unix"
8573 case "$target_cpu" in
8575 aros_target_cpu
="i386"
8576 aros_object_format
="elf_i386"
8577 aros_flavour
="emulation"
8578 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8579 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8580 aros_nominal_depth
=8
8581 gcc_target_cpu
="i386"
8584 aros_target_cpu
="sparc"
8585 aros_object_format
="elf_sparc"
8586 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8587 gcc_target_cpu
="sparc"
8590 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8593 aros_config_cppflags
="$aros_config_cppflags -D$aros_target_cpu"
8594 aros_flavour
="emulation"
8598 aros_target_arch
="morphos"
8599 aros_shared_default
="no"
8600 aros_target_cpu
="ppc"
8601 aros_object_format
="elf_ppc"
8602 aros_flavour
="nativecompat"
8603 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8604 gcc_target_cpu
="ppc"
8608 aros_target_arch
="sam440"
8609 aros_shared_default
="no"
8610 aros_target_cpu
="ppc"
8611 aros_object_format
="elf32ppc"
8612 aros_flavour
="ppcnative"
8613 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8614 aros_kernel_ldflags
=""
8615 aros_nominal_width
=1024
8616 aros_nominal_height
=768
8617 aros_nominal_depth
=24
8618 aros_isa_flags
="$aros_isa_flags -mcpu=440fp -mno-toc"
8619 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables"
8620 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8621 gcc_target_cpu
="powerpc"
8625 aros_target_arch
="efika"
8626 aros_shared_default
="no"
8627 aros_target_cpu
="arm"
8628 aros_object_format
="armelf_aros"
8629 aros_flavour
="standalone"
8630 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8631 aros_kernel_ldflags
=""
8632 aros_nominal_width
=1024
8633 aros_nominal_height
=600
8634 aros_arch_libs
="-laeabi"
8635 gcc_default_cpu
="armv7-a"
8636 gcc_default_fpu
="vfpv3"
8637 aros_isa_flags
="$aros_isa_flags -mtune=cortex-a8"
8638 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8639 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8640 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8641 if test "$optimization" = "default"; then
8642 optimization_level
="-Os"
8644 case "$target_cpu" in
8646 gcc_default_float_abi
="hard"
8651 gcc_default_float_abi
="softfp"
8654 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8660 aros_target_arch
="chrp"
8661 aros_shared_default
="no"
8662 aros_target_cpu
="ppc"
8663 aros_object_format
="elf32ppc"
8664 aros_flavour
="ppcnative"
8665 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8666 aros_kernel_ldflags
=""
8667 aros_nominal_width
=640
8668 aros_nominal_height
=480
8669 aros_isa_flags
="$aros_isa_flags -mno-toc"
8670 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables"
8671 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8672 gcc_target_cpu
="powerpc"
8673 case "$aros_target_variant" in
8675 aros_isa_flags
="$aros_isa_flags -mcpu=603e"
8676 aros_config_cppflags
="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8682 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
8683 aros_flavour
="standalone"
8684 aros_target_arch
="raspi"
8686 aros_shared_default
="no"
8688 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__"
8690 case "$target_cpu" in
8692 aros_target_cpu
="aarch64"
8693 gcc_default_cpu
="aarch64"
8694 aros_object_format
="aarch64elf_aros"
8697 aros_target_cpu
="arm"
8698 gcc_default_cpu
="armv6zk"
8699 gcc_default_cpu_tune
="arm1176jzf-s"
8700 aros_object_format
="armelf_aros"
8701 aros_isa_flags
="$aros_isa_flags -marm"
8702 aros_config_cflags
="$aros_config_cflags"
8703 aros_config_cxxflags
="$aros_config_cxxflags"
8704 aros_config_aflags
="$aros_config_aflags -marm"
8705 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8706 aros_target_mkdep
="$aros_target_mkdep -Darm"
8707 aros_arch_libs
="-laeabi"
8710 aros_target_cpu
="arm"
8711 gcc_default_cpu
="armv6zk"
8712 gcc_default_cpu_tune
="arm1176jzf-s"
8713 aros_object_format
="armelf_aros"
8714 aros_isa_flags
="$aros_isa_flags -marm"
8715 aros_config_cflags
="$aros_config_cflags"
8716 aros_config_cxxflags
="$aros_config_cxxflags"
8717 aros_config_aflags
="$aros_config_aflags -marm"
8718 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8719 aros_target_mkdep
="$aros_target_mkdep -Darm"
8720 aros_arch_libs
="-laeabi"
8723 as_fn_error $?
"\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8727 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8728 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
8729 aros_config_aflags
="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8730 aros_kernel_cflags
="$aros_kernel_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8732 case "$aros_target_variant" in
8734 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8740 aros_flavour
="standalone"
8741 aros_target_arch
="stm32f7_discovery"
8742 aros_target_cpu
="arm"
8743 aros_target_cpu_mode
="thumb2"
8744 aros_object_format
="armelf_aros"
8745 aros_shared_default
="no"
8747 gcc_default_cpu
="armv7e-m"
8748 gcc_default_cpu_tune
="cortex-m7"
8749 gcc_default_fpu
="fpv5-sp-d16"
8750 gcc_default_float_abi
="hard"
8752 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dthumb"
8756 aros_target_arch
="amiga"
8757 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8758 aros_shared_default
="no"
8760 case "$target_cpu" in
8762 # Check whether --enable-amigaos_compliance was given.
8763 if test "${enable_amigaos_compliance+set}" = set; then :
8764 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
8768 aros_target_cpu
="m68k"
8769 aros_object_format
="m68kelf"
8770 aros_flavour
="standcompat"
8771 gcc_target_cpu
="m68000"
8772 aros_nowarn_flags
="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8773 aros_config_cppflags
="$aros_config_cppflags -DNOLIBINLINE"
8774 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8775 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8776 if test "$optimization" = "default"; then
8777 optimization_level
="-Os"
8779 aros_config_aflags
="$aros_config_aflags"
8780 aros_target_strip_flags
="-R.comment --strip-debug"
8781 aros_nominal_width
=640
8782 aros_nominal_height
=256
8783 aros_nominal_depth
=2
8787 aros_flavour
="native"
8788 gcc_target_cpu
="ppc"
8791 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8797 aros_target_arch
="mingw32"
8798 aros_shared_default
="no"
8799 aros_flavour
="emulation"
8800 aros_shared_cflags
=""
8801 need_crosstools
="yes"
8804 case "$target_cpu" in
8806 aros_target_cpu
="i386"
8807 aros_object_format
="elf_i386"
8808 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8809 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8810 aros_nominal_depth
=8
8811 gcc_target_cpu
="i386"
8813 kernel_tool_prefix
="i386-mingw32-"
8816 aros_target_cpu
="x86_64"
8817 aros_object_format
="elf_x86_64"
8818 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8819 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8820 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8821 aros_config_cxxflags
="$aros_config_cxxflags -fno-omit-frame-pointer"
8822 aros_nominal_depth
=8
8823 kernel_tool_prefix
="x86_64-w64-mingw32-"
8826 aros_target_cpu
="arm"
8827 aros_object_format
="armelf_aros"
8828 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8829 aros_arch_libs
="-laeabi"
8830 aros_nominal_depth
=8
8831 gcc_target_cpu
="arm"
8832 gcc_default_float_abi
="soft"
8833 kernel_tool_prefix
="arm-mingw32ce-"
8834 aros_nominal_width
=160
8835 aros_nominal_height
=160
8838 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8841 if test $host_os = "cygwin"; then
8842 aros_kernel_cflags
="-mno-cygwin"
8846 aros_target_arch
="pp"
8847 aros_shared_default
="no"
8848 case "$target_cpu" in
8850 aros_target_cpu
="m68k"
8851 aros_object_format
="m68kelf"
8852 aros_flavour
="palmnative"
8853 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8854 aros_nominal_width
=160
8855 aros_nominal_height
=160
8856 aros_nominal_depth
=1
8857 aros_target_ar_flags
="cru"
8858 aros_compiler_libs
="-lgcc1"
8859 aros_shared_default
=no
8860 aros_shared_cflags
="-fpic"
8861 aros_shared_aflags
=""
8862 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8863 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8864 aros_debug_cppflags
="$aros_messages_debug"
8865 aros_debug_cflags
="$aros_symbols_debug"
8866 aros_debug_aflags
=""
8867 aros_debug_ldflags
="$aros_symbols_debug"
8868 aros_mungwall_debug
="0"
8869 aros_modules_debug
="0"
8870 gcc_target_cpu
="mc68000"
8871 ignore_undefined_symbols
="-ius"
8874 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8880 aros_target_arch
="mac"
8881 aros_shared_default
="no"
8882 case "$target_cpu" in
8884 aros_target_cpu
="m68k"
8885 aros_object_format
="m68kelf"
8886 aros_flavour
="mac68knative"
8887 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8888 aros_nominal_width
=512
8889 aros_nominal_height
=384
8890 aros_nominal_depth
=8
8891 aros_target_ar_flags
="cru"
8892 aros_compiler_libs
="-lgcc1"
8893 aros_shared_default
=no
8894 aros_shared_cflags
="-fpic"
8895 aros_shared_aflags
=""
8896 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8897 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8898 aros_debug_cppflags
="$aros_messages_debug"
8899 aros_debug_cflags
="$aros_symbols_debug"
8900 aros_debug_aflags
=""
8901 aros_debug_ldflags
="$aros_symbols_debug"
8902 aros_mungwall_debug
="0"
8903 aros_modules_debug
="0"
8904 gcc_target_cpu
="mc68000"
8905 ignore_undefined_symbols
="-ius"
8908 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8914 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
8918 #-----------------------------------------------------------------------------
8919 crosstools_guess
="yes"
8920 aros_target_toolchain
="no"
8921 aros_config_sysroot
=""
8922 aros_kernel_sysroot
=""
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8925 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8927 # Check whether --with-kernel-toolchain-prefix was given.
8928 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8929 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8933 $as_echo "$kernel_tool_prefix" >&6; }
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8936 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8938 # Check whether --with-elf-toolchain-prefix was given.
8939 if test "${with_elf_toolchain_prefix+set}" = set; then :
8940 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
8941 crosstools_guess
="no"
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8945 $as_echo "$elf_tool_prefix" >&6; }
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8948 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8950 # Check whether --with-aros-toolchain was given.
8951 if test "${with_aros_toolchain+set}" = set; then :
8952 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
8953 crosstools_guess
="no"
8956 if test "$aros_tool_prefix" = "yes" ; then
8957 aros_tool_prefix
=$aros_target_cpu-aros-
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8960 $as_echo "$aros_tool_prefix" >&6; }
8962 #-----------------------------------------------------------------------------
8963 # Checking if we should build crosstools..
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8965 $as_echo_n "checking whether to build crosstools... " >&6; }
8966 # Check whether --enable-crosstools was given.
8967 if test "${enable_crosstools+set}" = set; then :
8968 enableval
=$enable_crosstools; crosstools
="$enableval"
8970 crosstools
="$crosstools_guess"
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8974 $as_echo "$crosstools" >&6; }
8976 if test "${crosstools}" = "yes"; then
8977 if test "${crosstools_guess}" = "no"; then
8978 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8982 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
8983 aros_target_toolchain
="yes"
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8987 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8989 # Check whether --with-aros-toolchain-install was given.
8990 if test "${with_aros_toolchain_install+set}" = set; then :
8991 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
8994 if test "x$aros_toolchain_install" = "x"; then
8995 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8997 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
8998 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
8999 if test "$crosstools_guess" = "no" ; then
9000 toolchain_needs_sysroot
=yes
9002 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9003 aros_kernel_sysroot
= $aros_config_sysroot
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9008 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
9011 $as_echo_n "checking If we need to use --sysroot... " >&6; }
9012 if test "$toolchain_needs_sysroot" = "yes" ; then
9013 aros_config_sysroot
="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer"
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
9016 $as_echo "$toolchain_needs_sysroot" >&6; }
9018 #-----------------------------------------------------------------------------
9019 if test "$aros_toolchain" = "gnu" ; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9021 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9024 # Check whether --with-binutils-version was given.
9025 if test "${with_binutils_version+set}" = set; then :
9026 withval
=$with_binutils_version; use_binutils_version
="$withval"
9028 use_binutils_version
=""
9031 if test "$use_binutils_version" = ""; then
9032 target_binutils_version
="$default_binutils_version"
9034 target_binutils_version
="$use_binutils_version"
9036 if test "$aros_toolchain" = "gnu" ; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9038 $as_echo "$target_binutils_version" >&6; }
9042 # Helper to identify gcc version
9045 #-----------------------------------------------------------------------------
9046 if test "$aros_toolchain" = "gnu" ; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9048 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9051 # Check whether --with-gcc-version was given.
9052 if test "${with_gcc_version+set}" = set; then :
9053 withval
=$with_gcc_version; use_gcc_version
="$withval"
9058 if test "$use_gcc_version" = ""; then
9059 if test "${crosstools}" = "no"; then
9060 if test "x$aros_toolchain_install" != "x"; then
9062 target_gcc_version
=""
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9064 $as_echo_n "checking gcc version... " >&6; }
9065 if ${ax_cv_gcc_version+:} false
; then :
9066 $as_echo_n "(cached) " >&6
9069 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9070 if test "x$ax_cv_gcc_version" = "x"; then :
9072 ax_cv_gcc_version
=""
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9078 $as_echo "$ax_cv_gcc_version" >&6; }
9079 target_gcc_version
=$ax_cv_gcc_version
9084 if test "$use_gcc_version" = ""; then
9085 target_gcc_version
="$default_gcc_version"
9088 target_gcc_version
="$use_gcc_version"
9090 if test "$aros_toolchain" = "gnu" ; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9092 $as_echo "$target_gcc_version" >&6; }
9094 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'.' -f1)
9095 GCC_VERSION_MINOR
=$
(echo $target_gcc_version | cut
-d'.' -f2)
9096 GCC_VERSION_PATCH
=$
(echo $target_gcc_version | cut
-d'.' -f3)
9098 gcc_fix_bitfields
="false"
9099 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9100 gcc_fix_bitfields
="true"
9102 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9103 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9104 gcc_fix_bitfields
="true"
9109 if test "$gcc_fix_bitfields" = "true" ; then
9110 case "$aros_target_cpu" in
9112 x86_isa_extra
="$x86_isa_extra -mno-ms-bitfields"
9113 x86_64_isa_extra
="$x86_64_isa_extra -mno-ms-bitfields"
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9120 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9121 # Check whether --enable-objc was given.
9122 if test "${enable_objc+set}" = set; then :
9123 enableval
=$enable_objc; objc
="$enableval"
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9129 $as_echo "$objc" >&6; }
9130 if test "x$objc" = "xyes"; then
9133 objc_target
="no-objc"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9137 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9138 # Check whether --enable-java was given.
9139 if test "${enable_java+set}" = set; then :
9140 enableval
=$enable_java; java
="$enableval"
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9146 $as_echo "$java" >&6; }
9147 if test "x$java" != "xno"; then
9150 java_target
="no-java"
9153 spec_obj_format
="-m $aros_object_format"
9154 # Now process extra architecture-specific options.
9155 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9156 # as well as floating-point ABI.
9157 case "$aros_target_cpu" in
9159 aros_isa_extra
="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9160 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9163 if test "$gcc_default_cpu" = ""; then
9164 gcc_default_cpu
="armv6"
9166 if test "$gcc_default_fpu" = ""; then
9167 gcc_default_fpu
="vfp"
9169 if test "$gcc_default_float_abi" = ""; then
9170 if test "$target_cpu" = "armhf"; then
9171 gcc_default_float_abi
="hard"
9173 gcc_default_float_abi
="softfp"
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9178 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9180 # Check whether --with-cpu was given.
9181 if test "${with_cpu+set}" = set; then :
9182 withval
=$with_cpu; aros_gcc_cpu
="$withval"
9184 aros_gcc_cpu
=$gcc_default_cpu
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9188 $as_echo "$aros_gcc_cpu" >&6; }
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9191 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9193 # Check whether --with-fpu was given.
9194 if test "${with_fpu+set}" = set; then :
9195 withval
=$with_fpu; aros_gcc_fpu
="$withval"
9197 aros_gcc_fpu
=$gcc_default_fpu
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9201 $as_echo "$aros_gcc_fpu" >&6; }
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9204 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9206 # Check whether --with-float was given.
9207 if test "${with_float+set}" = set; then :
9208 withval
=$with_float; aros_gcc_float_abi
="$withval"
9210 aros_gcc_float_abi
=$gcc_default_float_abi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9214 $as_echo "$aros_gcc_float_abi" >&6; }
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9217 $as_echo_n "checking Which ARM mode to use... " >&6; }
9218 if test "$aros_target_cpu_mode" = ""; then
9219 aros_target_cpu_mode
="arm32"
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9221 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9224 $as_echo "$aros_target_cpu_mode" >&6; }
9227 case "$aros_target_cpu_mode" in
9229 gcc_default_mode
="arm"
9230 aros_isa_flags
="$aros_isa_flags -m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9233 as_fn_error $?
"ARM 64-bit mode is unsupported" "$LINENO" 5
9236 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9239 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9242 gcc_default_mode
="thumb"
9243 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9244 aros_isa_flags
="$aros_isa_flags -m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9247 as_fn_error $?
"Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9251 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9252 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
9253 aros_config_aflags
="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9256 aros_isa_extra
="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9257 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
9261 # Some architectures may need custom ELF specs.
9262 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
9263 elf_specs_in
=config
/${aros_object_format}-specs.
in
9265 elf_specs_in
=config
/elf-specs.
in
9268 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9269 # Since we override specs, we may need to put these defines there
9270 if test "$gcc_target_cpu" != ""; then
9271 gcc_target_cpu
="-D__${gcc_target_cpu}__"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9275 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9277 # Check whether --with-portssources was given.
9278 if test "${with_portssources+set}" = set; then :
9279 withval
=$with_portssources; with_portssrcdir
=$withval
9281 with_portssrcdir
="default"
9284 if test "$with_portssrcdir" = "default"; then
9285 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9287 AROS_PORTSSRCDIR
="$with_portssrcdir"
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9290 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9293 $as_echo_n "checking which bootloader to use... " >&6; }
9295 # Check whether --with-bootloader was given.
9296 if test "${with_bootloader+set}" = set; then :
9297 withval
=$with_bootloader; target_bootloader
=$withval
9299 target_bootloader
=$target_bootloader
9302 if test "$target_bootloader" = "none"; then
9303 aros_target_bootloader
=""
9305 aros_target_bootloader
="$target_bootloader"
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9308 $as_echo "$target_bootloader" >&6; }
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9311 $as_echo_n "checking which icon-set to use... " >&6; }
9313 # Check whether --with-iconset was given.
9314 if test "${with_iconset+set}" = set; then :
9315 withval
=$with_iconset; target_iconset
=$withval
9317 target_iconset
="default"
9320 if test "$target_iconset" = "default"; then
9321 aros_target_iconset
="Gorilla"
9322 target_iconset
="default (Gorilla)"
9324 aros_target_iconset
="$target_iconset"
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9327 $as_echo "$target_iconset" >&6; }
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9330 $as_echo_n "checking which GUI Theme to use... " >&6; }
9332 # Check whether --with-theme was given.
9333 if test "${with_theme+set}" = set; then :
9334 withval
=$with_theme; target_guitheme
=$withval
9336 target_guitheme
="default"
9339 if test "$target_guitheme" = "default"; then
9340 aros_target_guitheme
="Ice"
9342 aros_target_guitheme
="$target_guitheme"
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9345 $as_echo "$aros_target_guitheme" >&6; }
9347 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9351 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9355 if test "$aros_host_cpu" == "x86_64" ; then
9356 if test "$aros_target_cpu" == "i386" ; then
9361 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9362 if test "$aros_host_arch" != "$aros_target_arch" ; then
9366 if test "$host_cc_elf" = "no" ; then
9371 if test "$cross_compiling" = "no" ; then
9372 kernel_tool_prefix
=""
9373 if test "$host_cc_elf" = "yes" ; then
9378 if test "$kernel_tool_version" != ""; then
9379 kernel_tool_version
="-$kernel_tool_version"
9382 #######################################################################
9383 ## Compute what toolchains to use, and their paths ##
9384 #######################################################################
9386 # This takes, as input:
9387 # crosstools {yes,no}
9388 # kernel_tool_version {"",[version]}
9389 # target_tool_version {"",[version]}
9390 # kernel_tool_prefix {none,[some-arch-os-]}
9392 # target_tool_prefix ${aros_target_cpu}-aros-
9393 # aros_tool_prefix ${aros_target_cpu}-aros-
9396 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9397 # Where the 'kernel' binaries are located
9398 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9399 # Where the 'target' binaries are located
9400 # (not the symlink farm - that is aros_target_*!)
9403 # if crosstools then
9404 # if kernel_tools_prefix = "no-kernel-prefix-"
9405 # aros_kernel_* = crosstools cc paths
9406 # aros_kernel_cc = elf cc wrapper around crosstools cc
9408 # VALIDATE(${kernel_tools_prefix}*)
9409 # aros_kernel_* = ${kernel_tools_prefix}*
9410 # if ${kernel_tools_prefix}cc is an AROS gcc
9411 # aros_kernel_cc = ${kernel_tools_prefix}cc
9413 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9417 # orig_target_* = aros built crosstools
9418 # orig_target_cc = elf cc wrapper around crosstools cc
9420 # VALIDATE(${kernel_tools_prefix}*)
9422 # orig_target_* = aros_kernel_*
9423 # if aros_kernel_cc is an AROS gcc
9424 # orig_target_cc = aros_kernel_cc
9426 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9430 if test "$aros_toolchain" = "gnu" ; then
9431 target_tool_prefix
="${aros_target_cpu}-aros-"
9432 elif test "$aros_toolchain" = "llvm" ; then
9433 target_tool_prefix
="bin/"
9436 if test "$kernel_tool_prefix" != "" ; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9438 $as_echo_n "checking which kernel tools... " >&6; }
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9440 $as_echo "$kernel_tool_prefix" >&6; };
9443 if test "$kernel_tool_prefix" = "none" ; then
9444 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9445 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9448 # Kernel tools required - find them
9449 # Note that 'normally', aros_kernel_* overrides will be
9450 # empty, unless specified in the per-arch sections above.
9451 if test "x$aros_kernel_cpp" = "x"; then
9452 aros_kernel_cpp
=${kernel_tool_prefix}${CPP}
9454 if test "${kernel_tool_version}" != ""; then
9455 if test "$aros_kernel_cpp" != ""; then
9456 ac_prog_args
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9457 ac_prog_cmd
=`expr "X$aros_kernel_cpp" : '^\S*'`
9458 aros_kernel_cpp
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9462 if test "$aros_kernel_cpp" = ""; then
9463 if test "$cross_compiling" = "yes" ; then
9464 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9465 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467 $as_echo_n "checking for $ac_word... " >&6; }
9468 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9469 $as_echo_n "(cached) " >&6
9471 case $aros_kernel_cpp in
9473 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9480 test -z "$as_dir" && as_dir
=.
9481 for ac_exec_ext
in '' $ac_executable_extensions; do
9482 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9483 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9495 if test -n "$aros_kernel_cpp"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9497 $as_echo "$aros_kernel_cpp" >&6; }
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9505 if test "$GCC" = "yes"; then
9506 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
9507 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9508 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510 $as_echo_n "checking for $ac_word... " >&6; }
9511 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9512 $as_echo_n "(cached) " >&6
9514 case $aros_kernel_cpp in
9516 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9520 for as_dir
in `dirname $aros_gcc_cpp`
9523 test -z "$as_dir" && as_dir
=.
9524 for ac_exec_ext
in '' $ac_executable_extensions; do
9525 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9526 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9537 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9538 if test -n "$aros_kernel_cpp"; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9540 $as_echo "$aros_kernel_cpp" >&6; }
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543 $as_echo "no" >&6; }
9548 if test "$aros_kernel_cpp" = ""; then
9549 # Extract the first word of "cpp", so it can be a program name with args.
9550 set dummy cpp
; ac_word
=$2
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552 $as_echo_n "checking for $ac_word... " >&6; }
9553 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9554 $as_echo_n "(cached) " >&6
9556 case $aros_kernel_cpp in
9558 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9565 test -z "$as_dir" && as_dir
=.
9566 for ac_exec_ext
in '' $ac_executable_extensions; do
9567 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9568 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9579 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9580 if test -n "$aros_kernel_cpp"; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9582 $as_echo "$aros_kernel_cpp" >&6; }
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9592 ac_tool_optarg
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9593 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9594 set dummy
$aros_kernel_cpp; ac_word
=$2
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 $as_echo_n "checking for $ac_word... " >&6; }
9597 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9598 $as_echo_n "(cached) " >&6
9600 case $aros_kernel_cpp in
9602 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9609 test -z "$as_dir" && as_dir
=.
9610 for ac_exec_ext
in '' $ac_executable_extensions; do
9611 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9612 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9623 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9624 if test -n "$aros_kernel_cpp"; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9626 $as_echo "$aros_kernel_cpp" >&6; }
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629 $as_echo "no" >&6; }
9633 aros_kernel_cpp
="$aros_kernel_cpp $ac_tool_optarg"
9637 if test "$aros_kernel_cpp" = ""; then
9640 if test "$aros_kernel_cpp" = "no"; then
9643 if test "$req_avail" = "no"; then
9644 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9647 if test "x$aros_kernel_cc" = "x"; then
9648 aros_kernel_cc
=${kernel_tool_prefix}${CC}
9650 if test "${kernel_tool_version}" != ""; then
9651 if test "$aros_kernel_cc" != ""; then
9652 ac_prog_args
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9653 ac_prog_cmd
=`expr "X$aros_kernel_cc" : '^\S*'`
9654 aros_kernel_cc
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9658 if test "$aros_kernel_cc" = ""; then
9659 if test "$cross_compiling" = "yes" ; then
9660 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9661 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663 $as_echo_n "checking for $ac_word... " >&6; }
9664 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9665 $as_echo_n "(cached) " >&6
9667 case $aros_kernel_cc in
9669 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9676 test -z "$as_dir" && as_dir
=.
9677 for ac_exec_ext
in '' $ac_executable_extensions; do
9678 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9679 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9691 if test -n "$aros_kernel_cc"; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9693 $as_echo "$aros_kernel_cc" >&6; }
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696 $as_echo "no" >&6; }
9701 if test "$GCC" = "yes"; then
9702 aros_gcc_cc
=`$CC -print-prog-name=cc`
9703 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9704 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706 $as_echo_n "checking for $ac_word... " >&6; }
9707 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9708 $as_echo_n "(cached) " >&6
9710 case $aros_kernel_cc in
9712 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9716 for as_dir
in `dirname $aros_gcc_cc`
9719 test -z "$as_dir" && as_dir
=.
9720 for ac_exec_ext
in '' $ac_executable_extensions; do
9721 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9722 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9734 if test -n "$aros_kernel_cc"; then
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9736 $as_echo "$aros_kernel_cc" >&6; }
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739 $as_echo "no" >&6; }
9744 if test "$aros_kernel_cc" = ""; then
9745 # Extract the first word of "cc", so it can be a program name with args.
9746 set dummy cc
; ac_word
=$2
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9748 $as_echo_n "checking for $ac_word... " >&6; }
9749 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9750 $as_echo_n "(cached) " >&6
9752 case $aros_kernel_cc in
9754 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9761 test -z "$as_dir" && as_dir
=.
9762 for ac_exec_ext
in '' $ac_executable_extensions; do
9763 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9764 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9776 if test -n "$aros_kernel_cc"; then
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9778 $as_echo "$aros_kernel_cc" >&6; }
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781 $as_echo "no" >&6; }
9788 ac_tool_optarg
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9789 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9790 set dummy
$aros_kernel_cc; ac_word
=$2
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9792 $as_echo_n "checking for $ac_word... " >&6; }
9793 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9794 $as_echo_n "(cached) " >&6
9796 case $aros_kernel_cc in
9798 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9805 test -z "$as_dir" && as_dir
=.
9806 for ac_exec_ext
in '' $ac_executable_extensions; do
9807 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9808 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9820 if test -n "$aros_kernel_cc"; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9822 $as_echo "$aros_kernel_cc" >&6; }
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9825 $as_echo "no" >&6; }
9829 aros_kernel_cc
="$aros_kernel_cc $ac_tool_optarg"
9833 if test "$aros_kernel_cc" = ""; then
9836 if test "$aros_kernel_cc" = "no"; then
9839 if test "$req_avail" = "no"; then
9840 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9843 if test "x$aros_kernel_cxx" = "x"; then
9844 aros_kernel_cxx
=${kernel_tool_prefix}${CXX}
9846 if test "${kernel_tool_version}" != ""; then
9847 if test "$aros_kernel_cxx" != ""; then
9848 ac_prog_args
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9849 ac_prog_cmd
=`expr "X$aros_kernel_cxx" : '^\S*'`
9850 aros_kernel_cxx
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9854 if test "$aros_kernel_cxx" = ""; then
9855 if test "$cross_compiling" = "yes" ; then
9856 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9857 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859 $as_echo_n "checking for $ac_word... " >&6; }
9860 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9861 $as_echo_n "(cached) " >&6
9863 case $aros_kernel_cxx in
9865 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9872 test -z "$as_dir" && as_dir
=.
9873 for ac_exec_ext
in '' $ac_executable_extensions; do
9874 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9875 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9886 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9887 if test -n "$aros_kernel_cxx"; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9889 $as_echo "$aros_kernel_cxx" >&6; }
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9897 if test "$GCC" = "yes"; then
9898 aros_gcc_cxx
=`$CC -print-prog-name=cxx`
9899 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9900 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9904 $as_echo_n "(cached) " >&6
9906 case $aros_kernel_cxx in
9908 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9912 for as_dir
in `dirname $aros_gcc_cxx`
9915 test -z "$as_dir" && as_dir
=.
9916 for ac_exec_ext
in '' $ac_executable_extensions; do
9917 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9918 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9929 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9930 if test -n "$aros_kernel_cxx"; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9932 $as_echo "$aros_kernel_cxx" >&6; }
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9940 if test "$aros_kernel_cxx" = ""; then
9941 # Extract the first word of "cxx", so it can be a program name with args.
9942 set dummy cxx
; ac_word
=$2
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944 $as_echo_n "checking for $ac_word... " >&6; }
9945 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9946 $as_echo_n "(cached) " >&6
9948 case $aros_kernel_cxx in
9950 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9957 test -z "$as_dir" && as_dir
=.
9958 for ac_exec_ext
in '' $ac_executable_extensions; do
9959 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9960 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9971 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9972 if test -n "$aros_kernel_cxx"; then
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9974 $as_echo "$aros_kernel_cxx" >&6; }
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977 $as_echo "no" >&6; }
9984 ac_tool_optarg
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9985 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
9986 set dummy
$aros_kernel_cxx; ac_word
=$2
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988 $as_echo_n "checking for $ac_word... " >&6; }
9989 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9990 $as_echo_n "(cached) " >&6
9992 case $aros_kernel_cxx in
9994 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10001 test -z "$as_dir" && as_dir
=.
10002 for ac_exec_ext
in '' $ac_executable_extensions; do
10003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10004 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10016 if test -n "$aros_kernel_cxx"; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10018 $as_echo "$aros_kernel_cxx" >&6; }
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10025 aros_kernel_cxx
="$aros_kernel_cxx $ac_tool_optarg"
10028 # If it's set, make sure it's really there
10029 if test "x$aros_kernel_cxx" != "x" ; then
10031 if test "$aros_kernel_cxx" = ""; then
10034 if test "$aros_kernel_cxx" = "no"; then
10037 if test "$req_avail" = "no"; then
10038 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10042 if test "$aros_kernel_ld" = ""; then
10043 if test "$cross_compiling" = "yes" ; then
10044 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10045 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10047 $as_echo_n "checking for $ac_word... " >&6; }
10048 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10049 $as_echo_n "(cached) " >&6
10051 case $aros_kernel_ld in
10053 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10057 for as_dir
in $PATH
10060 test -z "$as_dir" && as_dir
=.
10061 for ac_exec_ext
in '' $ac_executable_extensions; do
10062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10063 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10075 if test -n "$aros_kernel_ld"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10077 $as_echo "$aros_kernel_ld" >&6; }
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 $as_echo "no" >&6; }
10085 if test "$GCC" = "yes"; then
10086 aros_gcc_ld
=`$CC -print-prog-name=ld`
10087 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10088 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10092 $as_echo_n "(cached) " >&6
10094 case $aros_kernel_ld in
10096 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10100 for as_dir
in `dirname $aros_gcc_ld`
10103 test -z "$as_dir" && as_dir
=.
10104 for ac_exec_ext
in '' $ac_executable_extensions; do
10105 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10106 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10118 if test -n "$aros_kernel_ld"; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10120 $as_echo "$aros_kernel_ld" >&6; }
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123 $as_echo "no" >&6; }
10128 if test "$aros_kernel_ld" = ""; then
10129 # Extract the first word of "ld", so it can be a program name with args.
10130 set dummy ld
; ac_word
=$2
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10132 $as_echo_n "checking for $ac_word... " >&6; }
10133 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10134 $as_echo_n "(cached) " >&6
10136 case $aros_kernel_ld in
10138 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10142 for as_dir
in $PATH
10145 test -z "$as_dir" && as_dir
=.
10146 for ac_exec_ext
in '' $ac_executable_extensions; do
10147 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10148 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10159 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10160 if test -n "$aros_kernel_ld"; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10162 $as_echo "$aros_kernel_ld" >&6; }
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165 $as_echo "no" >&6; }
10172 ac_tool_optarg
=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10173 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10174 set dummy
$aros_kernel_ld; ac_word
=$2
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10176 $as_echo_n "checking for $ac_word... " >&6; }
10177 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10178 $as_echo_n "(cached) " >&6
10180 case $aros_kernel_ld in
10182 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10186 for as_dir
in $PATH
10189 test -z "$as_dir" && as_dir
=.
10190 for ac_exec_ext
in '' $ac_executable_extensions; do
10191 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10192 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10204 if test -n "$aros_kernel_ld"; then
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10206 $as_echo "$aros_kernel_ld" >&6; }
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209 $as_echo "no" >&6; }
10213 aros_kernel_ld
="$aros_kernel_ld $ac_tool_optarg"
10217 if test "$aros_kernel_ld" = ""; then
10220 if test "$aros_kernel_ld" = "no"; then
10223 if test "$req_avail" = "no"; then
10224 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10227 if test "$aros_kernel_as" = ""; then
10228 if test "$cross_compiling" = "yes" ; then
10229 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10230 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10232 $as_echo_n "checking for $ac_word... " >&6; }
10233 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10234 $as_echo_n "(cached) " >&6
10236 case $aros_kernel_as in
10238 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10242 for as_dir
in $PATH
10245 test -z "$as_dir" && as_dir
=.
10246 for ac_exec_ext
in '' $ac_executable_extensions; do
10247 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10248 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10259 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10260 if test -n "$aros_kernel_as"; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10262 $as_echo "$aros_kernel_as" >&6; }
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10270 if test "$GCC" = "yes"; then
10271 aros_gcc_as
=`$CC -print-prog-name=as`
10272 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10273 set dummy
`basename $aros_gcc_as`; ac_word
=$2
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275 $as_echo_n "checking for $ac_word... " >&6; }
10276 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10277 $as_echo_n "(cached) " >&6
10279 case $aros_kernel_as in
10281 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10285 for as_dir
in `dirname $aros_gcc_as`
10288 test -z "$as_dir" && as_dir
=.
10289 for ac_exec_ext
in '' $ac_executable_extensions; do
10290 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10291 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10302 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10303 if test -n "$aros_kernel_as"; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10305 $as_echo "$aros_kernel_as" >&6; }
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308 $as_echo "no" >&6; }
10313 if test "$aros_kernel_as" = ""; then
10314 # Extract the first word of "as", so it can be a program name with args.
10315 set dummy as
; ac_word
=$2
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317 $as_echo_n "checking for $ac_word... " >&6; }
10318 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10319 $as_echo_n "(cached) " >&6
10321 case $aros_kernel_as in
10323 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10327 for as_dir
in $PATH
10330 test -z "$as_dir" && as_dir
=.
10331 for ac_exec_ext
in '' $ac_executable_extensions; do
10332 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10333 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10345 if test -n "$aros_kernel_as"; then
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10347 $as_echo "$aros_kernel_as" >&6; }
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10357 ac_tool_optarg
=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10358 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10359 set dummy
$aros_kernel_as; ac_word
=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10363 $as_echo_n "(cached) " >&6
10365 case $aros_kernel_as in
10367 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10371 for as_dir
in $PATH
10374 test -z "$as_dir" && as_dir
=.
10375 for ac_exec_ext
in '' $ac_executable_extensions; do
10376 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10377 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10388 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10389 if test -n "$aros_kernel_as"; then
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10391 $as_echo "$aros_kernel_as" >&6; }
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10398 aros_kernel_as
="$aros_kernel_as $ac_tool_optarg"
10402 if test "$aros_kernel_as" = ""; then
10405 if test "$aros_kernel_as" = "no"; then
10408 if test "$req_avail" = "no"; then
10409 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
10412 if test "$aros_kernel_ar" = ""; then
10413 if test "$cross_compiling" = "yes" ; then
10414 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10415 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417 $as_echo_n "checking for $ac_word... " >&6; }
10418 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10419 $as_echo_n "(cached) " >&6
10421 case $aros_kernel_ar in
10423 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10427 for as_dir
in $PATH
10430 test -z "$as_dir" && as_dir
=.
10431 for ac_exec_ext
in '' $ac_executable_extensions; do
10432 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10433 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10445 if test -n "$aros_kernel_ar"; then
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10447 $as_echo "$aros_kernel_ar" >&6; }
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450 $as_echo "no" >&6; }
10455 if test "$GCC" = "yes"; then
10456 aros_gcc_ar
=`$CC -print-prog-name=ar`
10457 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10458 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10460 $as_echo_n "checking for $ac_word... " >&6; }
10461 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10462 $as_echo_n "(cached) " >&6
10464 case $aros_kernel_ar in
10466 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10470 for as_dir
in `dirname $aros_gcc_ar`
10473 test -z "$as_dir" && as_dir
=.
10474 for ac_exec_ext
in '' $ac_executable_extensions; do
10475 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10476 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10487 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10488 if test -n "$aros_kernel_ar"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10490 $as_echo "$aros_kernel_ar" >&6; }
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10498 if test "$aros_kernel_ar" = ""; then
10499 # Extract the first word of "ar", so it can be a program name with args.
10500 set dummy
ar; ac_word
=$2
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10502 $as_echo_n "checking for $ac_word... " >&6; }
10503 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10504 $as_echo_n "(cached) " >&6
10506 case $aros_kernel_ar in
10508 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10512 for as_dir
in $PATH
10515 test -z "$as_dir" && as_dir
=.
10516 for ac_exec_ext
in '' $ac_executable_extensions; do
10517 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10518 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10530 if test -n "$aros_kernel_ar"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10532 $as_echo "$aros_kernel_ar" >&6; }
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10542 ac_tool_optarg
=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10543 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10544 set dummy
$aros_kernel_ar; ac_word
=$2
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10546 $as_echo_n "checking for $ac_word... " >&6; }
10547 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10548 $as_echo_n "(cached) " >&6
10550 case $aros_kernel_ar in
10552 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10556 for as_dir
in $PATH
10559 test -z "$as_dir" && as_dir
=.
10560 for ac_exec_ext
in '' $ac_executable_extensions; do
10561 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10562 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10573 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10574 if test -n "$aros_kernel_ar"; then
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10576 $as_echo "$aros_kernel_ar" >&6; }
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579 $as_echo "no" >&6; }
10583 aros_kernel_ar
="$aros_kernel_ar $ac_tool_optarg"
10587 if test "$aros_kernel_ar" = ""; then
10590 if test "$aros_kernel_ar" = "no"; then
10593 if test "$req_avail" = "no"; then
10594 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10597 if test "$aros_kernel_ranlib" = ""; then
10598 if test "$cross_compiling" = "yes" ; then
10599 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10600 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602 $as_echo_n "checking for $ac_word... " >&6; }
10603 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10604 $as_echo_n "(cached) " >&6
10606 case $aros_kernel_ranlib in
10608 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10612 for as_dir
in $PATH
10615 test -z "$as_dir" && as_dir
=.
10616 for ac_exec_ext
in '' $ac_executable_extensions; do
10617 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10618 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10629 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10630 if test -n "$aros_kernel_ranlib"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10632 $as_echo "$aros_kernel_ranlib" >&6; }
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 $as_echo "no" >&6; }
10640 if test "$GCC" = "yes"; then
10641 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
10642 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10643 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10645 $as_echo_n "checking for $ac_word... " >&6; }
10646 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10647 $as_echo_n "(cached) " >&6
10649 case $aros_kernel_ranlib in
10651 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10655 for as_dir
in `dirname $aros_gcc_ranlib`
10658 test -z "$as_dir" && as_dir
=.
10659 for ac_exec_ext
in '' $ac_executable_extensions; do
10660 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10661 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10673 if test -n "$aros_kernel_ranlib"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10675 $as_echo "$aros_kernel_ranlib" >&6; }
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10683 if test "$aros_kernel_ranlib" = ""; then
10684 # Extract the first word of "ranlib", so it can be a program name with args.
10685 set dummy ranlib
; ac_word
=$2
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10687 $as_echo_n "checking for $ac_word... " >&6; }
10688 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10689 $as_echo_n "(cached) " >&6
10691 case $aros_kernel_ranlib in
10693 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10697 for as_dir
in $PATH
10700 test -z "$as_dir" && as_dir
=.
10701 for ac_exec_ext
in '' $ac_executable_extensions; do
10702 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10703 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10714 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10715 if test -n "$aros_kernel_ranlib"; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10717 $as_echo "$aros_kernel_ranlib" >&6; }
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720 $as_echo "no" >&6; }
10727 ac_tool_optarg
=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10728 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10729 set dummy
$aros_kernel_ranlib; ac_word
=$2
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10731 $as_echo_n "checking for $ac_word... " >&6; }
10732 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10733 $as_echo_n "(cached) " >&6
10735 case $aros_kernel_ranlib in
10737 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10741 for as_dir
in $PATH
10744 test -z "$as_dir" && as_dir
=.
10745 for ac_exec_ext
in '' $ac_executable_extensions; do
10746 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10747 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10758 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10759 if test -n "$aros_kernel_ranlib"; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10761 $as_echo "$aros_kernel_ranlib" >&6; }
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764 $as_echo "no" >&6; }
10768 aros_kernel_ranlib
="$aros_kernel_ranlib $ac_tool_optarg"
10772 if test "$aros_kernel_ranlib" = ""; then
10775 if test "$aros_kernel_ranlib" = "no"; then
10778 if test "$req_avail" = "no"; then
10779 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10782 if test "$aros_kernel_nm" = ""; then
10783 if test "$cross_compiling" = "yes" ; then
10784 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10785 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787 $as_echo_n "checking for $ac_word... " >&6; }
10788 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10789 $as_echo_n "(cached) " >&6
10791 case $aros_kernel_nm in
10793 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10797 for as_dir
in $PATH
10800 test -z "$as_dir" && as_dir
=.
10801 for ac_exec_ext
in '' $ac_executable_extensions; do
10802 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10803 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10814 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10815 if test -n "$aros_kernel_nm"; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10817 $as_echo "$aros_kernel_nm" >&6; }
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10825 if test "$GCC" = "yes"; then
10826 aros_gcc_nm
=`$CC -print-prog-name=nm`
10827 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10828 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830 $as_echo_n "checking for $ac_word... " >&6; }
10831 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10832 $as_echo_n "(cached) " >&6
10834 case $aros_kernel_nm in
10836 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10840 for as_dir
in `dirname $aros_gcc_nm`
10843 test -z "$as_dir" && as_dir
=.
10844 for ac_exec_ext
in '' $ac_executable_extensions; do
10845 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10846 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10857 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10858 if test -n "$aros_kernel_nm"; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10860 $as_echo "$aros_kernel_nm" >&6; }
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 $as_echo "no" >&6; }
10868 if test "$aros_kernel_nm" = ""; then
10869 # Extract the first word of "nm", so it can be a program name with args.
10870 set dummy nm
; ac_word
=$2
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10872 $as_echo_n "checking for $ac_word... " >&6; }
10873 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10874 $as_echo_n "(cached) " >&6
10876 case $aros_kernel_nm in
10878 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10882 for as_dir
in $PATH
10885 test -z "$as_dir" && as_dir
=.
10886 for ac_exec_ext
in '' $ac_executable_extensions; do
10887 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10888 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10899 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10900 if test -n "$aros_kernel_nm"; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10902 $as_echo "$aros_kernel_nm" >&6; }
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10912 ac_tool_optarg
=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
10913 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10914 set dummy
$aros_kernel_nm; ac_word
=$2
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916 $as_echo_n "checking for $ac_word... " >&6; }
10917 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10918 $as_echo_n "(cached) " >&6
10920 case $aros_kernel_nm in
10922 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10926 for as_dir
in $PATH
10929 test -z "$as_dir" && as_dir
=.
10930 for ac_exec_ext
in '' $ac_executable_extensions; do
10931 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10932 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10944 if test -n "$aros_kernel_nm"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10946 $as_echo "$aros_kernel_nm" >&6; }
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10953 aros_kernel_nm
="$aros_kernel_nm $ac_tool_optarg"
10957 if test "$aros_kernel_nm" = ""; then
10960 if test "$aros_kernel_nm" = "no"; then
10963 if test "$req_avail" = "no"; then
10964 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10967 if test "$aros_kernel_strip" = ""; then
10968 if test "$cross_compiling" = "yes" ; then
10969 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10970 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10972 $as_echo_n "checking for $ac_word... " >&6; }
10973 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10974 $as_echo_n "(cached) " >&6
10976 case $aros_kernel_strip in
10978 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10982 for as_dir
in $PATH
10985 test -z "$as_dir" && as_dir
=.
10986 for ac_exec_ext
in '' $ac_executable_extensions; do
10987 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10988 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10999 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11000 if test -n "$aros_kernel_strip"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11002 $as_echo "$aros_kernel_strip" >&6; }
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 $as_echo "no" >&6; }
11010 if test "$GCC" = "yes"; then
11011 aros_gcc_strip
=`$CC -print-prog-name=strip`
11012 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11013 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11015 $as_echo_n "checking for $ac_word... " >&6; }
11016 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11017 $as_echo_n "(cached) " >&6
11019 case $aros_kernel_strip in
11021 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11025 for as_dir
in `dirname $aros_gcc_strip`
11028 test -z "$as_dir" && as_dir
=.
11029 for ac_exec_ext
in '' $ac_executable_extensions; do
11030 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11031 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11042 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11043 if test -n "$aros_kernel_strip"; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11045 $as_echo "$aros_kernel_strip" >&6; }
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11053 if test "$aros_kernel_strip" = ""; then
11054 # Extract the first word of "strip", so it can be a program name with args.
11055 set dummy strip
; ac_word
=$2
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11059 $as_echo_n "(cached) " >&6
11061 case $aros_kernel_strip in
11063 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11067 for as_dir
in $PATH
11070 test -z "$as_dir" && as_dir
=.
11071 for ac_exec_ext
in '' $ac_executable_extensions; do
11072 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11073 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11085 if test -n "$aros_kernel_strip"; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11087 $as_echo "$aros_kernel_strip" >&6; }
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090 $as_echo "no" >&6; }
11097 ac_tool_optarg
=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11098 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11099 set dummy
$aros_kernel_strip; ac_word
=$2
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11101 $as_echo_n "checking for $ac_word... " >&6; }
11102 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11103 $as_echo_n "(cached) " >&6
11105 case $aros_kernel_strip in
11107 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11111 for as_dir
in $PATH
11114 test -z "$as_dir" && as_dir
=.
11115 for ac_exec_ext
in '' $ac_executable_extensions; do
11116 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11117 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11129 if test -n "$aros_kernel_strip"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11131 $as_echo "$aros_kernel_strip" >&6; }
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11138 aros_kernel_strip
="$aros_kernel_strip $ac_tool_optarg"
11142 if test "$aros_kernel_strip" = ""; then
11145 if test "$aros_kernel_strip" = "no"; then
11148 if test "$req_avail" = "no"; then
11149 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11152 # Objcopy and objdump are not required for the kernel
11153 # toolchain on many architectures.
11154 # So we'll look for them, but not make them strictly required.
11156 if test "$aros_kernel_objcopy" = ""; then
11157 if test "$cross_compiling" = "yes" ; then
11158 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11159 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161 $as_echo_n "checking for $ac_word... " >&6; }
11162 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11163 $as_echo_n "(cached) " >&6
11165 case $aros_kernel_objcopy in
11167 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11171 for as_dir
in $PATH
11174 test -z "$as_dir" && as_dir
=.
11175 for ac_exec_ext
in '' $ac_executable_extensions; do
11176 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11177 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11188 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11189 if test -n "$aros_kernel_objcopy"; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11191 $as_echo "$aros_kernel_objcopy" >&6; }
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11199 if test "$GCC" = "yes"; then
11200 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
11201 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11202 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11206 $as_echo_n "(cached) " >&6
11208 case $aros_kernel_objcopy in
11210 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11214 for as_dir
in `dirname $aros_gcc_objcopy`
11217 test -z "$as_dir" && as_dir
=.
11218 for ac_exec_ext
in '' $ac_executable_extensions; do
11219 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11220 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11231 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11232 if test -n "$aros_kernel_objcopy"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11234 $as_echo "$aros_kernel_objcopy" >&6; }
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11242 if test "$aros_kernel_objcopy" = ""; then
11243 # Extract the first word of "objcopy", so it can be a program name with args.
11244 set dummy objcopy
; ac_word
=$2
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11246 $as_echo_n "checking for $ac_word... " >&6; }
11247 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11248 $as_echo_n "(cached) " >&6
11250 case $aros_kernel_objcopy in
11252 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11256 for as_dir
in $PATH
11259 test -z "$as_dir" && as_dir
=.
11260 for ac_exec_ext
in '' $ac_executable_extensions; do
11261 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11262 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11273 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11274 if test -n "$aros_kernel_objcopy"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11276 $as_echo "$aros_kernel_objcopy" >&6; }
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11286 ac_tool_optarg
=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11287 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11288 set dummy
$aros_kernel_objcopy; 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_aros_kernel_objcopy+:} false
; then :
11292 $as_echo_n "(cached) " >&6
11294 case $aros_kernel_objcopy in
11296 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # 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_aros_kernel_objcopy
="$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 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11318 if test -n "$aros_kernel_objcopy"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11320 $as_echo "$aros_kernel_objcopy" >&6; }
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11327 aros_kernel_objcopy
="$aros_kernel_objcopy $ac_tool_optarg"
11331 if test "$aros_kernel_objdump" = ""; then
11332 if test "$cross_compiling" = "yes" ; then
11333 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11334 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336 $as_echo_n "checking for $ac_word... " >&6; }
11337 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11338 $as_echo_n "(cached) " >&6
11340 case $aros_kernel_objdump in
11342 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11346 for as_dir
in $PATH
11349 test -z "$as_dir" && as_dir
=.
11350 for ac_exec_ext
in '' $ac_executable_extensions; do
11351 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11352 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11364 if test -n "$aros_kernel_objdump"; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11366 $as_echo "$aros_kernel_objdump" >&6; }
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369 $as_echo "no" >&6; }
11374 if test "$GCC" = "yes"; then
11375 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
11376 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11377 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379 $as_echo_n "checking for $ac_word... " >&6; }
11380 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11381 $as_echo_n "(cached) " >&6
11383 case $aros_kernel_objdump in
11385 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11389 for as_dir
in `dirname $aros_gcc_objdump`
11392 test -z "$as_dir" && as_dir
=.
11393 for ac_exec_ext
in '' $ac_executable_extensions; do
11394 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11395 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11407 if test -n "$aros_kernel_objdump"; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11409 $as_echo "$aros_kernel_objdump" >&6; }
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11417 if test "$aros_kernel_objdump" = ""; then
11418 # Extract the first word of "objdump", so it can be a program name with args.
11419 set dummy objdump
; ac_word
=$2
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421 $as_echo_n "checking for $ac_word... " >&6; }
11422 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11423 $as_echo_n "(cached) " >&6
11425 case $aros_kernel_objdump in
11427 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11431 for as_dir
in $PATH
11434 test -z "$as_dir" && as_dir
=.
11435 for ac_exec_ext
in '' $ac_executable_extensions; do
11436 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11437 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11449 if test -n "$aros_kernel_objdump"; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11451 $as_echo "$aros_kernel_objdump" >&6; }
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454 $as_echo "no" >&6; }
11461 ac_tool_optarg
=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11462 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11463 set dummy
$aros_kernel_objdump; ac_word
=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11467 $as_echo_n "(cached) " >&6
11469 case $aros_kernel_objdump in
11471 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11475 for as_dir
in $PATH
11478 test -z "$as_dir" && as_dir
=.
11479 for ac_exec_ext
in '' $ac_executable_extensions; do
11480 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11481 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11493 if test -n "$aros_kernel_objdump"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11495 $as_echo "$aros_kernel_objdump" >&6; }
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11502 aros_kernel_objdump
="$aros_kernel_objdump $ac_tool_optarg"
11505 if test "x${crosstools}" != "xyes" ; then
11507 if test "$aros_kernel_objcopy" = ""; then
11510 if test "$aros_kernel_objcopy" = "no"; then
11513 if test "$req_avail" = "no"; then
11514 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11517 if test "$aros_kernel_objdump" = ""; then
11520 if test "$aros_kernel_objdump" = "no"; then
11523 if test "$req_avail" = "no"; then
11524 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11530 $as_echo_n "checking which target tools to use... " >&6; }
11531 if test "$aros_target_toolchain" = "yes"; then
11532 if test "$aros_toolchain" = "llvm" ; then
11535 msg_result
=$target_tool_prefix
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11538 $as_echo "$msg_result" >&6; }
11539 # We are building AROS crosstools
11540 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11541 orig_target_cc
="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11542 orig_target_cxx
="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11543 orig_target_cpp
="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11544 orig_target_ld
="${tmp_tool_prefix}${toolchain_ld}"
11545 orig_target_as
="${tmp_tool_prefix}${toolchain_as}"
11546 orig_target_ar
="${tmp_tool_prefix}${toolchain_ar}"
11547 orig_target_ranlib
="${tmp_tool_prefix}${toolchain_ranlib}"
11548 orig_target_nm
="${tmp_tool_prefix}${toolchain_nm}"
11549 orig_target_strip
="${tmp_tool_prefix}${toolchain_strip}"
11550 orig_target_objcopy
="${tmp_tool_prefix}${toolchain_objcopy}"
11551 orig_target_objdump
="${tmp_tool_prefix}${toolchain_objdump}"
11553 # Determine whether AROS or ELF tools should be used
11554 if test "$aros_tool_prefix" = "none"; then
11555 aros_tool_prefix
="${elf_tool_prefix}"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11559 $as_echo "$aros_tool_prefix" >&6; }
11560 # We are *not* building AROS crosstools - use the AROS or ELF tools
11562 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11563 if test "$cross_compiling" = "yes" ; then
11564 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11565 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11567 $as_echo_n "checking for $ac_word... " >&6; }
11568 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11569 $as_echo_n "(cached) " >&6
11571 case $orig_target_cpp in
11573 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11577 for as_dir
in $PATH
11580 test -z "$as_dir" && as_dir
=.
11581 for ac_exec_ext
in '' $ac_executable_extensions; do
11582 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11583 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11595 if test -n "$orig_target_cpp"; then
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11597 $as_echo "$orig_target_cpp" >&6; }
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11605 if test "$GCC" = "yes"; then
11606 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
11607 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11608 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610 $as_echo_n "checking for $ac_word... " >&6; }
11611 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11612 $as_echo_n "(cached) " >&6
11614 case $orig_target_cpp in
11616 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11620 for as_dir
in `dirname $aros_gcc_cpp`
11623 test -z "$as_dir" && as_dir
=.
11624 for ac_exec_ext
in '' $ac_executable_extensions; do
11625 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11626 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11637 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11638 if test -n "$orig_target_cpp"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11640 $as_echo "$orig_target_cpp" >&6; }
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11648 if test "$orig_target_cpp" = ""; then
11649 # Extract the first word of "cpp", so it can be a program name with args.
11650 set dummy cpp
; ac_word
=$2
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652 $as_echo_n "checking for $ac_word... " >&6; }
11653 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11654 $as_echo_n "(cached) " >&6
11656 case $orig_target_cpp in
11658 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11662 for as_dir
in $PATH
11665 test -z "$as_dir" && as_dir
=.
11666 for ac_exec_ext
in '' $ac_executable_extensions; do
11667 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11668 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11679 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11680 if test -n "$orig_target_cpp"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11682 $as_echo "$orig_target_cpp" >&6; }
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11692 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11693 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11694 set dummy
${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word
=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11698 $as_echo_n "(cached) " >&6
11700 case $orig_target_cpp in
11702 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11706 for as_dir
in $PATH
11709 test -z "$as_dir" && as_dir
=.
11710 for ac_exec_ext
in '' $ac_executable_extensions; do
11711 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11712 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11723 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11724 if test -n "$orig_target_cpp"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11726 $as_echo "$orig_target_cpp" >&6; }
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729 $as_echo "no" >&6; }
11733 orig_target_cpp
="$orig_target_cpp $ac_tool_optarg"
11737 if test "$orig_target_cpp" = ""; then
11740 if test "$orig_target_cpp" = "no"; then
11743 if test "$req_avail" = "no"; then
11744 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11747 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11748 if test "$cross_compiling" = "yes" ; then
11749 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11750 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752 $as_echo_n "checking for $ac_word... " >&6; }
11753 if ${ac_cv_path_orig_target_cc+:} false
; then :
11754 $as_echo_n "(cached) " >&6
11756 case $orig_target_cc in
11758 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11762 for as_dir
in $PATH
11765 test -z "$as_dir" && as_dir
=.
11766 for ac_exec_ext
in '' $ac_executable_extensions; do
11767 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11768 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11779 orig_target_cc
=$ac_cv_path_orig_target_cc
11780 if test -n "$orig_target_cc"; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11782 $as_echo "$orig_target_cc" >&6; }
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 $as_echo "no" >&6; }
11790 if test "$GCC" = "yes"; then
11791 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11792 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11793 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795 $as_echo_n "checking for $ac_word... " >&6; }
11796 if ${ac_cv_path_orig_target_cc+:} false
; then :
11797 $as_echo_n "(cached) " >&6
11799 case $orig_target_cc in
11801 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11805 for as_dir
in `dirname $aros_gcc_gcc`
11808 test -z "$as_dir" && as_dir
=.
11809 for ac_exec_ext
in '' $ac_executable_extensions; do
11810 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11811 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11822 orig_target_cc
=$ac_cv_path_orig_target_cc
11823 if test -n "$orig_target_cc"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11825 $as_echo "$orig_target_cc" >&6; }
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11833 if test "$orig_target_cc" = ""; then
11834 # Extract the first word of "gcc", so it can be a program name with args.
11835 set dummy gcc
; ac_word
=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if ${ac_cv_path_orig_target_cc+:} false
; then :
11839 $as_echo_n "(cached) " >&6
11841 case $orig_target_cc in
11843 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11847 for as_dir
in $PATH
11850 test -z "$as_dir" && as_dir
=.
11851 for ac_exec_ext
in '' $ac_executable_extensions; do
11852 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11853 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11864 orig_target_cc
=$ac_cv_path_orig_target_cc
11865 if test -n "$orig_target_cc"; then
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11867 $as_echo "$orig_target_cc" >&6; }
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11877 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11878 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11879 set dummy
${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word
=$2
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11881 $as_echo_n "checking for $ac_word... " >&6; }
11882 if ${ac_cv_path_orig_target_cc+:} false
; then :
11883 $as_echo_n "(cached) " >&6
11885 case $orig_target_cc in
11887 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11891 for as_dir
in $PATH
11894 test -z "$as_dir" && as_dir
=.
11895 for ac_exec_ext
in '' $ac_executable_extensions; do
11896 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11897 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908 orig_target_cc
=$ac_cv_path_orig_target_cc
11909 if test -n "$orig_target_cc"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11911 $as_echo "$orig_target_cc" >&6; }
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11918 orig_target_cc
="$orig_target_cc $ac_tool_optarg"
11922 if test "$orig_target_cc" = ""; then
11925 if test "$orig_target_cc" = "no"; then
11928 if test "$req_avail" = "no"; then
11929 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11932 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11933 if test "$cross_compiling" = "yes" ; then
11934 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11935 set dummy
${target_tool_prefix}g
++; ac_word
=$2
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937 $as_echo_n "checking for $ac_word... " >&6; }
11938 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11939 $as_echo_n "(cached) " >&6
11941 case $orig_target_cxx in
11943 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11947 for as_dir
in $PATH
11950 test -z "$as_dir" && as_dir
=.
11951 for ac_exec_ext
in '' $ac_executable_extensions; do
11952 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11953 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11964 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11965 if test -n "$orig_target_cxx"; then
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11967 $as_echo "$orig_target_cxx" >&6; }
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 $as_echo "no" >&6; }
11975 if test "$GCC" = "yes"; then
11976 aros_gcc_g
++=`$CC -print-prog-name=g++`
11977 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11978 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 $as_echo_n "checking for $ac_word... " >&6; }
11981 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11982 $as_echo_n "(cached) " >&6
11984 case $orig_target_cxx in
11986 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11990 for as_dir
in `dirname $aros_gcc_g++`
11993 test -z "$as_dir" && as_dir
=.
11994 for ac_exec_ext
in '' $ac_executable_extensions; do
11995 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11996 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12007 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12008 if test -n "$orig_target_cxx"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12010 $as_echo "$orig_target_cxx" >&6; }
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12018 if test "$orig_target_cxx" = ""; then
12019 # Extract the first word of "g++", so it can be a program name with args.
12020 set dummy g
++; 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_cxx+:} false
; then :
12024 $as_echo_n "(cached) " >&6
12026 case $orig_target_cxx in
12028 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # 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_cxx
="$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_cxx
=$ac_cv_path_orig_target_cxx
12050 if test -n "$orig_target_cxx"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12052 $as_echo "$orig_target_cxx" >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12062 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12063 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12064 set dummy
${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word
=$2
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12066 $as_echo_n "checking for $ac_word... " >&6; }
12067 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12068 $as_echo_n "(cached) " >&6
12070 case $orig_target_cxx in
12072 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12076 for as_dir
in $PATH
12079 test -z "$as_dir" && as_dir
=.
12080 for ac_exec_ext
in '' $ac_executable_extensions; do
12081 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12082 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12094 if test -n "$orig_target_cxx"; then
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12096 $as_echo "$orig_target_cxx" >&6; }
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099 $as_echo "no" >&6; }
12103 orig_target_cxx
="$orig_target_cxx $ac_tool_optarg"
12107 if test "$orig_target_cxx" = ""; then
12110 if test "$orig_target_cxx" = "no"; then
12113 if test "$req_avail" = "no"; then
12114 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12117 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12118 if test "$cross_compiling" = "yes" ; then
12119 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12120 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12122 $as_echo_n "checking for $ac_word... " >&6; }
12123 if ${ac_cv_path_orig_target_ld+:} false
; then :
12124 $as_echo_n "(cached) " >&6
12126 case $orig_target_ld in
12128 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12132 for as_dir
in $PATH
12135 test -z "$as_dir" && as_dir
=.
12136 for ac_exec_ext
in '' $ac_executable_extensions; do
12137 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12138 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12149 orig_target_ld
=$ac_cv_path_orig_target_ld
12150 if test -n "$orig_target_ld"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12152 $as_echo "$orig_target_ld" >&6; }
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12160 if test "$GCC" = "yes"; then
12161 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
12162 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12163 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165 $as_echo_n "checking for $ac_word... " >&6; }
12166 if ${ac_cv_path_orig_target_ld+:} false
; then :
12167 $as_echo_n "(cached) " >&6
12169 case $orig_target_ld in
12171 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12175 for as_dir
in `dirname $aros_gcc_gcc`
12178 test -z "$as_dir" && as_dir
=.
12179 for ac_exec_ext
in '' $ac_executable_extensions; do
12180 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12181 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12192 orig_target_ld
=$ac_cv_path_orig_target_ld
12193 if test -n "$orig_target_ld"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12195 $as_echo "$orig_target_ld" >&6; }
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12203 if test "$orig_target_ld" = ""; then
12204 # Extract the first word of "gcc", so it can be a program name with args.
12205 set dummy gcc
; ac_word
=$2
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12207 $as_echo_n "checking for $ac_word... " >&6; }
12208 if ${ac_cv_path_orig_target_ld+:} false
; then :
12209 $as_echo_n "(cached) " >&6
12211 case $orig_target_ld in
12213 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12217 for as_dir
in $PATH
12220 test -z "$as_dir" && as_dir
=.
12221 for ac_exec_ext
in '' $ac_executable_extensions; do
12222 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12223 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234 orig_target_ld
=$ac_cv_path_orig_target_ld
12235 if test -n "$orig_target_ld"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12237 $as_echo "$orig_target_ld" >&6; }
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12247 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12248 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12249 set dummy
${aros_tool_prefix}${toolchain_ld}; ac_word
=$2
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12251 $as_echo_n "checking for $ac_word... " >&6; }
12252 if ${ac_cv_path_orig_target_ld+:} false
; then :
12253 $as_echo_n "(cached) " >&6
12255 case $orig_target_ld in
12257 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12261 for as_dir
in $PATH
12264 test -z "$as_dir" && as_dir
=.
12265 for ac_exec_ext
in '' $ac_executable_extensions; do
12266 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12267 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 orig_target_ld
=$ac_cv_path_orig_target_ld
12279 if test -n "$orig_target_ld"; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12281 $as_echo "$orig_target_ld" >&6; }
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 $as_echo "no" >&6; }
12288 orig_target_ld
="$orig_target_ld $ac_tool_optarg"
12292 if test "$orig_target_ld" = ""; then
12295 if test "$orig_target_ld" = "no"; then
12298 if test "$req_avail" = "no"; then
12299 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12302 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12303 if test "$cross_compiling" = "yes" ; then
12304 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12305 set dummy
${target_tool_prefix}as
; ac_word
=$2
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307 $as_echo_n "checking for $ac_word... " >&6; }
12308 if ${ac_cv_path_orig_target_as+:} false
; then :
12309 $as_echo_n "(cached) " >&6
12311 case $orig_target_as in
12313 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12317 for as_dir
in $PATH
12320 test -z "$as_dir" && as_dir
=.
12321 for ac_exec_ext
in '' $ac_executable_extensions; do
12322 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12323 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 orig_target_as
=$ac_cv_path_orig_target_as
12335 if test -n "$orig_target_as"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12337 $as_echo "$orig_target_as" >&6; }
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12345 if test "$GCC" = "yes"; then
12346 aros_gcc_as
=`$CC -print-prog-name=as`
12347 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12348 set dummy
`basename $aros_gcc_as`; ac_word
=$2
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350 $as_echo_n "checking for $ac_word... " >&6; }
12351 if ${ac_cv_path_orig_target_as+:} false
; then :
12352 $as_echo_n "(cached) " >&6
12354 case $orig_target_as in
12356 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12360 for as_dir
in `dirname $aros_gcc_as`
12363 test -z "$as_dir" && as_dir
=.
12364 for ac_exec_ext
in '' $ac_executable_extensions; do
12365 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12366 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377 orig_target_as
=$ac_cv_path_orig_target_as
12378 if test -n "$orig_target_as"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12380 $as_echo "$orig_target_as" >&6; }
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12388 if test "$orig_target_as" = ""; then
12389 # Extract the first word of "as", so it can be a program name with args.
12390 set dummy as
; ac_word
=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_path_orig_target_as+:} false
; then :
12394 $as_echo_n "(cached) " >&6
12396 case $orig_target_as in
12398 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12402 for as_dir
in $PATH
12405 test -z "$as_dir" && as_dir
=.
12406 for ac_exec_ext
in '' $ac_executable_extensions; do
12407 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12408 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12419 orig_target_as
=$ac_cv_path_orig_target_as
12420 if test -n "$orig_target_as"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12422 $as_echo "$orig_target_as" >&6; }
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12432 ac_tool_optarg
=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12433 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12434 set dummy aros_tool_prefix
}${toolchain_as}; ac_word
=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 $as_echo_n "checking for $ac_word... " >&6; }
12437 if ${ac_cv_path_orig_target_as+:} false
; then :
12438 $as_echo_n "(cached) " >&6
12440 case $orig_target_as in
12442 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12446 for as_dir
in $PATH
12449 test -z "$as_dir" && as_dir
=.
12450 for ac_exec_ext
in '' $ac_executable_extensions; do
12451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12452 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463 orig_target_as
=$ac_cv_path_orig_target_as
12464 if test -n "$orig_target_as"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12466 $as_echo "$orig_target_as" >&6; }
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12473 orig_target_as
="$orig_target_as $ac_tool_optarg"
12477 if test "$orig_target_as" = ""; then
12480 if test "$orig_target_as" = "no"; then
12483 if test "$req_avail" = "no"; then
12484 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
12487 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12488 if test "$cross_compiling" = "yes" ; then
12489 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12490 set dummy
${target_tool_prefix}ar; ac_word
=$2
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12492 $as_echo_n "checking for $ac_word... " >&6; }
12493 if ${ac_cv_path_orig_target_ar+:} false
; then :
12494 $as_echo_n "(cached) " >&6
12496 case $orig_target_ar in
12498 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12502 for as_dir
in $PATH
12505 test -z "$as_dir" && as_dir
=.
12506 for ac_exec_ext
in '' $ac_executable_extensions; do
12507 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12508 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519 orig_target_ar
=$ac_cv_path_orig_target_ar
12520 if test -n "$orig_target_ar"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12522 $as_echo "$orig_target_ar" >&6; }
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12530 if test "$GCC" = "yes"; then
12531 aros_gcc_ar
=`$CC -print-prog-name=ar`
12532 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12533 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12535 $as_echo_n "checking for $ac_word... " >&6; }
12536 if ${ac_cv_path_orig_target_ar+:} false
; then :
12537 $as_echo_n "(cached) " >&6
12539 case $orig_target_ar in
12541 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12545 for as_dir
in `dirname $aros_gcc_ar`
12548 test -z "$as_dir" && as_dir
=.
12549 for ac_exec_ext
in '' $ac_executable_extensions; do
12550 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12551 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562 orig_target_ar
=$ac_cv_path_orig_target_ar
12563 if test -n "$orig_target_ar"; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12565 $as_echo "$orig_target_ar" >&6; }
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568 $as_echo "no" >&6; }
12573 if test "$orig_target_ar" = ""; then
12574 # Extract the first word of "ar", so it can be a program name with args.
12575 set dummy
ar; ac_word
=$2
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577 $as_echo_n "checking for $ac_word... " >&6; }
12578 if ${ac_cv_path_orig_target_ar+:} false
; then :
12579 $as_echo_n "(cached) " >&6
12581 case $orig_target_ar in
12583 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12587 for as_dir
in $PATH
12590 test -z "$as_dir" && as_dir
=.
12591 for ac_exec_ext
in '' $ac_executable_extensions; do
12592 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12593 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 orig_target_ar
=$ac_cv_path_orig_target_ar
12605 if test -n "$orig_target_ar"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12607 $as_echo "$orig_target_ar" >&6; }
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12617 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12618 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12619 set dummy
${aros_tool_prefix}${toolchain_ar}; ac_word
=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if ${ac_cv_path_orig_target_ar+:} false
; then :
12623 $as_echo_n "(cached) " >&6
12625 case $orig_target_ar in
12627 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12631 for as_dir
in $PATH
12634 test -z "$as_dir" && as_dir
=.
12635 for ac_exec_ext
in '' $ac_executable_extensions; do
12636 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12637 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648 orig_target_ar
=$ac_cv_path_orig_target_ar
12649 if test -n "$orig_target_ar"; then
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12651 $as_echo "$orig_target_ar" >&6; }
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; }
12658 orig_target_ar
="$orig_target_ar $ac_tool_optarg"
12662 if test "$orig_target_ar" = ""; then
12665 if test "$orig_target_ar" = "no"; then
12668 if test "$req_avail" = "no"; then
12669 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12672 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12673 if test "$cross_compiling" = "yes" ; then
12674 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12675 set dummy
${target_tool_prefix}ar; ac_word
=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12679 $as_echo_n "(cached) " >&6
12681 case $orig_target_ranlib in
12683 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12687 for as_dir
in $PATH
12690 test -z "$as_dir" && as_dir
=.
12691 for ac_exec_ext
in '' $ac_executable_extensions; do
12692 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12693 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12704 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12705 if test -n "$orig_target_ranlib"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12707 $as_echo "$orig_target_ranlib" >&6; }
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12715 if test "$GCC" = "yes"; then
12716 aros_gcc_ar
=`$CC -print-prog-name=ar`
12717 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12718 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720 $as_echo_n "checking for $ac_word... " >&6; }
12721 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12722 $as_echo_n "(cached) " >&6
12724 case $orig_target_ranlib in
12726 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12730 for as_dir
in `dirname $aros_gcc_ar`
12733 test -z "$as_dir" && as_dir
=.
12734 for ac_exec_ext
in '' $ac_executable_extensions; do
12735 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12736 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12747 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12748 if test -n "$orig_target_ranlib"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12750 $as_echo "$orig_target_ranlib" >&6; }
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12758 if test "$orig_target_ranlib" = ""; then
12759 # Extract the first word of "ar", so it can be a program name with args.
12760 set dummy
ar; ac_word
=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12764 $as_echo_n "(cached) " >&6
12766 case $orig_target_ranlib in
12768 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12772 for as_dir
in $PATH
12775 test -z "$as_dir" && as_dir
=.
12776 for ac_exec_ext
in '' $ac_executable_extensions; do
12777 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12778 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12790 if test -n "$orig_target_ranlib"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12792 $as_echo "$orig_target_ranlib" >&6; }
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12802 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12803 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12804 set dummy
${aros_tool_prefix}${toolchain_ranlib}; ac_word
=$2
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806 $as_echo_n "checking for $ac_word... " >&6; }
12807 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12808 $as_echo_n "(cached) " >&6
12810 case $orig_target_ranlib in
12812 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12816 for as_dir
in $PATH
12819 test -z "$as_dir" && as_dir
=.
12820 for ac_exec_ext
in '' $ac_executable_extensions; do
12821 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12822 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12833 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12834 if test -n "$orig_target_ranlib"; then
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12836 $as_echo "$orig_target_ranlib" >&6; }
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839 $as_echo "no" >&6; }
12843 orig_target_ranlib
="$orig_target_ranlib $ac_tool_optarg"
12847 if test "$orig_target_ranlib" = ""; then
12850 if test "$orig_target_ranlib" = "no"; then
12853 if test "$req_avail" = "no"; then
12854 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12857 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12858 if test "$cross_compiling" = "yes" ; then
12859 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12860 set dummy
${target_tool_prefix}nm
; ac_word
=$2
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862 $as_echo_n "checking for $ac_word... " >&6; }
12863 if ${ac_cv_path_orig_target_nm+:} false
; then :
12864 $as_echo_n "(cached) " >&6
12866 case $orig_target_nm in
12868 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12872 for as_dir
in $PATH
12875 test -z "$as_dir" && as_dir
=.
12876 for ac_exec_ext
in '' $ac_executable_extensions; do
12877 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12878 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 orig_target_nm
=$ac_cv_path_orig_target_nm
12890 if test -n "$orig_target_nm"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12892 $as_echo "$orig_target_nm" >&6; }
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12900 if test "$GCC" = "yes"; then
12901 aros_gcc_nm
=`$CC -print-prog-name=nm`
12902 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12903 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12905 $as_echo_n "checking for $ac_word... " >&6; }
12906 if ${ac_cv_path_orig_target_nm+:} false
; then :
12907 $as_echo_n "(cached) " >&6
12909 case $orig_target_nm in
12911 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12915 for as_dir
in `dirname $aros_gcc_nm`
12918 test -z "$as_dir" && as_dir
=.
12919 for ac_exec_ext
in '' $ac_executable_extensions; do
12920 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12921 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12932 orig_target_nm
=$ac_cv_path_orig_target_nm
12933 if test -n "$orig_target_nm"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12935 $as_echo "$orig_target_nm" >&6; }
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938 $as_echo "no" >&6; }
12943 if test "$orig_target_nm" = ""; then
12944 # Extract the first word of "nm", so it can be a program name with args.
12945 set dummy nm
; ac_word
=$2
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12947 $as_echo_n "checking for $ac_word... " >&6; }
12948 if ${ac_cv_path_orig_target_nm+:} false
; then :
12949 $as_echo_n "(cached) " >&6
12951 case $orig_target_nm in
12953 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12957 for as_dir
in $PATH
12960 test -z "$as_dir" && as_dir
=.
12961 for ac_exec_ext
in '' $ac_executable_extensions; do
12962 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12963 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974 orig_target_nm
=$ac_cv_path_orig_target_nm
12975 if test -n "$orig_target_nm"; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12977 $as_echo "$orig_target_nm" >&6; }
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12987 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
12988 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12989 set dummy
${aros_tool_prefix}${toolchain_nm}; ac_word
=$2
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12991 $as_echo_n "checking for $ac_word... " >&6; }
12992 if ${ac_cv_path_orig_target_nm+:} false
; then :
12993 $as_echo_n "(cached) " >&6
12995 case $orig_target_nm in
12997 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13001 for as_dir
in $PATH
13004 test -z "$as_dir" && as_dir
=.
13005 for ac_exec_ext
in '' $ac_executable_extensions; do
13006 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13007 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018 orig_target_nm
=$ac_cv_path_orig_target_nm
13019 if test -n "$orig_target_nm"; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13021 $as_echo "$orig_target_nm" >&6; }
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 $as_echo "no" >&6; }
13028 orig_target_nm
="$orig_target_nm $ac_tool_optarg"
13032 if test "$orig_target_nm" = ""; then
13035 if test "$orig_target_nm" = "no"; then
13038 if test "$req_avail" = "no"; then
13039 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13042 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13043 if test "$cross_compiling" = "yes" ; then
13044 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13045 set dummy
${target_tool_prefix}strip
; ac_word
=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if ${ac_cv_path_orig_target_strip+:} false
; then :
13049 $as_echo_n "(cached) " >&6
13051 case $orig_target_strip in
13053 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13057 for as_dir
in $PATH
13060 test -z "$as_dir" && as_dir
=.
13061 for ac_exec_ext
in '' $ac_executable_extensions; do
13062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13063 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074 orig_target_strip
=$ac_cv_path_orig_target_strip
13075 if test -n "$orig_target_strip"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13077 $as_echo "$orig_target_strip" >&6; }
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13085 if test "$GCC" = "yes"; then
13086 aros_gcc_strip
=`$CC -print-prog-name=strip`
13087 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13088 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090 $as_echo_n "checking for $ac_word... " >&6; }
13091 if ${ac_cv_path_orig_target_strip+:} false
; then :
13092 $as_echo_n "(cached) " >&6
13094 case $orig_target_strip in
13096 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13100 for as_dir
in `dirname $aros_gcc_strip`
13103 test -z "$as_dir" && as_dir
=.
13104 for ac_exec_ext
in '' $ac_executable_extensions; do
13105 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13106 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13117 orig_target_strip
=$ac_cv_path_orig_target_strip
13118 if test -n "$orig_target_strip"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13120 $as_echo "$orig_target_strip" >&6; }
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123 $as_echo "no" >&6; }
13128 if test "$orig_target_strip" = ""; then
13129 # Extract the first word of "strip", so it can be a program name with args.
13130 set dummy strip
; ac_word
=$2
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132 $as_echo_n "checking for $ac_word... " >&6; }
13133 if ${ac_cv_path_orig_target_strip+:} false
; then :
13134 $as_echo_n "(cached) " >&6
13136 case $orig_target_strip in
13138 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13142 for as_dir
in $PATH
13145 test -z "$as_dir" && as_dir
=.
13146 for ac_exec_ext
in '' $ac_executable_extensions; do
13147 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13148 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13159 orig_target_strip
=$ac_cv_path_orig_target_strip
13160 if test -n "$orig_target_strip"; then
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13162 $as_echo "$orig_target_strip" >&6; }
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165 $as_echo "no" >&6; }
13172 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13173 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13174 set dummy
${aros_tool_prefix}${toolchain_strip}; ac_word
=$2
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176 $as_echo_n "checking for $ac_word... " >&6; }
13177 if ${ac_cv_path_orig_target_strip+:} false
; then :
13178 $as_echo_n "(cached) " >&6
13180 case $orig_target_strip in
13182 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13186 for as_dir
in $PATH
13189 test -z "$as_dir" && as_dir
=.
13190 for ac_exec_ext
in '' $ac_executable_extensions; do
13191 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13192 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13203 orig_target_strip
=$ac_cv_path_orig_target_strip
13204 if test -n "$orig_target_strip"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13206 $as_echo "$orig_target_strip" >&6; }
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13213 orig_target_strip
="$orig_target_strip $ac_tool_optarg"
13217 if test "$orig_target_strip" = ""; then
13220 if test "$orig_target_strip" = "no"; then
13223 if test "$req_avail" = "no"; then
13224 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13227 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13228 if test "$cross_compiling" = "yes" ; then
13229 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13230 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232 $as_echo_n "checking for $ac_word... " >&6; }
13233 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13234 $as_echo_n "(cached) " >&6
13236 case $orig_target_objcopy in
13238 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13242 for as_dir
in $PATH
13245 test -z "$as_dir" && as_dir
=.
13246 for ac_exec_ext
in '' $ac_executable_extensions; do
13247 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13248 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13259 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13260 if test -n "$orig_target_objcopy"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13262 $as_echo "$orig_target_objcopy" >&6; }
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13270 if test "$GCC" = "yes"; then
13271 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
13272 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13273 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275 $as_echo_n "checking for $ac_word... " >&6; }
13276 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13277 $as_echo_n "(cached) " >&6
13279 case $orig_target_objcopy in
13281 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13285 for as_dir
in `dirname $aros_gcc_objcopy`
13288 test -z "$as_dir" && as_dir
=.
13289 for ac_exec_ext
in '' $ac_executable_extensions; do
13290 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13291 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13302 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13303 if test -n "$orig_target_objcopy"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13305 $as_echo "$orig_target_objcopy" >&6; }
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13313 if test "$orig_target_objcopy" = ""; then
13314 # Extract the first word of "objcopy", so it can be a program name with args.
13315 set dummy objcopy
; ac_word
=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13319 $as_echo_n "(cached) " >&6
13321 case $orig_target_objcopy in
13323 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13327 for as_dir
in $PATH
13330 test -z "$as_dir" && as_dir
=.
13331 for ac_exec_ext
in '' $ac_executable_extensions; do
13332 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13333 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13344 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13345 if test -n "$orig_target_objcopy"; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13347 $as_echo "$orig_target_objcopy" >&6; }
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 $as_echo "no" >&6; }
13357 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13358 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13359 set dummy
${aros_tool_prefix}${toolchain_objcopy}; ac_word
=$2
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361 $as_echo_n "checking for $ac_word... " >&6; }
13362 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13363 $as_echo_n "(cached) " >&6
13365 case $orig_target_objcopy in
13367 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13371 for as_dir
in $PATH
13374 test -z "$as_dir" && as_dir
=.
13375 for ac_exec_ext
in '' $ac_executable_extensions; do
13376 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13377 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13388 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13389 if test -n "$orig_target_objcopy"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13391 $as_echo "$orig_target_objcopy" >&6; }
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13398 orig_target_objcopy
="$orig_target_objcopy $ac_tool_optarg"
13402 if test "$orig_target_objcopy" = ""; then
13405 if test "$orig_target_objcopy" = "no"; then
13408 if test "$req_avail" = "no"; then
13409 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13412 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13413 if test "$cross_compiling" = "yes" ; then
13414 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13415 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417 $as_echo_n "checking for $ac_word... " >&6; }
13418 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13419 $as_echo_n "(cached) " >&6
13421 case $orig_target_objdump in
13423 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13427 for as_dir
in $PATH
13430 test -z "$as_dir" && as_dir
=.
13431 for ac_exec_ext
in '' $ac_executable_extensions; do
13432 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13433 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13444 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13445 if test -n "$orig_target_objdump"; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13447 $as_echo "$orig_target_objdump" >&6; }
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13450 $as_echo "no" >&6; }
13455 if test "$GCC" = "yes"; then
13456 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
13457 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13458 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13460 $as_echo_n "checking for $ac_word... " >&6; }
13461 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13462 $as_echo_n "(cached) " >&6
13464 case $orig_target_objdump in
13466 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13470 for as_dir
in `dirname $aros_gcc_objdump`
13473 test -z "$as_dir" && as_dir
=.
13474 for ac_exec_ext
in '' $ac_executable_extensions; do
13475 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13476 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13487 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13488 if test -n "$orig_target_objdump"; then
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13490 $as_echo "$orig_target_objdump" >&6; }
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493 $as_echo "no" >&6; }
13498 if test "$orig_target_objdump" = ""; then
13499 # Extract the first word of "objdump", so it can be a program name with args.
13500 set dummy objdump
; ac_word
=$2
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13502 $as_echo_n "checking for $ac_word... " >&6; }
13503 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13504 $as_echo_n "(cached) " >&6
13506 case $orig_target_objdump in
13508 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13512 for as_dir
in $PATH
13515 test -z "$as_dir" && as_dir
=.
13516 for ac_exec_ext
in '' $ac_executable_extensions; do
13517 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13518 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13529 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13530 if test -n "$orig_target_objdump"; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13532 $as_echo "$orig_target_objdump" >&6; }
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535 $as_echo "no" >&6; }
13542 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13543 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13544 set dummy
${aros_tool_prefix}${toolchain_objdump}; ac_word
=$2
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13546 $as_echo_n "checking for $ac_word... " >&6; }
13547 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13548 $as_echo_n "(cached) " >&6
13550 case $orig_target_objdump in
13552 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13556 for as_dir
in $PATH
13559 test -z "$as_dir" && as_dir
=.
13560 for ac_exec_ext
in '' $ac_executable_extensions; do
13561 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13562 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13573 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13574 if test -n "$orig_target_objdump"; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13576 $as_echo "$orig_target_objdump" >&6; }
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579 $as_echo "no" >&6; }
13583 orig_target_objdump
="$orig_target_objdump $ac_tool_optarg"
13587 if test "$orig_target_objdump" = ""; then
13590 if test "$orig_target_objdump" = "no"; then
13593 if test "$req_avail" = "no"; then
13594 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13598 if test "$kernel_tool_prefix" = "none" ; then
13599 # No kernel tools specified
13600 # Assume target tools == kernel tools with ELF wrapper
13601 aros_kernel_cc
=$orig_target_cc
13602 aros_kernel_cxx
=$orig_target_cxx
13603 aros_kernel_cpp
=$orig_target_cpp
13604 aros_kernel_ld
=$orig_target_ld
13605 aros_kernel_as
=$orig_target_as
13606 aros_kernel_ar
=$orig_target_ar
13607 aros_kernel_ranlib
=$orig_target_ranlib
13608 aros_kernel_nm
=$orig_target_nm
13609 aros_kernel_strip
=$orig_target_strip
13610 aros_kernel_objcopy
=$orig_target_objcopy
13611 aros_kernel_objdump
=$orig_target_objdump
13612 use_kernel_cc_wrapper
=yes
13615 # At this point, all aros_kernel_* and aros_target_*
13616 # tools should be set up correctly
13618 CC
="$aros_kernel_cc $kernel_tool_flags"
13619 CPP
="$aros_kernel_cpp"
13621 #-----------------------------------------------------------------------------
13623 # Find all the tools we need to compile. This could be cross-compiling
13624 # though! If that is the case we use the GNU form of the target and
13625 # simply add this to the front of the binary name. This is rather simple,
13626 # but it should work under most circumstances.
13628 # The default tools are to use the same as the host, but only if the
13629 # host and target CPU are the same. With GCC this is normally enough.
13633 aros_shared_ld
="$aros_host_ld"
13635 aros_target_mkdep
="$aros_host_mkdep"
13637 # The default tools executables to be linked to.
13638 if test "$rescomp" != ""; then
13639 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13640 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13642 $as_echo_n "checking for $ac_word... " >&6; }
13643 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
13644 $as_echo_n "(cached) " >&6
13646 case $aros_kernel_rescomp in
13648 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
13651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13652 for as_dir
in $PATH
13655 test -z "$as_dir" && as_dir
=.
13656 for ac_exec_ext
in '' $ac_executable_extensions; do
13657 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13658 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
13659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13669 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
13670 if test -n "$aros_kernel_rescomp"; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13672 $as_echo "$aros_kernel_rescomp" >&6; }
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13680 if test "$aros_kernel_rescomp" = ""; then
13683 if test "$aros_kernel_rescomp" = "no"; then
13686 if test "$req_avail" = "no"; then
13687 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13691 # Set up the sources for the symlink farm
13692 if test "$crosstools" = "yes"; then
13693 crosstools_target
=tools-crosstools
13696 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
13697 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
13699 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13700 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13701 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13702 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13703 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13704 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13705 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13707 # aros_cc_pre is a variable that is added to the front of the compiler name
13708 # in the generated aros-gcc shell script. We need this to enable the cache
13709 # to work across cleaned builds. Also, support DISTCC using the correct
13710 # environment variable.
13713 if test "x${DISTCC}" != "x" ; then
13714 if test "x${CCACHE}" != "x" ; then
13715 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13717 aros_cc_pre
="${DISTCC} "
13720 if test "x${CCACHE}" != "x" ; then
13721 aros_cc_pre
="${CCACHE} "
13725 aros_target_nostdinc_cflags
=-nostdinc
13727 aros_target_nostartup_ldflags
=-nostartfiles
13729 aros_target_nix_ldflags
=-nix
13731 aros_target_detach_ldflags
=-detach
13733 aros_target_nostdlib_ldflags
=-nostdlib
13738 if test "$aros_target_toolchain" != "yes"; then
13739 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13740 if test "$GCC" = "yes"; then
13741 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13744 # We do not know which c compiler version we are going to build and what we need to know
13745 # here is different for different versions so this will be set later during the
13746 # build of crosstools.
13747 if test "$aros_toolchain" = "gnu" ; then
13748 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13749 elif test "$aros_toolchain" = "llvm" ; then
13750 prefix
="$AROS_CROSSTOOLSDIR/bin/"
13752 aros_target_cc_path
=@aros_target_cc_path@
13754 aros_target_cpp
="${prefix}${toolchain_cpp_preprocessor}"
13755 aros_target_cc
="${prefix}${toolchain_c_compiler}"
13756 aros_target_cxx
="${prefix}${toolchain_cxx_compiler}"
13757 aros_target_as
="${prefix}${toolchain_as}"
13758 if test "${use_ld_wrapper}" = "yes"; then
13759 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13761 aros_target_ld
="${prefix}${toolchain_ld}"
13763 aros_toolchain_ld
="${prefix}${toolchain_ld}"
13765 aros_target_ar
="${prefix}${toolchain_ar} $aros_target_ar_flags"
13766 aros_target_objcopy
="${prefix}${toolchain_objcopy}"
13767 aros_target_objdump
="${prefix}${toolchain_objdump}"
13768 aros_target_ranlib
="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13769 aros_target_nm
="${prefix}${toolchain_nm} $aros_target_nm_flags"
13770 aros_target_strip
="${prefix}${toolchain_strip}"
13771 aros_plain_nm
="${prefix}${toolchain_nm}"
13772 aros_plain_ar
="${prefix}${toolchain_ar}"
13774 # Check whether --enable-includes was given.
13775 if test "${enable_includes+set}" = set; then :
13776 enableval
=$enable_includes; aros_target_incl
=$enable_includes
13778 aros_target_incl
=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13782 if test "$aros_kernel_includes" = ""; then
13783 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13784 aros_kernel_includes
="-isystem $aros_target_incl"
13788 if test "$aros_kernel_includes" != "" ; then
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13790 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13791 if test "$aros_kernel_cc_includes" = "" ; then
13792 # Try to guess where the directory is.
13793 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
13794 if test -d $aros_kernel_cc_includes; then
13795 # Check if there is also an include-fixed directory and add it
13796 # to kernel compiler's include path as it may contain some of
13797 # the headers we need.
13798 if test -d "$aros_kernel_cc_includes"-fixed; then
13799 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
13801 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13802 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13803 aros_kernel_cc_includes
+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13806 # The directory doesn't exist, we need to do some more work.
13807 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
13809 # These are the headers we're looking for.
13810 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13811 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13815 for h
in $headers; do
13816 # Which other headers are needed by each of the above?
13817 deps
=$
(echo "#include <$h>" | \
13818 $aros_kernel_cc -E -M - 2>/dev
/null | \
13819 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13821 # Copy all the needed headers to a directory beneath gendir.
13824 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
13825 sed -n "s,^.*/include\(/.*\),\1,p")
13826 ! test -d $dir && mkdir
-p $dir
13827 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13833 $as_echo "$aros_kernel_cc_includes" >&6; }
13834 # Adding -nostdinc to kernel includes as they are always used together.
13835 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13838 if test "$crosstools" != "yes"; then
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13840 $as_echo_n "checking for the target compiler's include path... " >&6; }
13841 if test "$aros_target_cc_includes" = "" ; then
13842 #try to guess where the directory is
13843 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
13844 if ! test -d $aros_target_cc_includes; then
13845 #the directory doesn't exist, we need to do some more work
13846 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
13848 #these are the headers we're looking for
13849 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13850 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13854 for h
in $headers; do
13855 #which other headers each of the above headers needs?
13856 deps
=$
(echo "#include <$h>" | \
13857 $orig_target_cc -E -M - 2>/dev
/null | \
13858 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13860 #copy all the needed headers to a directory beneath gendir
13863 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
13864 sed -n "s,^.*/include\(/.*\),\1,p")
13865 ! test -d $dir && mkdir
-p $dir
13866 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13872 $as_echo "$aros_target_cc_includes" >&6; }
13874 # We do not know which c compiler version we are going to build and what we need to know
13875 # here is different for different versions so this will be set later during the
13876 # build of crosstools.
13877 aros_target_cc_includes
=@aros_target_cc_includes@
13881 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13882 # On GCC >= 4.0 -iquote should be used
13886 save_cflags
="$CFLAGS"
13888 kernel_cflags_iquote
=$host_cflags_iquote
13889 kernel_cflags_iquote_end
=$host_cflags_iquote_end
13890 if test "x-$cross_compiling" = "x-yes"; then
13891 CC
="$aros_kernel_cc"
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13893 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13894 if test "x-$crosstools" != "x-yes"; then
13895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h. */
13906 if ac_fn_c_try_compile
"$LINENO"; then :
13907 use_no_stack_protector
="yes"
13909 use_no_stack_protector
="no"
13911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13913 # we do know it is supported for the smallest version of gcc we are going to build
13914 # we assume it's also supported by later versions
13915 use_no_stack_protector
=yes
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13918 $as_echo "$use_no_stack_protector" >&6; }
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13920 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13921 if test "x-$crosstools" != "x-yes"; then
13922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13933 if ac_fn_c_try_compile
"$LINENO"; then :
13938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13940 # we do know it is supported for the smallest version of gcc we are going to build
13941 # we assume it's also supported by later versions
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13945 $as_echo "$has_iquote" >&6; }
13946 if test "x-$has_iquote" = "x-yes" ; then
13947 kernel_cflags_iquote
=-iquote
13948 kernel_cflags_iquote_end
=
13950 kernel_cflags_iquote
=-I
13951 kernel_cflags_iquote_end
=-I-
13954 if test "x-$use_no_stack_protector" = "x-yes" ; then
13955 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
13958 #-----------------------------------------------------------------------------
13960 # Check if we can explicitly choose older version of symbol hashing
13962 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
13963 CC
="$aros_kernel_cc"
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13965 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13977 if ac_fn_c_try_link
"$LINENO"; then :
13978 use_hash_style
="yes"
13980 use_hash_style
="no"
13982 rm -f core conftest.err conftest.
$ac_objext \
13983 conftest
$ac_exeext conftest.
$ac_ext
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13985 $as_echo "$use_hash_style" >&6; }
13986 if test "x-$use_hash_style" = "x-yes" ; then
13987 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
13990 CFLAGS
="$save_cflags"
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13999 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14001 # Check whether --with-resolution was given.
14002 if test "${with_resolution+set}" = set; then :
14003 withval
=$with_resolution; resolution
=$withval
14008 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14009 if test "$resolution" = "yes" ; then
14012 if test "$resolution" = "no" ; then
14015 if test "$resolution" != "none" ; then
14016 aros_nominal_width
=`echo $resolution | cut -d'x' -f1`
14017 aros_nominal_height
=`echo $resolution | cut -d'x' -f2`
14018 aros_nominal_depth
=`echo $resolution | cut -d'x' -f3`
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14021 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14022 aros_cv_nominal_width
=$aros_nominal_width
14023 aros_cv_nominal_height
=$aros_nominal_height
14024 aros_cv_nominal_depth
=$aros_nominal_depth
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14027 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14029 # Check whether --with-serial-debug was given.
14030 if test "${with_serial_debug+set}" = set; then :
14031 withval
=$with_serial_debug; serial_debug
=$withval
14036 if test "$aros_serial_debug" = 0 ; then
14037 serial_debug_forced
=""
14038 if test "$serial_debug" = "yes" ; then
14041 if test "$serial_debug" = "no" ; then
14042 serial_debug
="none"
14045 serial_debug_forced
="(forced)"
14046 serial_debug
=$aros_serial_debug
14048 if test "$serial_debug" != "none" ; then
14049 aros_serial_debug
=$serial_debug
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14051 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14054 $as_echo "no" >&6; }
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14058 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14059 # Check whether --enable-palm_debug_hack was given.
14060 if test "${enable_palm_debug_hack+set}" = set; then :
14061 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
14063 palm_debug_hack
="no"
14066 if test "$palm_debug_hack" = "yes" ; then
14067 aros_palm_debug_hack
="1"
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14070 $as_echo "$palm_debug_hack" >&6; }
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14073 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14074 # Check whether --enable-usb30_code was given.
14075 if test "${enable_usb30_code+set}" = set; then :
14076 enableval
=$enable_usb30_code; usb30_code
="yes"
14081 if test "$usb30_code" = "yes" ; then
14082 aros_config_cppflags
="$aros_config_cppflags -DAROS_USB30_CODE"
14083 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14086 $as_echo "$usb30_code" >&6; }
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14089 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14090 # Check whether --enable-nesting_supervisor was given.
14091 if test "${enable_nesting_supervisor+set}" = set; then :
14092 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
14094 nesting_supervisor
="no"
14097 if test "$nesting_supervisor" = "yes" ; then
14098 aros_nesting_supervisor
="1"
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14101 $as_echo "$nesting_supervisor" >&6; }
14103 if test "$aros_enable_mmu" = "" ; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14105 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14106 # Check whether --enable-mmu was given.
14107 if test "${enable_mmu+set}" = set; then :
14108 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
14110 aros_enable_mmu
="yes"
14113 if test "$aros_enable_mmu" = "" ; then
14114 aros_enable_mmu
="yes"
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14117 $as_echo "$aros_enable_mmu" >&6; }
14119 if test "$aros_enable_mmu" = "no" ; then
14120 aros_enable_mmu
="0"
14122 aros_enable_mmu
="1"
14126 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14128 if test "x-$need_dlopen" != "x-no" ; then
14131 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
14132 if test "x$ac_cv_func_dlopen" = xyes
; then :
14138 if test "x-$have_dl" = "x-no" ; then
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14140 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14141 if ${ac_cv_lib_dl_dlopen+:} false
; then :
14142 $as_echo_n "(cached) " >&6
14144 ac_check_lib_save_LIBS
=$LIBS
14146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14149 /* Override any GCC internal prototype to avoid an error.
14150 Use char because int might match the return type of a GCC
14151 builtin and then its argument prototype would still apply. */
14164 if ac_fn_c_try_link
"$LINENO"; then :
14165 ac_cv_lib_dl_dlopen
=yes
14167 ac_cv_lib_dl_dlopen
=no
14169 rm -f core conftest.err conftest.
$ac_objext \
14170 conftest
$ac_exeext conftest.
$ac_ext
14171 LIBS
=$ac_check_lib_save_LIBS
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14174 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14175 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
14177 aros_host_ldflags
="$aros_host_ldflags -ldl"
14183 if test "x-$have_dl" = "x-no" ; then
14184 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
14190 # Check whether --enable-x11_hidd was given.
14191 if test "${enable_x11_hidd+set}" = set; then :
14192 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
14194 x11_hidd
="$need_x11"
14197 case "x-$x11_hidd" in
14198 x-yes|x-no|x-auto
) ;;
14199 *) x11_hidd
="$need_x11" ;;
14204 if test "x-$x11_hidd" != "x-no" ; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14207 $as_echo_n "checking for X... " >&6; }
14210 # Check whether --with-x was given.
14211 if test "${with_x+set}" = set; then :
14215 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14216 if test "x$with_x" = xno
; then
14217 # The user explicitly disabled X.
14220 case $x_includes,$x_libraries in #(
14221 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
14222 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
14223 $as_echo_n "(cached) " >&6
14225 # One or both of the vars are not set, and there is no cached value.
14226 ac_x_includes
=no ac_x_libraries
=no
14227 rm -f -r conftest.dir
14228 if mkdir conftest.dir
; then
14230 cat >Imakefile
<<'_ACEOF'
14232 @echo incroot='${INCROOT}'
14234 @echo usrlibdir='${USRLIBDIR}'
14236 @echo libdir='${LIBDIR}'
14238 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14239 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14240 for ac_var
in incroot usrlibdir libdir
; do
14241 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14243 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14244 for ac_extension
in a so sl dylib la dll
; do
14245 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14246 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14247 ac_im_usrlibdir
=$ac_im_libdir; break
14250 # Screen out bogus values from the imake configuration. They are
14251 # bogus both because they are the default anyway, and because
14252 # using them would break gcc on systems where it needs fixed includes.
14253 case $ac_im_incroot in
14254 /usr
/include
) ac_x_includes
= ;;
14255 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14257 case $ac_im_usrlibdir in
14258 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14259 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14263 rm -f -r conftest.dir
14266 # Standard set of common directories for X headers.
14267 # Check X11 before X11Rn because it is often a symlink to the current release.
14281 /usr/local/X11/include
14282 /usr/local/X11R7/include
14283 /usr/local/X11R6/include
14284 /usr/local/X11R5/include
14285 /usr/local/X11R4/include
14287 /usr/local/include/X11
14288 /usr/local/include/X11R7
14289 /usr/local/include/X11R6
14290 /usr/local/include/X11R5
14291 /usr/local/include/X11R4
14295 /usr/XFree86/include/X11
14299 /usr/unsupported/include
14300 /usr/athena/include
14301 /usr/local/x11r5/include
14302 /usr/lpp/Xamples/include
14304 /usr/openwin/include
14305 /usr/openwin/share/include'
14307 if test "$ac_x_includes" = no
; then
14308 # Guess where to find include files, by looking for Xlib.h.
14309 # First, try using that file with no special directory specified.
14310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h. */
14312 #include <X11/Xlib.h>
14314 if ac_fn_c_try_cpp
"$LINENO"; then :
14315 # We can compile using X headers with no special include directory.
14318 for ac_dir
in $ac_x_header_dirs; do
14319 if test -r "$ac_dir/X11/Xlib.h"; then
14320 ac_x_includes
=$ac_dir
14325 rm -f conftest.err conftest.i conftest.
$ac_ext
14326 fi # $ac_x_includes = no
14328 if test "$ac_x_libraries" = no
; then
14329 # Check for the libraries.
14330 # See if we find them without any special options.
14331 # Don't add to $LIBS permanently.
14334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14336 #include <X11/Xlib.h>
14345 if ac_fn_c_try_link
"$LINENO"; then :
14347 # We can link X programs with no special library path.
14351 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14353 # Don't even attempt the hair of trying to link an X program!
14354 for ac_extension
in a so sl dylib la dll
; do
14355 if test -r "$ac_dir/libX11.$ac_extension"; then
14356 ac_x_libraries
=$ac_dir
14362 rm -f core conftest.err conftest.
$ac_objext \
14363 conftest
$ac_exeext conftest.
$ac_ext
14364 fi # $ac_x_libraries = no
14366 case $ac_x_includes,$ac_x_libraries in #(
14367 no
,* |
*,no |
*\'*)
14368 # Didn't find X, or a directory has "'" in its name.
14369 ac_cv_have_x
="have_x=no";; #(
14371 # Record where we found X for the cache.
14372 ac_cv_have_x
="have_x=yes\
14373 ac_x_includes='$ac_x_includes'\
14374 ac_x_libraries='$ac_x_libraries'"
14380 eval "$ac_cv_have_x"
14383 if test "$have_x" != yes; then
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14385 $as_echo "$have_x" >&6; }
14388 # If each of the values was on the command line, it overrides each guess.
14389 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14390 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14391 # Update the cache value to reflect the command line values.
14392 ac_cv_have_x
="have_x=yes\
14393 ac_x_includes='$x_includes'\
14394 ac_x_libraries='$x_libraries'"
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14396 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14400 if test -n "$x_includes"; then
14401 X_CFLAGS
="$X_CFLAGS -I$x_includes"
14404 if test -n "$x_libraries"; then
14405 X_LIBS
="$X_LIBS -L$x_libraries"
14408 if test "x-$no_x" = "x-yes" ; then
14410 if test "x-$x11_hidd" != "x-auto" ; then
14411 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14418 aros_host_x11_cflags
="$X_CFLAGS"
14419 aros_host_x11_ldflags
="$X_LIBS -lX11"
14421 # Check whether --enable-x11_shm was given.
14422 if test "${enable_x11_shm+set}" = set; then :
14423 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
14425 x11_hidd_shm
="auto"
14428 case "x-$x11_hidd_shm" in
14429 x-yes|x-no|x-auto
) ;;
14430 *) x11_hidd_shm
="auto" ;;
14435 if test "x-$x11_hidd_shm" != "x-no" ; then
14437 for ac_header
in sys
/ipc.h
14439 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14440 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
14441 cat >>confdefs.h
<<_ACEOF
14442 #define HAVE_SYS_IPC_H 1
14449 for ac_header
in sys
/shm.h
14451 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14452 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
14453 cat >>confdefs.h
<<_ACEOF
14454 #define HAVE_SYS_SHM_H 1
14462 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14464 save_cflags
="$CFLAGS"
14465 save_ldflags
="$LDFLAGS"
14466 CFLAGS
="$CFLAGS $X_CFLAGS"
14467 LDFLAGS
="$LDFLAGS $X_LIBS"
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14469 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14470 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
14471 $as_echo_n "(cached) " >&6
14473 ac_check_lib_save_LIBS
=$LIBS
14474 LIBS
="-lXext $LIBS"
14475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14476 /* end confdefs.h. */
14478 /* Override any GCC internal prototype to avoid an error.
14479 Use char because int might match the return type of a GCC
14480 builtin and then its argument prototype would still apply. */
14484 char XShmQueryExtension ();
14488 return XShmQueryExtension ();
14493 if ac_fn_c_try_link
"$LINENO"; then :
14494 ac_cv_lib_Xext_XShmQueryExtension
=yes
14496 ac_cv_lib_Xext_XShmQueryExtension
=no
14498 rm -f core conftest.err conftest.
$ac_objext \
14499 conftest
$ac_exeext conftest.
$ac_ext
14500 LIBS
=$ac_check_lib_save_LIBS
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14503 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14504 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
14508 CFLAGS
="$save_cflags"
14509 LDFLAGS
="$save_ldflags"
14513 if test "x-$have_xshm" = "x-yes" ; then
14514 DO_XSHM_SUPPORT
="1"
14515 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14516 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14518 DO_XSHM_SUPPORT
="0"
14522 # Check whether --enable-x11_vidmode was given.
14523 if test "${enable_x11_vidmode+set}" = set; then :
14524 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
14526 x11_hidd_vidmode
="auto"
14529 case "x-$x11_hidd_vidmode" in
14530 x-yes|x-no|x-auto
) ;;
14531 *) x11_hidd_vidmode
="auto" ;;
14536 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14538 save_cflags
="$CFLAGS"
14539 save_ldflags
="$LDFLAGS"
14540 CFLAGS
="$CFLAGS $X_CFLAGS"
14541 LDFLAGS
="$LDFLAGS $X_LIBS"
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14543 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14544 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
14545 $as_echo_n "(cached) " >&6
14547 ac_check_lib_save_LIBS
=$LIBS
14548 LIBS
="-lXxf86vm $LIBS"
14549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14552 /* Override any GCC internal prototype to avoid an error.
14553 Use char because int might match the return type of a GCC
14554 builtin and then its argument prototype would still apply. */
14558 char XF86VidModeQueryExtension ();
14562 return XF86VidModeQueryExtension ();
14567 if ac_fn_c_try_link
"$LINENO"; then :
14568 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
14570 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
14572 rm -f core conftest.err conftest.
$ac_objext \
14573 conftest
$ac_exeext conftest.
$ac_ext
14574 LIBS
=$ac_check_lib_save_LIBS
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14577 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14578 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
14582 CFLAGS
="$save_cflags"
14583 LDFLAGS
="$save_ldflags"
14586 if test "x-$have_vidmode" = "x-yes" ; then
14587 DO_VIDMODE_SUPPORT
="1"
14588 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14589 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14591 DO_VIDMODE_SUPPORT
="0"
14596 # Check whether --enable-sdl_hidd was given.
14597 if test "${enable_sdl_hidd+set}" = set; then :
14598 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
14603 case "x-$sdl_hidd" in
14604 x-yes|x-no|x-auto
) ;;
14605 *) sdl_hidd
="auto" ;;
14608 if test "x-$sdl_hidd" != "x-no" ; then
14612 # Check whether --with-sdl-prefix was given.
14613 if test "${with_sdl_prefix+set}" = set; then :
14614 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
14620 # Check whether --with-sdl-exec-prefix was given.
14621 if test "${with_sdl_exec_prefix+set}" = set; then :
14622 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
14627 # Check whether --enable-sdltest was given.
14628 if test "${enable_sdltest+set}" = set; then :
14629 enableval
=$enable_sdltest;
14635 if test x
$sdl_exec_prefix != x
; then
14636 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14637 if test x
${SDL_CONFIG+set} != xset
; then
14638 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
14641 if test x
$sdl_prefix != x
; then
14642 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
14643 if test x
${SDL_CONFIG+set} != xset
; then
14644 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
14648 as_save_PATH
="$PATH"
14649 if test "x$prefix" != xNONE
; then
14650 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
14652 # Extract the first word of "sdl-config", so it can be a program name with args.
14653 set dummy sdl-config
; ac_word
=$2
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14655 $as_echo_n "checking for $ac_word... " >&6; }
14656 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
14657 $as_echo_n "(cached) " >&6
14659 case $SDL_CONFIG in
14661 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
14664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14665 for as_dir
in $PATH
14668 test -z "$as_dir" && as_dir
=.
14669 for ac_exec_ext
in '' $ac_executable_extensions; do
14670 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14671 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14679 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
14683 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
14684 if test -n "$SDL_CONFIG"; then
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14686 $as_echo "$SDL_CONFIG" >&6; }
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14689 $as_echo "no" >&6; }
14693 PATH
="$as_save_PATH"
14694 min_sdl_version
=$SDL_VERSION
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14696 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14698 if test "$SDL_CONFIG" = "no" ; then
14701 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
14702 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
14704 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
14705 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14706 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
14707 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14708 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
14709 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14710 if test "x$enable_sdltest" = "xyes" ; then
14711 ac_save_CFLAGS
="$CFLAGS"
14712 ac_save_CXXFLAGS
="$CXXFLAGS"
14713 ac_save_LIBS
="$LIBS"
14714 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14715 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14716 LIBS
="$LIBS $SDL_LIBS"
14718 if test "$cross_compiling" = yes; then :
14719 echo $ac_n "cross compiling; assumed OK... $ac_c"
14721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14725 #include <stdlib.h>
14726 #include <string.h>
14730 my_strdup (char *str)
14736 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14737 strcpy (new_str, str);
14745 int main (int argc, char *argv[])
14747 int major, minor, micro;
14750 /* This hangs on some systems (?)
14751 system ("touch conf.sdltest");
14753 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14755 /* HP/UX 9 (%@#!) writes to sscanf strings */
14756 tmp_version = my_strdup("$min_sdl_version");
14757 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
14758 printf("%s, bad version string\n", "$min_sdl_version");
14762 if (($sdl_major_version > major) ||
14763 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14764 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14770 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14771 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14772 printf("*** best to upgrade to the required version.\n");
14773 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14774 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14775 printf("*** config.cache before re-running configure\n");
14782 if ac_fn_c_try_run
"$LINENO"; then :
14787 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14788 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14791 CFLAGS
="$ac_save_CFLAGS"
14792 CXXFLAGS
="$ac_save_CXXFLAGS"
14793 LIBS
="$ac_save_LIBS"
14796 if test "x$no_sdl" = x
; then
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14798 $as_echo "yes" >&6; }
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14802 $as_echo "no" >&6; }
14803 if test "$SDL_CONFIG" = "no" ; then
14804 echo "*** The sdl-config script installed by SDL could not be found"
14805 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14806 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14807 echo "*** full path to sdl-config."
14809 if test -f conf.sdltest
; then
14812 echo "*** Could not run SDL test program, checking why..."
14813 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14814 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14815 LIBS
="$LIBS $SDL_LIBS"
14816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14822 int main(int argc, char *argv[])
14825 #define main K_and_R_C_main
14835 if ac_fn_c_try_link
"$LINENO"; then :
14836 echo "*** The test program compiled, but did not run. This usually means"
14837 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14838 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14839 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14840 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14841 echo "*** is required on your system"
14843 echo "*** If you have an old version installed, it is best to remove it, although"
14844 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14846 echo "*** The test program failed to compile or link. See the file config.log for the"
14847 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14848 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14849 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14851 rm -f core conftest.err conftest.
$ac_objext \
14852 conftest
$ac_exeext conftest.
$ac_ext
14853 CFLAGS
="$ac_save_CFLAGS"
14854 CXXFLAGS
="$ac_save_CXXFLAGS"
14855 LIBS
="$ac_save_LIBS"
14867 if test "x-$have_sdl" != "x-yes" ; then
14869 if test "x-$sdl_hidd" != "x-auto" ; then
14870 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14875 aros_host_sdl_cflags
=$SDL_CFLAGS
14876 aros_host_sdl_libs
=$SDL_LIBS
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14884 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14885 # Check whether --enable-dbus was given.
14886 if test "${enable_dbus+set}" = set; then :
14887 enableval
=$enable_dbus; dbus
="yes"
14892 if test "$dbus" = "yes" ; then
14894 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
14895 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
14896 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
14897 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14902 $as_echo "$dbus" >&6; }
14904 if test "$use_kernel_cc_wrapper" = "yes" ; then
14905 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14908 aros_kernel_cppflags
=$aros_config_cppflags
14909 aros_optimization_cflags
="$optimization_level"
14910 if test "$optimization" = "default"; then
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
14912 $as_echo_n "checking default optimization level to use... " >&6; }
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
14914 $as_echo "$optimization_level" >&6; }
14932 # Compatability with other Amiga-like operation systems
15045 # Hosted Graphics Related
15063 # Bootloader related
15066 # Native version related
15071 # Palm native version related
15074 # Unix/Hosted version related
15080 # Apple iOS related
15085 # ARM default GCC target related
15113 # Collect-aros stuff: "-ius" to ignore undefined symbols
15116 # C compiler related
15121 #ObjC compiler related
15130 case "$aros_flavour" in
15131 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
15132 aros_flavour
="emulation" ;;
15133 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15134 aros_flavour
="emulation" ;;
15135 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
15136 aros_flavour
="standalone";;
15137 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15138 aros_flavour
="standalone";;
15139 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
15140 aros_flavour
="native" ;;
15141 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15142 aros_flavour
="native" ;;
15143 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
15144 aros_flavour
="linklib" ;;
15145 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15146 aros_flavour
="palmnative" ;;
15147 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15148 aros_flavour
="mac68knative" ;;
15149 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15150 aros_flavour
="ppcnative" ;;
15153 if test ! -d ${aros_inc_dir} ; then
15154 ${MKDIR} ${aros_inc_dir}
15156 if test ! -d ${aros_geninc_dir} ; then
15157 ${MKDIR} ${aros_geninc_dir}
15159 if test ! -d ${aros_hostcfg_dir} ; then
15160 ${MKDIR} ${aros_hostcfg_dir}
15162 if test ! -d ${aros_targetcfg_dir} ; then
15163 ${MKDIR} ${aros_targetcfg_dir}
15165 if test ! -d ${aros_tools_dir} ; then
15166 ${MKDIR} ${aros_tools_dir}
15168 if test ! -d ${aros_scripts_dir} ; then
15169 ${MKDIR} ${aros_scripts_dir}
15172 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15175 # Generic build tools (metamake, etc)
15176 ac_config_commands
="$ac_config_commands genmf-executable-support"
15178 ac_config_files
="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/geninc.cfg:compiler/include/geninc.cfg.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in tools/collect-aros/env.h"
15182 ac_config_commands
="$ac_config_commands binutils-support"
15184 if test "${use_ld_wrapper}" = "yes"; then
15185 ac_config_files
="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in"
15188 # Bare Elf support script and spec
15189 if test "${use_kernel_cc_wrapper}" = "yes"; then
15190 ac_config_commands
="$ac_config_commands elf-compiler-support"
15192 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"
15196 # Host compiler support scripts and spec
15197 if test "${aros_target_toolchain}" = "no"; then
15198 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
15200 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"
15205 if test "$aros_target_variant" == "android"; then
15206 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15211 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15214 cat >confcache
<<\_ACEOF
15215 # This file is a shell script that caches the results of configure
15216 # tests run on this system so they can be shared between configure
15217 # scripts and configure runs, see configure's option --config-cache.
15218 # It is not useful on other systems. If it contains results you don't
15219 # want to keep, you may remove or edit it.
15221 # config.status only pays attention to the cache file if you give it
15222 # the --recheck option to rerun configure.
15224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15226 # following values.
15230 # The following way of writing the cache mishandles newlines in values,
15231 # but we know of no workaround that is simple, portable, and efficient.
15232 # So, we kill variables containing newlines.
15233 # Ultrix sh set writes to stderr and can't be redirected directly,
15234 # and sets the high bit in the cache file unless we assign to the vars.
15236 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15237 eval ac_val
=\$
$ac_var
15241 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15245 _ | IFS | as_nl
) ;; #(
15246 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15247 *) { eval $ac_var=; unset $ac_var;} ;;
15253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15254 *${as_nl}ac_space
=\
*)
15255 # `set' does not quote correctly, so add quotes: double-quote
15256 # substitution turns \\\\ into \\, and sed turns \\ into \.
15259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15262 # `set' quotes correctly as required by POSIX, so do not add quotes.
15263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15276 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15277 if test -w "$cache_file"; then
15278 if test "x$cache_file" != "x/dev/null"; then
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15280 $as_echo "$as_me: updating cache $cache_file" >&6;}
15281 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15282 cat confcache
>"$cache_file"
15284 case $cache_file in #(
15286 mv -f confcache
"$cache_file"$$
&&
15287 mv -f "$cache_file"$$
"$cache_file" ;; #(
15289 mv -f confcache
"$cache_file" ;;
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15295 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15300 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15301 # Let make expand exec_prefix.
15302 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15304 DEFS
=-DHAVE_CONFIG_H
15309 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15310 # 1. Remove the extension, and $U if already installed.
15311 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15312 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15313 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15314 # will be set to the directory where LIBOBJS objects are built.
15315 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15316 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15318 LIBOBJS
=$ac_libobjs
15320 LTLIBOBJS
=$ac_ltlibobjs
15324 : "${CONFIG_STATUS=./config.status}"
15326 ac_clean_files_save
=$ac_clean_files
15327 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15329 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15331 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15333 # Generated by $as_me.
15334 # Run this file to recreate the current configuration.
15335 # Compiler output produced by configure, useful for debugging
15336 # configure, is in config.log if it exists.
15339 ac_cs_recheck=false
15342 SHELL=\${CONFIG_SHELL-$SHELL}
15345 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15346 ## -------------------- ##
15347 ## M4sh Initialization. ##
15348 ## -------------------- ##
15350 # Be more Bourne compatible
15351 DUALCASE
=1; export DUALCASE
# for MKS sh
15352 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15355 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15356 # is contrary to our usage. Disable this feature.
15357 alias -g '${1+"$@"}'='"$@"'
15358 setopt NO_GLOB_SUBST
15360 case `(set -o) 2>/dev/null` in #(
15372 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15373 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15374 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15375 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15376 # Prefer a ksh shell builtin over an external printf program on Solaris,
15377 # but without wasting forks for bash or zsh.
15378 if test -z "$BASH_VERSION$ZSH_VERSION" \
15379 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15380 as_echo='print
-r --'
15381 as_echo_n='print
-rn --'
15382 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15383 as_echo='printf %s
\n'
15384 as_echo_n='printf %s
'
15386 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15387 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15388 as_echo_n='/usr
/ucb
/echo -n'
15390 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15391 as_echo_n_body='eval
15395 expr "X$arg" : "X\\(.*\\)$as_nl";
15396 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15398 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15400 export as_echo_n_body
15401 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15403 export as_echo_body
15404 as_echo='sh
-c $as_echo_body as_echo
'
15407 # The user is always right.
15408 if test "${PATH_SEPARATOR+set}" != set; then
15410 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15411 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15418 # We need space, tab and new line, in precisely that order. Quoting is
15419 # there to prevent editors from complaining about space-tab.
15420 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15421 # splitting by setting IFS to empty value.)
15424 # Find who we are. Look in the path if we contain no directory separator.
15427 *[\\/]* ) as_myself=$0 ;;
15428 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15429 for as_dir in $PATH
15432 test -z "$as_dir" && as_dir=.
15433 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15439 # We did not find ourselves, most probably we were run as `sh COMMAND'
15440 # in which case we are not to be found in the path.
15441 if test "x$as_myself" = x
; then
15444 if test ! -f "$as_myself"; then
15445 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15449 # Unset variables that we do not need and which cause bugs (e.g. in
15450 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15451 # suppresses any "Segmentation fault" message there. '((' could
15452 # trigger a bug in pdksh 5.2.14.
15453 for as_var
in BASH_ENV ENV MAIL MAILPATH
15454 do eval test x\
${$as_var+set} = xset \
15455 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15468 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15471 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15472 # ----------------------------------------
15473 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15474 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15475 # script with STATUS, using 1 if that was 0.
15478 as_status
=$1; test $as_status -eq 0 && as_status
=1
15480 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15481 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15483 $as_echo "$as_me: error: $2" >&2
15484 as_fn_exit
$as_status
15488 # as_fn_set_status STATUS
15489 # -----------------------
15490 # Set $? to STATUS, without forking.
15491 as_fn_set_status
()
15494 } # as_fn_set_status
15496 # as_fn_exit STATUS
15497 # -----------------
15498 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15502 as_fn_set_status
$1
15508 # Portably unset VAR.
15511 { eval $1=; unset $1;}
15513 as_unset
=as_fn_unset
15514 # as_fn_append VAR VALUE
15515 # ----------------------
15516 # Append the text in VALUE to the end of the definition contained in VAR. Take
15517 # advantage of any shell optimizations that allow amortized linear growth over
15518 # repeated appends, instead of the typical quadratic growth present in naive
15520 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15521 eval 'as_fn_append ()
15532 # as_fn_arith ARG...
15533 # ------------------
15534 # Perform arithmetic evaluation on the ARGs, and store the result in the
15535 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15536 # must be portable across $(()) and expr.
15537 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15538 eval 'as_fn_arith ()
15545 as_val
=`expr "$@" || test $? -eq 1`
15550 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15551 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15557 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15558 as_basename
=basename
15563 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15569 as_me
=`$as_basename -- "$0" ||
15570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15571 X"$0" : 'X\(//\)$' \| \
15572 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15574 sed '/^.*\/\([^/][^/]*\)\/*$/{
15588 # Avoid depending upon Character Ranges.
15589 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15590 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15591 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15592 as_cr_digits
='0123456789'
15593 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15595 ECHO_C
= ECHO_N
= ECHO_T
=
15596 case `echo -n x` in #(((((
15598 case `echo 'xy\c'` in
15599 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15601 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15608 rm -f conf$$ conf$$.exe conf$$.
file
15609 if test -d conf$$.dir
; then
15610 rm -f conf$$.dir
/conf$$.
file
15613 mkdir conf$$.dir
2>/dev
/null
15615 if (echo >conf$$.
file) 2>/dev
/null
; then
15616 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15618 # ... but there are two gotchas:
15619 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15620 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15621 # In both cases, we have to default to `cp -pR'.
15622 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15624 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15632 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15633 rmdir conf$$.dir
2>/dev
/null
15638 # Create "$as_dir" as a directory, including parents if necessary.
15643 -*) as_dir
=.
/$as_dir;;
15645 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15649 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15650 *) as_qdir
=$as_dir;;
15652 as_dirs
="'$as_qdir' $as_dirs"
15653 as_dir
=`$as_dirname -- "$as_dir" ||
15654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15655 X"$as_dir" : 'X\(//\)[^/]' \| \
15656 X"$as_dir" : 'X\(//\)$' \| \
15657 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15658 $as_echo X"$as_dir" |
15659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15663 /^X\(\/\/\)[^/].*/{
15676 test -d "$as_dir" && break
15678 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15679 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15683 if mkdir
-p .
2>/dev
/null
; then
15684 as_mkdir_p
='mkdir -p "$as_dir"'
15686 test -d .
/-p && rmdir .
/-p
15691 # as_fn_executable_p FILE
15692 # -----------------------
15693 # Test if FILE is an executable regular file.
15694 as_fn_executable_p
()
15696 test -f "$1" && test -x "$1"
15697 } # as_fn_executable_p
15698 as_test_x
='test -x'
15699 as_executable_p
=as_fn_executable_p
15701 # Sed expression to map a string onto a valid CPP name.
15702 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15704 # Sed expression to map a string onto a valid variable name.
15705 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15709 ## ----------------------------------- ##
15710 ## Main body of $CONFIG_STATUS script. ##
15711 ## ----------------------------------- ##
15713 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15716 # Save the log message, to keep $0 and so on meaningful, and to
15717 # report actual input values of CONFIG_FILES etc. instead of their
15718 # values after options handling.
15720 This file was extended by $as_me, which was
15721 generated by GNU Autoconf 2.69. Invocation command line was
15723 CONFIG_FILES = $CONFIG_FILES
15724 CONFIG_HEADERS = $CONFIG_HEADERS
15725 CONFIG_LINKS = $CONFIG_LINKS
15726 CONFIG_COMMANDS = $CONFIG_COMMANDS
15729 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15734 case $ac_config_files in *"
15735 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15738 case $ac_config_headers in *"
15739 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15744 # Files that config.status was made for.
15745 config_files="$ac_config_files"
15746 config_headers="$ac_config_headers"
15747 config_commands="$ac_config_commands"
15751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15753 \`$as_me' instantiates files and other configuration actions
15754 from templates according to the current configuration. Unless the files
15755 and actions are specified as TAGs, all are instantiated by default.
15757 Usage: $0 [OPTION]... [TAG]...
15759 -h, --help print this help, then exit
15760 -V, --version print version number and configuration settings, then exit
15761 --config print configuration, then exit
15762 -q, --quiet, --silent
15763 do not print progress messages
15764 -d, --debug don't remove temporary files
15765 --recheck update $as_me by reconfiguring in the same conditions
15766 --file=FILE[:TEMPLATE]
15767 instantiate the configuration file FILE
15768 --header=FILE[:TEMPLATE]
15769 instantiate the configuration header FILE
15771 Configuration files:
15774 Configuration headers:
15777 Configuration commands:
15780 Report bugs to the package provider."
15783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15784 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15787 configured by $0, generated by GNU Autoconf 2.69,
15788 with options \\"\$ac_cs_config\\"
15790 Copyright (C) 2012 Free Software Foundation, Inc.
15791 This config.status script is free software; the Free Software Foundation
15792 gives unlimited permission to copy, distribute and modify it."
15796 test -n "\$AWK" || AWK=awk
15799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15800 # The default lists apply if the user does not specify any file.
15806 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15807 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15811 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15823 # Handling of the options.
15824 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15826 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15827 $as_echo "$ac_cs_version"; exit ;;
15828 --config |
--confi |
--conf |
--con |
--co |
--c )
15829 $as_echo "$ac_cs_config"; exit ;;
15830 --debug |
--debu |
--deb |
--de |
--d |
-d )
15832 --file |
--fil |
--fi |
--f )
15835 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15836 '') as_fn_error $?
"missing file argument" ;;
15838 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15839 ac_need_defaults
=false
;;
15840 --header |
--heade |
--head |
--hea )
15843 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15845 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15846 ac_need_defaults
=false
;;
15848 # Conflict between --help and --header
15849 as_fn_error $?
"ambiguous option: \`$1'
15850 Try \`$0 --help' for more information.";;
15851 --help |
--hel |
-h )
15852 $as_echo "$ac_cs_usage"; exit ;;
15853 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15854 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15857 # This is an error.
15858 -*) as_fn_error $?
"unrecognized option: \`$1'
15859 Try \`$0 --help' for more information." ;;
15861 *) as_fn_append ac_config_targets
" $1"
15862 ac_need_defaults
=false
;;
15868 ac_configure_extra_args
=
15870 if $ac_cs_silent; then
15872 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15877 if \$ac_cs_recheck; then
15878 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15880 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15881 CONFIG_SHELL='$SHELL'
15882 export CONFIG_SHELL
15887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15891 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15892 ## Running $as_me. ##
15898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15903 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
15904 aros_tools_dir=${aros_tools_dir}
15908 aros_host_exe_suffix=${aros_host_exe_suffix}
15909 aros_tools_dir=${aros_tools_dir}
15910 aros_target_cpu=${aros_target_cpu}
15911 aros_target_arch=${aros_target_arch}
15912 aros_target_suffix=${aros_target_suffix}
15913 orig_target_nm=${orig_target_nm}
15914 orig_target_as=${orig_target_as}
15915 orig_target_ar=${orig_target_ar}
15916 orig_target_ranlib=${orig_target_ranlib}
15917 orig_target_objdump=${orig_target_objdump}
15918 orig_target_objcopy=${orig_target_objcopy}
15919 orig_target_strip=${orig_target_strip}
15920 aros_kernel_ld=${aros_kernel_ld}
15924 aros_host_exe_suffix=${aros_host_exe_suffix}
15925 aros_tools_dir=${aros_tools_dir}
15926 aros_target_cpu=${aros_target_cpu}
15927 aros_target_arch=${aros_target_arch}
15928 aros_target_suffix=${aros_target_suffix}
15929 aros_kernel_ld=${aros_kernel_ld}
15933 aros_host_exe_suffix=${aros_host_exe_suffix}
15934 aros_tools_dir=${aros_tools_dir}
15935 aros_target_cpu=${aros_target_cpu}
15936 aros_target_arch=${aros_target_arch}
15937 aros_target_suffix=${aros_target_suffix}
15943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15945 # Handling of arguments.
15946 for ac_config_target
in $ac_config_targets
15948 case $ac_config_target in
15949 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15950 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
15951 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15952 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
15953 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15954 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15955 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15956 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15957 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15958 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
15959 "compiler/include/geninc.cfg") CONFIG_FILES
="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
15960 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15961 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15962 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
15963 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
15964 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
15965 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in" ;;
15966 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
15967 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15968 "${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" ;;
15969 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15970 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15971 "${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" ;;
15972 "${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" ;;
15973 "${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" ;;
15974 "${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" ;;
15975 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15977 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15982 # If the user did not use the arguments to specify the items to instantiate,
15983 # then the envvar interface is used. Set only those that are not.
15984 # We use the long form for the default assignment because of an extremely
15985 # bizarre bug on SunOS 4.1.3.
15986 if $ac_need_defaults; then
15987 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15988 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15989 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15992 # Have a temporary directory for convenience. Make it in the build tree
15993 # simply because there is no reason against having it here, and in addition,
15994 # creating and moving files from /tmp can sometimes cause problems.
15995 # Hook for its removal unless debugging.
15996 # Note that there is a small window in which the directory will not be cleaned:
15997 # after its creation but before its name has been assigned to `$tmp'.
16001 trap 'exit_status=$?
16002 : "${ac_tmp:=$tmp}"
16003 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16005 trap 'as_fn_exit 1' 1 2 13 15
16007 # Create a (secure) tmp directory for tmp files.
16010 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16014 tmp
=.
/conf$$
-$RANDOM
16015 (umask 077 && mkdir
"$tmp")
16016 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16019 # Set up the scripts for CONFIG_FILES section.
16020 # No need to generate them if there are no CONFIG_FILES.
16021 # This happens for instance with `./config.status config.h'.
16022 if test -n "$CONFIG_FILES"; then
16025 ac_cr
=`echo X | tr X '\015'`
16026 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16027 # But we know of no other shell where ac_cr would be empty at this
16028 # point, so we can use a bashism as a fallback.
16029 if test "x$ac_cr" = x
; then
16030 eval ac_cr
=\$
\'\\r
\'
16032 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16033 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16036 ac_cs_awk_cr
=$ac_cr
16039 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16044 echo "cat >conf$$subs.awk <<_ACEOF" &&
16045 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16047 } >conf$$subs.sh ||
16048 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16049 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16051 for ac_last_try in false false false false false :; do
16052 . ./conf$$subs.sh ||
16053 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16055 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16056 if test $ac_delim_n = $ac_delim_num; then
16058 elif $ac_last_try; then
16059 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16061 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16064 rm -f conf$$subs.sh
16066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16067 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16071 s/^/S["/; s
/!.
*/"]=/
16081 s/\(.\{148\}\)..*/\1/
16083 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16088 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16095 s/\(.\{148\}\)..*/\1/
16097 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16101 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16106 ' <conf$$subs.awk | sed '
16111 ' >>$CONFIG_STATUS || ac_write_fail=1
16112 rm -f conf$$subs.awk
16113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16115 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16116 for (key in S) S_is_set[key] = 1
16122 nfields = split(line, field, "@
")
16124 len = length(field[1])
16125 for (i = 2; i < nfields; i++) {
16127 keylen = length(key)
16128 if (S_is_set[key]) {
16130 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16131 len += length(value) + length(field[++i])
16142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16143 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16144 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16147 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16148 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16151 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16152 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16153 # trailing colons and then remove the whole line if VPATH becomes empty
16154 # (actually we leave an empty line to preserve line numbers).
16155 if test "x
$srcdir" = x.; then
16156 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16175 fi # test -n "$CONFIG_FILES"
16177 # Set up the scripts for CONFIG_HEADERS section.
16178 # No need to generate them if there are no CONFIG_HEADERS.
16179 # This happens for instance with `./config.status Makefile'.
16180 if test -n "$CONFIG_HEADERS"; then
16181 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16185 # Transform confdefs.h into an awk script `defines.awk', embedded as
16186 # here-document in config.status, that substitutes the proper values into
16187 # config.h.in to produce config.h.
16189 # Create a delimiter string that does not exist in confdefs.h, to ease
16190 # handling of long lines.
16192 for ac_last_try in false false :; do
16193 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16194 if test -z "$ac_tt"; then
16196 elif $ac_last_try; then
16197 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16199 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16203 # For the awk script, D is an array of macro values keyed by name,
16204 # likewise P contains macro parameters if any. Preserve backslash
16205 # newline sequences.
16207 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16209 s/.\{148\}/&'"$ac_delim"'/g
16212 s/^[ ]*#[ ]*define[ ][ ]*/ /
16219 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16221 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16225 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16226 D["\
1"]=" \
3\\\\\\n
"\\/p
16228 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16233 s/.\{148\}/&'"$ac_delim"'/g
16238 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16241 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16243 ' <confdefs.h | sed '
16244 s/'"$ac_delim"'/"\\\
16245 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16248 for (key in D) D_is_set[key] = 1
16251 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16253 split(line, arg, " ")
16254 if (arg[1] == "#") {
16258 defundef
= substr
(arg
[1], 2)
16261 split(mac1
, mac2
, "(") #)
16263 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16264 if (D_is_set
[macro
]) {
16265 # Preserve the white space surrounding the "#".
16266 print prefix
"define", macro P
[macro
] D
[macro
]
16269 # Replace #undef with comments. This is necessary, for example,
16270 # in the case of _POSIX_SOURCE, which is predefined and required
16271 # on some systems where configure will not decide to define it.
16272 if (defundef
== "undef") {
16273 print
"/*", prefix defundef
, macro
, "*/"
16281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16282 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16283 fi # test -n "$CONFIG_HEADERS"
16286 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16291 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16293 case $ac_mode$ac_tag in
16295 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16296 :[FH
]-) ac_tag
=-:-;;
16297 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16314 -) ac_f
="$ac_tmp/stdin";;
16315 *) # Look for the file first in the build tree, then in the source tree
16316 # (if the path is not absolute). The absolute path cannot be DOS-style,
16317 # because $ac_f cannot contain `:'.
16321 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16323 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16325 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16326 as_fn_append ac_file_inputs
" '$ac_f'"
16329 # Let's still pretend it is `configure' which instantiates (i.e., don't
16330 # use $as_me), people would be surprised to read:
16331 # /* config.h. Generated by config.status. */
16332 configure_input
='Generated from '`
16333 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16335 if test x
"$ac_file" != x-
; then
16336 configure_input
="$ac_file. $configure_input"
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16338 $as_echo "$as_me: creating $ac_file" >&6;}
16340 # Neutralize special characters interpreted by sed in replacement strings.
16341 case $configure_input in #(
16342 *\
&* |
*\|
* |
*\\* )
16343 ac_sed_conf_input
=`$as_echo "$configure_input" |
16344 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16345 *) ac_sed_conf_input
=$configure_input;;
16349 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16350 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16355 ac_dir
=`$as_dirname -- "$ac_file" ||
16356 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16357 X"$ac_file" : 'X\(//\)[^/]' \| \
16358 X"$ac_file" : 'X\(//\)$' \| \
16359 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16360 $as_echo X"$ac_file" |
16361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16365 /^X\(\/\/\)[^/].*/{
16378 as_dir
="$ac_dir"; as_fn_mkdir_p
16382 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16384 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16385 # A ".." for each directory in $ac_dir_suffix.
16386 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16387 case $ac_top_builddir_sub in
16388 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16389 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16392 ac_abs_top_builddir
=$ac_pwd
16393 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16394 # for backward compatibility:
16395 ac_top_builddir
=$ac_top_build_prefix
16398 .
) # We are building in place.
16400 ac_top_srcdir
=$ac_top_builddir_sub
16401 ac_abs_top_srcdir
=$ac_pwd ;;
16402 [\\/]* | ?
:[\\/]* ) # Absolute name.
16403 ac_srcdir
=$srcdir$ac_dir_suffix;
16404 ac_top_srcdir
=$srcdir
16405 ac_abs_top_srcdir
=$srcdir ;;
16406 *) # Relative name.
16407 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16408 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16409 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16411 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16423 # If the template does not know about datarootdir, expand it.
16424 # FIXME: This hack should be removed a few years after 2.60.
16425 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16436 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16437 *datarootdir
*) ac_datarootdir_seen
=yes;;
16438 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16440 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16443 ac_datarootdir_hack='
16444 s&@datadir@&$datadir&g
16445 s&@docdir@&$docdir&g
16446 s&@infodir@&$infodir&g
16447 s&@localedir@&$localedir&g
16448 s&@mandir@&$mandir&g
16449 s&\\\${datarootdir}&$datarootdir&g' ;;
16453 # Neutralize VPATH when `$srcdir' = `.'.
16454 # Shell code in configure.ac might set extrasub.
16455 # FIXME: do we really want to maintain this feature?
16456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16457 ac_sed_extra="$ac_vpsub
16460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16462 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16463 s|@configure_input@|
$ac_sed_conf_input|
;t t
16464 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16465 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16466 s
&@srcdir@
&$ac_srcdir&;t t
16467 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16468 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16469 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16470 s
&@builddir@
&$ac_builddir&;t t
16471 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16472 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16473 $ac_datarootdir_hack
16475 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16476 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16478 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16479 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16480 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16481 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16483 which seems to be undefined. Please make sure it is defined" >&5
16484 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16485 which seems to be undefined. Please make sure it is defined" >&2;}
16487 rm -f "$ac_tmp/stdin"
16489 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16490 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16498 if test x"$ac_file" != x-; then
16500 $as_echo "/* $configure_input */" \
16501 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16502 } >"$ac_tmp/config.h" \
16503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16504 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16506 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16509 mv "$ac_tmp/config.h" "$ac_file" \
16510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16513 $as_echo "/* $configure_input */" \
16514 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16515 || as_fn_error $? "could not create -" "$LINENO" 5
16519 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16520 $as_echo "$as_me: executing $ac_file commands" >&6;}
16525 case $ac_file$ac_mode in
16526 "genmf-executable-support":C)
16527 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16528 chmod a+x ${aros_tools_dir}/genmf.py
16530 "binutils-support":C)
16531 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16533 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16535 chmod a+x ${prefix2}-ld
16537 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16538 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16539 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16540 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16541 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16542 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16543 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16545 "elf-compiler-support":C)
16546 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16548 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16550 chmod a+x ${prefix2}-gcc
16552 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16554 "host-compiler-wrapper-support":C)
16555 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16557 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16559 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16568 ac_clean_files=$ac_clean_files_save
16570 test $ac_write_fail = 0 ||
16571 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16574 # configure is writing to config.log, and then calls config.status.
16575 # config.status does its own redirection, appending to config.log.
16576 # Unfortunately, on DOS this fails, as config.log is still kept open
16577 # by configure, so config.status won't be able to
write to it
; its
16578 # output is simply discarded. So we exec the FD to /dev/null,
16579 # effectively closing config.log, so it can be properly (re)opened and
16580 # appended to by config.status. When coming back to configure, we
16581 # need to make the FD available again.
16582 if test "$no_create" != yes; then
16584 ac_config_status_args
=
16585 test "$silent" = yes &&
16586 ac_config_status_args
="$ac_config_status_args --quiet"
16588 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16590 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16591 # would make configure fail if this is the last instruction.
16592 $ac_cs_success || as_fn_exit
1
16594 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16596 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16601 #XXX compatability...
16602 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
16604 if test -n "$aros_shared_cflags" ; then
16605 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16606 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg