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 /usr/include/stddef.h" >&5
4689 $as_echo_n "checking for /usr/include/stddef.h... " >&6; }
4690 if ${ac_cv_file__usr_include_stddef_h+:} false
; then :
4691 $as_echo_n "(cached) " >&6
4693 test "$cross_compiling" = yes &&
4694 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
4695 if test -r "/usr/include/stddef.h"; then
4696 ac_cv_file__usr_include_stddef_h
=yes
4698 ac_cv_file__usr_include_stddef_h
=no
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_stddef_h" >&5
4702 $as_echo "$ac_cv_file__usr_include_stddef_h" >&6; }
4703 if test "x$ac_cv_file__usr_include_stddef_h" = xyes
; then :
4706 as_fn_error $?
"XCode incorrectly configured!
4707 please run 'xcode-select --install' before
4708 re-running configure" "$LINENO" 5
4712 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4713 aros_host_arch
="darwin"
4715 if [ -z ${SED+x} ]; then SED
="gsed"; fi
4716 android_build_os
="darwin-x86"
4717 android_tool
="android"
4718 default_android_sdk
="/android-sdk-mac_x86"
4721 aros_host_cpu
="i386"
4724 aros_host_cpu
="x86_64"
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4731 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4732 aros_host_cpu
="$host_cpu"
4736 aros_host_ldflags
="$aros_host_ldflags -liconv"
4741 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4742 aros_host_make
="gmake"
4743 aros_host_arch
="dragonfly"
4746 aros_host_cpu
="i386"
4749 aros_host_cpu
="x86_64"
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4753 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4754 aros_host_cpu
="$host_cpu"
4760 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4761 aros_host_make
="gmake"
4762 aros_host_arch
="netbsd"
4765 aros_host_cpu
="i386"
4768 aros_host_cpu
="m68k"
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4772 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4773 aros_host_cpu
="$host_cpu"
4776 aros_host_lib_suffix
=".0.0"
4780 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4781 aros_host_make
="gmake"
4782 aros_host_arch
="openbsd"
4785 aros_host_cpu
="i386"
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4789 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4790 aros_host_cpu
="$host_cpu"
4796 aros_host_arch
="solaris"
4797 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4800 aros_host_cpu
="i386"
4803 aros_host_cpu
="sparc"
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4807 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4808 aros_host_cpu
="$host_cpu"
4814 aros_host_arch
="morphos"
4820 aros_host_arch
="amiga"
4826 TOUCH
="/gg/bin/touch"
4829 aros_host_cpu
="m68k"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4836 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4837 aros_host_cpu
="$host_cpu"
4843 aros_host_arch
="cygwin"
4844 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4846 android_build_os
="windows"
4847 android_tool
="android.bat"
4848 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4852 aros_host_cpu
="i386"
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4856 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4857 aros_host_cpu
="$host_cpu"
4863 aros_host_arch
="mingw32"
4864 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4866 android_build_os
="windows"
4867 android_tool
="android.bat"
4868 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4870 libpng_libextra
="-lws2_32"
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4876 $as_echo_n "checking for Windows native gcc target... " >&6; }
4877 host_cpu
=`gcc -dumpmachine`
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4879 $as_echo "$host_cpu" >&6; }
4886 aros_host_cpu
="i386"
4890 aros_host_cpu
="i386"
4894 aros_host_cpu
="x86_64"
4895 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4900 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4901 aros_host_cpu
="$host_cpu"
4906 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4910 # Extract the first word of "ar", so it can be a program name with args.
4911 set dummy
ar; ac_word
=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_aros_host_ar+:} false
; then :
4915 $as_echo_n "(cached) " >&6
4917 if test -n "$aros_host_ar"; then
4918 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir
=.
4925 for ac_exec_ext
in '' $ac_executable_extensions; do
4926 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4927 ac_cv_prog_aros_host_ar
="ar cr"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 aros_host_ar
=$ac_cv_prog_aros_host_ar
4938 if test -n "$aros_host_ar"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4940 $as_echo "$aros_host_ar" >&6; }
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4948 if test "$aros_host_ar" = ""; then
4951 if test "$aros_host_ar" = "no"; then
4954 if test "$req_avail" = "no"; then
4955 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4957 # Extract the first word of "ranlib", so it can be a program name with args.
4958 set dummy ranlib
; ac_word
=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_prog_aros_host_ranlib+:} false
; then :
4962 $as_echo_n "(cached) " >&6
4964 if test -n "$aros_host_ranlib"; then
4965 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir
=.
4972 for ac_exec_ext
in '' $ac_executable_extensions; do
4973 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4974 ac_cv_prog_aros_host_ranlib
="ranlib "
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4985 if test -n "$aros_host_ranlib"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4987 $as_echo "$aros_host_ranlib" >&6; }
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4995 if test "$aros_host_ranlib" = ""; then
4998 if test "$aros_host_ranlib" = "no"; then
5001 if test "$req_avail" = "no"; then
5002 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5004 # Extract the first word of "strip", so it can be a program name with args.
5005 set dummy strip
; ac_word
=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_aros_host_strip+:} false
; then :
5009 $as_echo_n "(cached) " >&6
5011 if test -n "$aros_host_strip"; then
5012 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
5014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir
=.
5019 for ac_exec_ext
in '' $ac_executable_extensions; do
5020 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_aros_host_strip
="strip "
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 aros_host_strip
=$ac_cv_prog_aros_host_strip
5032 if test -n "$aros_host_strip"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5034 $as_echo "$aros_host_strip" >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5042 if test "$aros_host_strip" = ""; then
5045 if test "$aros_host_strip" = "no"; then
5048 if test "$req_avail" = "no"; then
5049 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5052 # Extract the first word of "rm", so it can be a program name with args.
5053 set dummy
rm; ac_word
=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_prog_RM+:} false
; then :
5057 $as_echo_n "(cached) " >&6
5059 if test -n "$RM"; then
5060 ac_cv_prog_RM
="$RM" # Let the user override the test.
5062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5066 test -z "$as_dir" && as_dir
=.
5067 for ac_exec_ext
in '' $ac_executable_extensions; do
5068 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5069 ac_cv_prog_RM
="rm -rf"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 if test -n "$RM"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5082 $as_echo "$RM" >&6; }
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5090 if test "$RM" = ""; then
5093 if test "$RM" = "no"; then
5096 if test "$req_avail" = "no"; then
5097 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5099 # Extract the first word of "cp", so it can be a program name with args.
5100 set dummy
cp; ac_word
=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if ${ac_cv_prog_CP+:} false
; then :
5104 $as_echo_n "(cached) " >&6
5106 if test -n "$CP"; then
5107 ac_cv_prog_CP
="$CP" # Let the user override the test.
5109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir
=.
5114 for ac_exec_ext
in '' $ac_executable_extensions; do
5115 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 if test -n "$CP"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5129 $as_echo "$CP" >&6; }
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5137 if test "$CP" = ""; then
5140 if test "$CP" = "no"; then
5143 if test "$req_avail" = "no"; then
5144 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5146 # Extract the first word of "mv", so it can be a program name with args.
5147 set dummy
mv; ac_word
=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_MV+:} false
; then :
5151 $as_echo_n "(cached) " >&6
5153 if test -n "$MV"; then
5154 ac_cv_prog_MV
="$MV" # Let the user override the test.
5156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir
=.
5161 for ac_exec_ext
in '' $ac_executable_extensions; do
5162 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 if test -n "$MV"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5176 $as_echo "$MV" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5184 if test "$MV" = ""; then
5187 if test "$MV" = "no"; then
5190 if test "$req_avail" = "no"; then
5191 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5193 # Extract the first word of "echo", so it can be a program name with args.
5194 set dummy
echo; ac_word
=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_prog_ECHO+:} false
; then :
5198 $as_echo_n "(cached) " >&6
5200 if test -n "$ECHO"; then
5201 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir
=.
5208 for ac_exec_ext
in '' $ac_executable_extensions; do
5209 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_ECHO
="echo "
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 ECHO
=$ac_cv_prog_ECHO
5221 if test -n "$ECHO"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5223 $as_echo "$ECHO" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5231 if test "$ECHO" = ""; then
5234 if test "$ECHO" = "no"; then
5237 if test "$req_avail" = "no"; then
5238 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5240 # Extract the first word of "mkdir", so it can be a program name with args.
5241 set dummy mkdir
; ac_word
=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if ${ac_cv_prog_MKDIR+:} false
; then :
5245 $as_echo_n "(cached) " >&6
5247 if test -n "$MKDIR"; then
5248 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5254 test -z "$as_dir" && as_dir
=.
5255 for ac_exec_ext
in '' $ac_executable_extensions; do
5256 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_prog_MKDIR
="mkdir -p"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 MKDIR
=$ac_cv_prog_MKDIR
5268 if test -n "$MKDIR"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5270 $as_echo "$MKDIR" >&6; }
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5278 if test "$MKDIR" = ""; then
5281 if test "$MKDIR" = "no"; then
5284 if test "$req_avail" = "no"; then
5285 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5287 # Extract the first word of "touch", so it can be a program name with args.
5288 set dummy
touch; ac_word
=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if ${ac_cv_prog_TOUCH+:} false
; then :
5292 $as_echo_n "(cached) " >&6
5294 if test -n "$TOUCH"; then
5295 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5301 test -z "$as_dir" && as_dir
=.
5302 for ac_exec_ext
in '' $ac_executable_extensions; do
5303 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_prog_TOUCH
="touch "
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 TOUCH
=$ac_cv_prog_TOUCH
5315 if test -n "$TOUCH"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5317 $as_echo "$TOUCH" >&6; }
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5325 if test "$TOUCH" = ""; then
5328 if test "$TOUCH" = "no"; then
5331 if test "$req_avail" = "no"; then
5332 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5334 # Extract the first word of "sort", so it can be a program name with args.
5335 set dummy
sort; ac_word
=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_SORT+:} false
; then :
5339 $as_echo_n "(cached) " >&6
5341 if test -n "$SORT"; then
5342 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir
=.
5349 for ac_exec_ext
in '' $ac_executable_extensions; do
5350 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_SORT
="sort "
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 SORT
=$ac_cv_prog_SORT
5362 if test -n "$SORT"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5364 $as_echo "$SORT" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5372 if test "$SORT" = ""; then
5375 if test "$SORT" = "no"; then
5378 if test "$req_avail" = "no"; then
5379 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5381 # Extract the first word of "uniq", so it can be a program name with args.
5382 set dummy
uniq; ac_word
=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if ${ac_cv_prog_UNIQ+:} false
; then :
5386 $as_echo_n "(cached) " >&6
5388 if test -n "$UNIQ"; then
5389 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5395 test -z "$as_dir" && as_dir
=.
5396 for ac_exec_ext
in '' $ac_executable_extensions; do
5397 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_UNIQ
="uniq "
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 UNIQ
=$ac_cv_prog_UNIQ
5409 if test -n "$UNIQ"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5411 $as_echo "$UNIQ" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5419 if test "$UNIQ" = ""; then
5422 if test "$UNIQ" = "no"; then
5425 if test "$req_avail" = "no"; then
5426 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5428 # Extract the first word of "true", so it can be a program name with args.
5429 set dummy true
; ac_word
=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_prog_NOP+:} false
; then :
5433 $as_echo_n "(cached) " >&6
5435 if test -n "$NOP"; then
5436 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5442 test -z "$as_dir" && as_dir
=.
5443 for ac_exec_ext
in '' $ac_executable_extensions; do
5444 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5445 ac_cv_prog_NOP
="true "
5446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 if test -n "$NOP"; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5458 $as_echo "$NOP" >&6; }
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5466 if test "$NOP" = ""; then
5469 if test "$NOP" = "no"; then
5472 if test "$req_avail" = "no"; then
5473 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5475 # Extract the first word of "cat", so it can be a program name with args.
5476 set dummy
cat; ac_word
=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_CAT+:} false
; then :
5480 $as_echo_n "(cached) " >&6
5482 if test -n "$CAT"; then
5483 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir
=.
5490 for ac_exec_ext
in '' $ac_executable_extensions; do
5491 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_prog_CAT
="cat "
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 if test -n "$CAT"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5505 $as_echo "$CAT" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5513 if test "$CAT" = ""; then
5516 if test "$CAT" = "no"; then
5519 if test "$req_avail" = "no"; then
5520 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5522 # Extract the first word of "bison", so it can be a program name with args.
5523 set dummy bison
; ac_word
=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if ${ac_cv_prog_BISON+:} false
; then :
5527 $as_echo_n "(cached) " >&6
5529 if test -n "$BISON"; then
5530 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5536 test -z "$as_dir" && as_dir
=.
5537 for ac_exec_ext
in '' $ac_executable_extensions; do
5538 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5539 ac_cv_prog_BISON
="bison "
5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 BISON
=$ac_cv_prog_BISON
5550 if test -n "$BISON"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5552 $as_echo "$BISON" >&6; }
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5560 if test "$BISON" = ""; then
5563 if test "$BISON" = "no"; then
5566 if test "$req_avail" = "no"; then
5567 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5569 # Extract the first word of "flex", so it can be a program name with args.
5570 set dummy flex
; ac_word
=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_FLEX+:} false
; then :
5574 $as_echo_n "(cached) " >&6
5576 if test -n "$FLEX"; then
5577 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5583 test -z "$as_dir" && as_dir
=.
5584 for ac_exec_ext
in '' $ac_executable_extensions; do
5585 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_FLEX
="flex "
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 FLEX
=$ac_cv_prog_FLEX
5597 if test -n "$FLEX"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5599 $as_echo "$FLEX" >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5607 if test "$FLEX" = ""; then
5610 if test "$FLEX" = "no"; then
5613 if test "$req_avail" = "no"; then
5614 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5616 # Extract the first word of "pngtopnm", so it can be a program name with args.
5617 set dummy pngtopnm
; ac_word
=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5621 $as_echo_n "(cached) " >&6
5623 if test -n "$PNGTOPNM"; then
5624 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir
=.
5631 for ac_exec_ext
in '' $ac_executable_extensions; do
5632 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_PNGTOPNM
="pngtopnm "
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5644 if test -n "$PNGTOPNM"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5646 $as_echo "$PNGTOPNM" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5654 if test "$PNGTOPNM" = ""; then
5657 if test "$PNGTOPNM" = "no"; then
5660 if test "$req_avail" = "no"; then
5661 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5663 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5664 set dummy ppmtoilbm
; ac_word
=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5668 $as_echo_n "(cached) " >&6
5670 if test -n "$PPMTOILBM"; then
5671 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5677 test -z "$as_dir" && as_dir
=.
5678 for ac_exec_ext
in '' $ac_executable_extensions; do
5679 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5691 if test -n "$PPMTOILBM"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5693 $as_echo "$PPMTOILBM" >&6; }
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5701 if test "$PPMTOILBM" = ""; then
5704 if test "$PPMTOILBM" = "no"; then
5707 if test "$req_avail" = "no"; then
5708 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5710 # Extract the first word of "sed", so it can be a program name with args.
5711 set dummy
sed; ac_word
=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if ${ac_cv_prog_SED+:} false
; then :
5715 $as_echo_n "(cached) " >&6
5717 if test -n "$SED"; then
5718 ac_cv_prog_SED
="$SED" # Let the user override the test.
5720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5724 test -z "$as_dir" && as_dir
=.
5725 for ac_exec_ext
in '' $ac_executable_extensions; do
5726 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_SED
="sed "
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 if test -n "$SED"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5740 $as_echo "$SED" >&6; }
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5748 if test "$SED" = ""; then
5751 if test "$SED" = "no"; then
5754 if test "$req_avail" = "no"; then
5755 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5757 # Extract the first word of "chmod", so it can be a program name with args.
5758 set dummy
chmod; ac_word
=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if ${ac_cv_prog_CHMOD+:} false
; then :
5762 $as_echo_n "(cached) " >&6
5764 if test -n "$CHMOD"; then
5765 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5771 test -z "$as_dir" && as_dir
=.
5772 for ac_exec_ext
in '' $ac_executable_extensions; do
5773 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5774 ac_cv_prog_CHMOD
="chmod "
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 CHMOD
=$ac_cv_prog_CHMOD
5785 if test -n "$CHMOD"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5787 $as_echo "$CHMOD" >&6; }
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5795 if test "$CHMOD" = ""; then
5798 if test "$CHMOD" = "no"; then
5801 if test "$req_avail" = "no"; then
5802 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5804 # Extract the first word of "patch", so it can be a program name with args.
5805 set dummy
patch; ac_word
=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if ${ac_cv_prog_PATCH+:} false
; then :
5809 $as_echo_n "(cached) " >&6
5811 if test -n "$PATCH"; then
5812 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5818 test -z "$as_dir" && as_dir
=.
5819 for ac_exec_ext
in '' $ac_executable_extensions; do
5820 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5821 ac_cv_prog_PATCH
="patch "
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 PATCH
=$ac_cv_prog_PATCH
5832 if test -n "$PATCH"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5834 $as_echo "$PATCH" >&6; }
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5842 if test "$PATCH" = ""; then
5845 if test "$PATCH" = "no"; then
5848 if test "$req_avail" = "no"; then
5849 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5858 if test -n "$PYTHON"; then
5859 # If the user set $PYTHON, use it and don't search something else.
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5861 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5863 # split strings by '.' and convert to numeric. Append some zeros
5864 # because we need at least 4 digits for the hex conversion.
5865 # map returns an iterator in Python 3.0 and a list in 2.x
5866 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5868 # xrange is not present in Python 3.0 and range returns an iterator
5869 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5870 sys.exit(sys.hexversion < minverhex)"
5871 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5872 ($PYTHON -c "$prog") >&5 2>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; then :
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5877 $as_echo "yes" >&6; }
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 as_fn_error $?
"Python interpreter is too old" "$LINENO" 5
5883 am_display_PYTHON
=$PYTHON
5885 # Otherwise, try each interpreter until we find one that satisfies
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5888 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5889 if ${am_cv_pathless_PYTHON+:} false
; then :
5890 $as_echo_n "(cached) " >&6
5893 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
5894 test "$am_cv_pathless_PYTHON" = none
&& break
5896 # split strings by '.' and convert to numeric. Append some zeros
5897 # because we need at least 4 digits for the hex conversion.
5898 # map returns an iterator in Python 3.0 and a list in 2.x
5899 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5901 # xrange is not present in Python 3.0 and range returns an iterator
5902 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5903 sys.exit(sys.hexversion < minverhex)"
5904 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5905 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; then :
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5914 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5915 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5916 if test "$am_cv_pathless_PYTHON" = none
; then
5919 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5920 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if ${ac_cv_path_PYTHON+:} false
; then :
5924 $as_echo_n "(cached) " >&6
5928 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5935 test -z "$as_dir" && as_dir
=.
5936 for ac_exec_ext
in '' $ac_executable_extensions; do
5937 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5938 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 PYTHON
=$ac_cv_path_PYTHON
5950 if test -n "$PYTHON"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5952 $as_echo "$PYTHON" >&6; }
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 $as_echo "no" >&6; }
5960 am_display_PYTHON
=$am_cv_pathless_PYTHON
5964 if test "$PYTHON" = :; then
5965 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5970 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5971 if ${am_cv_python_version+:} false
; then :
5972 $as_echo_n "(cached) " >&6
5974 am_cv_python_version
=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5977 $as_echo "$am_cv_python_version" >&6; }
5978 PYTHON_VERSION
=$am_cv_python_version
5982 PYTHON_PREFIX
='${prefix}'
5984 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5989 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5990 if ${am_cv_python_platform+:} false
; then :
5991 $as_echo_n "(cached) " >&6
5993 am_cv_python_platform
=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5996 $as_echo "$am_cv_python_platform" >&6; }
5997 PYTHON_PLATFORM
=$am_cv_python_platform
6000 # Just factor out some code duplication.
6001 am_python_setup_sysconfig
="\
6003 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6004 # with python 3.x. See automake bug#10227.
6008 can_use_sysconfig = 0
6010 can_use_sysconfig = 1
6011 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6012 # <https://github.com/pypa/virtualenv/issues/118>
6014 from platform import python_implementation
6015 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6016 can_use_sysconfig = 0
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6022 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6023 if ${am_cv_python_pythondir+:} false
; then :
6024 $as_echo_n "(cached) " >&6
6026 if test "x$prefix" = xNONE
6028 am_py_prefix
=$ac_default_prefix
6030 am_py_prefix
=$prefix
6032 am_cv_python_pythondir
=`$PYTHON -c "
6033 $am_python_setup_sysconfig
6034 if can_use_sysconfig:
6035 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6037 from distutils import sysconfig
6038 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6039 sys.stdout.write(sitedir)"`
6040 case $am_cv_python_pythondir in
6042 am__strip_prefix
=`echo "$am_py_prefix" | sed 's|.|.|g'`
6043 am_cv_python_pythondir
=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6046 case $am_py_prefix in
6049 am_cv_python_pythondir
=$PYTHON_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6057 $as_echo "$am_cv_python_pythondir" >&6; }
6058 pythondir
=$am_cv_python_pythondir
6062 pkgpythondir
=\
${pythondir}/$PACKAGE
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6066 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6067 if ${am_cv_python_pyexecdir+:} false
; then :
6068 $as_echo_n "(cached) " >&6
6070 if test "x$exec_prefix" = xNONE
6072 am_py_exec_prefix
=$am_py_prefix
6074 am_py_exec_prefix
=$exec_prefix
6076 am_cv_python_pyexecdir
=`$PYTHON -c "
6077 $am_python_setup_sysconfig
6078 if can_use_sysconfig:
6079 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6081 from distutils import sysconfig
6082 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6083 sys.stdout.write(sitedir)"`
6084 case $am_cv_python_pyexecdir in
6085 $am_py_exec_prefix*)
6086 am__strip_prefix
=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6087 am_cv_python_pyexecdir
=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6090 case $am_py_exec_prefix in
6093 am_cv_python_pyexecdir
=$PYTHON_EXEC_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6101 $as_echo "$am_cv_python_pyexecdir" >&6; }
6102 pyexecdir
=$am_cv_python_pyexecdir
6106 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
6114 # Check whether --enable-libpng-config was given.
6115 if test "${enable_libpng_config+set}" = set; then :
6116 enableval
=$enable_libpng_config;
6119 if test "$enable_libpng_config" != "no"; then
6120 # Extract the first word of "libpng-config", so it can be a program name with args.
6121 set dummy libpng-config
; ac_word
=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false
; then :
6125 $as_echo_n "(cached) " >&6
6127 if test -n "$arosconfig_use_libpngconfig"; then
6128 ac_cv_prog_arosconfig_use_libpngconfig
="$arosconfig_use_libpngconfig" # Let the user override the test.
6130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6134 test -z "$as_dir" && as_dir
=.
6135 for ac_exec_ext
in '' $ac_executable_extensions; do
6136 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_arosconfig_use_libpngconfig
="yes"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig
="no"
6148 arosconfig_use_libpngconfig
=$ac_cv_prog_arosconfig_use_libpngconfig
6149 if test -n "$arosconfig_use_libpngconfig"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6151 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6159 if test "$arosconfig_use_libpngconfig" = "yes"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6161 $as_echo_n "checking libpng-config library... " >&6; }
6162 libpng_incdir
="`libpng-config --cflags`"
6163 libpng_libextra
="$libpng_libextra `libpng-config --ldflags`"
6164 libpng
="`libpng-config --libs`"
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6166 $as_echo "$libpng" >&6; }
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6170 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6171 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6172 $as_echo_n "(cached) " >&6
6174 ac_check_lib_save_LIBS
=$LIBS
6176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6179 /* Override any GCC internal prototype to avoid an error.
6180 Use char because int might match the return type of a GCC
6181 builtin and then its argument prototype would still apply. */
6185 char png_read_png ();
6189 return png_read_png ();
6194 if ac_fn_c_try_link
"$LINENO"; then :
6195 ac_cv_lib_png_png_read_png
=yes
6197 ac_cv_lib_png_png_read_png
=no
6199 rm -f core conftest.err conftest.
$ac_objext \
6200 conftest
$ac_exeext conftest.
$ac_ext
6201 LIBS
=$ac_check_lib_save_LIBS
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6204 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6205 if test "x$ac_cv_lib_png_png_read_png" = xyes
; then :
6211 if test "$libpng_libextra" != ""; then
6212 if test "$libpng" != "no"; then
6213 libpng_libextra
="$libpng_libextra $libpng"
6218 if test "$libpng" = ""; then
6221 if test "$libpng" = "no"; then
6224 if test "$req_avail" = "no"; then
6225 as_fn_error $?
"libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6241 # Check for some includes for the X11 HIDD and the kernel
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6244 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6245 if ${ac_cv_path_GREP+:} false
; then :
6246 $as_echo_n "(cached) " >&6
6248 if test -z "$GREP"; then
6249 ac_path_GREP_found
=false
6250 # Loop through the user's path and test for each of PROGNAME-LIST
6251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6252 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6255 test -z "$as_dir" && as_dir
=.
6256 for ac_prog
in grep ggrep
; do
6257 for ac_exec_ext
in '' $ac_executable_extensions; do
6258 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6259 as_fn_executable_p
"$ac_path_GREP" ||
continue
6260 # Check for GNU ac_path_GREP and select it if it is found.
6261 # Check for GNU $ac_path_GREP
6262 case `"$ac_path_GREP" --version 2>&1` in
6264 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6267 $as_echo_n 0123456789 >"conftest.in"
6270 cat "conftest.in" "conftest.in" >"conftest.tmp"
6271 mv "conftest.tmp" "conftest.in"
6272 cp "conftest.in" "conftest.nl"
6273 $as_echo 'GREP' >> "conftest.nl"
6274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6275 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6276 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6277 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6278 # Best one so far, save it but keep looking for a better one
6279 ac_cv_path_GREP
="$ac_path_GREP"
6280 ac_path_GREP_max
=$ac_count
6282 # 10*(2^10) chars as input seems more than enough
6283 test $ac_count -gt 10 && break
6285 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6288 $ac_path_GREP_found && break 3
6293 if test -z "$ac_cv_path_GREP"; then
6294 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6297 ac_cv_path_GREP
=$GREP
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6302 $as_echo "$ac_cv_path_GREP" >&6; }
6303 GREP
="$ac_cv_path_GREP"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6307 $as_echo_n "checking for egrep... " >&6; }
6308 if ${ac_cv_path_EGREP+:} false
; then :
6309 $as_echo_n "(cached) " >&6
6311 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6312 then ac_cv_path_EGREP
="$GREP -E"
6314 if test -z "$EGREP"; then
6315 ac_path_EGREP_found
=false
6316 # Loop through the user's path and test for each of PROGNAME-LIST
6317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6318 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6321 test -z "$as_dir" && as_dir
=.
6322 for ac_prog
in egrep; do
6323 for ac_exec_ext
in '' $ac_executable_extensions; do
6324 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6325 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6326 # Check for GNU ac_path_EGREP and select it if it is found.
6327 # Check for GNU $ac_path_EGREP
6328 case `"$ac_path_EGREP" --version 2>&1` in
6330 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6333 $as_echo_n 0123456789 >"conftest.in"
6336 cat "conftest.in" "conftest.in" >"conftest.tmp"
6337 mv "conftest.tmp" "conftest.in"
6338 cp "conftest.in" "conftest.nl"
6339 $as_echo 'EGREP' >> "conftest.nl"
6340 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6341 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6342 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6343 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6344 # Best one so far, save it but keep looking for a better one
6345 ac_cv_path_EGREP
="$ac_path_EGREP"
6346 ac_path_EGREP_max
=$ac_count
6348 # 10*(2^10) chars as input seems more than enough
6349 test $ac_count -gt 10 && break
6351 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6354 $ac_path_EGREP_found && break 3
6359 if test -z "$ac_cv_path_EGREP"; then
6360 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6363 ac_cv_path_EGREP
=$EGREP
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6369 $as_echo "$ac_cv_path_EGREP" >&6; }
6370 EGREP
="$ac_cv_path_EGREP"
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6374 $as_echo_n "checking for ANSI C header files... " >&6; }
6375 if ${ac_cv_header_stdc+:} false
; then :
6376 $as_echo_n "(cached) " >&6
6378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6393 if ac_fn_c_try_compile
"$LINENO"; then :
6394 ac_cv_header_stdc
=yes
6396 ac_cv_header_stdc
=no
6398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6400 if test $ac_cv_header_stdc = yes; then
6401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6408 $EGREP "memchr" >/dev
/null
2>&1; then :
6411 ac_cv_header_stdc
=no
6417 if test $ac_cv_header_stdc = yes; then
6418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6425 $EGREP "free" >/dev
/null
2>&1; then :
6428 ac_cv_header_stdc
=no
6434 if test $ac_cv_header_stdc = yes; then
6435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6436 if test "$cross_compiling" = yes; then :
6439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6443 #if ((' ' & 0x0FF) == 0x020)
6444 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6445 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6447 # define ISLOWER(c) \
6448 (('a' <= (c) && (c) <= 'i') \
6449 || ('j' <= (c) && (c) <= 'r') \
6450 || ('s' <= (c) && (c) <= 'z'))
6451 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6459 for (i = 0; i < 256; i++)
6460 if (XOR (islower (i), ISLOWER (i))
6461 || toupper (i) != TOUPPER (i))
6466 if ac_fn_c_try_run
"$LINENO"; then :
6469 ac_cv_header_stdc
=no
6471 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6472 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6478 $as_echo "$ac_cv_header_stdc" >&6; }
6479 if test $ac_cv_header_stdc = yes; then
6481 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6485 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6486 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6487 inttypes.h stdint.h unistd.h
6489 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6490 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6492 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6493 cat >>confdefs.h
<<_ACEOF
6494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6502 for ac_header
in sys
/ipc.h sys
/shm.h \
6503 sys
/mmap.h sys
/mman.h sysexits.h \
6504 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6507 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6509 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6510 cat >>confdefs.h
<<_ACEOF
6511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6519 for ac_header
in sys
/mount.h
6521 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6523 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6524 cat >>confdefs.h
<<_ACEOF
6525 #define HAVE_SYS_MOUNT_H 1
6534 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6535 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6537 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6538 if eval \
${$as_ac_Header+:} false
; then :
6539 $as_echo_n "(cached) " >&6
6541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543 #include <sys/types.h>
6555 if ac_fn_c_try_compile
"$LINENO"; then :
6556 eval "$as_ac_Header=yes"
6558 eval "$as_ac_Header=no"
6560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6562 eval ac_res
=\$
$as_ac_Header
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6564 $as_echo "$ac_res" >&6; }
6565 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6566 cat >>confdefs.h
<<_ACEOF
6567 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6570 ac_header_dirent
=$ac_hdr; break
6574 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6575 if test $ac_header_dirent = dirent.h
; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6577 $as_echo_n "checking for library containing opendir... " >&6; }
6578 if ${ac_cv_search_opendir+:} false
; then :
6579 $as_echo_n "(cached) " >&6
6581 ac_func_search_save_LIBS
=$LIBS
6582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6585 /* Override any GCC internal prototype to avoid an error.
6586 Use char because int might match the return type of a GCC
6587 builtin and then its argument prototype would still apply. */
6600 for ac_lib
in '' dir
; do
6601 if test -z "$ac_lib"; then
6602 ac_res
="none required"
6605 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6607 if ac_fn_c_try_link
"$LINENO"; then :
6608 ac_cv_search_opendir
=$ac_res
6610 rm -f core conftest.err conftest.
$ac_objext \
6612 if ${ac_cv_search_opendir+:} false
; then :
6616 if ${ac_cv_search_opendir+:} false
; then :
6619 ac_cv_search_opendir
=no
6622 LIBS
=$ac_func_search_save_LIBS
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6625 $as_echo "$ac_cv_search_opendir" >&6; }
6626 ac_res
=$ac_cv_search_opendir
6627 if test "$ac_res" != no
; then :
6628 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6634 $as_echo_n "checking for library containing opendir... " >&6; }
6635 if ${ac_cv_search_opendir+:} false
; then :
6636 $as_echo_n "(cached) " >&6
6638 ac_func_search_save_LIBS
=$LIBS
6639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6642 /* Override any GCC internal prototype to avoid an error.
6643 Use char because int might match the return type of a GCC
6644 builtin and then its argument prototype would still apply. */
6657 for ac_lib
in '' x
; do
6658 if test -z "$ac_lib"; then
6659 ac_res
="none required"
6662 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6664 if ac_fn_c_try_link
"$LINENO"; then :
6665 ac_cv_search_opendir
=$ac_res
6667 rm -f core conftest.err conftest.
$ac_objext \
6669 if ${ac_cv_search_opendir+:} false
; then :
6673 if ${ac_cv_search_opendir+:} false
; then :
6676 ac_cv_search_opendir
=no
6679 LIBS
=$ac_func_search_save_LIBS
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6682 $as_echo "$ac_cv_search_opendir" >&6; }
6683 ac_res
=$ac_cv_search_opendir
6684 if test "$ac_res" != no
; then :
6685 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6692 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6693 if ${ac_cv_header_stat_broken+:} false
; then :
6694 $as_echo_n "(cached) " >&6
6696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 #include <sys/types.h>
6699 #include <sys/stat.h>
6701 #if defined S_ISBLK && defined S_IFDIR
6702 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6705 #if defined S_ISBLK && defined S_IFCHR
6706 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6709 #if defined S_ISLNK && defined S_IFREG
6710 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6713 #if defined S_ISSOCK && defined S_IFREG
6714 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6718 if ac_fn_c_try_compile
"$LINENO"; then :
6719 ac_cv_header_stat_broken
=no
6721 ac_cv_header_stat_broken
=yes
6723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6726 $as_echo "$ac_cv_header_stat_broken" >&6; }
6727 if test $ac_cv_header_stat_broken = yes; then
6729 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6734 $as_echo_n "checking for ANSI C header files... " >&6; }
6735 if ${ac_cv_header_stdc+:} false
; then :
6736 $as_echo_n "(cached) " >&6
6738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6753 if ac_fn_c_try_compile
"$LINENO"; then :
6754 ac_cv_header_stdc
=yes
6756 ac_cv_header_stdc
=no
6758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6760 if test $ac_cv_header_stdc = yes; then
6761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6768 $EGREP "memchr" >/dev
/null
2>&1; then :
6771 ac_cv_header_stdc
=no
6777 if test $ac_cv_header_stdc = yes; then
6778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6785 $EGREP "free" >/dev
/null
2>&1; then :
6788 ac_cv_header_stdc
=no
6794 if test $ac_cv_header_stdc = yes; then
6795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6796 if test "$cross_compiling" = yes; then :
6799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6803 #if ((' ' & 0x0FF) == 0x020)
6804 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6805 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6807 # define ISLOWER(c) \
6808 (('a' <= (c) && (c) <= 'i') \
6809 || ('j' <= (c) && (c) <= 'r') \
6810 || ('s' <= (c) && (c) <= 'z'))
6811 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6814 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6819 for (i = 0; i < 256; i++)
6820 if (XOR (islower (i), ISLOWER (i))
6821 || toupper (i) != TOUPPER (i))
6826 if ac_fn_c_try_run
"$LINENO"; then :
6829 ac_cv_header_stdc
=no
6831 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6832 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6838 $as_echo "$ac_cv_header_stdc" >&6; }
6839 if test $ac_cv_header_stdc = yes; then
6841 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6846 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6847 if ${ac_cv_header_sys_wait_h+:} false
; then :
6848 $as_echo_n "(cached) " >&6
6850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 #include <sys/types.h>
6853 #include <sys/wait.h>
6855 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6858 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6866 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6871 if ac_fn_c_try_compile
"$LINENO"; then :
6872 ac_cv_header_sys_wait_h
=yes
6874 ac_cv_header_sys_wait_h
=no
6876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6879 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6880 if test $ac_cv_header_sys_wait_h = yes; then
6882 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6887 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6888 if ${ac_cv_header_time+:} false
; then :
6889 $as_echo_n "(cached) " >&6
6891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6893 #include <sys/types.h>
6894 #include <sys/time.h>
6900 if ((struct tm *) 0)
6906 if ac_fn_c_try_compile
"$LINENO"; then :
6907 ac_cv_header_time
=yes
6909 ac_cv_header_time
=no
6911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6914 $as_echo "$ac_cv_header_time" >&6; }
6915 if test $ac_cv_header_time = yes; then
6917 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6921 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6922 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
6924 cat >>confdefs.h
<<_ACEOF
6925 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6929 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6934 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6935 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
6937 cat >>confdefs.h
<<_ACEOF
6938 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6942 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6945 case " $LIBOBJS " in
6946 *" fileblocks.$ac_objext "* ) ;;
6947 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6954 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6955 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
6957 cat >>confdefs.h
<<_ACEOF
6958 #define HAVE_STRUCT_STAT_ST_RDEV 1
6962 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6968 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6969 if ${ac_cv_struct_tm+:} false
; then :
6970 $as_echo_n "(cached) " >&6
6972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 #include <sys/types.h>
6981 int *p = &tm.tm_sec;
6987 if ac_fn_c_try_compile
"$LINENO"; then :
6988 ac_cv_struct_tm
=time.h
6990 ac_cv_struct_tm
=sys
/time.h
6992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6995 $as_echo "$ac_cv_struct_tm" >&6; }
6996 if test $ac_cv_struct_tm = sys
/time.h
; then
6998 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7002 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7003 #include <$ac_cv_struct_tm>
7006 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
7008 cat >>confdefs.h
<<_ACEOF
7009 #define HAVE_STRUCT_TM_TM_ZONE 1
7015 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7017 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7020 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7022 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
7028 cat >>confdefs.h
<<_ACEOF
7029 #define HAVE_DECL_TZNAME $ac_have_decl
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7033 $as_echo_n "checking for tzname... " >&6; }
7034 if ${ac_cv_var_tzname+:} false
; then :
7035 $as_echo_n "(cached) " >&6
7037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7040 #if !HAVE_DECL_TZNAME
7041 extern char *tzname[];
7047 return tzname[0][0];
7052 if ac_fn_c_try_link
"$LINENO"; then :
7053 ac_cv_var_tzname
=yes
7057 rm -f core conftest.err conftest.
$ac_objext \
7058 conftest
$ac_exeext conftest.
$ac_ext
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7061 $as_echo "$ac_cv_var_tzname" >&6; }
7062 if test $ac_cv_var_tzname = yes; then
7064 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7069 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7070 if test "x$ac_cv_type_off_t" = xyes
; then :
7074 cat >>confdefs.h
<<_ACEOF
7075 #define off_t long int
7080 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7081 if test "x$ac_cv_type_pid_t" = xyes
; then :
7085 cat >>confdefs.h
<<_ACEOF
7091 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7092 if test "x$ac_cv_type_size_t" = xyes
; then :
7096 cat >>confdefs.h
<<_ACEOF
7097 #define size_t unsigned int
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7103 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7104 if ${ac_cv_type_uid_t+:} false
; then :
7105 $as_echo_n "(cached) " >&6
7107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 #include <sys/types.h>
7112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7113 $EGREP "uid_t" >/dev
/null
2>&1; then :
7114 ac_cv_type_uid_t
=yes
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7122 $as_echo "$ac_cv_type_uid_t" >&6; }
7123 if test $ac_cv_type_uid_t = no
; then
7125 $as_echo "#define uid_t int" >>confdefs.h
7128 $as_echo "#define gid_t int" >>confdefs.h
7133 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7134 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7136 cat >>confdefs.h
<<_ACEOF
7137 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7144 # Look for some functions
7145 for ac_func
in getpagesize kqueue statfs statvfs \
7146 clone kse_create rfork_thread thr_create sa_register \
7147 getcontext makecontext setcontext sigaltstack swapcontext
7149 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7150 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7151 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7152 cat >>confdefs.h
<<_ACEOF
7153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7163 for ac_header
in $ac_header_list
7165 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7166 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7168 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7169 cat >>confdefs.h
<<_ACEOF
7170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7184 for ac_func
in getpagesize
7186 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7187 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7188 cat >>confdefs.h
<<_ACEOF
7189 #define HAVE_GETPAGESIZE 1
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7196 $as_echo_n "checking for working mmap... " >&6; }
7197 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7198 $as_echo_n "(cached) " >&6
7200 if test "$cross_compiling" = yes; then :
7201 ac_cv_func_mmap_fixed_mapped
=no
7203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7205 $ac_includes_default
7206 /* malloc might have been renamed as rpl_malloc. */
7209 /* Thanks to Mike Haertel and Jim Avera for this test.
7210 Here is a matrix of mmap possibilities:
7211 mmap private not fixed
7212 mmap private fixed at somewhere currently unmapped
7213 mmap private fixed at somewhere already mapped
7214 mmap shared not fixed
7215 mmap shared fixed at somewhere currently unmapped
7216 mmap shared fixed at somewhere already mapped
7217 For private mappings, we should verify that changes cannot be read()
7218 back from the file, nor mmap's back from the file at a different
7219 address. (There have been systems where private was not correctly
7220 implemented like the infamous i386 svr4.0, and systems where the
7221 VM page cache was not coherent with the file system buffer cache
7222 like early versions of FreeBSD and possibly contemporary NetBSD.)
7223 For shared mappings, we should conversely verify that changes get
7224 propagated back to all the places they're supposed to be.
7226 Grep wants private fixed already mapped.
7227 The main things grep needs to know about mmap are:
7228 * does it exist and is it safe to write into the mmap'd area
7229 * how to use it (BSD variants) */
7232 #include <sys/mman.h>
7234 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7238 /* This mess was copied from the GNU getpagesize.h. */
7239 #ifndef HAVE_GETPAGESIZE
7240 # ifdef _SC_PAGESIZE
7241 # define getpagesize() sysconf(_SC_PAGESIZE)
7242 # else /* no _SC_PAGESIZE */
7243 # ifdef HAVE_SYS_PARAM_H
7244 # include <sys/param.h>
7245 # ifdef EXEC_PAGESIZE
7246 # define getpagesize() EXEC_PAGESIZE
7247 # else /* no EXEC_PAGESIZE */
7249 # define getpagesize() NBPG * CLSIZE
7252 # endif /* no CLSIZE */
7253 # else /* no NBPG */
7255 # define getpagesize() NBPC
7256 # else /* no NBPC */
7258 # define getpagesize() PAGESIZE
7259 # endif /* PAGESIZE */
7260 # endif /* no NBPC */
7261 # endif /* no NBPG */
7262 # endif /* no EXEC_PAGESIZE */
7263 # else /* no HAVE_SYS_PARAM_H */
7264 # define getpagesize() 8192 /* punt totally */
7265 # endif /* no HAVE_SYS_PARAM_H */
7266 # endif /* no _SC_PAGESIZE */
7268 #endif /* no HAVE_GETPAGESIZE */
7273 char *data, *data2, *data3;
7278 pagesize = getpagesize ();
7280 /* First, make a file with some known garbage in it. */
7281 data = (char *) malloc (pagesize);
7284 for (i = 0; i < pagesize; ++i)
7285 *(data + i) = rand ();
7287 fd = creat ("conftest.mmap", 0600);
7290 if (write (fd, data, pagesize) != pagesize)
7294 /* Next, check that the tail of a page is zero-filled. File must have
7295 non-zero length, otherwise we risk SIGBUS for entire page. */
7296 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7300 if (write (fd2, cdata2, 1) != 1)
7302 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7303 if (data2 == MAP_FAILED)
7305 for (i = 0; i < pagesize; ++i)
7309 if (munmap (data2, pagesize))
7312 /* Next, try to mmap the file at a fixed address which already has
7313 something else allocated at it. If we can, also make sure that
7314 we see the same garbage. */
7315 fd = open ("conftest.mmap", O_RDWR);
7318 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7319 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7321 for (i = 0; i < pagesize; ++i)
7322 if (*(data + i) != *(data2 + i))
7325 /* Finally, make sure that changes to the mapped area do not
7326 percolate back to the file as seen by read(). (This is a bug on
7327 some variants of i386 svr4.0.) */
7328 for (i = 0; i < pagesize; ++i)
7329 *(data2 + i) = *(data2 + i) + 1;
7330 data3 = (char *) malloc (pagesize);
7333 if (read (fd, data3, pagesize) != pagesize)
7335 for (i = 0; i < pagesize; ++i)
7336 if (*(data + i) != *(data3 + i))
7342 if ac_fn_c_try_run
"$LINENO"; then :
7343 ac_cv_func_mmap_fixed_mapped
=yes
7345 ac_cv_func_mmap_fixed_mapped
=no
7347 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7348 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7353 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7354 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7356 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7359 rm -f conftest.mmap conftest.txt
7362 #-----------------------------------------------------------------------------
7365 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7366 # it switched on by default, and we use the host compiler, so it compiles AROS
7367 # code with this enabled resulting in link failures as we don't have support
7370 # We use two methods to disable it. For the host compiler (used to compile
7371 # some hosted modules), we test to see if the compiler supports stack
7372 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7373 # work on all platforms.
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7377 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7378 save_cflags
="$CFLAGS"
7379 CFLAGS
="$CFLAGS -fno-stack-protector"
7380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7391 if ac_fn_c_try_compile
"$LINENO"; then :
7392 use_no_stack_protector
="yes"
7394 use_no_stack_protector
="no"
7396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7398 $as_echo "$use_no_stack_protector" >&6; }
7399 if test "x-$use_no_stack_protector" = "x-yes" ; then
7400 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7402 CFLAGS
="$save_cflags"
7404 #-----------------------------------------------------------------------------
7406 # Disable pointer-signedness warnings if the compiler recognises the option
7407 # (this only works for the host compiler at the moment)
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7410 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7411 save_cflags
="$CFLAGS"
7412 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7424 if ac_fn_c_try_compile
"$LINENO"; then :
7425 use_no_sign_warning
="yes"
7427 use_no_sign_warning
="no"
7429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7431 $as_echo "$use_no_sign_warning" >&6; }
7432 if test "x-$use_no_sign_warning" = "x-yes" ; then
7433 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7435 CFLAGS
="$save_cflags"
7437 #-----------------------------------------------------------------------------
7439 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7442 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7443 save_cflags
="$CFLAGS"
7444 CFLAGS
="$CFLAGS -fgnu89-inline"
7445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7456 if ac_fn_c_try_compile
"$LINENO"; then :
7457 use_gnu89_inline
="yes"
7459 use_gnu89_inline
="no"
7461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7463 $as_echo "$use_gnu89_inline" >&6; }
7464 if test "x-$use_gnu89_inline" = "x-yes" ; then
7465 gnu89_inline
="-fgnu89-inline"
7467 CFLAGS
="$save_cflags"
7470 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7471 # On GCC >= 4.0 -iquote should be used
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7474 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7475 CFLAGS
="$CFLAGS -iquote."
7476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7487 if ac_fn_c_try_compile
"$LINENO"; then :
7492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7494 $as_echo "$has_iquote" >&6; }
7495 if test "x-$has_iquote" = "x-yes" ; then
7496 host_cflags_iquote
=-iquote
7497 host_cflags_iquote_end
=
7499 host_cflags_iquote
=-I
7500 host_cflags_iquote_end
=-I-
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7504 $as_echo "$as_me: Performing target configuration..." >&6;}
7507 aros_nowarn_flags
="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7509 toolchain_needs_sysroot
=no
7514 aros_config_cppflags
=
7516 aros_config_cxxflags
=
7517 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
7518 aros_config_ldflags
=""
7520 aros_shared_default
=yes
7522 aros_shared_cflags
="-fPIC"
7523 aros_shared_aflags
=""
7524 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7525 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7527 aros_kernel_ar_flags
="cr"
7528 aros_target_ar_flags
="cr"
7529 aros_target_nm_flags
="-C -ul"
7530 aros_target_strip_flags
="--strip-unneeded -R.comment"
7535 aros_target_genmap
="-Wl,-Map -Xlinker"
7537 # Native flavour stuff
7538 aros_serial_debug
="0"
7540 # Palm native flavour stuff
7541 aros_palm_debug_hack
="0"
7543 # Unix flavour stuff
7544 aros_nesting_supervisor
="0"
7546 # Collect-aros stuff: "-ius" to ignore undefined symbols
7547 ignore_undefined_symbols
=""
7549 # Check for X11 by default
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7558 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7560 # Check whether --with-toolchain was given.
7561 if test "${with_toolchain+set}" = set; then :
7562 withval
=$with_toolchain; aros_toolchain
="$withval"
7564 aros_toolchain
="gnu"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7568 $as_echo "$aros_toolchain" >&6; }
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7572 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7573 # Check whether --enable-lto was given.
7574 if test "${enable_lto+set}" = set; then :
7575 enableval
=$enable_lto; aros_config_lto
="$enableval"
7577 aros_config_lto
="no"
7580 if test "$aros_config_lto" != "no"; then
7581 aros_config_lto
="yes"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7584 $as_echo "$aros_config_lto" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7587 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7588 # Check whether --enable-coverage was given.
7589 if test "${enable_coverage+set}" = set; then :
7590 enableval
=$enable_coverage; aros_config_coverage
="$enableval"
7592 aros_config_coverage
="no"
7595 if test "$aros_config_coverage" != "no"; then
7596 aros_config_coverage
="yes"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7599 $as_echo "$aros_config_coverage" >&6; }
7603 case "$aros_toolchain" in
7605 # toolchain_needs_sysroot=yes
7606 toolchain_c_compiler
="clang"
7607 toolchain_cxx_compiler
="clang++"
7608 toolchain_cpp_preprocessor
="clang -E"
7609 toolchain_ld
="ld.lld"
7611 toolchain_as
="llvm-as"
7612 toolchain_ar
="llvm-ar"
7613 toolchain_ranlib
="llvm-ranlib"
7614 toolchain_nm
="llvm-nm"
7615 toolchain_strip
="true"
7616 toolchain_objcopy
="llvm-objcopy"
7617 toolchain_objdump
="llvm-objdump"
7620 toolchain_c_compiler
="gcc"
7621 toolchain_cxx_compiler
="g++"
7622 toolchain_cpp_preprocessor
="gcc -E"
7625 if test "$aros_config_lto" != "yes"; then
7628 toolchain_ranlib
="ranlib"
7631 toolchain_ld
="ld.bfd"
7632 toolchain_ar
="gcc-ar"
7633 toolchain_ranlib
="gcc-ranlib"
7634 toolchain_nm
="gcc-nm"
7636 toolchain_strip
="strip"
7637 toolchain_objcopy
="objcopy"
7638 toolchain_objdump
="objdump"
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7642 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7643 toolchain_c_compiler
="cc"
7644 toolchain_cxx_compiler
="c++"
7645 toolchain_cpp_preprocessor
="cpp"
7650 toolchain_ranlib
="ranlib"
7652 toolchain_strip
="strip"
7653 toolchain_objcopy
="objcopy"
7654 toolchain_objdump
="objdump"
7658 #-----------------------------------------------------------------------------
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7661 $as_echo_n "checking which type of build to do... " >&6; }
7662 # Check whether --enable-build_type was given.
7663 if test "${enable_build_type+set}" = set; then :
7664 enableval
=$enable_build_type; build_type
=$enableval
7666 build_type
="personal"
7670 if test "$build_type" = "nightly"; then
7671 build_type_string
="NIGHTLY"
7672 elif test "$build_type" = "snapshot"; then
7673 build_type_string
="SNAPSHOT"
7674 elif test "$build_type" = "milestone"; then
7675 build_type_string
="MILESTONE"
7676 elif test "$build_type" = "release"; then
7677 build_type_string
="RELEASE"
7679 build_type_string
="PERSONAL"
7680 build_type
="personal"
7683 aros_config_cppflags
="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7686 $as_echo "$build_type" >&6; }
7688 #-----------------------------------------------------------------------------
7689 all_debug_types
="messages stack modules mungwall symbols"
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7692 $as_echo_n "checking which debug types to enable... " >&6; }
7693 # Check whether --enable-debug was given.
7694 if test "${enable_debug+set}" = set; then :
7695 enableval
=$enable_debug; debug
="$enableval"
7701 if test "$debug" = "" -o "$debug" = "no"; then
7703 elif test "$debug" = "yes"; then
7707 if test "$debug" = "all" ; then
7708 debug
="messages stack modules symbols"
7709 for d
in $all_debug_types; do
7710 export aros_
${d}_debug
="1"
7713 for d
in $all_debug_types; do
7714 export aros_
${d}_debug
="0"
7718 if test "$debug" != "none"; then
7719 debug
=`echo $debug | sed s/,/\ /g`
7722 for d2
in $all_debug_types; do
7723 if test "$d2" = "$d"; then
7728 if test "$found" = "0"; then
7729 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7731 export aros_
${d}_debug
="1"
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7736 $as_echo "$debug" >&6; }
7738 if test "$aros_messages_debug" = "1"; then
7739 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
7741 aros_messages_debug
=""
7743 if test "$aros_symbols_debug" = "1"; then
7744 aros_symbols_debug
="-g"
7746 aros_symbols_debug
=""
7749 # These are the flags to pass when compiling debugged programs
7750 aros_debug_cppflags
="$aros_messages_debug"
7751 aros_debug_cflags
="$aros_symbols_debug"
7752 aros_debug_cxxflags
=
7753 aros_debug_aflags
=""
7754 aros_debug_ldflags
="$aros_symbols_debug"
7756 #-----------------------------------------------------------------------------
7757 # Checking for distcc and ccache.
7759 # Always apply the transforms in this particular order. Basically you should
7760 # always run 'ccache distcc compiler' in that order for the best performance.
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7763 $as_echo_n "checking whether to enable distcc... " >&6; }
7764 # Check whether --enable-distcc was given.
7765 if test "${enable_distcc+set}" = set; then :
7766 enableval
=$enable_distcc; distcc
="$enableval"
7771 if test "$distcc" != "" -a "$distcc" != "no"; then
7772 # AC_CHECK_PROG will print out the result in this case
7773 # Extract the first word of "distcc", so it can be a program name with args.
7774 set dummy distcc
; ac_word
=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_path_DISTCC+:} false
; then :
7778 $as_echo_n "(cached) " >&6
7782 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
7785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7789 test -z "$as_dir" && as_dir
=.
7790 for ac_exec_ext
in '' $ac_executable_extensions; do
7791 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7792 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
7804 DISTCC
=$ac_cv_path_DISTCC
7805 if test -n "$DISTCC"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7807 $as_echo "$DISTCC" >&6; }
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7820 $as_echo_n "checking whether to enable ccache... " >&6; }
7821 # Check whether --enable-ccache was given.
7822 if test "${enable_ccache+set}" = set; then :
7823 enableval
=$enable_ccache; ccache
="$enableval"
7828 if test "$ccache" != "" -a "$ccache" != "no"; then
7829 # AC_CHECK_PROG will print out the result in this case
7830 # Extract the first word of "ccache", so it can be a program name with args.
7831 set dummy ccache
; ac_word
=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if ${ac_cv_prog_CCACHE+:} false
; then :
7835 $as_echo_n "(cached) " >&6
7837 if test -n "$CCACHE"; then
7838 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
7840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7844 test -z "$as_dir" && as_dir
=.
7845 for ac_exec_ext
in '' $ac_executable_extensions; do
7846 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7847 ac_cv_prog_CCACHE
="ccache"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 CCACHE
=$ac_cv_prog_CCACHE
7858 if test -n "$CCACHE"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7860 $as_echo "$CCACHE" >&6; }
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7872 #-----------------------------------------------------------------------------
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7874 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7876 # Check whether --with-kernel-gcc-version was given.
7877 if test "${with_kernel_gcc_version+set}" = set; then :
7878 withval
=$with_kernel_gcc_version; kernel_tool_version
="$withval"
7880 kernel_tool_version
=""
7883 if test "$kernel_tool_version" != "" ; then
7884 msg_result
=$kernel_tool_version
7886 msg_result
="default"
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7889 $as_echo "$msg_result" >&6; }
7891 #-----------------------------------------------------------------------------
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7893 $as_echo_n "checking what optimization flags to use... " >&6; }
7895 # Check whether --with-optimization was given.
7896 if test "${with_optimization+set}" = set; then :
7897 withval
=$with_optimization; optimization_level
="$withval"
7899 optimization_level
="unknown"
7902 if test "$optimization_level" = "unknown"; then
7903 optimization
="default"
7904 if test "$debug" != "none"; then
7905 optimization_level
="-O0"
7907 optimization_level
="-O2"
7910 optimization
="$optimization_level"
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7913 $as_echo "$optimization" >&6; }
7915 paranoia_default
=yes
7916 #-----------------------------------------------------------------------------
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7918 $as_echo_n "checking which paranoia flags to use... " >&6; }
7920 # Check whether --with-paranoia was given.
7921 if test "${with_paranoia+set}" = set; then :
7922 withval
=$with_paranoia; paranoia_flags
="$withval"
7924 paranoia_flags
="$paranoia_default"
7927 if test "$paranoia_flags" = "no"; then
7928 paranoia_flags
="-Wall -Werror-implicit-function-declaration"
7931 if test "$paranoia_flags" = "yes"; then
7932 paranoia_flags
="-Wall -Werror"
7934 msg_result
="$paranoia_flags"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7937 $as_echo "$msg_result" >&6; }
7938 aros_warn_flags
="$aros_warn_flags $paranoia_flags"
7940 #-----------------------------------------------------------------------------
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7942 $as_echo_n "checking what target variant to enable... " >&6; }
7943 # Check whether --enable-target_variant was given.
7944 if test "${enable_target_variant+set}" = set; then :
7945 enableval
=$enable_target_variant; target_variant
=$enableval
7950 if test "$target_variant" = ""; then
7951 aros_target_variant
=""
7952 aros_target_suffix
=""
7955 aros_target_variant
="$target_variant"
7956 aros_target_suffix
="-$target_variant"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7959 $as_echo "$enableval" >&6; }
7961 #-----------------------------------------------------------------------------
7962 # Target-specific defaults. You can override then on a per-target basis.
7964 # Bootloader name. Currently used by PC target.
7965 target_bootloader
="none"
7969 #-----------------------------------------------------------------------------
7970 # Additional options for some specific targets
7972 case "$aros_target_variant" in
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7975 $as_echo_n "checking XCode path... " >&6; }
7977 # Check whether --with-xcode was given.
7978 if test "${with_xcode+set}" = set; then :
7979 withval
=$with_xcode; aros_xcode_path
="$withval"
7981 aros_xcode_path
="/Developer"
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7985 $as_echo "$aros_xcode_path" >&6; }
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7988 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7990 # Check whether --with-sdk-version was given.
7991 if test "${with_sdk_version+set}" = set; then :
7992 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7994 aros_sdk_version
="4.1"
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7998 $as_echo "$aros_sdk_version" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8004 $as_echo_n "checking Android SDK path... " >&6; }
8006 # Check whether --with-sdk was given.
8007 if test "${with_sdk+set}" = set; then :
8008 withval
=$with_sdk; aros_android_sdk
="$withval"
8010 aros_android_sdk
=$default_android_sdk
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8014 $as_echo "$aros_android_sdk" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8017 $as_echo_n "checking Android NDK path... " >&6; }
8019 # Check whether --with-ndk was given.
8020 if test "${with_ndk+set}" = set; then :
8021 withval
=$with_ndk; aros_android_ndk
="$withval"
8023 aros_android_ndk
="none"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8027 $as_echo "$aros_android_ndk" >&6; }
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8030 $as_echo_n "checking what Android SDK version to use... " >&6; }
8032 # Check whether --with-sdk-version was given.
8033 if test "${with_sdk_version+set}" = set; then :
8034 withval
=$with_sdk_version; aros_sdk_version
="$withval"
8036 aros_sdk_version
="12"
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8040 $as_echo "$aros_sdk_version" >&6; }
8042 aros_android_level
=android-
$aros_sdk_version
8043 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
8044 echo "Platform $aros_android_level is not installed in your SDK"
8045 echo "Use --with-sdk-version=<API level number> to select another platform version"
8046 echo "You can check what plaform versions are installed in your SDK"
8047 echo "by examining contents of $aros_android_sdk/platforms directory"
8048 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
8051 export PATH
="$aros_android_sdk/tools:$PATH"
8052 # Extract the first word of "$android_tool", so it can be a program name with args.
8053 set dummy
$android_tool; ac_word
=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_path_android_tool+:} false
; then :
8057 $as_echo_n "(cached) " >&6
8059 case $android_tool in
8061 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
8064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8068 test -z "$as_dir" && as_dir
=.
8069 for ac_exec_ext
in '' $ac_executable_extensions; do
8070 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 android_tool
=$ac_cv_path_android_tool
8083 if test -n "$android_tool"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8085 $as_echo "$android_tool" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8093 if test "$android_tool" = ""; then
8096 if test "$android_tool" = "no"; then
8099 if test "$req_avail" = "no"; then
8100 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
8103 if test "$aros_android_ndk" != "none"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8105 $as_echo_n "checking what Android NDK version to use... " >&6; }
8107 # Check whether --with-ndk-version was given.
8108 if test "${with_ndk_version+set}" = set; then :
8109 withval
=$with_ndk_version; aros_ndk_version
="$withval"
8111 aros_ndk_version
="9"
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8115 $as_echo "$aros_ndk_version" >&6; }
8118 # Extract the first word of "ant", so it can be a program name with args.
8119 set dummy ant
; ac_word
=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if ${ac_cv_path_ant+:} false
; then :
8123 $as_echo_n "(cached) " >&6
8127 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
8130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8134 test -z "$as_dir" && as_dir
=.
8135 for ac_exec_ext
in '' $ac_executable_extensions; do
8136 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8137 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 if test -n "$ant"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8151 $as_echo "$ant" >&6; }
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8158 if test "$ant" = ""; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8160 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8164 $as_echo_n "checking Build debug or release apk... " >&6; }
8166 # Check whether --with-apk-version was given.
8167 if test "${with_apk_version+set}" = set; then :
8168 withval
=$with_apk_version; aros_android_antapk
=$withval
8170 aros_android_antapk
=release
8173 if test $aros_android_antapk != release
-a $aros_android_antapk != debug
; then
8174 as_fn_error $?
"apk-version has to be release or debug" "$LINENO" 5
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8177 $as_echo "$aros_android_antapk" >&6; }
8179 if test "$host_os" = "mingw32"; then
8180 android_tool
="cmd //c $android_tool"
8188 #-----------------------------------------------------------------------------
8189 # External toolchains
8190 kernel_tool_prefix
="none"
8191 aros_tool_prefix
="none"
8192 elf_tool_prefix
="${target_cpu}-elf-"
8193 x86_isa_extra
="ISA_X86_FLAGS := -m32 -march=i486"
8194 x86_64_isa_extra
="ISA_X8664_FLAGS := -mcmodel=large"
8197 # This is the target configuration switch.
8198 case "$target_os" in
8200 aros_target_arch
="linux"
8201 aros_target_family
="unix"
8202 case "$target_cpu" in
8204 aros_target_cpu
="m68k"
8205 aros_object_format
="m68kelf"
8206 aros_flavour
="emulcompat"
8207 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8208 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8209 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8210 gcc_target_cpu
="mc68000"
8213 aros_target_cpu
="i386"
8214 aros_object_format
="elf_i386"
8215 aros_flavour
="emulation"
8216 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8217 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8218 x86_64_isa_extra
="$x86_64_isa_extra -mno-red-zone"
8219 aros_kernel_ldflags
="-Wl,-melf_i386"
8220 aros_nominal_depth
=8
8221 gcc_target_cpu
="i386"
8222 pci_hidd_target
="hidd-pci-linux"
8223 android_tool_dir_prefix
="x86"
8224 android_tool_prefix
="i686-android-linux"
8225 android_ndk_arch
="x86"
8228 aros_target_cpu
="x86_64"
8229 aros_object_format
="elf_x86_64"
8230 aros_flavour
="emulation"
8231 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8232 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8233 x86_64_isa_extra
="$x86_64_isa_extra -mno-red-zone"
8234 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8235 aros_config_cxxflags
="$aros_config_cxxflags -fno-omit-frame-pointer"
8236 aros_nominal_depth
=8
8237 pci_hidd_target
="hidd-pci-linux"
8240 aros_target_cpu
="ppc"
8241 aros_object_format
="elf32ppc"
8242 aros_flavour
="emulation"
8243 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8244 aros_nominal_depth
=8
8245 gcc_target_cpu
="ppc"
8248 # Same as powerpc, but I need this for the nightly build to work again.
8249 # Actually, the nightly should be made working with powerpc target.
8250 # That just was too much work for the moment, another week or two.
8252 aros_target_cpu
="ppc"
8253 aros_object_format
="elf32ppc"
8254 aros_flavour
="emulation"
8255 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8256 aros_nominal_depth
=8
8257 gcc_target_cpu
="ppc"
8260 aros_target_cpu
="aarch64"
8261 target_cpu
="aarch64"
8262 aros_object_format
="aarch64elf_aros"
8263 aros_flavour
="emulation"
8264 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8265 gcc_target_cpu
="aarch64"
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 kernel_tool_prefix
="aarch64-linux-gnueabihf-"
8274 aros_target_cpu
="arm"
8276 aros_object_format
="armelf_aros"
8277 aros_flavour
="emulation"
8278 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8279 gcc_target_cpu
="arm"
8280 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8281 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8282 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8283 aros_arch_libs
="-laeabi"
8284 gcc_default_float_abi
="hard"
8285 android_tool_dir_prefix
="arm-linux-androideabi"
8286 android_tool_prefix
="arm-linux-androideabi"
8287 android_ndk_arch
="arm"
8288 kernel_tool_prefix
="arm-linux-gnueabihf-"
8291 aros_target_cpu
="arm"
8292 aros_object_format
="armelf_aros"
8293 aros_flavour
="emulation"
8294 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8295 gcc_target_cpu
="arm"
8296 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8297 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8298 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8299 aros_arch_libs
="-laeabi"
8300 android_tool_dir_prefix
="arm-linux-androideabi"
8301 android_tool_prefix
="arm-linux-androideabi"
8302 android_ndk_arch
="arm"
8303 kernel_tool_prefix
="arm-linux-gnueabi-"
8306 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8309 case "$aros_target_variant" in
8312 if test "$android_ndk_arch" = ""; then
8313 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8316 aros_nominal_width
=320
8317 aros_nominal_height
=480
8318 if test "$aros_android_ndk" = "none"; then
8319 aros_kernel_cflags
="-mandroid"
8320 aros_kernel_ldflags
="-mandroid"
8323 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8324 kernel_tool_version
=""
8325 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8326 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
8327 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
8328 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8329 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
8332 host_android_gfx
=yes
8333 # Disable implicit PIC mode
8334 aros_config_cflags
="$aros_config_cflags -fno-pic"
8335 kernel_tool_prefix
="$android_tool_prefix-"
8341 aros_target_arch
="pc"
8342 aros_shared_default
="no"
8343 target_bootloader
="grub2"
8344 case "$target_cpu" in
8346 aros_target_cpu
="i386"
8349 if test "$aros_object_format" = "" ; then
8350 aros_object_format
="elf_i386"
8352 aros_flavour
="standalone"
8353 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8354 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8355 x86_64_isa_extra
="$x86_64_isa_extra -mno-red-zone"
8356 aros_kernel_ldflags
="-Wl,-melf_i386"
8357 aros_nominal_width
=640
8358 aros_nominal_height
=480
8359 gcc_target_cpu
="i386"
8362 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
8363 aros_target_cpu
="x86_64"
8365 if test "$aros_object_format" = "" ; then
8366 aros_object_format
="elf_x86_64"
8368 aros_flavour
="standalone"
8369 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8370 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8371 x86_64_isa_extra
="$x86_64_isa_extra -mno-red-zone"
8372 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8373 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8374 aros_kernel_ldflags
=""
8375 aros_nominal_width
=640
8376 aros_nominal_height
=480
8377 case "$aros_target_variant" in
8379 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8384 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8390 aros_target_arch
="prep"
8391 aros_shared_default
="no"
8392 aros_target_cpu
="ppc"
8393 aros_object_format
="elf32ppc"
8394 aros_flavour
="ppcnative"
8395 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8396 aros_kernel_ldflags
=""
8397 aros_nominal_width
=640
8398 aros_nominal_height
=480
8399 gcc_target_cpu
="ppc"
8403 aros_target_arch
="freebsd"
8404 aros_target_family
="unix"
8405 aros_target_cpu
="i386"
8406 aros_flavour
="emulation"
8407 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8408 gcc_target_cpu
="i386"
8410 aros_target_strip_flags
="-x"
8414 aros_target_arch
="darwin"
8415 aros_target_family
="unix"
8416 aros_flavour
="emulation"
8417 case "$target_cpu" in
8419 aros_ios_platform
="iPhoneSimulator"
8420 aros_target_cpu
="i386"
8421 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8422 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8423 aros_kernel_ldflags
=""
8424 aros_macosx_version
="10.4"
8425 aros_nominal_depth
=8
8426 gcc_target_cpu
="i386"
8427 aros_object_format
="elf_i386"
8428 aros_kernel_ar_flags
="-cr"
8429 aros_target_strip_flags
="-x"
8430 kernel_tool_flags
="-m32"
8433 aros_target_cpu
="x86_64"
8434 aros_object_format
="elf_x86_64"
8435 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8436 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8437 aros_macosx_version
="10.6"
8438 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8439 aros_config_cxxflags
="$aros_config_cxxflags -fno-omit-frame-pointer"
8440 aros_kernel_cflags
="-m64"
8441 aros_kernel_ldflags
="-m64"
8442 aros_nominal_depth
=8
8444 aros_kernel_ar_flags
="-cr"
8447 aros_kernel_ranlib
="ranlib"
8449 aros_kernel_strip
="strip"
8450 kernel_tool_prefix
="i686-apple-darwin10-"
8453 aros_target_cpu
="ppc"
8454 aros_object_format
="elf32ppc"
8455 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8456 aros_kernel_ldflags
=""
8457 aros_macosx_version
="10.0"
8458 aros_nominal_depth
=8
8459 gcc_target_cpu
="ppc"
8461 aros_kernel_ar_flags
="-cr"
8462 aros_kernel_ld
="ld -arch ppc"
8463 aros_kernel_as
="as -arch ppc"
8464 aros_kernel_ranlib
="ranlib -arch ppc"
8465 aros_kernel_nm
="nm -arch ppc"
8466 aros_kernel_strip
="strip -arch ppc"
8467 kernel_tool_prefix
="powerpc-apple-darwin10-"
8470 aros_ios_platform
="iPhoneOS"
8471 aros_target_cpu
="arm"
8472 aros_object_format
="armelf_aros"
8473 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8474 aros_arch_libs
="-laeabi"
8475 aros_nominal_depth
=8
8476 gcc_target_cpu
="arm"
8478 aros_kernel_ar_flags
="-cr"
8479 aros_kernel_ld
="ld -arch arm"
8480 aros_kernel_ranlib
="ranlib -arch arm"
8481 kernel_tool_prefix
="arm-apple-darwin10-"
8482 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8485 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8488 case "$aros_target_variant" in
8490 aros_ios_version
="3.0"
8491 aros_nominal_width
=320
8492 aros_nominal_height
=480
8493 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8494 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
8495 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
8497 # This is here because it may depend on iOS or SDK version
8498 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8499 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8500 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8503 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8504 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8510 aros_target_arch
="dragonfly"
8511 aros_target_family
="unix"
8512 aros_flavour
="emulation"
8513 case "$target_cpu" in
8515 aros_target_cpu
="i386"
8516 aros_object_format
="elf_i386"
8517 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8518 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8521 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8522 aros_config_cxxflags
="$aros_config_cxxflags -fno-omit-frame-pointer"
8523 aros_target_cpu
="x86_64"
8524 aros_object_format
="elf_x86_64"
8525 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8526 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8529 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8535 aros_target_arch
="netbsd"
8536 aros_target_family
="unix"
8537 case "$target_cpu" in
8539 aros_target_cpu
="m68k"
8540 aros_object_format
="m68kelf"
8541 aros_flavour
="emulcompat"
8542 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8543 gcc_target_cpu
="mc68000"
8546 aros_target_cpu
="i386"
8547 aros_object_format
="elf_i386"
8548 aros_flavour
="emulation"
8549 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8550 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8551 aros_nominal_depth
=8
8552 gcc_target_cpu
="i386"
8555 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8558 aros_target_genmap
="-Wl,-M -Xlinker >"
8559 aros_flavour
="emulation"
8560 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8564 aros_target_arch
="openbsd"
8565 aros_target_family
="unix"
8566 case "$target_cpu" in
8568 aros_target_cpu
="i386"
8569 aros_object_format
="elf_i386"
8570 aros_flavour
="emulation"
8571 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8572 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8573 gcc_target_cpu
="i386"
8576 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8579 aros_target_genmap
="-Wl,-M -Xlinker >"
8580 aros_target_nm_flags
="-u"
8581 aros_flavour
="emulation"
8585 aros_target_arch
="solaris"
8586 aros_target_family
="unix"
8587 case "$target_cpu" in
8589 aros_target_cpu
="i386"
8590 aros_object_format
="elf_i386"
8591 aros_flavour
="emulation"
8592 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8593 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8594 aros_nominal_depth
=8
8595 gcc_target_cpu
="i386"
8598 aros_target_cpu
="sparc"
8599 aros_object_format
="elf_sparc"
8600 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8601 gcc_target_cpu
="sparc"
8604 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8607 aros_config_cppflags
="$aros_config_cppflags -D$aros_target_cpu"
8608 aros_flavour
="emulation"
8612 aros_target_arch
="morphos"
8613 aros_shared_default
="no"
8614 aros_target_cpu
="ppc"
8615 aros_object_format
="elf_ppc"
8616 aros_flavour
="nativecompat"
8617 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8618 gcc_target_cpu
="ppc"
8622 aros_target_arch
="sam440"
8623 aros_shared_default
="no"
8624 aros_target_cpu
="ppc"
8625 aros_object_format
="elf32ppc"
8626 aros_flavour
="ppcnative"
8627 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8628 aros_kernel_ldflags
=""
8629 aros_nominal_width
=1024
8630 aros_nominal_height
=768
8631 aros_nominal_depth
=24
8632 aros_isa_flags
="$aros_isa_flags -mcpu=440fp -mno-toc"
8633 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables"
8634 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8635 gcc_target_cpu
="powerpc"
8639 aros_target_arch
="efika"
8640 aros_shared_default
="no"
8641 aros_target_cpu
="arm"
8642 aros_object_format
="armelf_aros"
8643 aros_flavour
="standalone"
8644 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8645 aros_kernel_ldflags
=""
8646 aros_nominal_width
=1024
8647 aros_nominal_height
=600
8648 aros_arch_libs
="-laeabi"
8649 gcc_default_cpu
="armv7-a"
8650 gcc_default_fpu
="vfpv3"
8651 aros_isa_flags
="$aros_isa_flags -mtune=cortex-a8"
8652 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8653 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8654 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8655 if test "$optimization" = "default"; then
8656 optimization_level
="-Os"
8658 case "$target_cpu" in
8660 gcc_default_float_abi
="hard"
8665 gcc_default_float_abi
="softfp"
8668 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8674 aros_target_arch
="chrp"
8675 aros_shared_default
="no"
8676 aros_target_cpu
="ppc"
8677 aros_object_format
="elf32ppc"
8678 aros_flavour
="ppcnative"
8679 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8680 aros_kernel_ldflags
=""
8681 aros_nominal_width
=640
8682 aros_nominal_height
=480
8683 aros_isa_flags
="$aros_isa_flags -mno-toc"
8684 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables"
8685 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8686 gcc_target_cpu
="powerpc"
8687 case "$aros_target_variant" in
8689 aros_isa_flags
="$aros_isa_flags -mcpu=603e"
8690 aros_config_cppflags
="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8696 PLATFORM_EXECSMP
="#define __AROSPLATFORM_SMP__"
8697 aros_flavour
="standalone"
8698 aros_target_arch
="raspi"
8700 aros_shared_default
="no"
8702 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__"
8704 case "$target_cpu" in
8706 aros_target_cpu
="aarch64"
8707 gcc_default_cpu
="aarch64"
8708 aros_object_format
="aarch64elf_aros"
8711 aros_target_cpu
="arm"
8712 gcc_default_cpu
="armv6zk"
8713 gcc_default_cpu_tune
="arm1176jzf-s"
8714 aros_object_format
="armelf_aros"
8715 aros_isa_flags
="$aros_isa_flags -marm"
8716 aros_config_cflags
="$aros_config_cflags"
8717 aros_config_cxxflags
="$aros_config_cxxflags"
8718 aros_config_aflags
="$aros_config_aflags -marm"
8719 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8720 aros_target_mkdep
="$aros_target_mkdep -Darm"
8721 aros_arch_libs
="-laeabi"
8724 aros_target_cpu
="arm"
8725 gcc_default_cpu
="armv6zk"
8726 gcc_default_cpu_tune
="arm1176jzf-s"
8727 aros_object_format
="armelf_aros"
8728 aros_isa_flags
="$aros_isa_flags -marm"
8729 aros_config_cflags
="$aros_config_cflags"
8730 aros_config_cxxflags
="$aros_config_cxxflags"
8731 aros_config_aflags
="$aros_config_aflags -marm"
8732 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8733 aros_target_mkdep
="$aros_target_mkdep -Darm"
8734 aros_arch_libs
="-laeabi"
8737 as_fn_error $?
"\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8741 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8742 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
8743 aros_config_aflags
="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8744 aros_kernel_cflags
="$aros_kernel_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8746 case "$aros_target_variant" in
8748 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8754 aros_flavour
="standalone"
8755 aros_target_arch
="stm32f7_discovery"
8756 aros_target_cpu
="arm"
8757 aros_target_cpu_mode
="thumb2"
8758 aros_object_format
="armelf_aros"
8759 aros_shared_default
="no"
8761 gcc_default_cpu
="armv7e-m"
8762 gcc_default_cpu_tune
="cortex-m7"
8763 gcc_default_fpu
="fpv5-sp-d16"
8764 gcc_default_float_abi
="hard"
8766 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dthumb"
8770 aros_target_arch
="amiga"
8771 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8772 aros_shared_default
="no"
8774 case "$target_cpu" in
8776 # Check whether --enable-amigaos_compliance was given.
8777 if test "${enable_amigaos_compliance+set}" = set; then :
8778 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
8782 aros_target_cpu
="m68k"
8783 aros_object_format
="m68kelf"
8784 aros_flavour
="standcompat"
8785 gcc_target_cpu
="m68000"
8786 aros_nowarn_flags
="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8787 aros_config_cppflags
="$aros_config_cppflags -DNOLIBINLINE"
8788 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8789 aros_config_cxxflags
="$aros_config_cxxflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8790 if test "$optimization" = "default"; then
8791 optimization_level
="-Os"
8793 aros_config_aflags
="$aros_config_aflags"
8794 aros_target_strip_flags
="-R.comment --strip-debug"
8795 aros_nominal_width
=640
8796 aros_nominal_height
=256
8797 aros_nominal_depth
=2
8801 aros_flavour
="native"
8802 gcc_target_cpu
="ppc"
8805 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8811 aros_target_arch
="mingw32"
8812 aros_shared_default
="no"
8813 aros_flavour
="emulation"
8814 aros_shared_cflags
=""
8815 need_crosstools
="yes"
8818 case "$target_cpu" in
8820 aros_target_cpu
="i386"
8821 aros_object_format
="elf_i386"
8822 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8823 aros_isa_flags
="$""(ISA_X86_FLAGS)"
8824 aros_nominal_depth
=8
8825 gcc_target_cpu
="i386"
8827 kernel_tool_prefix
="i386-mingw32-"
8830 aros_target_cpu
="x86_64"
8831 aros_object_format
="elf_x86_64"
8832 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8833 aros_isa_flags
="$""(ISA_X8664_FLAGS)"
8834 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8835 aros_config_cxxflags
="$aros_config_cxxflags -fno-omit-frame-pointer"
8836 aros_nominal_depth
=8
8837 kernel_tool_prefix
="x86_64-w64-mingw32-"
8840 aros_target_cpu
="arm"
8841 aros_object_format
="armelf_aros"
8842 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8843 aros_arch_libs
="-laeabi"
8844 aros_nominal_depth
=8
8845 gcc_target_cpu
="arm"
8846 gcc_default_float_abi
="soft"
8847 kernel_tool_prefix
="arm-mingw32ce-"
8848 aros_nominal_width
=160
8849 aros_nominal_height
=160
8852 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8855 if test $host_os = "cygwin"; then
8856 aros_kernel_cflags
="-mno-cygwin"
8860 aros_target_arch
="pp"
8861 aros_shared_default
="no"
8862 case "$target_cpu" in
8864 aros_target_cpu
="m68k"
8865 aros_object_format
="m68kelf"
8866 aros_flavour
="palmnative"
8867 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8868 aros_nominal_width
=160
8869 aros_nominal_height
=160
8870 aros_nominal_depth
=1
8871 aros_target_ar_flags
="cru"
8872 aros_compiler_libs
="-lgcc1"
8873 aros_shared_default
=no
8874 aros_shared_cflags
="-fpic"
8875 aros_shared_aflags
=""
8876 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8877 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8878 aros_debug_cppflags
="$aros_messages_debug"
8879 aros_debug_cflags
="$aros_symbols_debug"
8880 aros_debug_aflags
=""
8881 aros_debug_ldflags
="$aros_symbols_debug"
8882 aros_mungwall_debug
="0"
8883 aros_modules_debug
="0"
8884 gcc_target_cpu
="mc68000"
8885 ignore_undefined_symbols
="-ius"
8888 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8894 aros_target_arch
="mac"
8895 aros_shared_default
="no"
8896 case "$target_cpu" in
8898 aros_target_cpu
="m68k"
8899 aros_object_format
="m68kelf"
8900 aros_flavour
="mac68knative"
8901 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8902 aros_nominal_width
=512
8903 aros_nominal_height
=384
8904 aros_nominal_depth
=8
8905 aros_target_ar_flags
="cru"
8906 aros_compiler_libs
="-lgcc1"
8907 aros_shared_default
=no
8908 aros_shared_cflags
="-fpic"
8909 aros_shared_aflags
=""
8910 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8911 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8912 aros_debug_cppflags
="$aros_messages_debug"
8913 aros_debug_cflags
="$aros_symbols_debug"
8914 aros_debug_aflags
=""
8915 aros_debug_ldflags
="$aros_symbols_debug"
8916 aros_mungwall_debug
="0"
8917 aros_modules_debug
="0"
8918 gcc_target_cpu
="mc68000"
8919 ignore_undefined_symbols
="-ius"
8922 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8928 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
8932 #-----------------------------------------------------------------------------
8933 crosstools_guess
="yes"
8934 aros_target_toolchain
="no"
8935 aros_config_sysroot
=""
8936 aros_kernel_sysroot
=""
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8939 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8941 # Check whether --with-kernel-toolchain-prefix was given.
8942 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8943 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8947 $as_echo "$kernel_tool_prefix" >&6; }
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8950 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8952 # Check whether --with-elf-toolchain-prefix was given.
8953 if test "${with_elf_toolchain_prefix+set}" = set; then :
8954 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
8955 crosstools_guess
="no"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8959 $as_echo "$elf_tool_prefix" >&6; }
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8962 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8964 # Check whether --with-aros-toolchain was given.
8965 if test "${with_aros_toolchain+set}" = set; then :
8966 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
8967 crosstools_guess
="no"
8970 if test "$aros_tool_prefix" = "yes" ; then
8971 aros_tool_prefix
=$aros_target_cpu-aros-
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8974 $as_echo "$aros_tool_prefix" >&6; }
8976 #-----------------------------------------------------------------------------
8977 # Checking if we should build crosstools..
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8979 $as_echo_n "checking whether to build crosstools... " >&6; }
8980 # Check whether --enable-crosstools was given.
8981 if test "${enable_crosstools+set}" = set; then :
8982 enableval
=$enable_crosstools; crosstools
="$enableval"
8984 crosstools
="$crosstools_guess"
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8988 $as_echo "$crosstools" >&6; }
8990 if test "${crosstools}" = "yes"; then
8991 if test "${crosstools_guess}" = "no"; then
8992 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8996 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
8997 aros_target_toolchain
="yes"
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9001 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9003 # Check whether --with-aros-toolchain-install was given.
9004 if test "${with_aros_toolchain_install+set}" = set; then :
9005 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
9008 if test "x$aros_toolchain_install" = "x"; then
9009 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9011 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
9012 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
9013 if test "$crosstools_guess" = "no" ; then
9014 toolchain_needs_sysroot
=yes
9016 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9017 aros_kernel_sysroot
= $aros_config_sysroot
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9022 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
9025 $as_echo_n "checking If we need to use --sysroot... " >&6; }
9026 if test "$toolchain_needs_sysroot" = "yes" ; then
9027 aros_config_sysroot
="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer"
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
9030 $as_echo "$toolchain_needs_sysroot" >&6; }
9032 #-----------------------------------------------------------------------------
9033 if test "$aros_toolchain" = "gnu" ; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9035 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9038 # Check whether --with-binutils-version was given.
9039 if test "${with_binutils_version+set}" = set; then :
9040 withval
=$with_binutils_version; use_binutils_version
="$withval"
9042 use_binutils_version
=""
9045 if test "$use_binutils_version" = ""; then
9046 target_binutils_version
="$default_binutils_version"
9048 target_binutils_version
="$use_binutils_version"
9050 if test "$aros_toolchain" = "gnu" ; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9052 $as_echo "$target_binutils_version" >&6; }
9056 # Helper to identify gcc version
9059 #-----------------------------------------------------------------------------
9060 if test "$aros_toolchain" = "gnu" ; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9062 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9065 # Check whether --with-gcc-version was given.
9066 if test "${with_gcc_version+set}" = set; then :
9067 withval
=$with_gcc_version; use_gcc_version
="$withval"
9072 if test "$use_gcc_version" = ""; then
9073 if test "${crosstools}" = "no"; then
9074 if test "x$aros_toolchain_install" != "x"; then
9076 target_gcc_version
=""
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9078 $as_echo_n "checking gcc version... " >&6; }
9079 if ${ax_cv_gcc_version+:} false
; then :
9080 $as_echo_n "(cached) " >&6
9083 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9084 if test "x$ax_cv_gcc_version" = "x"; then :
9086 ax_cv_gcc_version
=""
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9092 $as_echo "$ax_cv_gcc_version" >&6; }
9093 target_gcc_version
=$ax_cv_gcc_version
9098 if test "$use_gcc_version" = ""; then
9099 target_gcc_version
="$default_gcc_version"
9102 target_gcc_version
="$use_gcc_version"
9104 if test "$aros_toolchain" = "gnu" ; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9106 $as_echo "$target_gcc_version" >&6; }
9108 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'.' -f1)
9109 GCC_VERSION_MINOR
=$
(echo $target_gcc_version | cut
-d'.' -f2)
9110 GCC_VERSION_PATCH
=$
(echo $target_gcc_version | cut
-d'.' -f3)
9112 gcc_fix_bitfields
="false"
9113 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9114 gcc_fix_bitfields
="true"
9116 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9117 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9118 gcc_fix_bitfields
="true"
9123 if test "$gcc_fix_bitfields" = "true" ; then
9124 case "$aros_target_cpu" in
9126 x86_isa_extra
="$x86_isa_extra -mno-ms-bitfields"
9127 x86_64_isa_extra
="$x86_64_isa_extra -mno-ms-bitfields"
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9134 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9135 # Check whether --enable-objc was given.
9136 if test "${enable_objc+set}" = set; then :
9137 enableval
=$enable_objc; objc
="$enableval"
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9143 $as_echo "$objc" >&6; }
9144 if test "x$objc" = "xyes"; then
9147 objc_target
="no-objc"
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9151 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9152 # Check whether --enable-java was given.
9153 if test "${enable_java+set}" = set; then :
9154 enableval
=$enable_java; java
="$enableval"
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9160 $as_echo "$java" >&6; }
9161 if test "x$java" != "xno"; then
9164 java_target
="no-java"
9167 spec_obj_format
="-m $aros_object_format"
9168 # Now process extra architecture-specific options.
9169 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9170 # as well as floating-point ABI.
9171 case "$aros_target_cpu" in
9173 aros_isa_extra
="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9174 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9177 if test "$gcc_default_cpu" = ""; then
9178 gcc_default_cpu
="armv6"
9180 if test "$gcc_default_fpu" = ""; then
9181 gcc_default_fpu
="vfp"
9183 if test "$gcc_default_float_abi" = ""; then
9184 if test "$target_cpu" = "armhf"; then
9185 gcc_default_float_abi
="hard"
9187 gcc_default_float_abi
="softfp"
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9192 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9194 # Check whether --with-cpu was given.
9195 if test "${with_cpu+set}" = set; then :
9196 withval
=$with_cpu; aros_gcc_cpu
="$withval"
9198 aros_gcc_cpu
=$gcc_default_cpu
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9202 $as_echo "$aros_gcc_cpu" >&6; }
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9205 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9207 # Check whether --with-fpu was given.
9208 if test "${with_fpu+set}" = set; then :
9209 withval
=$with_fpu; aros_gcc_fpu
="$withval"
9211 aros_gcc_fpu
=$gcc_default_fpu
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9215 $as_echo "$aros_gcc_fpu" >&6; }
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9218 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9220 # Check whether --with-float was given.
9221 if test "${with_float+set}" = set; then :
9222 withval
=$with_float; aros_gcc_float_abi
="$withval"
9224 aros_gcc_float_abi
=$gcc_default_float_abi
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9228 $as_echo "$aros_gcc_float_abi" >&6; }
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9231 $as_echo_n "checking Which ARM mode to use... " >&6; }
9232 if test "$aros_target_cpu_mode" = ""; then
9233 aros_target_cpu_mode
="arm32"
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9235 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9238 $as_echo "$aros_target_cpu_mode" >&6; }
9241 case "$aros_target_cpu_mode" in
9243 gcc_default_mode
="arm"
9244 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"
9247 as_fn_error $?
"ARM 64-bit mode is unsupported" "$LINENO" 5
9250 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9253 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9256 gcc_default_mode
="thumb"
9257 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9258 aros_isa_flags
="$aros_isa_flags -m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9261 as_fn_error $?
"Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9265 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9266 aros_config_cxxflags
="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
9267 aros_config_aflags
="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9270 aros_isa_extra
="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9271 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
9275 # Some architectures may need custom ELF specs.
9276 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
9277 elf_specs_in
=config
/${aros_object_format}-specs.
in
9279 elf_specs_in
=config
/elf-specs.
in
9282 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9283 # Since we override specs, we may need to put these defines there
9284 if test "$gcc_target_cpu" != ""; then
9285 gcc_target_cpu
="-D__${gcc_target_cpu}__"
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9289 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9291 # Check whether --with-portssources was given.
9292 if test "${with_portssources+set}" = set; then :
9293 withval
=$with_portssources; with_portssrcdir
=$withval
9295 with_portssrcdir
="default"
9298 if test "$with_portssrcdir" = "default"; then
9299 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9301 AROS_PORTSSRCDIR
="$with_portssrcdir"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9304 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9307 $as_echo_n "checking which bootloader to use... " >&6; }
9309 # Check whether --with-bootloader was given.
9310 if test "${with_bootloader+set}" = set; then :
9311 withval
=$with_bootloader; target_bootloader
=$withval
9313 target_bootloader
=$target_bootloader
9316 if test "$target_bootloader" = "none"; then
9317 aros_target_bootloader
=""
9319 aros_target_bootloader
="$target_bootloader"
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9322 $as_echo "$target_bootloader" >&6; }
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9325 $as_echo_n "checking which icon-set to use... " >&6; }
9327 # Check whether --with-iconset was given.
9328 if test "${with_iconset+set}" = set; then :
9329 withval
=$with_iconset; target_iconset
=$withval
9331 target_iconset
="default"
9334 if test "$target_iconset" = "default"; then
9335 aros_target_iconset
="Gorilla"
9336 target_iconset
="default (Gorilla)"
9338 aros_target_iconset
="$target_iconset"
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9341 $as_echo "$target_iconset" >&6; }
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9344 $as_echo_n "checking which GUI Theme to use... " >&6; }
9346 # Check whether --with-theme was given.
9347 if test "${with_theme+set}" = set; then :
9348 withval
=$with_theme; target_guitheme
=$withval
9350 target_guitheme
="default"
9353 if test "$target_guitheme" = "default"; then
9354 aros_target_guitheme
="Ice"
9356 aros_target_guitheme
="$target_guitheme"
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9359 $as_echo "$aros_target_guitheme" >&6; }
9361 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9365 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9369 if test "$aros_host_cpu" == "x86_64" ; then
9370 if test "$aros_target_cpu" == "i386" ; then
9375 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9376 if test "$aros_host_arch" != "$aros_target_arch" ; then
9380 if test "$host_cc_elf" = "no" ; then
9385 if test "$cross_compiling" = "no" ; then
9386 kernel_tool_prefix
=""
9387 if test "$host_cc_elf" = "yes" ; then
9392 if test "$kernel_tool_version" != ""; then
9393 kernel_tool_version
="-$kernel_tool_version"
9396 #######################################################################
9397 ## Compute what toolchains to use, and their paths ##
9398 #######################################################################
9400 # This takes, as input:
9401 # crosstools {yes,no}
9402 # kernel_tool_version {"",[version]}
9403 # target_tool_version {"",[version]}
9404 # kernel_tool_prefix {none,[some-arch-os-]}
9406 # target_tool_prefix ${aros_target_cpu}-aros-
9407 # aros_tool_prefix ${aros_target_cpu}-aros-
9410 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9411 # Where the 'kernel' binaries are located
9412 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9413 # Where the 'target' binaries are located
9414 # (not the symlink farm - that is aros_target_*!)
9417 # if crosstools then
9418 # if kernel_tools_prefix = "no-kernel-prefix-"
9419 # aros_kernel_* = crosstools cc paths
9420 # aros_kernel_cc = elf cc wrapper around crosstools cc
9422 # VALIDATE(${kernel_tools_prefix}*)
9423 # aros_kernel_* = ${kernel_tools_prefix}*
9424 # if ${kernel_tools_prefix}cc is an AROS gcc
9425 # aros_kernel_cc = ${kernel_tools_prefix}cc
9427 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9431 # orig_target_* = aros built crosstools
9432 # orig_target_cc = elf cc wrapper around crosstools cc
9434 # VALIDATE(${kernel_tools_prefix}*)
9436 # orig_target_* = aros_kernel_*
9437 # if aros_kernel_cc is an AROS gcc
9438 # orig_target_cc = aros_kernel_cc
9440 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9444 if test "$aros_toolchain" = "gnu" ; then
9445 target_tool_prefix
="${aros_target_cpu}-aros-"
9446 elif test "$aros_toolchain" = "llvm" ; then
9447 target_tool_prefix
="bin/"
9450 if test "$kernel_tool_prefix" != "" ; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9452 $as_echo_n "checking which kernel tools... " >&6; }
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9454 $as_echo "$kernel_tool_prefix" >&6; };
9457 if test "$kernel_tool_prefix" = "none" ; then
9458 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9459 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9462 # Kernel tools required - find them
9463 # Note that 'normally', aros_kernel_* overrides will be
9464 # empty, unless specified in the per-arch sections above.
9465 if test "x$aros_kernel_cpp" = "x"; then
9466 aros_kernel_cpp
=${kernel_tool_prefix}${CPP}
9468 if test "${kernel_tool_version}" != ""; then
9469 if test "$aros_kernel_cpp" != ""; then
9470 ac_prog_args
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9471 ac_prog_cmd
=`expr "X$aros_kernel_cpp" : '^\S*'`
9472 aros_kernel_cpp
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9476 if test "$aros_kernel_cpp" = ""; then
9477 if test "$cross_compiling" = "yes" ; then
9478 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9479 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9481 $as_echo_n "checking for $ac_word... " >&6; }
9482 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9483 $as_echo_n "(cached) " >&6
9485 case $aros_kernel_cpp in
9487 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9494 test -z "$as_dir" && as_dir
=.
9495 for ac_exec_ext
in '' $ac_executable_extensions; do
9496 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9497 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9509 if test -n "$aros_kernel_cpp"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9511 $as_echo "$aros_kernel_cpp" >&6; }
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514 $as_echo "no" >&6; }
9519 if test "$GCC" = "yes"; then
9520 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
9521 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9522 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524 $as_echo_n "checking for $ac_word... " >&6; }
9525 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9526 $as_echo_n "(cached) " >&6
9528 case $aros_kernel_cpp in
9530 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9534 for as_dir
in `dirname $aros_gcc_cpp`
9537 test -z "$as_dir" && as_dir
=.
9538 for ac_exec_ext
in '' $ac_executable_extensions; do
9539 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9540 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9551 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9552 if test -n "$aros_kernel_cpp"; then
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9554 $as_echo "$aros_kernel_cpp" >&6; }
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557 $as_echo "no" >&6; }
9562 if test "$aros_kernel_cpp" = ""; then
9563 # Extract the first word of "cpp", so it can be a program name with args.
9564 set dummy cpp
; ac_word
=$2
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 $as_echo_n "checking for $ac_word... " >&6; }
9567 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9568 $as_echo_n "(cached) " >&6
9570 case $aros_kernel_cpp in
9572 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9579 test -z "$as_dir" && as_dir
=.
9580 for ac_exec_ext
in '' $ac_executable_extensions; do
9581 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9582 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9594 if test -n "$aros_kernel_cpp"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9596 $as_echo "$aros_kernel_cpp" >&6; }
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9606 ac_tool_optarg
=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9607 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9608 set dummy
$aros_kernel_cpp; ac_word
=$2
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610 $as_echo_n "checking for $ac_word... " >&6; }
9611 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9612 $as_echo_n "(cached) " >&6
9614 case $aros_kernel_cpp in
9616 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9623 test -z "$as_dir" && as_dir
=.
9624 for ac_exec_ext
in '' $ac_executable_extensions; do
9625 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9626 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9638 if test -n "$aros_kernel_cpp"; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9640 $as_echo "$aros_kernel_cpp" >&6; }
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643 $as_echo "no" >&6; }
9647 aros_kernel_cpp
="$aros_kernel_cpp $ac_tool_optarg"
9651 if test "$aros_kernel_cpp" = ""; then
9654 if test "$aros_kernel_cpp" = "no"; then
9657 if test "$req_avail" = "no"; then
9658 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9661 if test "x$aros_kernel_cc" = "x"; then
9662 aros_kernel_cc
=${kernel_tool_prefix}${CC}
9664 if test "${kernel_tool_version}" != ""; then
9665 if test "$aros_kernel_cc" != ""; then
9666 ac_prog_args
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9667 ac_prog_cmd
=`expr "X$aros_kernel_cc" : '^\S*'`
9668 aros_kernel_cc
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9672 if test "$aros_kernel_cc" = ""; then
9673 if test "$cross_compiling" = "yes" ; then
9674 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9675 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9679 $as_echo_n "(cached) " >&6
9681 case $aros_kernel_cc in
9683 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9690 test -z "$as_dir" && as_dir
=.
9691 for ac_exec_ext
in '' $ac_executable_extensions; do
9692 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9693 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9705 if test -n "$aros_kernel_cc"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9707 $as_echo "$aros_kernel_cc" >&6; }
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9715 if test "$GCC" = "yes"; then
9716 aros_gcc_cc
=`$CC -print-prog-name=cc`
9717 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9718 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720 $as_echo_n "checking for $ac_word... " >&6; }
9721 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9722 $as_echo_n "(cached) " >&6
9724 case $aros_kernel_cc in
9726 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9730 for as_dir
in `dirname $aros_gcc_cc`
9733 test -z "$as_dir" && as_dir
=.
9734 for ac_exec_ext
in '' $ac_executable_extensions; do
9735 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9736 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9748 if test -n "$aros_kernel_cc"; then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9750 $as_echo "$aros_kernel_cc" >&6; }
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9753 $as_echo "no" >&6; }
9758 if test "$aros_kernel_cc" = ""; then
9759 # Extract the first word of "cc", so it can be a program name with args.
9760 set dummy cc
; ac_word
=$2
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762 $as_echo_n "checking for $ac_word... " >&6; }
9763 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9764 $as_echo_n "(cached) " >&6
9766 case $aros_kernel_cc in
9768 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9775 test -z "$as_dir" && as_dir
=.
9776 for ac_exec_ext
in '' $ac_executable_extensions; do
9777 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9778 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9789 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9790 if test -n "$aros_kernel_cc"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9792 $as_echo "$aros_kernel_cc" >&6; }
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9802 ac_tool_optarg
=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9803 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9804 set dummy
$aros_kernel_cc; ac_word
=$2
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9806 $as_echo_n "checking for $ac_word... " >&6; }
9807 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9808 $as_echo_n "(cached) " >&6
9810 case $aros_kernel_cc in
9812 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9819 test -z "$as_dir" && as_dir
=.
9820 for ac_exec_ext
in '' $ac_executable_extensions; do
9821 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9822 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9834 if test -n "$aros_kernel_cc"; then
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9836 $as_echo "$aros_kernel_cc" >&6; }
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839 $as_echo "no" >&6; }
9843 aros_kernel_cc
="$aros_kernel_cc $ac_tool_optarg"
9847 if test "$aros_kernel_cc" = ""; then
9850 if test "$aros_kernel_cc" = "no"; then
9853 if test "$req_avail" = "no"; then
9854 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9857 if test "x$aros_kernel_cxx" = "x"; then
9858 aros_kernel_cxx
=${kernel_tool_prefix}${CXX}
9860 if test "${kernel_tool_version}" != ""; then
9861 if test "$aros_kernel_cxx" != ""; then
9862 ac_prog_args
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9863 ac_prog_cmd
=`expr "X$aros_kernel_cxx" : '^\S*'`
9864 aros_kernel_cxx
="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9868 if test "$aros_kernel_cxx" = ""; then
9869 if test "$cross_compiling" = "yes" ; then
9870 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9871 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873 $as_echo_n "checking for $ac_word... " >&6; }
9874 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9875 $as_echo_n "(cached) " >&6
9877 case $aros_kernel_cxx in
9879 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9886 test -z "$as_dir" && as_dir
=.
9887 for ac_exec_ext
in '' $ac_executable_extensions; do
9888 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9889 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9901 if test -n "$aros_kernel_cxx"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9903 $as_echo "$aros_kernel_cxx" >&6; }
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9911 if test "$GCC" = "yes"; then
9912 aros_gcc_cxx
=`$CC -print-prog-name=cxx`
9913 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9914 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916 $as_echo_n "checking for $ac_word... " >&6; }
9917 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9918 $as_echo_n "(cached) " >&6
9920 case $aros_kernel_cxx in
9922 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9926 for as_dir
in `dirname $aros_gcc_cxx`
9929 test -z "$as_dir" && as_dir
=.
9930 for ac_exec_ext
in '' $ac_executable_extensions; do
9931 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9932 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9943 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9944 if test -n "$aros_kernel_cxx"; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9946 $as_echo "$aros_kernel_cxx" >&6; }
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }
9954 if test "$aros_kernel_cxx" = ""; then
9955 # Extract the first word of "cxx", so it can be a program name with args.
9956 set dummy cxx
; ac_word
=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9960 $as_echo_n "(cached) " >&6
9962 case $aros_kernel_cxx in
9964 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9971 test -z "$as_dir" && as_dir
=.
9972 for ac_exec_ext
in '' $ac_executable_extensions; do
9973 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9974 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9986 if test -n "$aros_kernel_cxx"; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9988 $as_echo "$aros_kernel_cxx" >&6; }
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991 $as_echo "no" >&6; }
9998 ac_tool_optarg
=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9999 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10000 set dummy
$aros_kernel_cxx; ac_word
=$2
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10002 $as_echo_n "checking for $ac_word... " >&6; }
10003 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
10004 $as_echo_n "(cached) " >&6
10006 case $aros_kernel_cxx in
10008 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
10011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10012 for as_dir
in $PATH
10015 test -z "$as_dir" && as_dir
=.
10016 for ac_exec_ext
in '' $ac_executable_extensions; do
10017 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10018 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
10019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
10030 if test -n "$aros_kernel_cxx"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10032 $as_echo "$aros_kernel_cxx" >&6; }
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10039 aros_kernel_cxx
="$aros_kernel_cxx $ac_tool_optarg"
10042 # If it's set, make sure it's really there
10043 if test "x$aros_kernel_cxx" != "x" ; then
10045 if test "$aros_kernel_cxx" = ""; then
10048 if test "$aros_kernel_cxx" = "no"; then
10051 if test "$req_avail" = "no"; then
10052 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10056 if test "$aros_kernel_ld" = ""; then
10057 if test "$cross_compiling" = "yes" ; then
10058 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10059 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10063 $as_echo_n "(cached) " >&6
10065 case $aros_kernel_ld in
10067 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10071 for as_dir
in $PATH
10074 test -z "$as_dir" && as_dir
=.
10075 for ac_exec_ext
in '' $ac_executable_extensions; do
10076 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10077 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10088 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10089 if test -n "$aros_kernel_ld"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10091 $as_echo "$aros_kernel_ld" >&6; }
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10099 if test "$GCC" = "yes"; then
10100 aros_gcc_ld
=`$CC -print-prog-name=ld`
10101 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10102 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10106 $as_echo_n "(cached) " >&6
10108 case $aros_kernel_ld in
10110 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10114 for as_dir
in `dirname $aros_gcc_ld`
10117 test -z "$as_dir" && as_dir
=.
10118 for ac_exec_ext
in '' $ac_executable_extensions; do
10119 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10120 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10131 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10132 if test -n "$aros_kernel_ld"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10134 $as_echo "$aros_kernel_ld" >&6; }
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10142 if test "$aros_kernel_ld" = ""; then
10143 # Extract the first word of "ld", so it can be a program name with args.
10144 set dummy ld
; ac_word
=$2
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10146 $as_echo_n "checking for $ac_word... " >&6; }
10147 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10148 $as_echo_n "(cached) " >&6
10150 case $aros_kernel_ld in
10152 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10156 for as_dir
in $PATH
10159 test -z "$as_dir" && as_dir
=.
10160 for ac_exec_ext
in '' $ac_executable_extensions; do
10161 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10162 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10173 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10174 if test -n "$aros_kernel_ld"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10176 $as_echo "$aros_kernel_ld" >&6; }
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10186 ac_tool_optarg
=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10187 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10188 set dummy
$aros_kernel_ld; ac_word
=$2
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10192 $as_echo_n "(cached) " >&6
10194 case $aros_kernel_ld in
10196 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10200 for as_dir
in $PATH
10203 test -z "$as_dir" && as_dir
=.
10204 for ac_exec_ext
in '' $ac_executable_extensions; do
10205 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10206 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10218 if test -n "$aros_kernel_ld"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10220 $as_echo "$aros_kernel_ld" >&6; }
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10227 aros_kernel_ld
="$aros_kernel_ld $ac_tool_optarg"
10231 if test "$aros_kernel_ld" = ""; then
10234 if test "$aros_kernel_ld" = "no"; then
10237 if test "$req_avail" = "no"; then
10238 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10241 if test "$aros_kernel_as" = ""; then
10242 if test "$cross_compiling" = "yes" ; then
10243 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10244 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10246 $as_echo_n "checking for $ac_word... " >&6; }
10247 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10248 $as_echo_n "(cached) " >&6
10250 case $aros_kernel_as in
10252 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10256 for as_dir
in $PATH
10259 test -z "$as_dir" && as_dir
=.
10260 for ac_exec_ext
in '' $ac_executable_extensions; do
10261 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10262 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10273 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10274 if test -n "$aros_kernel_as"; then
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10276 $as_echo "$aros_kernel_as" >&6; }
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10284 if test "$GCC" = "yes"; then
10285 aros_gcc_as
=`$CC -print-prog-name=as`
10286 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10287 set dummy
`basename $aros_gcc_as`; ac_word
=$2
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10289 $as_echo_n "checking for $ac_word... " >&6; }
10290 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10291 $as_echo_n "(cached) " >&6
10293 case $aros_kernel_as in
10295 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10299 for as_dir
in `dirname $aros_gcc_as`
10302 test -z "$as_dir" && as_dir
=.
10303 for ac_exec_ext
in '' $ac_executable_extensions; do
10304 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10305 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10316 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10317 if test -n "$aros_kernel_as"; then
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10319 $as_echo "$aros_kernel_as" >&6; }
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322 $as_echo "no" >&6; }
10327 if test "$aros_kernel_as" = ""; then
10328 # Extract the first word of "as", so it can be a program name with args.
10329 set dummy as
; ac_word
=$2
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331 $as_echo_n "checking for $ac_word... " >&6; }
10332 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10333 $as_echo_n "(cached) " >&6
10335 case $aros_kernel_as in
10337 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10341 for as_dir
in $PATH
10344 test -z "$as_dir" && as_dir
=.
10345 for ac_exec_ext
in '' $ac_executable_extensions; do
10346 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10347 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10358 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10359 if test -n "$aros_kernel_as"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10361 $as_echo "$aros_kernel_as" >&6; }
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10371 ac_tool_optarg
=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10372 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10373 set dummy
$aros_kernel_as; ac_word
=$2
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375 $as_echo_n "checking for $ac_word... " >&6; }
10376 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10377 $as_echo_n "(cached) " >&6
10379 case $aros_kernel_as in
10381 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10385 for as_dir
in $PATH
10388 test -z "$as_dir" && as_dir
=.
10389 for ac_exec_ext
in '' $ac_executable_extensions; do
10390 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10391 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10403 if test -n "$aros_kernel_as"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10405 $as_echo "$aros_kernel_as" >&6; }
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10412 aros_kernel_as
="$aros_kernel_as $ac_tool_optarg"
10416 if test "$aros_kernel_as" = ""; then
10419 if test "$aros_kernel_as" = "no"; then
10422 if test "$req_avail" = "no"; then
10423 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
10426 if test "$aros_kernel_ar" = ""; then
10427 if test "$cross_compiling" = "yes" ; then
10428 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10429 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431 $as_echo_n "checking for $ac_word... " >&6; }
10432 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10433 $as_echo_n "(cached) " >&6
10435 case $aros_kernel_ar in
10437 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10441 for as_dir
in $PATH
10444 test -z "$as_dir" && as_dir
=.
10445 for ac_exec_ext
in '' $ac_executable_extensions; do
10446 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10447 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10459 if test -n "$aros_kernel_ar"; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10461 $as_echo "$aros_kernel_ar" >&6; }
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464 $as_echo "no" >&6; }
10469 if test "$GCC" = "yes"; then
10470 aros_gcc_ar
=`$CC -print-prog-name=ar`
10471 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10472 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10474 $as_echo_n "checking for $ac_word... " >&6; }
10475 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10476 $as_echo_n "(cached) " >&6
10478 case $aros_kernel_ar in
10480 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10484 for as_dir
in `dirname $aros_gcc_ar`
10487 test -z "$as_dir" && as_dir
=.
10488 for ac_exec_ext
in '' $ac_executable_extensions; do
10489 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10490 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10501 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10502 if test -n "$aros_kernel_ar"; then
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10504 $as_echo "$aros_kernel_ar" >&6; }
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507 $as_echo "no" >&6; }
10512 if test "$aros_kernel_ar" = ""; then
10513 # Extract the first word of "ar", so it can be a program name with args.
10514 set dummy
ar; ac_word
=$2
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516 $as_echo_n "checking for $ac_word... " >&6; }
10517 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10518 $as_echo_n "(cached) " >&6
10520 case $aros_kernel_ar in
10522 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10526 for as_dir
in $PATH
10529 test -z "$as_dir" && as_dir
=.
10530 for ac_exec_ext
in '' $ac_executable_extensions; do
10531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10532 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10544 if test -n "$aros_kernel_ar"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10546 $as_echo "$aros_kernel_ar" >&6; }
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10556 ac_tool_optarg
=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10557 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10558 set dummy
$aros_kernel_ar; ac_word
=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10562 $as_echo_n "(cached) " >&6
10564 case $aros_kernel_ar in
10566 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10570 for as_dir
in $PATH
10573 test -z "$as_dir" && as_dir
=.
10574 for ac_exec_ext
in '' $ac_executable_extensions; do
10575 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10576 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10588 if test -n "$aros_kernel_ar"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10590 $as_echo "$aros_kernel_ar" >&6; }
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10597 aros_kernel_ar
="$aros_kernel_ar $ac_tool_optarg"
10601 if test "$aros_kernel_ar" = ""; then
10604 if test "$aros_kernel_ar" = "no"; then
10607 if test "$req_avail" = "no"; then
10608 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10611 if test "$aros_kernel_ranlib" = ""; then
10612 if test "$cross_compiling" = "yes" ; then
10613 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10614 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 $as_echo_n "checking for $ac_word... " >&6; }
10617 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10618 $as_echo_n "(cached) " >&6
10620 case $aros_kernel_ranlib in
10622 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10626 for as_dir
in $PATH
10629 test -z "$as_dir" && as_dir
=.
10630 for ac_exec_ext
in '' $ac_executable_extensions; do
10631 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10632 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10644 if test -n "$aros_kernel_ranlib"; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10646 $as_echo "$aros_kernel_ranlib" >&6; }
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10654 if test "$GCC" = "yes"; then
10655 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
10656 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10657 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10659 $as_echo_n "checking for $ac_word... " >&6; }
10660 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10661 $as_echo_n "(cached) " >&6
10663 case $aros_kernel_ranlib in
10665 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10669 for as_dir
in `dirname $aros_gcc_ranlib`
10672 test -z "$as_dir" && as_dir
=.
10673 for ac_exec_ext
in '' $ac_executable_extensions; do
10674 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10675 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10686 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10687 if test -n "$aros_kernel_ranlib"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10689 $as_echo "$aros_kernel_ranlib" >&6; }
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 $as_echo "no" >&6; }
10697 if test "$aros_kernel_ranlib" = ""; then
10698 # Extract the first word of "ranlib", so it can be a program name with args.
10699 set dummy ranlib
; ac_word
=$2
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701 $as_echo_n "checking for $ac_word... " >&6; }
10702 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10703 $as_echo_n "(cached) " >&6
10705 case $aros_kernel_ranlib in
10707 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10711 for as_dir
in $PATH
10714 test -z "$as_dir" && as_dir
=.
10715 for ac_exec_ext
in '' $ac_executable_extensions; do
10716 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10717 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10729 if test -n "$aros_kernel_ranlib"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10731 $as_echo "$aros_kernel_ranlib" >&6; }
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10741 ac_tool_optarg
=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10742 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10743 set dummy
$aros_kernel_ranlib; ac_word
=$2
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10745 $as_echo_n "checking for $ac_word... " >&6; }
10746 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10747 $as_echo_n "(cached) " >&6
10749 case $aros_kernel_ranlib in
10751 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10755 for as_dir
in $PATH
10758 test -z "$as_dir" && as_dir
=.
10759 for ac_exec_ext
in '' $ac_executable_extensions; do
10760 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10761 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10773 if test -n "$aros_kernel_ranlib"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10775 $as_echo "$aros_kernel_ranlib" >&6; }
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10782 aros_kernel_ranlib
="$aros_kernel_ranlib $ac_tool_optarg"
10786 if test "$aros_kernel_ranlib" = ""; then
10789 if test "$aros_kernel_ranlib" = "no"; then
10792 if test "$req_avail" = "no"; then
10793 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10796 if test "$aros_kernel_nm" = ""; then
10797 if test "$cross_compiling" = "yes" ; then
10798 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10799 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10801 $as_echo_n "checking for $ac_word... " >&6; }
10802 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10803 $as_echo_n "(cached) " >&6
10805 case $aros_kernel_nm in
10807 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10811 for as_dir
in $PATH
10814 test -z "$as_dir" && as_dir
=.
10815 for ac_exec_ext
in '' $ac_executable_extensions; do
10816 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10817 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10829 if test -n "$aros_kernel_nm"; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10831 $as_echo "$aros_kernel_nm" >&6; }
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 $as_echo "no" >&6; }
10839 if test "$GCC" = "yes"; then
10840 aros_gcc_nm
=`$CC -print-prog-name=nm`
10841 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10842 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 $as_echo_n "checking for $ac_word... " >&6; }
10845 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10846 $as_echo_n "(cached) " >&6
10848 case $aros_kernel_nm in
10850 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10854 for as_dir
in `dirname $aros_gcc_nm`
10857 test -z "$as_dir" && as_dir
=.
10858 for ac_exec_ext
in '' $ac_executable_extensions; do
10859 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10860 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10871 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10872 if test -n "$aros_kernel_nm"; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10874 $as_echo "$aros_kernel_nm" >&6; }
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 $as_echo "no" >&6; }
10882 if test "$aros_kernel_nm" = ""; then
10883 # Extract the first word of "nm", so it can be a program name with args.
10884 set dummy nm
; ac_word
=$2
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10886 $as_echo_n "checking for $ac_word... " >&6; }
10887 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10888 $as_echo_n "(cached) " >&6
10890 case $aros_kernel_nm in
10892 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10896 for as_dir
in $PATH
10899 test -z "$as_dir" && as_dir
=.
10900 for ac_exec_ext
in '' $ac_executable_extensions; do
10901 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10902 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10913 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10914 if test -n "$aros_kernel_nm"; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10916 $as_echo "$aros_kernel_nm" >&6; }
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10926 ac_tool_optarg
=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
10927 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10928 set dummy
$aros_kernel_nm; ac_word
=$2
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10930 $as_echo_n "checking for $ac_word... " >&6; }
10931 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10932 $as_echo_n "(cached) " >&6
10934 case $aros_kernel_nm in
10936 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10940 for as_dir
in $PATH
10943 test -z "$as_dir" && as_dir
=.
10944 for ac_exec_ext
in '' $ac_executable_extensions; do
10945 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10946 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10958 if test -n "$aros_kernel_nm"; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10960 $as_echo "$aros_kernel_nm" >&6; }
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 $as_echo "no" >&6; }
10967 aros_kernel_nm
="$aros_kernel_nm $ac_tool_optarg"
10971 if test "$aros_kernel_nm" = ""; then
10974 if test "$aros_kernel_nm" = "no"; then
10977 if test "$req_avail" = "no"; then
10978 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10981 if test "$aros_kernel_strip" = ""; then
10982 if test "$cross_compiling" = "yes" ; then
10983 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10984 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986 $as_echo_n "checking for $ac_word... " >&6; }
10987 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10988 $as_echo_n "(cached) " >&6
10990 case $aros_kernel_strip in
10992 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10996 for as_dir
in $PATH
10999 test -z "$as_dir" && as_dir
=.
11000 for ac_exec_ext
in '' $ac_executable_extensions; do
11001 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11002 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11013 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11014 if test -n "$aros_kernel_strip"; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11016 $as_echo "$aros_kernel_strip" >&6; }
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019 $as_echo "no" >&6; }
11024 if test "$GCC" = "yes"; then
11025 aros_gcc_strip
=`$CC -print-prog-name=strip`
11026 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11027 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029 $as_echo_n "checking for $ac_word... " >&6; }
11030 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11031 $as_echo_n "(cached) " >&6
11033 case $aros_kernel_strip in
11035 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11039 for as_dir
in `dirname $aros_gcc_strip`
11042 test -z "$as_dir" && as_dir
=.
11043 for ac_exec_ext
in '' $ac_executable_extensions; do
11044 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11045 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11056 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11057 if test -n "$aros_kernel_strip"; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11059 $as_echo "$aros_kernel_strip" >&6; }
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11067 if test "$aros_kernel_strip" = ""; then
11068 # Extract the first word of "strip", so it can be a program name with args.
11069 set dummy strip
; ac_word
=$2
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071 $as_echo_n "checking for $ac_word... " >&6; }
11072 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11073 $as_echo_n "(cached) " >&6
11075 case $aros_kernel_strip in
11077 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11081 for as_dir
in $PATH
11084 test -z "$as_dir" && as_dir
=.
11085 for ac_exec_ext
in '' $ac_executable_extensions; do
11086 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11087 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11098 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11099 if test -n "$aros_kernel_strip"; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11101 $as_echo "$aros_kernel_strip" >&6; }
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104 $as_echo "no" >&6; }
11111 ac_tool_optarg
=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11112 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11113 set dummy
$aros_kernel_strip; ac_word
=$2
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11115 $as_echo_n "checking for $ac_word... " >&6; }
11116 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
11117 $as_echo_n "(cached) " >&6
11119 case $aros_kernel_strip in
11121 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
11124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11125 for as_dir
in $PATH
11128 test -z "$as_dir" && as_dir
=.
11129 for ac_exec_ext
in '' $ac_executable_extensions; do
11130 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11131 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
11132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11142 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
11143 if test -n "$aros_kernel_strip"; then
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11145 $as_echo "$aros_kernel_strip" >&6; }
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 $as_echo "no" >&6; }
11152 aros_kernel_strip
="$aros_kernel_strip $ac_tool_optarg"
11156 if test "$aros_kernel_strip" = ""; then
11159 if test "$aros_kernel_strip" = "no"; then
11162 if test "$req_avail" = "no"; then
11163 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11166 # Objcopy and objdump are not required for the kernel
11167 # toolchain on many architectures.
11168 # So we'll look for them, but not make them strictly required.
11170 if test "$aros_kernel_objcopy" = ""; then
11171 if test "$cross_compiling" = "yes" ; then
11172 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11173 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175 $as_echo_n "checking for $ac_word... " >&6; }
11176 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11177 $as_echo_n "(cached) " >&6
11179 case $aros_kernel_objcopy in
11181 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11185 for as_dir
in $PATH
11188 test -z "$as_dir" && as_dir
=.
11189 for ac_exec_ext
in '' $ac_executable_extensions; do
11190 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11191 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11203 if test -n "$aros_kernel_objcopy"; then
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11205 $as_echo "$aros_kernel_objcopy" >&6; }
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 $as_echo "no" >&6; }
11213 if test "$GCC" = "yes"; then
11214 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
11215 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11216 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218 $as_echo_n "checking for $ac_word... " >&6; }
11219 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11220 $as_echo_n "(cached) " >&6
11222 case $aros_kernel_objcopy in
11224 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11228 for as_dir
in `dirname $aros_gcc_objcopy`
11231 test -z "$as_dir" && as_dir
=.
11232 for ac_exec_ext
in '' $ac_executable_extensions; do
11233 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11234 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11246 if test -n "$aros_kernel_objcopy"; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11248 $as_echo "$aros_kernel_objcopy" >&6; }
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; }
11256 if test "$aros_kernel_objcopy" = ""; then
11257 # Extract the first word of "objcopy", so it can be a program name with args.
11258 set dummy objcopy
; ac_word
=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11262 $as_echo_n "(cached) " >&6
11264 case $aros_kernel_objcopy in
11266 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11270 for as_dir
in $PATH
11273 test -z "$as_dir" && as_dir
=.
11274 for ac_exec_ext
in '' $ac_executable_extensions; do
11275 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11276 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11288 if test -n "$aros_kernel_objcopy"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11290 $as_echo "$aros_kernel_objcopy" >&6; }
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11300 ac_tool_optarg
=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11301 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11302 set dummy
$aros_kernel_objcopy; ac_word
=$2
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11304 $as_echo_n "checking for $ac_word... " >&6; }
11305 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11306 $as_echo_n "(cached) " >&6
11308 case $aros_kernel_objcopy in
11310 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11314 for as_dir
in $PATH
11317 test -z "$as_dir" && as_dir
=.
11318 for ac_exec_ext
in '' $ac_executable_extensions; do
11319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11320 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11331 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11332 if test -n "$aros_kernel_objcopy"; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11334 $as_echo "$aros_kernel_objcopy" >&6; }
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11341 aros_kernel_objcopy
="$aros_kernel_objcopy $ac_tool_optarg"
11345 if test "$aros_kernel_objdump" = ""; then
11346 if test "$cross_compiling" = "yes" ; then
11347 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11348 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11350 $as_echo_n "checking for $ac_word... " >&6; }
11351 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11352 $as_echo_n "(cached) " >&6
11354 case $aros_kernel_objdump in
11356 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11360 for as_dir
in $PATH
11363 test -z "$as_dir" && as_dir
=.
11364 for ac_exec_ext
in '' $ac_executable_extensions; do
11365 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11366 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11377 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11378 if test -n "$aros_kernel_objdump"; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11380 $as_echo "$aros_kernel_objdump" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 $as_echo "no" >&6; }
11388 if test "$GCC" = "yes"; then
11389 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
11390 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11391 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393 $as_echo_n "checking for $ac_word... " >&6; }
11394 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11395 $as_echo_n "(cached) " >&6
11397 case $aros_kernel_objdump in
11399 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11403 for as_dir
in `dirname $aros_gcc_objdump`
11406 test -z "$as_dir" && as_dir
=.
11407 for ac_exec_ext
in '' $ac_executable_extensions; do
11408 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11409 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11420 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11421 if test -n "$aros_kernel_objdump"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11423 $as_echo "$aros_kernel_objdump" >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11431 if test "$aros_kernel_objdump" = ""; then
11432 # Extract the first word of "objdump", so it can be a program name with args.
11433 set dummy objdump
; ac_word
=$2
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435 $as_echo_n "checking for $ac_word... " >&6; }
11436 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11437 $as_echo_n "(cached) " >&6
11439 case $aros_kernel_objdump in
11441 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11445 for as_dir
in $PATH
11448 test -z "$as_dir" && as_dir
=.
11449 for ac_exec_ext
in '' $ac_executable_extensions; do
11450 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11451 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11462 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11463 if test -n "$aros_kernel_objdump"; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11465 $as_echo "$aros_kernel_objdump" >&6; }
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11475 ac_tool_optarg
=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11476 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11477 set dummy
$aros_kernel_objdump; ac_word
=$2
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479 $as_echo_n "checking for $ac_word... " >&6; }
11480 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11481 $as_echo_n "(cached) " >&6
11483 case $aros_kernel_objdump in
11485 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11489 for as_dir
in $PATH
11492 test -z "$as_dir" && as_dir
=.
11493 for ac_exec_ext
in '' $ac_executable_extensions; do
11494 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11495 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11507 if test -n "$aros_kernel_objdump"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11509 $as_echo "$aros_kernel_objdump" >&6; }
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11516 aros_kernel_objdump
="$aros_kernel_objdump $ac_tool_optarg"
11519 if test "x${crosstools}" != "xyes" ; then
11521 if test "$aros_kernel_objcopy" = ""; then
11524 if test "$aros_kernel_objcopy" = "no"; then
11527 if test "$req_avail" = "no"; then
11528 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11531 if test "$aros_kernel_objdump" = ""; then
11534 if test "$aros_kernel_objdump" = "no"; then
11537 if test "$req_avail" = "no"; then
11538 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11544 $as_echo_n "checking which target tools to use... " >&6; }
11545 if test "$aros_target_toolchain" = "yes"; then
11546 if test "$aros_toolchain" = "llvm" ; then
11549 msg_result
=$target_tool_prefix
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11552 $as_echo "$msg_result" >&6; }
11553 # We are building AROS crosstools
11554 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11555 orig_target_cc
="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11556 orig_target_cxx
="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11557 orig_target_cpp
="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11558 orig_target_ld
="${tmp_tool_prefix}${toolchain_ld}"
11559 orig_target_as
="${tmp_tool_prefix}${toolchain_as}"
11560 orig_target_ar
="${tmp_tool_prefix}${toolchain_ar}"
11561 orig_target_ranlib
="${tmp_tool_prefix}${toolchain_ranlib}"
11562 orig_target_nm
="${tmp_tool_prefix}${toolchain_nm}"
11563 orig_target_strip
="${tmp_tool_prefix}${toolchain_strip}"
11564 orig_target_objcopy
="${tmp_tool_prefix}${toolchain_objcopy}"
11565 orig_target_objdump
="${tmp_tool_prefix}${toolchain_objdump}"
11567 # Determine whether AROS or ELF tools should be used
11568 if test "$aros_tool_prefix" = "none"; then
11569 aros_tool_prefix
="${elf_tool_prefix}"
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11573 $as_echo "$aros_tool_prefix" >&6; }
11574 # We are *not* building AROS crosstools - use the AROS or ELF tools
11576 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11577 if test "$cross_compiling" = "yes" ; then
11578 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11579 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11581 $as_echo_n "checking for $ac_word... " >&6; }
11582 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11583 $as_echo_n "(cached) " >&6
11585 case $orig_target_cpp in
11587 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11591 for as_dir
in $PATH
11594 test -z "$as_dir" && as_dir
=.
11595 for ac_exec_ext
in '' $ac_executable_extensions; do
11596 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11597 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11609 if test -n "$orig_target_cpp"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11611 $as_echo "$orig_target_cpp" >&6; }
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11619 if test "$GCC" = "yes"; then
11620 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
11621 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11622 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11626 $as_echo_n "(cached) " >&6
11628 case $orig_target_cpp in
11630 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11634 for as_dir
in `dirname $aros_gcc_cpp`
11637 test -z "$as_dir" && as_dir
=.
11638 for ac_exec_ext
in '' $ac_executable_extensions; do
11639 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11640 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11652 if test -n "$orig_target_cpp"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11654 $as_echo "$orig_target_cpp" >&6; }
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11662 if test "$orig_target_cpp" = ""; then
11663 # Extract the first word of "cpp", so it can be a program name with args.
11664 set dummy cpp
; ac_word
=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11668 $as_echo_n "(cached) " >&6
11670 case $orig_target_cpp in
11672 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11676 for as_dir
in $PATH
11679 test -z "$as_dir" && as_dir
=.
11680 for ac_exec_ext
in '' $ac_executable_extensions; do
11681 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11682 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11694 if test -n "$orig_target_cpp"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11696 $as_echo "$orig_target_cpp" >&6; }
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11706 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11707 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11708 set dummy
${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word
=$2
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11712 $as_echo_n "(cached) " >&6
11714 case $orig_target_cpp in
11716 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11720 for as_dir
in $PATH
11723 test -z "$as_dir" && as_dir
=.
11724 for ac_exec_ext
in '' $ac_executable_extensions; do
11725 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11726 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11738 if test -n "$orig_target_cpp"; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11740 $as_echo "$orig_target_cpp" >&6; }
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11747 orig_target_cpp
="$orig_target_cpp $ac_tool_optarg"
11751 if test "$orig_target_cpp" = ""; then
11754 if test "$orig_target_cpp" = "no"; then
11757 if test "$req_avail" = "no"; then
11758 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11761 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11762 if test "$cross_compiling" = "yes" ; then
11763 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11764 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if ${ac_cv_path_orig_target_cc+:} false
; then :
11768 $as_echo_n "(cached) " >&6
11770 case $orig_target_cc in
11772 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11776 for as_dir
in $PATH
11779 test -z "$as_dir" && as_dir
=.
11780 for ac_exec_ext
in '' $ac_executable_extensions; do
11781 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11782 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 orig_target_cc
=$ac_cv_path_orig_target_cc
11794 if test -n "$orig_target_cc"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11796 $as_echo "$orig_target_cc" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11804 if test "$GCC" = "yes"; then
11805 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11806 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11807 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809 $as_echo_n "checking for $ac_word... " >&6; }
11810 if ${ac_cv_path_orig_target_cc+:} false
; then :
11811 $as_echo_n "(cached) " >&6
11813 case $orig_target_cc in
11815 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11819 for as_dir
in `dirname $aros_gcc_gcc`
11822 test -z "$as_dir" && as_dir
=.
11823 for ac_exec_ext
in '' $ac_executable_extensions; do
11824 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11825 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 orig_target_cc
=$ac_cv_path_orig_target_cc
11837 if test -n "$orig_target_cc"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11839 $as_echo "$orig_target_cc" >&6; }
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11847 if test "$orig_target_cc" = ""; then
11848 # Extract the first word of "gcc", so it can be a program name with args.
11849 set dummy gcc
; ac_word
=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if ${ac_cv_path_orig_target_cc+:} false
; then :
11853 $as_echo_n "(cached) " >&6
11855 case $orig_target_cc in
11857 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11861 for as_dir
in $PATH
11864 test -z "$as_dir" && as_dir
=.
11865 for ac_exec_ext
in '' $ac_executable_extensions; do
11866 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11867 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11878 orig_target_cc
=$ac_cv_path_orig_target_cc
11879 if test -n "$orig_target_cc"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11881 $as_echo "$orig_target_cc" >&6; }
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11891 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11892 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11893 set dummy
${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word
=$2
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11895 $as_echo_n "checking for $ac_word... " >&6; }
11896 if ${ac_cv_path_orig_target_cc+:} false
; then :
11897 $as_echo_n "(cached) " >&6
11899 case $orig_target_cc in
11901 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11905 for as_dir
in $PATH
11908 test -z "$as_dir" && as_dir
=.
11909 for ac_exec_ext
in '' $ac_executable_extensions; do
11910 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11911 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11922 orig_target_cc
=$ac_cv_path_orig_target_cc
11923 if test -n "$orig_target_cc"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11925 $as_echo "$orig_target_cc" >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11932 orig_target_cc
="$orig_target_cc $ac_tool_optarg"
11936 if test "$orig_target_cc" = ""; then
11939 if test "$orig_target_cc" = "no"; then
11942 if test "$req_avail" = "no"; then
11943 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11946 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11947 if test "$cross_compiling" = "yes" ; then
11948 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11949 set dummy
${target_tool_prefix}g
++; ac_word
=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11953 $as_echo_n "(cached) " >&6
11955 case $orig_target_cxx in
11957 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11961 for as_dir
in $PATH
11964 test -z "$as_dir" && as_dir
=.
11965 for ac_exec_ext
in '' $ac_executable_extensions; do
11966 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11967 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11978 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11979 if test -n "$orig_target_cxx"; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11981 $as_echo "$orig_target_cxx" >&6; }
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11989 if test "$GCC" = "yes"; then
11990 aros_gcc_g
++=`$CC -print-prog-name=g++`
11991 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11992 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994 $as_echo_n "checking for $ac_word... " >&6; }
11995 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11996 $as_echo_n "(cached) " >&6
11998 case $orig_target_cxx in
12000 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12004 for as_dir
in `dirname $aros_gcc_g++`
12007 test -z "$as_dir" && as_dir
=.
12008 for ac_exec_ext
in '' $ac_executable_extensions; do
12009 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12010 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12021 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12022 if test -n "$orig_target_cxx"; then
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12024 $as_echo "$orig_target_cxx" >&6; }
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12032 if test "$orig_target_cxx" = ""; then
12033 # Extract the first word of "g++", so it can be a program name with args.
12034 set dummy g
++; ac_word
=$2
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036 $as_echo_n "checking for $ac_word... " >&6; }
12037 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12038 $as_echo_n "(cached) " >&6
12040 case $orig_target_cxx in
12042 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12046 for as_dir
in $PATH
12049 test -z "$as_dir" && as_dir
=.
12050 for ac_exec_ext
in '' $ac_executable_extensions; do
12051 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12052 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12064 if test -n "$orig_target_cxx"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12066 $as_echo "$orig_target_cxx" >&6; }
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069 $as_echo "no" >&6; }
12076 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12077 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12078 set dummy
${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word
=$2
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 $as_echo_n "checking for $ac_word... " >&6; }
12081 if ${ac_cv_path_orig_target_cxx+:} false
; then :
12082 $as_echo_n "(cached) " >&6
12084 case $orig_target_cxx in
12086 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
12089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12090 for as_dir
in $PATH
12093 test -z "$as_dir" && as_dir
=.
12094 for ac_exec_ext
in '' $ac_executable_extensions; do
12095 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12096 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
12097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107 orig_target_cxx
=$ac_cv_path_orig_target_cxx
12108 if test -n "$orig_target_cxx"; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12110 $as_echo "$orig_target_cxx" >&6; }
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12117 orig_target_cxx
="$orig_target_cxx $ac_tool_optarg"
12121 if test "$orig_target_cxx" = ""; then
12124 if test "$orig_target_cxx" = "no"; then
12127 if test "$req_avail" = "no"; then
12128 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12131 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12132 if test "$cross_compiling" = "yes" ; then
12133 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12134 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136 $as_echo_n "checking for $ac_word... " >&6; }
12137 if ${ac_cv_path_orig_target_ld+:} false
; then :
12138 $as_echo_n "(cached) " >&6
12140 case $orig_target_ld in
12142 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12146 for as_dir
in $PATH
12149 test -z "$as_dir" && as_dir
=.
12150 for ac_exec_ext
in '' $ac_executable_extensions; do
12151 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12152 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12163 orig_target_ld
=$ac_cv_path_orig_target_ld
12164 if test -n "$orig_target_ld"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12166 $as_echo "$orig_target_ld" >&6; }
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169 $as_echo "no" >&6; }
12174 if test "$GCC" = "yes"; then
12175 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
12176 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12177 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179 $as_echo_n "checking for $ac_word... " >&6; }
12180 if ${ac_cv_path_orig_target_ld+:} false
; then :
12181 $as_echo_n "(cached) " >&6
12183 case $orig_target_ld in
12185 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12189 for as_dir
in `dirname $aros_gcc_gcc`
12192 test -z "$as_dir" && as_dir
=.
12193 for ac_exec_ext
in '' $ac_executable_extensions; do
12194 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12195 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12206 orig_target_ld
=$ac_cv_path_orig_target_ld
12207 if test -n "$orig_target_ld"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12209 $as_echo "$orig_target_ld" >&6; }
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12217 if test "$orig_target_ld" = ""; then
12218 # Extract the first word of "gcc", so it can be a program name with args.
12219 set dummy gcc
; ac_word
=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_path_orig_target_ld+:} false
; then :
12223 $as_echo_n "(cached) " >&6
12225 case $orig_target_ld in
12227 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12231 for as_dir
in $PATH
12234 test -z "$as_dir" && as_dir
=.
12235 for ac_exec_ext
in '' $ac_executable_extensions; do
12236 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12237 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248 orig_target_ld
=$ac_cv_path_orig_target_ld
12249 if test -n "$orig_target_ld"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12251 $as_echo "$orig_target_ld" >&6; }
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12261 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12262 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12263 set dummy
${aros_tool_prefix}${toolchain_ld}; ac_word
=$2
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265 $as_echo_n "checking for $ac_word... " >&6; }
12266 if ${ac_cv_path_orig_target_ld+:} false
; then :
12267 $as_echo_n "(cached) " >&6
12269 case $orig_target_ld in
12271 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12275 for as_dir
in $PATH
12278 test -z "$as_dir" && as_dir
=.
12279 for ac_exec_ext
in '' $ac_executable_extensions; do
12280 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12281 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292 orig_target_ld
=$ac_cv_path_orig_target_ld
12293 if test -n "$orig_target_ld"; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12295 $as_echo "$orig_target_ld" >&6; }
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12302 orig_target_ld
="$orig_target_ld $ac_tool_optarg"
12306 if test "$orig_target_ld" = ""; then
12309 if test "$orig_target_ld" = "no"; then
12312 if test "$req_avail" = "no"; then
12313 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12316 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12317 if test "$cross_compiling" = "yes" ; then
12318 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12319 set dummy
${target_tool_prefix}as
; ac_word
=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if ${ac_cv_path_orig_target_as+:} false
; then :
12323 $as_echo_n "(cached) " >&6
12325 case $orig_target_as in
12327 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12331 for as_dir
in $PATH
12334 test -z "$as_dir" && as_dir
=.
12335 for ac_exec_ext
in '' $ac_executable_extensions; do
12336 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12337 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12348 orig_target_as
=$ac_cv_path_orig_target_as
12349 if test -n "$orig_target_as"; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12351 $as_echo "$orig_target_as" >&6; }
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12359 if test "$GCC" = "yes"; then
12360 aros_gcc_as
=`$CC -print-prog-name=as`
12361 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12362 set dummy
`basename $aros_gcc_as`; ac_word
=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if ${ac_cv_path_orig_target_as+:} false
; then :
12366 $as_echo_n "(cached) " >&6
12368 case $orig_target_as in
12370 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12374 for as_dir
in `dirname $aros_gcc_as`
12377 test -z "$as_dir" && as_dir
=.
12378 for ac_exec_ext
in '' $ac_executable_extensions; do
12379 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12380 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391 orig_target_as
=$ac_cv_path_orig_target_as
12392 if test -n "$orig_target_as"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12394 $as_echo "$orig_target_as" >&6; }
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12402 if test "$orig_target_as" = ""; then
12403 # Extract the first word of "as", so it can be a program name with args.
12404 set dummy as
; ac_word
=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406 $as_echo_n "checking for $ac_word... " >&6; }
12407 if ${ac_cv_path_orig_target_as+:} false
; then :
12408 $as_echo_n "(cached) " >&6
12410 case $orig_target_as in
12412 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12416 for as_dir
in $PATH
12419 test -z "$as_dir" && as_dir
=.
12420 for ac_exec_ext
in '' $ac_executable_extensions; do
12421 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12422 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12433 orig_target_as
=$ac_cv_path_orig_target_as
12434 if test -n "$orig_target_as"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12436 $as_echo "$orig_target_as" >&6; }
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12446 ac_tool_optarg
=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12447 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12448 set dummy aros_tool_prefix
}${toolchain_as}; ac_word
=$2
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450 $as_echo_n "checking for $ac_word... " >&6; }
12451 if ${ac_cv_path_orig_target_as+:} false
; then :
12452 $as_echo_n "(cached) " >&6
12454 case $orig_target_as in
12456 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12460 for as_dir
in $PATH
12463 test -z "$as_dir" && as_dir
=.
12464 for ac_exec_ext
in '' $ac_executable_extensions; do
12465 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12466 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 orig_target_as
=$ac_cv_path_orig_target_as
12478 if test -n "$orig_target_as"; then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12480 $as_echo "$orig_target_as" >&6; }
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12487 orig_target_as
="$orig_target_as $ac_tool_optarg"
12491 if test "$orig_target_as" = ""; then
12494 if test "$orig_target_as" = "no"; then
12497 if test "$req_avail" = "no"; then
12498 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
12501 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12502 if test "$cross_compiling" = "yes" ; then
12503 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12504 set dummy
${target_tool_prefix}ar; ac_word
=$2
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12506 $as_echo_n "checking for $ac_word... " >&6; }
12507 if ${ac_cv_path_orig_target_ar+:} false
; then :
12508 $as_echo_n "(cached) " >&6
12510 case $orig_target_ar in
12512 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12516 for as_dir
in $PATH
12519 test -z "$as_dir" && as_dir
=.
12520 for ac_exec_ext
in '' $ac_executable_extensions; do
12521 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12522 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533 orig_target_ar
=$ac_cv_path_orig_target_ar
12534 if test -n "$orig_target_ar"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12536 $as_echo "$orig_target_ar" >&6; }
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12544 if test "$GCC" = "yes"; then
12545 aros_gcc_ar
=`$CC -print-prog-name=ar`
12546 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12547 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549 $as_echo_n "checking for $ac_word... " >&6; }
12550 if ${ac_cv_path_orig_target_ar+:} false
; then :
12551 $as_echo_n "(cached) " >&6
12553 case $orig_target_ar in
12555 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12559 for as_dir
in `dirname $aros_gcc_ar`
12562 test -z "$as_dir" && as_dir
=.
12563 for ac_exec_ext
in '' $ac_executable_extensions; do
12564 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576 orig_target_ar
=$ac_cv_path_orig_target_ar
12577 if test -n "$orig_target_ar"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12579 $as_echo "$orig_target_ar" >&6; }
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12587 if test "$orig_target_ar" = ""; then
12588 # Extract the first word of "ar", so it can be a program name with args.
12589 set dummy
ar; ac_word
=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591 $as_echo_n "checking for $ac_word... " >&6; }
12592 if ${ac_cv_path_orig_target_ar+:} false
; then :
12593 $as_echo_n "(cached) " >&6
12595 case $orig_target_ar in
12597 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12601 for as_dir
in $PATH
12604 test -z "$as_dir" && as_dir
=.
12605 for ac_exec_ext
in '' $ac_executable_extensions; do
12606 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12607 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 orig_target_ar
=$ac_cv_path_orig_target_ar
12619 if test -n "$orig_target_ar"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12621 $as_echo "$orig_target_ar" >&6; }
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12631 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12632 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12633 set dummy
${aros_tool_prefix}${toolchain_ar}; ac_word
=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if ${ac_cv_path_orig_target_ar+:} false
; then :
12637 $as_echo_n "(cached) " >&6
12639 case $orig_target_ar in
12641 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12645 for as_dir
in $PATH
12648 test -z "$as_dir" && as_dir
=.
12649 for ac_exec_ext
in '' $ac_executable_extensions; do
12650 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12651 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 orig_target_ar
=$ac_cv_path_orig_target_ar
12663 if test -n "$orig_target_ar"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12665 $as_echo "$orig_target_ar" >&6; }
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12672 orig_target_ar
="$orig_target_ar $ac_tool_optarg"
12676 if test "$orig_target_ar" = ""; then
12679 if test "$orig_target_ar" = "no"; then
12682 if test "$req_avail" = "no"; then
12683 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12686 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12687 if test "$cross_compiling" = "yes" ; then
12688 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12689 set dummy
${target_tool_prefix}ar; ac_word
=$2
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12691 $as_echo_n "checking for $ac_word... " >&6; }
12692 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12693 $as_echo_n "(cached) " >&6
12695 case $orig_target_ranlib in
12697 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12701 for as_dir
in $PATH
12704 test -z "$as_dir" && as_dir
=.
12705 for ac_exec_ext
in '' $ac_executable_extensions; do
12706 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12707 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12718 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12719 if test -n "$orig_target_ranlib"; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12721 $as_echo "$orig_target_ranlib" >&6; }
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724 $as_echo "no" >&6; }
12729 if test "$GCC" = "yes"; then
12730 aros_gcc_ar
=`$CC -print-prog-name=ar`
12731 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12732 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734 $as_echo_n "checking for $ac_word... " >&6; }
12735 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12736 $as_echo_n "(cached) " >&6
12738 case $orig_target_ranlib in
12740 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12744 for as_dir
in `dirname $aros_gcc_ar`
12747 test -z "$as_dir" && as_dir
=.
12748 for ac_exec_ext
in '' $ac_executable_extensions; do
12749 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12750 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12762 if test -n "$orig_target_ranlib"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12764 $as_echo "$orig_target_ranlib" >&6; }
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 $as_echo "no" >&6; }
12772 if test "$orig_target_ranlib" = ""; then
12773 # Extract the first word of "ar", so it can be a program name with args.
12774 set dummy
ar; ac_word
=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12778 $as_echo_n "(cached) " >&6
12780 case $orig_target_ranlib in
12782 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12786 for as_dir
in $PATH
12789 test -z "$as_dir" && as_dir
=.
12790 for ac_exec_ext
in '' $ac_executable_extensions; do
12791 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12792 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12803 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12804 if test -n "$orig_target_ranlib"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12806 $as_echo "$orig_target_ranlib" >&6; }
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12816 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12817 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12818 set dummy
${aros_tool_prefix}${toolchain_ranlib}; ac_word
=$2
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 $as_echo_n "checking for $ac_word... " >&6; }
12821 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12822 $as_echo_n "(cached) " >&6
12824 case $orig_target_ranlib in
12826 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12830 for as_dir
in $PATH
12833 test -z "$as_dir" && as_dir
=.
12834 for ac_exec_ext
in '' $ac_executable_extensions; do
12835 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12836 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12848 if test -n "$orig_target_ranlib"; then
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12850 $as_echo "$orig_target_ranlib" >&6; }
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12857 orig_target_ranlib
="$orig_target_ranlib $ac_tool_optarg"
12861 if test "$orig_target_ranlib" = ""; then
12864 if test "$orig_target_ranlib" = "no"; then
12867 if test "$req_avail" = "no"; then
12868 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12871 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12872 if test "$cross_compiling" = "yes" ; then
12873 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12874 set dummy
${target_tool_prefix}nm
; ac_word
=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if ${ac_cv_path_orig_target_nm+:} false
; then :
12878 $as_echo_n "(cached) " >&6
12880 case $orig_target_nm in
12882 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12886 for as_dir
in $PATH
12889 test -z "$as_dir" && as_dir
=.
12890 for ac_exec_ext
in '' $ac_executable_extensions; do
12891 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12892 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 orig_target_nm
=$ac_cv_path_orig_target_nm
12904 if test -n "$orig_target_nm"; then
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12906 $as_echo "$orig_target_nm" >&6; }
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909 $as_echo "no" >&6; }
12914 if test "$GCC" = "yes"; then
12915 aros_gcc_nm
=`$CC -print-prog-name=nm`
12916 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12917 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919 $as_echo_n "checking for $ac_word... " >&6; }
12920 if ${ac_cv_path_orig_target_nm+:} false
; then :
12921 $as_echo_n "(cached) " >&6
12923 case $orig_target_nm in
12925 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12929 for as_dir
in `dirname $aros_gcc_nm`
12932 test -z "$as_dir" && as_dir
=.
12933 for ac_exec_ext
in '' $ac_executable_extensions; do
12934 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12935 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12946 orig_target_nm
=$ac_cv_path_orig_target_nm
12947 if test -n "$orig_target_nm"; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12949 $as_echo "$orig_target_nm" >&6; }
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952 $as_echo "no" >&6; }
12957 if test "$orig_target_nm" = ""; then
12958 # Extract the first word of "nm", so it can be a program name with args.
12959 set dummy nm
; ac_word
=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if ${ac_cv_path_orig_target_nm+:} false
; then :
12963 $as_echo_n "(cached) " >&6
12965 case $orig_target_nm in
12967 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12971 for as_dir
in $PATH
12974 test -z "$as_dir" && as_dir
=.
12975 for ac_exec_ext
in '' $ac_executable_extensions; do
12976 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12977 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12988 orig_target_nm
=$ac_cv_path_orig_target_nm
12989 if test -n "$orig_target_nm"; then
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12991 $as_echo "$orig_target_nm" >&6; }
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
13001 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13002 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13003 set dummy
${aros_tool_prefix}${toolchain_nm}; ac_word
=$2
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005 $as_echo_n "checking for $ac_word... " >&6; }
13006 if ${ac_cv_path_orig_target_nm+:} false
; then :
13007 $as_echo_n "(cached) " >&6
13009 case $orig_target_nm in
13011 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
13014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13015 for as_dir
in $PATH
13018 test -z "$as_dir" && as_dir
=.
13019 for ac_exec_ext
in '' $ac_executable_extensions; do
13020 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13021 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13032 orig_target_nm
=$ac_cv_path_orig_target_nm
13033 if test -n "$orig_target_nm"; then
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13035 $as_echo "$orig_target_nm" >&6; }
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038 $as_echo "no" >&6; }
13042 orig_target_nm
="$orig_target_nm $ac_tool_optarg"
13046 if test "$orig_target_nm" = ""; then
13049 if test "$orig_target_nm" = "no"; then
13052 if test "$req_avail" = "no"; then
13053 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13056 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13057 if test "$cross_compiling" = "yes" ; then
13058 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13059 set dummy
${target_tool_prefix}strip
; ac_word
=$2
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13061 $as_echo_n "checking for $ac_word... " >&6; }
13062 if ${ac_cv_path_orig_target_strip+:} false
; then :
13063 $as_echo_n "(cached) " >&6
13065 case $orig_target_strip in
13067 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13071 for as_dir
in $PATH
13074 test -z "$as_dir" && as_dir
=.
13075 for ac_exec_ext
in '' $ac_executable_extensions; do
13076 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13077 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 orig_target_strip
=$ac_cv_path_orig_target_strip
13089 if test -n "$orig_target_strip"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13091 $as_echo "$orig_target_strip" >&6; }
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13099 if test "$GCC" = "yes"; then
13100 aros_gcc_strip
=`$CC -print-prog-name=strip`
13101 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13102 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104 $as_echo_n "checking for $ac_word... " >&6; }
13105 if ${ac_cv_path_orig_target_strip+:} false
; then :
13106 $as_echo_n "(cached) " >&6
13108 case $orig_target_strip in
13110 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13114 for as_dir
in `dirname $aros_gcc_strip`
13117 test -z "$as_dir" && as_dir
=.
13118 for ac_exec_ext
in '' $ac_executable_extensions; do
13119 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13120 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 orig_target_strip
=$ac_cv_path_orig_target_strip
13132 if test -n "$orig_target_strip"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13134 $as_echo "$orig_target_strip" >&6; }
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13142 if test "$orig_target_strip" = ""; then
13143 # Extract the first word of "strip", so it can be a program name with args.
13144 set dummy strip
; ac_word
=$2
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146 $as_echo_n "checking for $ac_word... " >&6; }
13147 if ${ac_cv_path_orig_target_strip+:} false
; then :
13148 $as_echo_n "(cached) " >&6
13150 case $orig_target_strip in
13152 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13156 for as_dir
in $PATH
13159 test -z "$as_dir" && as_dir
=.
13160 for ac_exec_ext
in '' $ac_executable_extensions; do
13161 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13162 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 orig_target_strip
=$ac_cv_path_orig_target_strip
13174 if test -n "$orig_target_strip"; then
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13176 $as_echo "$orig_target_strip" >&6; }
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 $as_echo "no" >&6; }
13186 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13187 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13188 set dummy
${aros_tool_prefix}${toolchain_strip}; ac_word
=$2
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190 $as_echo_n "checking for $ac_word... " >&6; }
13191 if ${ac_cv_path_orig_target_strip+:} false
; then :
13192 $as_echo_n "(cached) " >&6
13194 case $orig_target_strip in
13196 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13200 for as_dir
in $PATH
13203 test -z "$as_dir" && as_dir
=.
13204 for ac_exec_ext
in '' $ac_executable_extensions; do
13205 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13206 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 orig_target_strip
=$ac_cv_path_orig_target_strip
13218 if test -n "$orig_target_strip"; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13220 $as_echo "$orig_target_strip" >&6; }
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223 $as_echo "no" >&6; }
13227 orig_target_strip
="$orig_target_strip $ac_tool_optarg"
13231 if test "$orig_target_strip" = ""; then
13234 if test "$orig_target_strip" = "no"; then
13237 if test "$req_avail" = "no"; then
13238 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13241 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13242 if test "$cross_compiling" = "yes" ; then
13243 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13244 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13246 $as_echo_n "checking for $ac_word... " >&6; }
13247 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13248 $as_echo_n "(cached) " >&6
13250 case $orig_target_objcopy in
13252 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13256 for as_dir
in $PATH
13259 test -z "$as_dir" && as_dir
=.
13260 for ac_exec_ext
in '' $ac_executable_extensions; do
13261 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13262 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13273 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13274 if test -n "$orig_target_objcopy"; then
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13276 $as_echo "$orig_target_objcopy" >&6; }
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279 $as_echo "no" >&6; }
13284 if test "$GCC" = "yes"; then
13285 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
13286 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13287 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289 $as_echo_n "checking for $ac_word... " >&6; }
13290 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13291 $as_echo_n "(cached) " >&6
13293 case $orig_target_objcopy in
13295 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13299 for as_dir
in `dirname $aros_gcc_objcopy`
13302 test -z "$as_dir" && as_dir
=.
13303 for ac_exec_ext
in '' $ac_executable_extensions; do
13304 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13305 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13316 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13317 if test -n "$orig_target_objcopy"; then
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13319 $as_echo "$orig_target_objcopy" >&6; }
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13327 if test "$orig_target_objcopy" = ""; then
13328 # Extract the first word of "objcopy", so it can be a program name with args.
13329 set dummy objcopy
; ac_word
=$2
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13331 $as_echo_n "checking for $ac_word... " >&6; }
13332 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13333 $as_echo_n "(cached) " >&6
13335 case $orig_target_objcopy in
13337 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13341 for as_dir
in $PATH
13344 test -z "$as_dir" && as_dir
=.
13345 for ac_exec_ext
in '' $ac_executable_extensions; do
13346 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13347 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13359 if test -n "$orig_target_objcopy"; then
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13361 $as_echo "$orig_target_objcopy" >&6; }
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 $as_echo "no" >&6; }
13371 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13372 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13373 set dummy
${aros_tool_prefix}${toolchain_objcopy}; ac_word
=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375 $as_echo_n "checking for $ac_word... " >&6; }
13376 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13377 $as_echo_n "(cached) " >&6
13379 case $orig_target_objcopy in
13381 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13385 for as_dir
in $PATH
13388 test -z "$as_dir" && as_dir
=.
13389 for ac_exec_ext
in '' $ac_executable_extensions; do
13390 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13391 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13403 if test -n "$orig_target_objcopy"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13405 $as_echo "$orig_target_objcopy" >&6; }
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408 $as_echo "no" >&6; }
13412 orig_target_objcopy
="$orig_target_objcopy $ac_tool_optarg"
13416 if test "$orig_target_objcopy" = ""; then
13419 if test "$orig_target_objcopy" = "no"; then
13422 if test "$req_avail" = "no"; then
13423 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13426 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13427 if test "$cross_compiling" = "yes" ; then
13428 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13429 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13431 $as_echo_n "checking for $ac_word... " >&6; }
13432 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13433 $as_echo_n "(cached) " >&6
13435 case $orig_target_objdump in
13437 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13441 for as_dir
in $PATH
13444 test -z "$as_dir" && as_dir
=.
13445 for ac_exec_ext
in '' $ac_executable_extensions; do
13446 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13447 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13458 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13459 if test -n "$orig_target_objdump"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13461 $as_echo "$orig_target_objdump" >&6; }
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13469 if test "$GCC" = "yes"; then
13470 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
13471 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13472 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13474 $as_echo_n "checking for $ac_word... " >&6; }
13475 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13476 $as_echo_n "(cached) " >&6
13478 case $orig_target_objdump in
13480 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13484 for as_dir
in `dirname $aros_gcc_objdump`
13487 test -z "$as_dir" && as_dir
=.
13488 for ac_exec_ext
in '' $ac_executable_extensions; do
13489 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13490 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13501 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13502 if test -n "$orig_target_objdump"; then
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13504 $as_echo "$orig_target_objdump" >&6; }
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507 $as_echo "no" >&6; }
13512 if test "$orig_target_objdump" = ""; then
13513 # Extract the first word of "objdump", so it can be a program name with args.
13514 set dummy objdump
; ac_word
=$2
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13516 $as_echo_n "checking for $ac_word... " >&6; }
13517 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13518 $as_echo_n "(cached) " >&6
13520 case $orig_target_objdump in
13522 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13526 for as_dir
in $PATH
13529 test -z "$as_dir" && as_dir
=.
13530 for ac_exec_ext
in '' $ac_executable_extensions; do
13531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13532 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13544 if test -n "$orig_target_objdump"; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13546 $as_echo "$orig_target_objdump" >&6; }
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549 $as_echo "no" >&6; }
13556 ac_tool_optarg
=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13557 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13558 set dummy
${aros_tool_prefix}${toolchain_objdump}; ac_word
=$2
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13560 $as_echo_n "checking for $ac_word... " >&6; }
13561 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13562 $as_echo_n "(cached) " >&6
13564 case $orig_target_objdump in
13566 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13570 for as_dir
in $PATH
13573 test -z "$as_dir" && as_dir
=.
13574 for ac_exec_ext
in '' $ac_executable_extensions; do
13575 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13576 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13588 if test -n "$orig_target_objdump"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13590 $as_echo "$orig_target_objdump" >&6; }
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13597 orig_target_objdump
="$orig_target_objdump $ac_tool_optarg"
13601 if test "$orig_target_objdump" = ""; then
13604 if test "$orig_target_objdump" = "no"; then
13607 if test "$req_avail" = "no"; then
13608 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13612 if test "$kernel_tool_prefix" = "none" ; then
13613 # No kernel tools specified
13614 # Assume target tools == kernel tools with ELF wrapper
13615 aros_kernel_cc
=$orig_target_cc
13616 aros_kernel_cxx
=$orig_target_cxx
13617 aros_kernel_cpp
=$orig_target_cpp
13618 aros_kernel_ld
=$orig_target_ld
13619 aros_kernel_as
=$orig_target_as
13620 aros_kernel_ar
=$orig_target_ar
13621 aros_kernel_ranlib
=$orig_target_ranlib
13622 aros_kernel_nm
=$orig_target_nm
13623 aros_kernel_strip
=$orig_target_strip
13624 aros_kernel_objcopy
=$orig_target_objcopy
13625 aros_kernel_objdump
=$orig_target_objdump
13626 use_kernel_cc_wrapper
=yes
13629 # At this point, all aros_kernel_* and aros_target_*
13630 # tools should be set up correctly
13632 CC
="$aros_kernel_cc $kernel_tool_flags"
13633 CPP
="$aros_kernel_cpp"
13635 #-----------------------------------------------------------------------------
13637 # Find all the tools we need to compile. This could be cross-compiling
13638 # though! If that is the case we use the GNU form of the target and
13639 # simply add this to the front of the binary name. This is rather simple,
13640 # but it should work under most circumstances.
13642 # The default tools are to use the same as the host, but only if the
13643 # host and target CPU are the same. With GCC this is normally enough.
13647 aros_shared_ld
="$aros_host_ld"
13649 aros_target_mkdep
="$aros_host_mkdep"
13651 # The default tools executables to be linked to.
13652 if test "$rescomp" != ""; then
13653 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13654 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13656 $as_echo_n "checking for $ac_word... " >&6; }
13657 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
13658 $as_echo_n "(cached) " >&6
13660 case $aros_kernel_rescomp in
13662 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
13665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13666 for as_dir
in $PATH
13669 test -z "$as_dir" && as_dir
=.
13670 for ac_exec_ext
in '' $ac_executable_extensions; do
13671 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13672 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
13673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13683 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
13684 if test -n "$aros_kernel_rescomp"; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13686 $as_echo "$aros_kernel_rescomp" >&6; }
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689 $as_echo "no" >&6; }
13694 if test "$aros_kernel_rescomp" = ""; then
13697 if test "$aros_kernel_rescomp" = "no"; then
13700 if test "$req_avail" = "no"; then
13701 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13705 # Set up the sources for the symlink farm
13706 if test "$crosstools" = "yes"; then
13707 crosstools_target
=tools-crosstools
13710 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
13711 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
13713 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13714 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13715 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13716 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13717 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13718 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13719 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13721 # aros_cc_pre is a variable that is added to the front of the compiler name
13722 # in the generated aros-gcc shell script. We need this to enable the cache
13723 # to work across cleaned builds. Also, support DISTCC using the correct
13724 # environment variable.
13727 if test "x${DISTCC}" != "x" ; then
13728 if test "x${CCACHE}" != "x" ; then
13729 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13731 aros_cc_pre
="${DISTCC} "
13734 if test "x${CCACHE}" != "x" ; then
13735 aros_cc_pre
="${CCACHE} "
13739 aros_target_nostdinc_cflags
=-nostdinc
13741 aros_target_nostartup_ldflags
=-nostartfiles
13743 aros_target_nix_ldflags
=-nix
13745 aros_target_detach_ldflags
=-detach
13747 aros_target_nostdlib_ldflags
=-nostdlib
13752 if test "$aros_target_toolchain" != "yes"; then
13753 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13754 if test "$GCC" = "yes"; then
13755 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13758 # We do not know which c compiler version we are going to build and what we need to know
13759 # here is different for different versions so this will be set later during the
13760 # build of crosstools.
13761 if test "$aros_toolchain" = "gnu" ; then
13762 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13763 elif test "$aros_toolchain" = "llvm" ; then
13764 prefix
="$AROS_CROSSTOOLSDIR/bin/"
13766 aros_target_cc_path
=@aros_target_cc_path@
13768 aros_target_cpp
="${prefix}${toolchain_cpp_preprocessor}"
13769 aros_target_cc
="${prefix}${toolchain_c_compiler}"
13770 aros_target_cxx
="${prefix}${toolchain_cxx_compiler}"
13771 aros_target_as
="${prefix}${toolchain_as}"
13772 if test "${use_ld_wrapper}" = "yes"; then
13773 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13775 aros_target_ld
="${prefix}${toolchain_ld}"
13777 aros_toolchain_ld
="${prefix}${toolchain_ld}"
13779 aros_target_ar
="${prefix}${toolchain_ar} $aros_target_ar_flags"
13780 aros_target_objcopy
="${prefix}${toolchain_objcopy}"
13781 aros_target_objdump
="${prefix}${toolchain_objdump}"
13782 aros_target_ranlib
="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13783 aros_target_nm
="${prefix}${toolchain_nm} $aros_target_nm_flags"
13784 aros_target_strip
="${prefix}${toolchain_strip}"
13785 aros_plain_nm
="${prefix}${toolchain_nm}"
13786 aros_plain_ar
="${prefix}${toolchain_ar}"
13788 # Check whether --enable-includes was given.
13789 if test "${enable_includes+set}" = set; then :
13790 enableval
=$enable_includes; aros_target_incl
=$enable_includes
13792 aros_target_incl
=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13796 if test "$aros_kernel_includes" = ""; then
13797 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13798 aros_kernel_includes
="-isystem $aros_target_incl"
13802 if test "$aros_kernel_includes" != "" ; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13804 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13805 if test "$aros_kernel_cc_includes" = "" ; then
13806 # Try to guess where the directory is.
13807 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
13808 if test -d $aros_kernel_cc_includes; then
13809 # Check if there is also an include-fixed directory and add it
13810 # to kernel compiler's include path as it may contain some of
13811 # the headers we need.
13812 if test -d "$aros_kernel_cc_includes"-fixed; then
13813 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
13815 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13816 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13817 aros_kernel_cc_includes
+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13820 # The directory doesn't exist, we need to do some more work.
13821 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
13823 # These are the headers we're looking for.
13824 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13825 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13829 for h
in $headers; do
13830 # Which other headers are needed by each of the above?
13831 deps
=$
(echo "#include <$h>" | \
13832 $aros_kernel_cc -E -M - 2>/dev
/null | \
13833 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13835 # Copy all the needed headers to a directory beneath gendir.
13838 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
13839 sed -n "s,^.*/include\(/.*\),\1,p")
13840 ! test -d $dir && mkdir
-p $dir
13841 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13847 $as_echo "$aros_kernel_cc_includes" >&6; }
13848 # Adding -nostdinc to kernel includes as they are always used together.
13849 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13852 if test "$crosstools" != "yes"; then
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13854 $as_echo_n "checking for the target compiler's include path... " >&6; }
13855 if test "$aros_target_cc_includes" = "" ; then
13856 #try to guess where the directory is
13857 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
13858 if ! test -d $aros_target_cc_includes; then
13859 #the directory doesn't exist, we need to do some more work
13860 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
13862 #these are the headers we're looking for
13863 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13864 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13868 for h
in $headers; do
13869 #which other headers each of the above headers needs?
13870 deps
=$
(echo "#include <$h>" | \
13871 $orig_target_cc -E -M - 2>/dev
/null | \
13872 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13874 #copy all the needed headers to a directory beneath gendir
13877 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
13878 sed -n "s,^.*/include\(/.*\),\1,p")
13879 ! test -d $dir && mkdir
-p $dir
13880 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13886 $as_echo "$aros_target_cc_includes" >&6; }
13888 # We do not know which c compiler version we are going to build and what we need to know
13889 # here is different for different versions so this will be set later during the
13890 # build of crosstools.
13891 aros_target_cc_includes
=@aros_target_cc_includes@
13895 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13896 # On GCC >= 4.0 -iquote should be used
13900 save_cflags
="$CFLAGS"
13902 kernel_cflags_iquote
=$host_cflags_iquote
13903 kernel_cflags_iquote_end
=$host_cflags_iquote_end
13904 if test "x-$cross_compiling" = "x-yes"; then
13905 CC
="$aros_kernel_cc"
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13907 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13908 if test "x-$crosstools" != "x-yes"; then
13909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13920 if ac_fn_c_try_compile
"$LINENO"; then :
13921 use_no_stack_protector
="yes"
13923 use_no_stack_protector
="no"
13925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13927 # we do know it is supported for the smallest version of gcc we are going to build
13928 # we assume it's also supported by later versions
13929 use_no_stack_protector
=yes
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13932 $as_echo "$use_no_stack_protector" >&6; }
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13934 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13935 if test "x-$crosstools" != "x-yes"; then
13936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13947 if ac_fn_c_try_compile
"$LINENO"; then :
13952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13954 # we do know it is supported for the smallest version of gcc we are going to build
13955 # we assume it's also supported by later versions
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13959 $as_echo "$has_iquote" >&6; }
13960 if test "x-$has_iquote" = "x-yes" ; then
13961 kernel_cflags_iquote
=-iquote
13962 kernel_cflags_iquote_end
=
13964 kernel_cflags_iquote
=-I
13965 kernel_cflags_iquote_end
=-I-
13968 if test "x-$use_no_stack_protector" = "x-yes" ; then
13969 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
13972 #-----------------------------------------------------------------------------
13974 # Check if we can explicitly choose older version of symbol hashing
13976 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
13977 CC
="$aros_kernel_cc"
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13979 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13981 /* end confdefs.h. */
13991 if ac_fn_c_try_link
"$LINENO"; then :
13992 use_hash_style
="yes"
13994 use_hash_style
="no"
13996 rm -f core conftest.err conftest.
$ac_objext \
13997 conftest
$ac_exeext conftest.
$ac_ext
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13999 $as_echo "$use_hash_style" >&6; }
14000 if test "x-$use_hash_style" = "x-yes" ; then
14001 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
14004 CFLAGS
="$save_cflags"
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14013 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14015 # Check whether --with-resolution was given.
14016 if test "${with_resolution+set}" = set; then :
14017 withval
=$with_resolution; resolution
=$withval
14022 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14023 if test "$resolution" = "yes" ; then
14026 if test "$resolution" = "no" ; then
14029 if test "$resolution" != "none" ; then
14030 aros_nominal_width
=`echo $resolution | cut -d'x' -f1`
14031 aros_nominal_height
=`echo $resolution | cut -d'x' -f2`
14032 aros_nominal_depth
=`echo $resolution | cut -d'x' -f3`
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14035 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14036 aros_cv_nominal_width
=$aros_nominal_width
14037 aros_cv_nominal_height
=$aros_nominal_height
14038 aros_cv_nominal_depth
=$aros_nominal_depth
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14041 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14043 # Check whether --with-serial-debug was given.
14044 if test "${with_serial_debug+set}" = set; then :
14045 withval
=$with_serial_debug; serial_debug
=$withval
14050 if test "$aros_serial_debug" = 0 ; then
14051 serial_debug_forced
=""
14052 if test "$serial_debug" = "yes" ; then
14055 if test "$serial_debug" = "no" ; then
14056 serial_debug
="none"
14059 serial_debug_forced
="(forced)"
14060 serial_debug
=$aros_serial_debug
14062 if test "$serial_debug" != "none" ; then
14063 aros_serial_debug
=$serial_debug
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14065 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 $as_echo "no" >&6; }
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14072 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14073 # Check whether --enable-palm_debug_hack was given.
14074 if test "${enable_palm_debug_hack+set}" = set; then :
14075 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
14077 palm_debug_hack
="no"
14080 if test "$palm_debug_hack" = "yes" ; then
14081 aros_palm_debug_hack
="1"
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14084 $as_echo "$palm_debug_hack" >&6; }
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14087 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14088 # Check whether --enable-usb30_code was given.
14089 if test "${enable_usb30_code+set}" = set; then :
14090 enableval
=$enable_usb30_code; usb30_code
="yes"
14095 if test "$usb30_code" = "yes" ; then
14096 aros_config_cppflags
="$aros_config_cppflags -DAROS_USB30_CODE"
14097 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14100 $as_echo "$usb30_code" >&6; }
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14103 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14104 # Check whether --enable-nesting_supervisor was given.
14105 if test "${enable_nesting_supervisor+set}" = set; then :
14106 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
14108 nesting_supervisor
="no"
14111 if test "$nesting_supervisor" = "yes" ; then
14112 aros_nesting_supervisor
="1"
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14115 $as_echo "$nesting_supervisor" >&6; }
14117 if test "$aros_enable_mmu" = "" ; then
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14119 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14120 # Check whether --enable-mmu was given.
14121 if test "${enable_mmu+set}" = set; then :
14122 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
14124 aros_enable_mmu
="yes"
14127 if test "$aros_enable_mmu" = "" ; then
14128 aros_enable_mmu
="yes"
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14131 $as_echo "$aros_enable_mmu" >&6; }
14133 if test "$aros_enable_mmu" = "no" ; then
14134 aros_enable_mmu
="0"
14136 aros_enable_mmu
="1"
14140 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14142 if test "x-$need_dlopen" != "x-no" ; then
14145 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
14146 if test "x$ac_cv_func_dlopen" = xyes
; then :
14152 if test "x-$have_dl" = "x-no" ; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14154 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14155 if ${ac_cv_lib_dl_dlopen+:} false
; then :
14156 $as_echo_n "(cached) " >&6
14158 ac_check_lib_save_LIBS
=$LIBS
14160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14163 /* Override any GCC internal prototype to avoid an error.
14164 Use char because int might match the return type of a GCC
14165 builtin and then its argument prototype would still apply. */
14178 if ac_fn_c_try_link
"$LINENO"; then :
14179 ac_cv_lib_dl_dlopen
=yes
14181 ac_cv_lib_dl_dlopen
=no
14183 rm -f core conftest.err conftest.
$ac_objext \
14184 conftest
$ac_exeext conftest.
$ac_ext
14185 LIBS
=$ac_check_lib_save_LIBS
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14188 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14189 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
14191 aros_host_ldflags
="$aros_host_ldflags -ldl"
14197 if test "x-$have_dl" = "x-no" ; then
14198 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
14204 # Check whether --enable-x11_hidd was given.
14205 if test "${enable_x11_hidd+set}" = set; then :
14206 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
14208 x11_hidd
="$need_x11"
14211 case "x-$x11_hidd" in
14212 x-yes|x-no|x-auto
) ;;
14213 *) x11_hidd
="$need_x11" ;;
14218 if test "x-$x11_hidd" != "x-no" ; then
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14221 $as_echo_n "checking for X... " >&6; }
14224 # Check whether --with-x was given.
14225 if test "${with_x+set}" = set; then :
14229 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14230 if test "x$with_x" = xno
; then
14231 # The user explicitly disabled X.
14234 case $x_includes,$x_libraries in #(
14235 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
14236 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
14237 $as_echo_n "(cached) " >&6
14239 # One or both of the vars are not set, and there is no cached value.
14240 ac_x_includes
=no ac_x_libraries
=no
14241 rm -f -r conftest.dir
14242 if mkdir conftest.dir
; then
14244 cat >Imakefile
<<'_ACEOF'
14246 @echo incroot='${INCROOT}'
14248 @echo usrlibdir='${USRLIBDIR}'
14250 @echo libdir='${LIBDIR}'
14252 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14253 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14254 for ac_var
in incroot usrlibdir libdir
; do
14255 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14257 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14258 for ac_extension
in a so sl dylib la dll
; do
14259 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14260 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14261 ac_im_usrlibdir
=$ac_im_libdir; break
14264 # Screen out bogus values from the imake configuration. They are
14265 # bogus both because they are the default anyway, and because
14266 # using them would break gcc on systems where it needs fixed includes.
14267 case $ac_im_incroot in
14268 /usr
/include
) ac_x_includes
= ;;
14269 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14271 case $ac_im_usrlibdir in
14272 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14273 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14277 rm -f -r conftest.dir
14280 # Standard set of common directories for X headers.
14281 # Check X11 before X11Rn because it is often a symlink to the current release.
14295 /usr/local/X11/include
14296 /usr/local/X11R7/include
14297 /usr/local/X11R6/include
14298 /usr/local/X11R5/include
14299 /usr/local/X11R4/include
14301 /usr/local/include/X11
14302 /usr/local/include/X11R7
14303 /usr/local/include/X11R6
14304 /usr/local/include/X11R5
14305 /usr/local/include/X11R4
14309 /usr/XFree86/include/X11
14313 /usr/unsupported/include
14314 /usr/athena/include
14315 /usr/local/x11r5/include
14316 /usr/lpp/Xamples/include
14318 /usr/openwin/include
14319 /usr/openwin/share/include'
14321 if test "$ac_x_includes" = no
; then
14322 # Guess where to find include files, by looking for Xlib.h.
14323 # First, try using that file with no special directory specified.
14324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14326 #include <X11/Xlib.h>
14328 if ac_fn_c_try_cpp
"$LINENO"; then :
14329 # We can compile using X headers with no special include directory.
14332 for ac_dir
in $ac_x_header_dirs; do
14333 if test -r "$ac_dir/X11/Xlib.h"; then
14334 ac_x_includes
=$ac_dir
14339 rm -f conftest.err conftest.i conftest.
$ac_ext
14340 fi # $ac_x_includes = no
14342 if test "$ac_x_libraries" = no
; then
14343 # Check for the libraries.
14344 # See if we find them without any special options.
14345 # Don't add to $LIBS permanently.
14348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14350 #include <X11/Xlib.h>
14359 if ac_fn_c_try_link
"$LINENO"; then :
14361 # We can link X programs with no special library path.
14365 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14367 # Don't even attempt the hair of trying to link an X program!
14368 for ac_extension
in a so sl dylib la dll
; do
14369 if test -r "$ac_dir/libX11.$ac_extension"; then
14370 ac_x_libraries
=$ac_dir
14376 rm -f core conftest.err conftest.
$ac_objext \
14377 conftest
$ac_exeext conftest.
$ac_ext
14378 fi # $ac_x_libraries = no
14380 case $ac_x_includes,$ac_x_libraries in #(
14381 no
,* |
*,no |
*\'*)
14382 # Didn't find X, or a directory has "'" in its name.
14383 ac_cv_have_x
="have_x=no";; #(
14385 # Record where we found X for the cache.
14386 ac_cv_have_x
="have_x=yes\
14387 ac_x_includes='$ac_x_includes'\
14388 ac_x_libraries='$ac_x_libraries'"
14394 eval "$ac_cv_have_x"
14397 if test "$have_x" != yes; then
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14399 $as_echo "$have_x" >&6; }
14402 # If each of the values was on the command line, it overrides each guess.
14403 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14404 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14405 # Update the cache value to reflect the command line values.
14406 ac_cv_have_x
="have_x=yes\
14407 ac_x_includes='$x_includes'\
14408 ac_x_libraries='$x_libraries'"
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14410 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14414 if test -n "$x_includes"; then
14415 X_CFLAGS
="$X_CFLAGS -I$x_includes"
14418 if test -n "$x_libraries"; then
14419 X_LIBS
="$X_LIBS -L$x_libraries"
14422 if test "x-$no_x" = "x-yes" ; then
14424 if test "x-$x11_hidd" != "x-auto" ; then
14425 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14432 aros_host_x11_cflags
="$X_CFLAGS"
14433 aros_host_x11_ldflags
="$X_LIBS -lX11"
14435 # Check whether --enable-x11_shm was given.
14436 if test "${enable_x11_shm+set}" = set; then :
14437 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
14439 x11_hidd_shm
="auto"
14442 case "x-$x11_hidd_shm" in
14443 x-yes|x-no|x-auto
) ;;
14444 *) x11_hidd_shm
="auto" ;;
14449 if test "x-$x11_hidd_shm" != "x-no" ; then
14451 for ac_header
in sys
/ipc.h
14453 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14454 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
14455 cat >>confdefs.h
<<_ACEOF
14456 #define HAVE_SYS_IPC_H 1
14463 for ac_header
in sys
/shm.h
14465 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14466 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
14467 cat >>confdefs.h
<<_ACEOF
14468 #define HAVE_SYS_SHM_H 1
14476 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14478 save_cflags
="$CFLAGS"
14479 save_ldflags
="$LDFLAGS"
14480 CFLAGS
="$CFLAGS $X_CFLAGS"
14481 LDFLAGS
="$LDFLAGS $X_LIBS"
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14483 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14484 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
14485 $as_echo_n "(cached) " >&6
14487 ac_check_lib_save_LIBS
=$LIBS
14488 LIBS
="-lXext $LIBS"
14489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14492 /* Override any GCC internal prototype to avoid an error.
14493 Use char because int might match the return type of a GCC
14494 builtin and then its argument prototype would still apply. */
14498 char XShmQueryExtension ();
14502 return XShmQueryExtension ();
14507 if ac_fn_c_try_link
"$LINENO"; then :
14508 ac_cv_lib_Xext_XShmQueryExtension
=yes
14510 ac_cv_lib_Xext_XShmQueryExtension
=no
14512 rm -f core conftest.err conftest.
$ac_objext \
14513 conftest
$ac_exeext conftest.
$ac_ext
14514 LIBS
=$ac_check_lib_save_LIBS
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14517 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14518 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
14522 CFLAGS
="$save_cflags"
14523 LDFLAGS
="$save_ldflags"
14527 if test "x-$have_xshm" = "x-yes" ; then
14528 DO_XSHM_SUPPORT
="1"
14529 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14530 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14532 DO_XSHM_SUPPORT
="0"
14536 # Check whether --enable-x11_vidmode was given.
14537 if test "${enable_x11_vidmode+set}" = set; then :
14538 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
14540 x11_hidd_vidmode
="auto"
14543 case "x-$x11_hidd_vidmode" in
14544 x-yes|x-no|x-auto
) ;;
14545 *) x11_hidd_vidmode
="auto" ;;
14550 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14552 save_cflags
="$CFLAGS"
14553 save_ldflags
="$LDFLAGS"
14554 CFLAGS
="$CFLAGS $X_CFLAGS"
14555 LDFLAGS
="$LDFLAGS $X_LIBS"
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14557 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14558 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
14559 $as_echo_n "(cached) " >&6
14561 ac_check_lib_save_LIBS
=$LIBS
14562 LIBS
="-lXxf86vm $LIBS"
14563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14566 /* Override any GCC internal prototype to avoid an error.
14567 Use char because int might match the return type of a GCC
14568 builtin and then its argument prototype would still apply. */
14572 char XF86VidModeQueryExtension ();
14576 return XF86VidModeQueryExtension ();
14581 if ac_fn_c_try_link
"$LINENO"; then :
14582 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
14584 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
14586 rm -f core conftest.err conftest.
$ac_objext \
14587 conftest
$ac_exeext conftest.
$ac_ext
14588 LIBS
=$ac_check_lib_save_LIBS
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14591 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14592 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
14596 CFLAGS
="$save_cflags"
14597 LDFLAGS
="$save_ldflags"
14600 if test "x-$have_vidmode" = "x-yes" ; then
14601 DO_VIDMODE_SUPPORT
="1"
14602 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14603 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14605 DO_VIDMODE_SUPPORT
="0"
14610 # Check whether --enable-sdl_hidd was given.
14611 if test "${enable_sdl_hidd+set}" = set; then :
14612 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
14617 case "x-$sdl_hidd" in
14618 x-yes|x-no|x-auto
) ;;
14619 *) sdl_hidd
="auto" ;;
14622 if test "x-$sdl_hidd" != "x-no" ; then
14626 # Check whether --with-sdl-prefix was given.
14627 if test "${with_sdl_prefix+set}" = set; then :
14628 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
14634 # Check whether --with-sdl-exec-prefix was given.
14635 if test "${with_sdl_exec_prefix+set}" = set; then :
14636 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
14641 # Check whether --enable-sdltest was given.
14642 if test "${enable_sdltest+set}" = set; then :
14643 enableval
=$enable_sdltest;
14649 if test x
$sdl_exec_prefix != x
; then
14650 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14651 if test x
${SDL_CONFIG+set} != xset
; then
14652 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
14655 if test x
$sdl_prefix != x
; then
14656 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
14657 if test x
${SDL_CONFIG+set} != xset
; then
14658 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
14662 as_save_PATH
="$PATH"
14663 if test "x$prefix" != xNONE
; then
14664 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
14666 # Extract the first word of "sdl-config", so it can be a program name with args.
14667 set dummy sdl-config
; ac_word
=$2
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14669 $as_echo_n "checking for $ac_word... " >&6; }
14670 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
14671 $as_echo_n "(cached) " >&6
14673 case $SDL_CONFIG in
14675 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
14678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14679 for as_dir
in $PATH
14682 test -z "$as_dir" && as_dir
=.
14683 for ac_exec_ext
in '' $ac_executable_extensions; do
14684 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14685 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14693 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
14697 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
14698 if test -n "$SDL_CONFIG"; then
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14700 $as_echo "$SDL_CONFIG" >&6; }
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14703 $as_echo "no" >&6; }
14707 PATH
="$as_save_PATH"
14708 min_sdl_version
=$SDL_VERSION
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14710 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14712 if test "$SDL_CONFIG" = "no" ; then
14715 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
14716 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
14718 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
14719 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14720 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
14721 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14722 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
14723 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14724 if test "x$enable_sdltest" = "xyes" ; then
14725 ac_save_CFLAGS
="$CFLAGS"
14726 ac_save_CXXFLAGS
="$CXXFLAGS"
14727 ac_save_LIBS
="$LIBS"
14728 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14729 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14730 LIBS
="$LIBS $SDL_LIBS"
14732 if test "$cross_compiling" = yes; then :
14733 echo $ac_n "cross compiling; assumed OK... $ac_c"
14735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14739 #include <stdlib.h>
14740 #include <string.h>
14744 my_strdup (char *str)
14750 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14751 strcpy (new_str, str);
14759 int main (int argc, char *argv[])
14761 int major, minor, micro;
14764 /* This hangs on some systems (?)
14765 system ("touch conf.sdltest");
14767 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14769 /* HP/UX 9 (%@#!) writes to sscanf strings */
14770 tmp_version = my_strdup("$min_sdl_version");
14771 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
14772 printf("%s, bad version string\n", "$min_sdl_version");
14776 if (($sdl_major_version > major) ||
14777 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14778 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14784 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14785 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14786 printf("*** best to upgrade to the required version.\n");
14787 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14788 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14789 printf("*** config.cache before re-running configure\n");
14796 if ac_fn_c_try_run
"$LINENO"; then :
14801 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14802 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14805 CFLAGS
="$ac_save_CFLAGS"
14806 CXXFLAGS
="$ac_save_CXXFLAGS"
14807 LIBS
="$ac_save_LIBS"
14810 if test "x$no_sdl" = x
; then
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14812 $as_echo "yes" >&6; }
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14816 $as_echo "no" >&6; }
14817 if test "$SDL_CONFIG" = "no" ; then
14818 echo "*** The sdl-config script installed by SDL could not be found"
14819 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14820 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14821 echo "*** full path to sdl-config."
14823 if test -f conf.sdltest
; then
14826 echo "*** Could not run SDL test program, checking why..."
14827 CFLAGS
="$CFLAGS $SDL_CFLAGS"
14828 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
14829 LIBS
="$LIBS $SDL_LIBS"
14830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14836 int main(int argc, char *argv[])
14839 #define main K_and_R_C_main
14849 if ac_fn_c_try_link
"$LINENO"; then :
14850 echo "*** The test program compiled, but did not run. This usually means"
14851 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14852 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14853 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14854 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14855 echo "*** is required on your system"
14857 echo "*** If you have an old version installed, it is best to remove it, although"
14858 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14860 echo "*** The test program failed to compile or link. See the file config.log for the"
14861 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14862 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14863 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14865 rm -f core conftest.err conftest.
$ac_objext \
14866 conftest
$ac_exeext conftest.
$ac_ext
14867 CFLAGS
="$ac_save_CFLAGS"
14868 CXXFLAGS
="$ac_save_CXXFLAGS"
14869 LIBS
="$ac_save_LIBS"
14881 if test "x-$have_sdl" != "x-yes" ; then
14883 if test "x-$sdl_hidd" != "x-auto" ; then
14884 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14889 aros_host_sdl_cflags
=$SDL_CFLAGS
14890 aros_host_sdl_libs
=$SDL_LIBS
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14898 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14899 # Check whether --enable-dbus was given.
14900 if test "${enable_dbus+set}" = set; then :
14901 enableval
=$enable_dbus; dbus
="yes"
14906 if test "$dbus" = "yes" ; then
14908 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
14909 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
14910 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
14911 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14916 $as_echo "$dbus" >&6; }
14918 if test "$use_kernel_cc_wrapper" = "yes" ; then
14919 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14922 aros_kernel_cppflags
=$aros_config_cppflags
14923 aros_optimization_cflags
="$optimization_level"
14924 if test "$optimization" = "default"; then
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
14926 $as_echo_n "checking default optimization level to use... " >&6; }
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
14928 $as_echo "$optimization_level" >&6; }
14946 # Compatability with other Amiga-like operation systems
15059 # Hosted Graphics Related
15077 # Bootloader related
15080 # Native version related
15085 # Palm native version related
15088 # Unix/Hosted version related
15094 # Apple iOS related
15099 # ARM default GCC target related
15127 # Collect-aros stuff: "-ius" to ignore undefined symbols
15130 # C compiler related
15135 #ObjC compiler related
15144 case "$aros_flavour" in
15145 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
15146 aros_flavour
="emulation" ;;
15147 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15148 aros_flavour
="emulation" ;;
15149 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
15150 aros_flavour
="standalone";;
15151 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15152 aros_flavour
="standalone";;
15153 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
15154 aros_flavour
="native" ;;
15155 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15156 aros_flavour
="native" ;;
15157 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
15158 aros_flavour
="linklib" ;;
15159 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15160 aros_flavour
="palmnative" ;;
15161 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15162 aros_flavour
="mac68knative" ;;
15163 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15164 aros_flavour
="ppcnative" ;;
15167 if test ! -d ${aros_inc_dir} ; then
15168 ${MKDIR} ${aros_inc_dir}
15170 if test ! -d ${aros_geninc_dir} ; then
15171 ${MKDIR} ${aros_geninc_dir}
15173 if test ! -d ${aros_hostcfg_dir} ; then
15174 ${MKDIR} ${aros_hostcfg_dir}
15176 if test ! -d ${aros_targetcfg_dir} ; then
15177 ${MKDIR} ${aros_targetcfg_dir}
15179 if test ! -d ${aros_tools_dir} ; then
15180 ${MKDIR} ${aros_tools_dir}
15182 if test ! -d ${aros_scripts_dir} ; then
15183 ${MKDIR} ${aros_scripts_dir}
15186 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15189 # Generic build tools (metamake, etc)
15190 ac_config_commands
="$ac_config_commands genmf-executable-support"
15192 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"
15196 ac_config_commands
="$ac_config_commands binutils-support"
15198 if test "${use_ld_wrapper}" = "yes"; then
15199 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"
15202 # Bare Elf support script and spec
15203 if test "${use_kernel_cc_wrapper}" = "yes"; then
15204 ac_config_commands
="$ac_config_commands elf-compiler-support"
15206 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"
15210 # Host compiler support scripts and spec
15211 if test "${aros_target_toolchain}" = "no"; then
15212 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
15214 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"
15219 if test "$aros_target_variant" == "android"; then
15220 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15225 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15228 cat >confcache
<<\_ACEOF
15229 # This file is a shell script that caches the results of configure
15230 # tests run on this system so they can be shared between configure
15231 # scripts and configure runs, see configure's option --config-cache.
15232 # It is not useful on other systems. If it contains results you don't
15233 # want to keep, you may remove or edit it.
15235 # config.status only pays attention to the cache file if you give it
15236 # the --recheck option to rerun configure.
15238 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15239 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15240 # following values.
15244 # The following way of writing the cache mishandles newlines in values,
15245 # but we know of no workaround that is simple, portable, and efficient.
15246 # So, we kill variables containing newlines.
15247 # Ultrix sh set writes to stderr and can't be redirected directly,
15248 # and sets the high bit in the cache file unless we assign to the vars.
15250 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15251 eval ac_val
=\$
$ac_var
15255 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15256 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15259 _ | IFS | as_nl
) ;; #(
15260 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15261 *) { eval $ac_var=; unset $ac_var;} ;;
15267 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15268 *${as_nl}ac_space
=\
*)
15269 # `set' does not quote correctly, so add quotes: double-quote
15270 # substitution turns \\\\ into \\, and sed turns \\ into \.
15273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15276 # `set' quotes correctly as required by POSIX, so do not add quotes.
15277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15288 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15290 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15291 if test -w "$cache_file"; then
15292 if test "x$cache_file" != "x/dev/null"; then
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15294 $as_echo "$as_me: updating cache $cache_file" >&6;}
15295 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15296 cat confcache
>"$cache_file"
15298 case $cache_file in #(
15300 mv -f confcache
"$cache_file"$$
&&
15301 mv -f "$cache_file"$$
"$cache_file" ;; #(
15303 mv -f confcache
"$cache_file" ;;
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15309 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15314 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15315 # Let make expand exec_prefix.
15316 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15318 DEFS
=-DHAVE_CONFIG_H
15323 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15324 # 1. Remove the extension, and $U if already installed.
15325 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15326 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15328 # will be set to the directory where LIBOBJS objects are built.
15329 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15330 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15332 LIBOBJS
=$ac_libobjs
15334 LTLIBOBJS
=$ac_ltlibobjs
15338 : "${CONFIG_STATUS=./config.status}"
15340 ac_clean_files_save
=$ac_clean_files
15341 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15343 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15345 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15347 # Generated by $as_me.
15348 # Run this file to recreate the current configuration.
15349 # Compiler output produced by configure, useful for debugging
15350 # configure, is in config.log if it exists.
15353 ac_cs_recheck=false
15356 SHELL=\${CONFIG_SHELL-$SHELL}
15359 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15360 ## -------------------- ##
15361 ## M4sh Initialization. ##
15362 ## -------------------- ##
15364 # Be more Bourne compatible
15365 DUALCASE
=1; export DUALCASE
# for MKS sh
15366 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15369 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15370 # is contrary to our usage. Disable this feature.
15371 alias -g '${1+"$@"}'='"$@"'
15372 setopt NO_GLOB_SUBST
15374 case `(set -o) 2>/dev/null` in #(
15386 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15387 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15388 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15389 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15390 # Prefer a ksh shell builtin over an external printf program on Solaris,
15391 # but without wasting forks for bash or zsh.
15392 if test -z "$BASH_VERSION$ZSH_VERSION" \
15393 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15394 as_echo='print
-r --'
15395 as_echo_n='print
-rn --'
15396 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15397 as_echo='printf %s
\n'
15398 as_echo_n='printf %s
'
15400 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15401 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15402 as_echo_n='/usr
/ucb
/echo -n'
15404 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15405 as_echo_n_body='eval
15409 expr "X$arg" : "X\\(.*\\)$as_nl";
15410 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15412 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15414 export as_echo_n_body
15415 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15417 export as_echo_body
15418 as_echo='sh
-c $as_echo_body as_echo
'
15421 # The user is always right.
15422 if test "${PATH_SEPARATOR+set}" != set; then
15424 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15425 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15432 # We need space, tab and new line, in precisely that order. Quoting is
15433 # there to prevent editors from complaining about space-tab.
15434 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15435 # splitting by setting IFS to empty value.)
15438 # Find who we are. Look in the path if we contain no directory separator.
15441 *[\\/]* ) as_myself=$0 ;;
15442 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15443 for as_dir in $PATH
15446 test -z "$as_dir" && as_dir=.
15447 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15453 # We did not find ourselves, most probably we were run as `sh COMMAND'
15454 # in which case we are not to be found in the path.
15455 if test "x$as_myself" = x
; then
15458 if test ! -f "$as_myself"; then
15459 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15463 # Unset variables that we do not need and which cause bugs (e.g. in
15464 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15465 # suppresses any "Segmentation fault" message there. '((' could
15466 # trigger a bug in pdksh 5.2.14.
15467 for as_var
in BASH_ENV ENV MAIL MAILPATH
15468 do eval test x\
${$as_var+set} = xset \
15469 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15482 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15485 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15486 # ----------------------------------------
15487 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15488 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15489 # script with STATUS, using 1 if that was 0.
15492 as_status
=$1; test $as_status -eq 0 && as_status
=1
15494 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15495 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15497 $as_echo "$as_me: error: $2" >&2
15498 as_fn_exit
$as_status
15502 # as_fn_set_status STATUS
15503 # -----------------------
15504 # Set $? to STATUS, without forking.
15505 as_fn_set_status
()
15508 } # as_fn_set_status
15510 # as_fn_exit STATUS
15511 # -----------------
15512 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15516 as_fn_set_status
$1
15522 # Portably unset VAR.
15525 { eval $1=; unset $1;}
15527 as_unset
=as_fn_unset
15528 # as_fn_append VAR VALUE
15529 # ----------------------
15530 # Append the text in VALUE to the end of the definition contained in VAR. Take
15531 # advantage of any shell optimizations that allow amortized linear growth over
15532 # repeated appends, instead of the typical quadratic growth present in naive
15534 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15535 eval 'as_fn_append ()
15546 # as_fn_arith ARG...
15547 # ------------------
15548 # Perform arithmetic evaluation on the ARGs, and store the result in the
15549 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15550 # must be portable across $(()) and expr.
15551 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15552 eval 'as_fn_arith ()
15559 as_val
=`expr "$@" || test $? -eq 1`
15564 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15565 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15571 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15572 as_basename
=basename
15577 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15583 as_me
=`$as_basename -- "$0" ||
15584 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15585 X"$0" : 'X\(//\)$' \| \
15586 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15588 sed '/^.*\/\([^/][^/]*\)\/*$/{
15602 # Avoid depending upon Character Ranges.
15603 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15604 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15605 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15606 as_cr_digits
='0123456789'
15607 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15609 ECHO_C
= ECHO_N
= ECHO_T
=
15610 case `echo -n x` in #(((((
15612 case `echo 'xy\c'` in
15613 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15615 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15622 rm -f conf$$ conf$$.exe conf$$.
file
15623 if test -d conf$$.dir
; then
15624 rm -f conf$$.dir
/conf$$.
file
15627 mkdir conf$$.dir
2>/dev
/null
15629 if (echo >conf$$.
file) 2>/dev
/null
; then
15630 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15632 # ... but there are two gotchas:
15633 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15634 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15635 # In both cases, we have to default to `cp -pR'.
15636 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15638 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15646 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15647 rmdir conf$$.dir
2>/dev
/null
15652 # Create "$as_dir" as a directory, including parents if necessary.
15657 -*) as_dir
=.
/$as_dir;;
15659 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15663 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15664 *) as_qdir
=$as_dir;;
15666 as_dirs
="'$as_qdir' $as_dirs"
15667 as_dir
=`$as_dirname -- "$as_dir" ||
15668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15669 X"$as_dir" : 'X\(//\)[^/]' \| \
15670 X"$as_dir" : 'X\(//\)$' \| \
15671 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15672 $as_echo X"$as_dir" |
15673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15677 /^X\(\/\/\)[^/].*/{
15690 test -d "$as_dir" && break
15692 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15693 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15697 if mkdir
-p .
2>/dev
/null
; then
15698 as_mkdir_p
='mkdir -p "$as_dir"'
15700 test -d .
/-p && rmdir .
/-p
15705 # as_fn_executable_p FILE
15706 # -----------------------
15707 # Test if FILE is an executable regular file.
15708 as_fn_executable_p
()
15710 test -f "$1" && test -x "$1"
15711 } # as_fn_executable_p
15712 as_test_x
='test -x'
15713 as_executable_p
=as_fn_executable_p
15715 # Sed expression to map a string onto a valid CPP name.
15716 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15718 # Sed expression to map a string onto a valid variable name.
15719 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15723 ## ----------------------------------- ##
15724 ## Main body of $CONFIG_STATUS script. ##
15725 ## ----------------------------------- ##
15727 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15730 # Save the log message, to keep $0 and so on meaningful, and to
15731 # report actual input values of CONFIG_FILES etc. instead of their
15732 # values after options handling.
15734 This file was extended by $as_me, which was
15735 generated by GNU Autoconf 2.69. Invocation command line was
15737 CONFIG_FILES = $CONFIG_FILES
15738 CONFIG_HEADERS = $CONFIG_HEADERS
15739 CONFIG_LINKS = $CONFIG_LINKS
15740 CONFIG_COMMANDS = $CONFIG_COMMANDS
15743 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15748 case $ac_config_files in *"
15749 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15752 case $ac_config_headers in *"
15753 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758 # Files that config.status was made for.
15759 config_files="$ac_config_files"
15760 config_headers="$ac_config_headers"
15761 config_commands="$ac_config_commands"
15765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15767 \`$as_me' instantiates files and other configuration actions
15768 from templates according to the current configuration. Unless the files
15769 and actions are specified as TAGs, all are instantiated by default.
15771 Usage: $0 [OPTION]... [TAG]...
15773 -h, --help print this help, then exit
15774 -V, --version print version number and configuration settings, then exit
15775 --config print configuration, then exit
15776 -q, --quiet, --silent
15777 do not print progress messages
15778 -d, --debug don't remove temporary files
15779 --recheck update $as_me by reconfiguring in the same conditions
15780 --file=FILE[:TEMPLATE]
15781 instantiate the configuration file FILE
15782 --header=FILE[:TEMPLATE]
15783 instantiate the configuration header FILE
15785 Configuration files:
15788 Configuration headers:
15791 Configuration commands:
15794 Report bugs to the package provider."
15797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15798 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15801 configured by $0, generated by GNU Autoconf 2.69,
15802 with options \\"\$ac_cs_config\\"
15804 Copyright (C) 2012 Free Software Foundation, Inc.
15805 This config.status script is free software; the Free Software Foundation
15806 gives unlimited permission to copy, distribute and modify it."
15810 test -n "\$AWK" || AWK=awk
15813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15814 # The default lists apply if the user does not specify any file.
15820 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15821 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15825 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15837 # Handling of the options.
15838 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15840 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15841 $as_echo "$ac_cs_version"; exit ;;
15842 --config |
--confi |
--conf |
--con |
--co |
--c )
15843 $as_echo "$ac_cs_config"; exit ;;
15844 --debug |
--debu |
--deb |
--de |
--d |
-d )
15846 --file |
--fil |
--fi |
--f )
15849 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15850 '') as_fn_error $?
"missing file argument" ;;
15852 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15853 ac_need_defaults
=false
;;
15854 --header |
--heade |
--head |
--hea )
15857 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15859 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15860 ac_need_defaults
=false
;;
15862 # Conflict between --help and --header
15863 as_fn_error $?
"ambiguous option: \`$1'
15864 Try \`$0 --help' for more information.";;
15865 --help |
--hel |
-h )
15866 $as_echo "$ac_cs_usage"; exit ;;
15867 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15868 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15871 # This is an error.
15872 -*) as_fn_error $?
"unrecognized option: \`$1'
15873 Try \`$0 --help' for more information." ;;
15875 *) as_fn_append ac_config_targets
" $1"
15876 ac_need_defaults
=false
;;
15882 ac_configure_extra_args
=
15884 if $ac_cs_silent; then
15886 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15891 if \$ac_cs_recheck; then
15892 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15894 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15895 CONFIG_SHELL='$SHELL'
15896 export CONFIG_SHELL
15901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15905 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15906 ## Running $as_me. ##
15912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15917 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
15918 aros_tools_dir=${aros_tools_dir}
15922 aros_host_exe_suffix=${aros_host_exe_suffix}
15923 aros_tools_dir=${aros_tools_dir}
15924 aros_target_cpu=${aros_target_cpu}
15925 aros_target_arch=${aros_target_arch}
15926 aros_target_suffix=${aros_target_suffix}
15927 orig_target_nm=${orig_target_nm}
15928 orig_target_as=${orig_target_as}
15929 orig_target_ar=${orig_target_ar}
15930 orig_target_ranlib=${orig_target_ranlib}
15931 orig_target_objdump=${orig_target_objdump}
15932 orig_target_objcopy=${orig_target_objcopy}
15933 orig_target_strip=${orig_target_strip}
15934 aros_kernel_ld=${aros_kernel_ld}
15938 aros_host_exe_suffix=${aros_host_exe_suffix}
15939 aros_tools_dir=${aros_tools_dir}
15940 aros_target_cpu=${aros_target_cpu}
15941 aros_target_arch=${aros_target_arch}
15942 aros_target_suffix=${aros_target_suffix}
15943 aros_kernel_ld=${aros_kernel_ld}
15947 aros_host_exe_suffix=${aros_host_exe_suffix}
15948 aros_tools_dir=${aros_tools_dir}
15949 aros_target_cpu=${aros_target_cpu}
15950 aros_target_arch=${aros_target_arch}
15951 aros_target_suffix=${aros_target_suffix}
15957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15959 # Handling of arguments.
15960 for ac_config_target
in $ac_config_targets
15962 case $ac_config_target in
15963 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15964 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
15965 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15966 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
15967 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15968 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15969 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15970 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15971 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15972 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
15973 "compiler/include/geninc.cfg") CONFIG_FILES
="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
15974 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15975 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15976 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
15977 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
15978 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
15979 "${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" ;;
15980 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
15981 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15982 "${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" ;;
15983 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15984 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15985 "${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" ;;
15986 "${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" ;;
15987 "${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" ;;
15988 "${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" ;;
15989 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15991 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15996 # If the user did not use the arguments to specify the items to instantiate,
15997 # then the envvar interface is used. Set only those that are not.
15998 # We use the long form for the default assignment because of an extremely
15999 # bizarre bug on SunOS 4.1.3.
16000 if $ac_need_defaults; then
16001 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16002 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16003 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16006 # Have a temporary directory for convenience. Make it in the build tree
16007 # simply because there is no reason against having it here, and in addition,
16008 # creating and moving files from /tmp can sometimes cause problems.
16009 # Hook for its removal unless debugging.
16010 # Note that there is a small window in which the directory will not be cleaned:
16011 # after its creation but before its name has been assigned to `$tmp'.
16015 trap 'exit_status=$?
16016 : "${ac_tmp:=$tmp}"
16017 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16019 trap 'as_fn_exit 1' 1 2 13 15
16021 # Create a (secure) tmp directory for tmp files.
16024 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16028 tmp
=.
/conf$$
-$RANDOM
16029 (umask 077 && mkdir
"$tmp")
16030 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16033 # Set up the scripts for CONFIG_FILES section.
16034 # No need to generate them if there are no CONFIG_FILES.
16035 # This happens for instance with `./config.status config.h'.
16036 if test -n "$CONFIG_FILES"; then
16039 ac_cr
=`echo X | tr X '\015'`
16040 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16041 # But we know of no other shell where ac_cr would be empty at this
16042 # point, so we can use a bashism as a fallback.
16043 if test "x$ac_cr" = x
; then
16044 eval ac_cr
=\$
\'\\r
\'
16046 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16047 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16050 ac_cs_awk_cr
=$ac_cr
16053 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16058 echo "cat >conf$$subs.awk <<_ACEOF" &&
16059 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16061 } >conf$$subs.sh ||
16062 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16063 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16065 for ac_last_try in false false false false false :; do
16066 . ./conf$$subs.sh ||
16067 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16069 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16070 if test $ac_delim_n = $ac_delim_num; then
16072 elif $ac_last_try; then
16073 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16075 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16078 rm -f conf$$subs.sh
16080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16081 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16085 s/^/S["/; s
/!.
*/"]=/
16095 s/\(.\{148\}\)..*/\1/
16097 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16102 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16109 s/\(.\{148\}\)..*/\1/
16111 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16115 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16120 ' <conf$$subs.awk | sed '
16125 ' >>$CONFIG_STATUS || ac_write_fail=1
16126 rm -f conf$$subs.awk
16127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16129 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16130 for (key in S) S_is_set[key] = 1
16136 nfields = split(line, field, "@
")
16138 len = length(field[1])
16139 for (i = 2; i < nfields; i++) {
16141 keylen = length(key)
16142 if (S_is_set[key]) {
16144 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16145 len += length(value) + length(field[++i])
16156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16157 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16158 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16161 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16162 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16165 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16166 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16167 # trailing colons and then remove the whole line if VPATH becomes empty
16168 # (actually we leave an empty line to preserve line numbers).
16169 if test "x
$srcdir" = x.; then
16170 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16189 fi # test -n "$CONFIG_FILES"
16191 # Set up the scripts for CONFIG_HEADERS section.
16192 # No need to generate them if there are no CONFIG_HEADERS.
16193 # This happens for instance with `./config.status Makefile'.
16194 if test -n "$CONFIG_HEADERS"; then
16195 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16199 # Transform confdefs.h into an awk script `defines.awk', embedded as
16200 # here-document in config.status, that substitutes the proper values into
16201 # config.h.in to produce config.h.
16203 # Create a delimiter string that does not exist in confdefs.h, to ease
16204 # handling of long lines.
16206 for ac_last_try in false false :; do
16207 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16208 if test -z "$ac_tt"; then
16210 elif $ac_last_try; then
16211 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16213 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16217 # For the awk script, D is an array of macro values keyed by name,
16218 # likewise P contains macro parameters if any. Preserve backslash
16219 # newline sequences.
16221 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16223 s/.\{148\}/&'"$ac_delim"'/g
16226 s/^[ ]*#[ ]*define[ ][ ]*/ /
16233 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16235 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16239 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16240 D["\
1"]=" \
3\\\\\\n
"\\/p
16242 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16247 s/.\{148\}/&'"$ac_delim"'/g
16252 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16255 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16257 ' <confdefs.h | sed '
16258 s/'"$ac_delim"'/"\\\
16259 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16262 for (key in D) D_is_set[key] = 1
16265 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16267 split(line, arg, " ")
16268 if (arg[1] == "#") {
16272 defundef
= substr
(arg
[1], 2)
16275 split(mac1
, mac2
, "(") #)
16277 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16278 if (D_is_set
[macro
]) {
16279 # Preserve the white space surrounding the "#".
16280 print prefix
"define", macro P
[macro
] D
[macro
]
16283 # Replace #undef with comments. This is necessary, for example,
16284 # in the case of _POSIX_SOURCE, which is predefined and required
16285 # on some systems where configure will not decide to define it.
16286 if (defundef
== "undef") {
16287 print
"/*", prefix defundef
, macro
, "*/"
16295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16296 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16297 fi # test -n "$CONFIG_HEADERS"
16300 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16305 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16307 case $ac_mode$ac_tag in
16309 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16310 :[FH
]-) ac_tag
=-:-;;
16311 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16328 -) ac_f
="$ac_tmp/stdin";;
16329 *) # Look for the file first in the build tree, then in the source tree
16330 # (if the path is not absolute). The absolute path cannot be DOS-style,
16331 # because $ac_f cannot contain `:'.
16335 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16337 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16339 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16340 as_fn_append ac_file_inputs
" '$ac_f'"
16343 # Let's still pretend it is `configure' which instantiates (i.e., don't
16344 # use $as_me), people would be surprised to read:
16345 # /* config.h. Generated by config.status. */
16346 configure_input
='Generated from '`
16347 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16349 if test x
"$ac_file" != x-
; then
16350 configure_input
="$ac_file. $configure_input"
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16352 $as_echo "$as_me: creating $ac_file" >&6;}
16354 # Neutralize special characters interpreted by sed in replacement strings.
16355 case $configure_input in #(
16356 *\
&* |
*\|
* |
*\\* )
16357 ac_sed_conf_input
=`$as_echo "$configure_input" |
16358 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16359 *) ac_sed_conf_input
=$configure_input;;
16363 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16364 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16369 ac_dir
=`$as_dirname -- "$ac_file" ||
16370 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16371 X"$ac_file" : 'X\(//\)[^/]' \| \
16372 X"$ac_file" : 'X\(//\)$' \| \
16373 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16374 $as_echo X"$ac_file" |
16375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16379 /^X\(\/\/\)[^/].*/{
16392 as_dir
="$ac_dir"; as_fn_mkdir_p
16396 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16398 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16399 # A ".." for each directory in $ac_dir_suffix.
16400 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16401 case $ac_top_builddir_sub in
16402 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16403 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16406 ac_abs_top_builddir
=$ac_pwd
16407 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16408 # for backward compatibility:
16409 ac_top_builddir
=$ac_top_build_prefix
16412 .
) # We are building in place.
16414 ac_top_srcdir
=$ac_top_builddir_sub
16415 ac_abs_top_srcdir
=$ac_pwd ;;
16416 [\\/]* | ?
:[\\/]* ) # Absolute name.
16417 ac_srcdir
=$srcdir$ac_dir_suffix;
16418 ac_top_srcdir
=$srcdir
16419 ac_abs_top_srcdir
=$srcdir ;;
16420 *) # Relative name.
16421 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16422 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16423 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16425 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16437 # If the template does not know about datarootdir, expand it.
16438 # FIXME: This hack should be removed a few years after 2.60.
16439 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16450 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16451 *datarootdir
*) ac_datarootdir_seen
=yes;;
16452 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16454 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16457 ac_datarootdir_hack='
16458 s&@datadir@&$datadir&g
16459 s&@docdir@&$docdir&g
16460 s&@infodir@&$infodir&g
16461 s&@localedir@&$localedir&g
16462 s&@mandir@&$mandir&g
16463 s&\\\${datarootdir}&$datarootdir&g' ;;
16467 # Neutralize VPATH when `$srcdir' = `.'.
16468 # Shell code in configure.ac might set extrasub.
16469 # FIXME: do we really want to maintain this feature?
16470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16471 ac_sed_extra="$ac_vpsub
16474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16476 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16477 s|@configure_input@|
$ac_sed_conf_input|
;t t
16478 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16479 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16480 s
&@srcdir@
&$ac_srcdir&;t t
16481 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16482 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16483 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16484 s
&@builddir@
&$ac_builddir&;t t
16485 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16486 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16487 $ac_datarootdir_hack
16489 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16490 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16492 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16493 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16494 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16495 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16497 which seems to be undefined. Please make sure it is defined" >&5
16498 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16499 which seems to be undefined. Please make sure it is defined" >&2;}
16501 rm -f "$ac_tmp/stdin"
16503 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16504 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16512 if test x"$ac_file" != x-; then
16514 $as_echo "/* $configure_input */" \
16515 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16516 } >"$ac_tmp/config.h" \
16517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16518 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16520 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16523 mv "$ac_tmp/config.h" "$ac_file" \
16524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16527 $as_echo "/* $configure_input */" \
16528 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16529 || as_fn_error $? "could not create -" "$LINENO" 5
16533 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16534 $as_echo "$as_me: executing $ac_file commands" >&6;}
16539 case $ac_file$ac_mode in
16540 "genmf-executable-support":C)
16541 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16542 chmod a+x ${aros_tools_dir}/genmf.py
16544 "binutils-support":C)
16545 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16547 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16549 chmod a+x ${prefix2}-ld
16551 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16552 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16553 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16554 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16555 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16556 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16557 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16559 "elf-compiler-support":C)
16560 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16562 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16564 chmod a+x ${prefix2}-gcc
16566 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16568 "host-compiler-wrapper-support":C)
16569 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16571 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16573 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16582 ac_clean_files=$ac_clean_files_save
16584 test $ac_write_fail = 0 ||
16585 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16588 # configure is writing to config.log, and then calls config.status.
16589 # config.status does its own redirection, appending to config.log.
16590 # Unfortunately, on DOS this fails, as config.log is still kept open
16591 # by configure, so config.status won't be able to
write to it
; its
16592 # output is simply discarded. So we exec the FD to /dev/null,
16593 # effectively closing config.log, so it can be properly (re)opened and
16594 # appended to by config.status. When coming back to configure, we
16595 # need to make the FD available again.
16596 if test "$no_create" != yes; then
16598 ac_config_status_args
=
16599 test "$silent" = yes &&
16600 ac_config_status_args
="$ac_config_status_args --quiet"
16602 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16604 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16605 # would make configure fail if this is the last instruction.
16606 $ac_cs_success || as_fn_exit
1
16608 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16610 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16615 #XXX compatability...
16616 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
16618 if test -n "$aros_shared_cflags" ; then
16619 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16620 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg