2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars
='LTLIBOBJS
627 target_binutils_version
629 ignore_undefined_symbols
643 gcc_default_float_abi
651 aros_nesting_supervisor
657 aros_host_x11_ldflags
668 crosstools_cxx_target
671 aros_optimization_cflags
672 aros_target_strip_flags
679 aros_kernel_objcflags
702 aros_target_cc_includes
718 aros_target_bootloader
739 aros_amigaos_compliance
746 aros_target_toolchain
759 kernel_cflags_iquote_end
761 host_cflags_iquote_end
764 aros_target_nostdlib_ldflags
765 aros_target_detach_ldflags
766 aros_target_nix_ldflags
767 aros_target_nostartup_ldflags
768 aros_target_nostdinc_cflags
807 arosconfig_use_libpngconfig
890 program_transform_name
903 enable_option_checking
912 with_kernel_gcc_version
915 enable_target_variant
922 enable_amigaos_compliance
923 with_kernel_toolchain_prefix
924 with_elf_toolchain_prefix
927 with_aros_toolchain_install
928 with_binutils_version
942 enable_palm_debug_hack
944 enable_nesting_supervisor
956 ac_precious_vars
='build_alias
972 # Initialize some variables set by options.
974 ac_init_version
=false
975 ac_unrecognized_opts
=
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
986 program_transform_name
=s
,x
,x
,
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir
='${exec_prefix}/bin'
1001 sbindir
='${exec_prefix}/sbin'
1002 libexecdir
='${exec_prefix}/libexec'
1003 datarootdir
='${prefix}/share'
1004 datadir
='${datarootdir}'
1005 sysconfdir
='${prefix}/etc'
1006 sharedstatedir
='${prefix}/com'
1007 localstatedir
='${prefix}/var'
1008 includedir
='${prefix}/include'
1009 oldincludedir
='/usr/include'
1010 docdir
='${datarootdir}/doc/${PACKAGE}'
1011 infodir
='${datarootdir}/info'
1016 libdir
='${exec_prefix}/lib'
1017 localedir
='${datarootdir}/locale'
1018 mandir
='${datarootdir}/man'
1024 # If the previous option needs an argument, assign it.
1025 if test -n "$ac_prev"; then
1026 eval $ac_prev=\
$ac_option
1032 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1039 case $ac_dashdash$ac_option in
1043 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1045 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1046 bindir
=$ac_optarg ;;
1048 -build |
--build |
--buil |
--bui |
--bu)
1049 ac_prev
=build_alias
;;
1050 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1051 build_alias
=$ac_optarg ;;
1053 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1054 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1055 ac_prev
=cache_file
;;
1056 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1057 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1058 cache_file
=$ac_optarg ;;
1060 --config-cache |
-C)
1061 cache_file
=config.cache
;;
1063 -datadir |
--datadir |
--datadi |
--datad)
1065 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1066 datadir
=$ac_optarg ;;
1068 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1069 |
--dataroo |
--dataro |
--datar)
1070 ac_prev
=datarootdir
;;
1071 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1072 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1073 datarootdir
=$ac_optarg ;;
1075 -disable-* |
--disable-*)
1076 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1079 as_fn_error $?
"invalid feature name: $ac_useropt"
1080 ac_useropt_orig
=$ac_useropt
1081 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_
$ac_useropt"
1086 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087 ac_unrecognized_sep
=', ';;
1089 eval enable_
$ac_useropt=no
;;
1091 -docdir |
--docdir |
--docdi |
--doc |
--do)
1093 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1094 docdir
=$ac_optarg ;;
1096 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1098 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1099 dvidir
=$ac_optarg ;;
1101 -enable-* |
--enable-*)
1102 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1105 as_fn_error $?
"invalid feature name: $ac_useropt"
1106 ac_useropt_orig
=$ac_useropt
1107 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "enable_
$ac_useropt"
1112 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1113 ac_unrecognized_sep
=', ';;
1115 eval enable_
$ac_useropt=\
$ac_optarg ;;
1117 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1118 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1119 |
--exec |
--exe |
--ex)
1120 ac_prev
=exec_prefix
;;
1121 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1122 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1123 |
--exec=* |
--exe=* |
--ex=*)
1124 exec_prefix
=$ac_optarg ;;
1126 -gas |
--gas |
--ga |
--g)
1127 # Obsolete; use --with-gas.
1130 -help |
--help |
--hel |
--he |
-h)
1131 ac_init_help
=long
;;
1132 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1133 ac_init_help
=recursive
;;
1134 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1135 ac_init_help
=short
;;
1137 -host |
--host |
--hos |
--ho)
1138 ac_prev
=host_alias
;;
1139 -host=* |
--host=* |
--hos=* |
--ho=*)
1140 host_alias
=$ac_optarg ;;
1142 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1144 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1146 htmldir
=$ac_optarg ;;
1148 -includedir |
--includedir |
--includedi |
--included |
--include \
1149 |
--includ |
--inclu |
--incl |
--inc)
1150 ac_prev
=includedir
;;
1151 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1152 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1153 includedir
=$ac_optarg ;;
1155 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1157 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1158 infodir
=$ac_optarg ;;
1160 -libdir |
--libdir |
--libdi |
--libd)
1162 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1163 libdir
=$ac_optarg ;;
1165 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1166 |
--libexe |
--libex |
--libe)
1167 ac_prev
=libexecdir
;;
1168 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1169 |
--libexe=* |
--libex=* |
--libe=*)
1170 libexecdir
=$ac_optarg ;;
1172 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1173 ac_prev
=localedir
;;
1174 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1175 localedir
=$ac_optarg ;;
1177 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1178 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1179 ac_prev
=localstatedir
;;
1180 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1181 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1182 localstatedir
=$ac_optarg ;;
1184 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1186 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1187 mandir
=$ac_optarg ;;
1189 -nfp |
--nfp |
--nf)
1190 # Obsolete; use --without-fp.
1193 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1194 |
--no-cr |
--no-c |
-n)
1197 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1198 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1201 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1202 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1203 |
--oldin |
--oldi |
--old |
--ol |
--o)
1204 ac_prev
=oldincludedir
;;
1205 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1206 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1207 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1208 oldincludedir
=$ac_optarg ;;
1210 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1212 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1213 prefix
=$ac_optarg ;;
1215 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1216 |
--program-pre |
--program-pr |
--program-p)
1217 ac_prev
=program_prefix
;;
1218 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1219 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1220 program_prefix
=$ac_optarg ;;
1222 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1223 |
--program-suf |
--program-su |
--program-s)
1224 ac_prev
=program_suffix
;;
1225 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1226 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1227 program_suffix
=$ac_optarg ;;
1229 -program-transform-name |
--program-transform-name \
1230 |
--program-transform-nam |
--program-transform-na \
1231 |
--program-transform-n |
--program-transform- \
1232 |
--program-transform |
--program-transfor \
1233 |
--program-transfo |
--program-transf \
1234 |
--program-trans |
--program-tran \
1235 |
--progr-tra |
--program-tr |
--program-t)
1236 ac_prev
=program_transform_name
;;
1237 -program-transform-name=* |
--program-transform-name=* \
1238 |
--program-transform-nam=* |
--program-transform-na=* \
1239 |
--program-transform-n=* |
--program-transform-=* \
1240 |
--program-transform=* |
--program-transfor=* \
1241 |
--program-transfo=* |
--program-transf=* \
1242 |
--program-trans=* |
--program-tran=* \
1243 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1244 program_transform_name
=$ac_optarg ;;
1246 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1248 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1249 pdfdir
=$ac_optarg ;;
1251 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1253 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1256 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1257 |
-silent |
--silent |
--silen |
--sile |
--sil)
1260 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1262 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1264 sbindir
=$ac_optarg ;;
1266 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1267 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1268 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1270 ac_prev
=sharedstatedir
;;
1271 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1272 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1273 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1275 sharedstatedir
=$ac_optarg ;;
1277 -site |
--site |
--sit)
1279 -site=* |
--site=* |
--sit=*)
1282 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1284 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1285 srcdir
=$ac_optarg ;;
1287 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1288 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1289 ac_prev
=sysconfdir
;;
1290 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1291 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1292 sysconfdir
=$ac_optarg ;;
1294 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1295 ac_prev
=target_alias
;;
1296 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1297 target_alias
=$ac_optarg ;;
1299 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1302 -version |
--version |
--versio |
--versi |
--vers |
-V)
1303 ac_init_version
=: ;;
1306 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1309 as_fn_error $?
"invalid package name: $ac_useropt"
1310 ac_useropt_orig
=$ac_useropt
1311 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1316 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317 ac_unrecognized_sep
=', ';;
1319 eval with_
$ac_useropt=\
$ac_optarg ;;
1321 -without-* |
--without-*)
1322 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1325 as_fn_error $?
"invalid package name: $ac_useropt"
1326 ac_useropt_orig
=$ac_useropt
1327 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1332 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333 ac_unrecognized_sep
=', ';;
1335 eval with_
$ac_useropt=no
;;
1338 # Obsolete; use --with-x.
1341 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1342 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1343 ac_prev
=x_includes
;;
1344 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1345 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1346 x_includes
=$ac_optarg ;;
1348 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1349 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1350 ac_prev
=x_libraries
;;
1351 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1352 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1353 x_libraries
=$ac_optarg ;;
1355 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1356 Try \`$0 --help' for more information"
1360 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1361 # Reject names that are not valid shell variable names.
1362 case $ac_envvar in #(
1363 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1364 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1366 eval $ac_envvar=\
$ac_optarg
1367 export $ac_envvar ;;
1370 # FIXME: should be removed in autoconf 3.0.
1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1380 if test -n "$ac_prev"; then
1381 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1382 as_fn_error $?
"missing argument to $ac_option"
1385 if test -n "$ac_unrecognized_opts"; then
1386 case $enable_option_checking in
1388 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1393 # Check all directory arguments for consistency.
1394 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395 datadir sysconfdir sharedstatedir localstatedir includedir \
1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397 libdir localedir mandir
1399 eval ac_val
=\$
$ac_var
1400 # Remove trailing slashes.
1403 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404 eval $ac_var=\
$ac_val;;
1406 # Be sure to have absolute directory names.
1408 [\\/$
]* | ?
:[\\/]* ) continue;;
1409 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1411 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1419 target
=$target_alias
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x
; then
1423 if test "x$build_alias" = x
; then
1424 cross_compiling
=maybe
1425 elif test "x$build_alias" != "x$host_alias"; then
1431 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1433 test "$silent" = yes && exec 6>/dev
/null
1436 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di
=`ls -di .` &&
1438 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error $?
"working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error $?
"pwd does not report name of working directory"
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted
=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir
=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1476 ac_srcdir_defaulted
=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1480 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1482 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1494 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1496 for ac_var
in $ac_precious_vars; do
1497 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1499 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1504 # Report the --help message.
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1510 \`configure' configures this package to adapt to many kinds of systems.
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1517 Defaults for the options are specified in brackets.
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking ...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1541 For better control, use the options below.
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1568 --x-includes=DIR X include files are
in DIR
1569 --x-libraries=DIR X library files are
in DIR
1572 --build=BUILD configure
for building on BUILD
[guessed
]
1573 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1577 if test -n "$ac_init_help"; then
1582 --disable-option-checking ignore unrecognized
--enable/--with options
1583 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1584 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1585 --disable-libpng-config disable libpng-config
test and configuration
1586 --enable-build-type=TYPE
1587 Select the build
type. Available types are
:
1588 personal
, nightly
, snapshot
, milestone
, release. Do
1589 NOT use this option unless you know what you are
1590 doing
! (default
=personal
)
1591 --enable-debug=list Enable different types of debug. Commas or
1592 whitespaces can be used to separate the items
in the
1593 list. Available types of debug are
: all
, none
,
1594 messages
, stack
, mungwall
, modules
, symbols. If no
1595 list is provided
then "all" is assumed.
1597 --enable-distcc Use distcc as a front end to the compiler
1599 --enable-ccache Use ccache as a front end to the compiler
1601 --enable-target-variant=NAME
1602 Enable a specific target variant
(default
=none
)
1603 --enable-amigaos-compliance=VERSION
1604 Enforce userspace AmigaOS compliance to a specific
1605 KickStart version
(default
=none
).
1606 --disable-crosstools Do not build cross-compiler toolchain
1607 --enable-objc Enable Objectve-C support
(default
=no
)
1608 --enable-java Enable Java support
(default
=no
)
1609 --enable-includes=dir Alternative system include directory
1610 --enable-palm-debug-hack
1611 Enable palm debug output hack
in palm native
1613 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1614 --enable-nesting-supervisor
1615 Enable nesting supervisor support
in unix
1617 --disable-mmu Disable MMU support
(default
=enabled
)
1618 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1619 --enable-x11-shm use X11 shared memory
(default
=auto
)
1620 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1621 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1622 --disable-sdltest Do not try to compile and run a
test SDL program
1623 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1626 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1627 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1628 --with-c-compiler=VERSION
1629 Use specified c compiler
for building AROS
1630 --with-cxx-compiler=VERSION
1631 Use specified c
++ compiler building AROS
1632 --with-toolchain=family Which toolchain family to crosscompile with
1634 --with-kernel-gcc-version=VERSION
1635 Use gcc-VERSION
for building bootstrap
1636 --with-optimization=FLAGS
1637 Use optimization flags FLAGS
(default
=-O2).
1638 --with-paranoia=FLAGS compiler warning flags to
enable for paranoia
1639 --with-xcode=PATH Specify XCode path
for iOS targets
1640 (default
=/Developer
).
1641 --with-sdk-version=VERSION
1642 Use iOS SDK version VERSION
(default
=4.1).
1643 --with-sdk=PATH Specify Android SDK path
1644 (default
=$default_android_sdk).
1645 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1646 --with-sdk-version=LEVEL
1647 Use Android SDK
for API LEVEL
(default
=12).
1648 --with-ndk-version=LEVEL
1649 Use Android NDK
for API LEVEL
(default
=9).
1650 --with-apk-version=(release|debug
)
1651 Which version of AROSBootstrap.apk to compile.
1652 Release version needs key
for signing
, debug version
1653 will only run
in emulator.
(default
=release
)
1654 --with-kernel-toolchain-prefix=...
1655 Specify crosscompile toolchain prefix
for kernel
1657 --with-elf-toolchain-prefix=...
1658 Specify crosscompile toolchain prefix to wrap
for
1660 --with-aros-toolchain=PREFIX
1661 Specify prebuilt AROS toolchain. Use
yes for default
1663 --with-aros-toolchain-install=DIR
1664 Where to
install or search
for cross tools binaries
1665 --with-binutils-version=VERSION
1666 Use binutils-VERSION
for building AROS
1667 --with-gcc-version=VERSION
1668 Compile gcc-VERSION
for AROS
1669 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1670 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1671 --with-float=<spec
> Specify floating point ABI
1672 (default
=$gcc_default_float_abi).
1673 --with-portssources=DIR Where to download sourcecode
for external ports
1674 --with-bootloader=NAME Use a specific bootloader
1675 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1676 --with-theme=NAME Use a specific GUI Theme
1677 --with-resolution=XRESxYRESxDEPTH
1678 Default resolution of the initial WorkbenchScreen
1679 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1680 --with-x use the X Window System
1681 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1682 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1684 Some influential environment variables
:
1685 CXX C
++ compiler
command
1686 CXXFLAGS C
++ compiler flags
1687 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1688 nonstandard directory
<lib dir
>
1689 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1690 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1691 you have headers
in a nonstandard directory
<include dir
>
1692 CC C compiler
command
1693 CFLAGS C compiler flags
1695 PYTHON the Python interpreter
1696 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1698 Use these variables to override the choices made by
`configure' or to help
1699 it to find libraries and programs with nonstandard names/locations.
1701 Report bugs to the package provider.
1706 if test "$ac_init_help" = "recursive"; then
1707 # If there are subdirs, report their specific --help.
1708 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1709 test -d "$ac_dir" ||
1710 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1718 # A ".." for each directory in $ac_dir_suffix.
1719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1720 case $ac_top_builddir_sub in
1721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1725 ac_abs_top_builddir=$ac_pwd
1726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1727 # for backward compatibility:
1728 ac_top_builddir=$ac_top_build_prefix
1731 .) # We are building in place.
1733 ac_top_srcdir=$ac_top_builddir_sub
1734 ac_abs_top_srcdir=$ac_pwd ;;
1735 [\\/]* | ?:[\\/]* ) # Absolute name.
1736 ac_srcdir=$srcdir$ac_dir_suffix;
1737 ac_top_srcdir=$srcdir
1738 ac_abs_top_srcdir=$srcdir ;;
1740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1741 ac_top_srcdir=$ac_top_build_prefix$srcdir
1742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746 cd "$ac_dir" || { ac_status=$?; continue; }
1747 # Check for guested configure.
1748 if test -f "$ac_srcdir/configure.gnu"; then
1750 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1751 elif test -f "$ac_srcdir/configure"; then
1753 $SHELL "$ac_srcdir/configure" --help=recursive
1755 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757 cd "$ac_pwd" || { ac_status=$?; break; }
1761 test -n "$ac_init_help" && exit $ac_status
1762 if $ac_init_version; then
1765 generated by GNU Autoconf 2.69
1767 Copyright (C) 2012 Free Software Foundation, Inc.
1768 This configure script is free software; the Free Software Foundation
1769 gives unlimited permission to copy, distribute and modify it.
1774 ## ------------------------ ##
1775 ## Autoconf initialization. ##
1776 ## ------------------------ ##
1778 # ac_fn_cxx_try_compile LINENO
1779 # ----------------------------
1780 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_cxx_try_compile ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext
1785 if { { ac_try="$ac_compile"
1787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1788 *) ac_try_echo
=$ac_try;;
1790 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_compile") 2>conftest.err
1794 if test -s conftest.err
; then
1795 grep -v '^ *+' conftest.err
>conftest.er1
1796 cat conftest.er1
>&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_cxx_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest.
$ac_objext; then :
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.
$ac_ext >&5
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status
$ac_retval
1814 } # ac_fn_cxx_try_compile
1816 # ac_fn_c_try_compile LINENO
1817 # --------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_compile
()
1821 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1822 rm -f conftest.
$ac_objext
1823 if { { ac_try
="$ac_compile"
1825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_compile") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest.$ac_objext; then :
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1852 } # ac_fn_c_try_compile
1854 # ac_fn_c_try_cpp LINENO
1855 # ----------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_cpp conftest.$ac_ext"
1862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1863 *) ac_try_echo
=$ac_try;;
1865 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1869 if test -s conftest.err
; then
1870 grep -v '^ *+' conftest.err
>conftest.er1
1871 cat conftest.er1
>&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } > conftest.i
&& {
1876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.
$ac_ext >&5
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status
$ac_retval
1891 # ac_fn_c_try_link LINENO
1892 # -----------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1897 rm -f conftest.
$ac_objext conftest
$ac_exeext
1898 if { { ac_try
="$ac_link"
1900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1935 } # ac_fn_c_try_link
1937 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1940 # the include files in INCLUDES and setting the cache variable VAR
1942 ac_fn_c_check_header_mongrel ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if eval \${$3+:} false; then :
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1955 # Is the header compilable?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1957 $as_echo_n "checking $2 usability... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 ac_header_compiler=yes
1966 ac_header_compiler=no
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1970 $as_echo "$ac_header_compiler" >&6; }
1972 # Is the header present?
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1974 $as_echo_n "checking $2 presence... " >&6; }
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1979 if ac_fn_c_try_cpp "$LINENO"; then :
1980 ac_header_preproc=yes
1982 ac_header_preproc=no
1984 rm -f conftest.err conftest.i conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1986 $as_echo "$ac_header_preproc" >&6; }
1988 # So? What about this header?
1989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1992 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1998 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2000 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2002 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2004 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2014 eval "$3=\$ac_header_compiler"
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 } # ac_fn_c_check_header_mongrel
2024 # ac_fn_c_try_run LINENO
2025 # ----------------------
2026 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2027 # that executables *can* be run.
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_link"
2033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2034 *) ac_try_echo
=$ac_try;;
2036 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_link") 2>&5
2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2042 { { case "(($ac_try" in
2043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_try") 2>&5
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; }; }; then :
2054 $as_echo "$as_me: program exited with status $ac_status" >&5
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2058 ac_retval=$ac_status
2060 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 as_fn_set_status $ac_retval
2066 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2067 # -------------------------------------------------------
2068 # Tests whether HEADER exists and can be compiled using the include files in
2069 # INCLUDES, setting the cache variable VAR accordingly.
2070 ac_fn_c_check_header_compile ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if eval \${$3+:} false; then :
2076 $as_echo_n "(cached) " >&6
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2083 if ac_fn_c_try_compile "$LINENO"; then :
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 } # ac_fn_c_check_header_compile
2097 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2098 # ----------------------------------------------------
2099 # Tries to find if the field MEMBER exists in type AGGR, after including
2100 # INCLUDES, setting cache variable VAR accordingly.
2101 ac_fn_c_check_member ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2105 $as_echo_n "checking for $2.$3... " >&6; }
2106 if eval \${$4+:} false; then :
2107 $as_echo_n "(cached) " >&6
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2122 if ac_fn_c_try_compile "$LINENO"; then :
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2132 if (sizeof ac_aggr.$3)
2138 if ac_fn_c_try_compile "$LINENO"; then :
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 } # ac_fn_c_check_member
2154 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2155 # ---------------------------------------------
2156 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2158 ac_fn_c_check_decl ()
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2162 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2164 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2165 if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 #ifndef $as_decl_name
2176 (void) $as_decl_use;
2178 (void) $as_decl_name;
2186 if ac_fn_c_try_compile "$LINENO"; then :
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 } # ac_fn_c_check_decl
2200 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2201 # -------------------------------------------
2202 # Tests whether TYPE exists after having included INCLUDES, setting cache
2203 # variable VAR accordingly.
2204 ac_fn_c_check_type ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208 $as_echo_n "checking for $2... " >&6; }
2209 if eval \${$3+:} false; then :
2210 $as_echo_n "(cached) " >&6
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2238 if ac_fn_c_try_compile "$LINENO"; then :
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249 $as_echo "$ac_res" >&6; }
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252 } # ac_fn_c_check_type
2254 # ac_fn_c_check_func LINENO FUNC VAR
2255 # ----------------------------------
2256 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2257 ac_fn_c_check_func ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if eval \${$3+:} false; then :
2263 $as_echo_n "(cached) " >&6
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2267 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2269 #define $2 innocuous_$2
2271 /* System header to define __stub macros and hopefully few prototypes,
2272 which can conflict with char $2 (); below.
2273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2274 <limits.h> exists even on freestanding compilers. */
2277 # include <limits.h>
2279 # include <assert.h>
2284 /* Override any GCC internal prototype to avoid an error.
2285 Use char because int might match the return type of a GCC
2286 builtin and then its argument prototype would still apply. */
2291 /* The GNU C library defines this for functions which it implements
2292 to always fail with ENOSYS. Some functions are actually named
2293 something starting with __ and the normal name is an alias. */
2294 #if defined __stub_$2 || defined __stub___$2
2306 if ac_fn_c_try_link "$LINENO"; then :
2311 rm -f core conftest.err conftest.$ac_objext \
2312 conftest$ac_exeext conftest.$ac_ext
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316 $as_echo "$ac_res" >&6; }
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 } # ac_fn_c_check_func
2320 cat >config.log <<_ACEOF
2321 This file contains any messages produced by compilers while
2322 running configure, to aid debugging if configure makes a mistake.
2324 It was created by $as_me, which was
2325 generated by GNU Autoconf 2.69. Invocation command line was
2337 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2338 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2339 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2340 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2341 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2343 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2344 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2346 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2347 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2348 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2349 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2350 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2351 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2352 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 test -z "$as_dir" && as_dir=.
2361 $as_echo "PATH: $as_dir"
2377 # Keep a trace of the command line.
2378 # Strip out --no-create and --no-recursion so they do not pile up.
2379 # Strip out --silent because we don't want to record it for future runs.
2380 # Also quote any args containing shell meta-characters.
2381 # Make two passes to allow for proper duplicate-argument suppression.
2385 ac_must_keep_next=false
2391 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2393 | -silent | --silent | --silen | --sile | --sil)
2396 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2399 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2401 as_fn_append ac_configure_args1 " '$ac_arg'"
2402 if test $ac_must_keep_next = true; then
2403 ac_must_keep_next=false # Got value, back to normal.
2406 *=* | --config-cache | -C | -disable-* | --disable-* \
2407 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2408 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2409 | -with-* | --with-* | -without-* | --without-* | --x)
2410 case "$ac_configure_args0 " in
2411 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2414 -* ) ac_must_keep_next=true ;;
2417 as_fn_append ac_configure_args " '$ac_arg'"
2422 { ac_configure_args0=; unset ac_configure_args0;}
2423 { ac_configure_args1=; unset ac_configure_args1;}
2425 # When interrupted or exit'd, cleanup temporary files, and complete
2426 # config.log. We remove comments because anyway the quotes in there
2427 # would cause problems or look ugly.
2428 # WARNING: Use '\'' to represent an apostrophe within the trap.
2429 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2430 trap 'exit_status=$?
2431 # Save into config.log some information that might help in debugging.
2435 $as_echo "## ---------------- ##
2436 ## Cache variables. ##
2437 ## ---------------- ##"
2439 # The following way of writing the cache mishandles newlines in values,
2441 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2442 eval ac_val=\$$ac_var
2446 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2447 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2450 _ | IFS | as_nl) ;; #(
2451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2452 *) { eval $ac_var=; unset $ac_var;} ;;
2457 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2458 *${as_nl}ac_space=\ *)
2460 "s/'\''/'\''\\\\'\'''\''/g;
2461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2471 $as_echo "## ----------------- ##
2472 ## Output variables. ##
2473 ## ----------------- ##"
2475 for ac_var in $ac_subst_vars
2477 eval ac_val=\$$ac_var
2479 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2481 $as_echo "$ac_var='\''$ac_val'\''"
2485 if test -n "$ac_subst_files"; then
2486 $as_echo "## ------------------- ##
2487 ## File substitutions. ##
2488 ## ------------------- ##"
2490 for ac_var in $ac_subst_files
2492 eval ac_val=\$$ac_var
2494 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496 $as_echo "$ac_var='\''$ac_val'\''"
2501 if test -s confdefs.h; then
2502 $as_echo "## ----------- ##
2509 test "$ac_signal" != 0 &&
2510 $as_echo "$as_me: caught signal $ac_signal"
2511 $as_echo "$as_me: exit $exit_status"
2513 rm -f core *.core core.conftest.* &&
2514 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2517 for ac_signal in 1 2 13 15; do
2518 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2523 rm -f -r conftest* confdefs.h
2525 $as_echo "/* confdefs.h */" > confdefs.h
2527 # Predefined preprocessor variables.
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_NAME "$PACKAGE_NAME"
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_STRING "$PACKAGE_STRING"
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_URL "$PACKAGE_URL"
2554 # Let the site file select an alternate cache file if it wants to.
2555 # Prefer an explicitly selected file to automatically selected ones.
2558 if test -n "$CONFIG_SITE"; then
2559 # We do not want a PATH search for config.site.
2560 case $CONFIG_SITE in #((
2561 -*) ac_site_file1=./$CONFIG_SITE;;
2562 */*) ac_site_file1=$CONFIG_SITE;;
2563 *) ac_site_file1=./$CONFIG_SITE;;
2565 elif test "x$prefix" != xNONE; then
2566 ac_site_file1=$prefix/share/config.site
2567 ac_site_file2=$prefix/etc/config.site
2569 ac_site_file1=$ac_default_prefix/share/config.site
2570 ac_site_file2=$ac_default_prefix/etc/config.site
2572 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2574 test "x$ac_site_file" = xNONE && continue
2575 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2577 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2578 sed 's/^/| /' "$ac_site_file" >&5
2580 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 as_fn_error $? "failed to load site
script $ac_site_file
2583 See \
`config.log' for more details" "$LINENO" 5; }
2587 if test -r "$cache_file"; then
2588 # Some versions of bash will fail to source /dev/null (special files
2589 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2590 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2592 $as_echo "$as_me: loading cache $cache_file" >&6;}
2594 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2595 *) . "./$cache_file";;
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2600 $as_echo "$as_me: creating cache $cache_file" >&6;}
2604 as_fn_append ac_header_list " stdlib.h"
2605 as_fn_append ac_header_list " unistd.h"
2606 as_fn_append ac_header_list " sys/param.h"
2607 # Check that the precious variables saved in the cache have kept the same
2609 ac_cache_corrupted=false
2610 for ac_var in $ac_precious_vars; do
2611 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612 eval ac_new_set=\$ac_env_${ac_var}_set
2613 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614 eval ac_new_val=\$ac_env_${ac_var}_value
2615 case $ac_old_set,$ac_new_set in
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2618 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2622 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2626 if test "x$ac_old_val" != "x$ac_new_val"; then
2627 # differences in whitespace do not lead to failure.
2628 ac_old_val_w=`echo x
$ac_old_val`
2629 ac_new_val_w=`echo x
$ac_new_val`
2630 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2633 ac_cache_corrupted=:
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2636 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637 eval $ac_var=\$ac_old_val
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2640 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2642 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2645 # Pass precious variables to config.status.
2646 if test "$ac_new_set" = set; then
2648 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2649 *) ac_arg=$ac_var=$ac_new_val ;;
2651 case " $ac_configure_args " in
2652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2653 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2657 if $ac_cache_corrupted; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2664 ## -------------------- ##
2665 ## Main body of script. ##
2666 ## -------------------- ##
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2678 if test -f "$ac_dir/install-sh"; then
2680 ac_install_sh="$ac_aux_dir/install-sh -c"
2682 elif test -f "$ac_dir/install.sh"; then
2684 ac_install_sh="$ac_aux_dir/install.sh -c"
2686 elif test -f "$ac_dir/shtool"; then
2688 ac_install_sh="$ac_aux_dir/shtool install -c"
2692 if test -z "$ac_aux_dir"; then
2693 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2696 # These three variables are undocumented and unsupported,
2697 # and are intended to be withdrawn in a future Autoconf release.
2698 # They can cause serious problems if a builder's source tree is in a directory
2699 # whose full name contains unusual characters.
2700 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2701 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2702 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2706 # Check what host we are running on.
2707 # If a target is not suggested, we use this one.
2708 # Note that what we call a target, Autoconf calls a host.
2709 # Make sure we can run config.sub.
2710 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2711 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2714 $as_echo_n "checking build system type... " >&6; }
2715 if ${ac_cv_build+:} false; then :
2716 $as_echo_n "(cached) " >&6
2718 ac_build_alias=$build_alias
2719 test "x$ac_build_alias" = x &&
2720 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2721 test "x$ac_build_alias" = x &&
2722 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2723 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2724 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2728 $as_echo "$ac_cv_build" >&6; }
2729 case $ac_cv_build in
2731 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2734 ac_save_IFS=$IFS; IFS='-'
2740 # Remember, the first character of IFS is used to create $*,
2741 # except with old shells:
2744 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2748 $as_echo_n "checking host system type... " >&6; }
2749 if ${ac_cv_host+:} false; then :
2750 $as_echo_n "(cached) " >&6
2752 if test "x$host_alias" = x; then
2753 ac_cv_host=$ac_cv_build
2755 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2761 $as_echo "$ac_cv_host" >&6; }
2764 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2767 ac_save_IFS=$IFS; IFS='-'
2773 # Remember, the first character of IFS is used to create $*,
2774 # except with old shells:
2777 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2781 # Default versions for the gnu tools we build
2782 default_gcc_version="4.6.4"
2783 default_binutils_version="2.23.2"
2785 # The AROS target is slightly different to the normal GNU style
2786 # format. We don't have the middle part, and we reverse the order
2787 # of the $(CPU) and $(OS) bits.
2789 # Don't strip the version of the target yet, it might be
2790 # useful on some systems.
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2793 $as_echo_n "checking for AROS style target... " >&6; }
2795 if test "$target" = "NONE" ; then
2796 target=$host_os-$host_cpu
2798 if test "$target" = "" ; then
2799 target=$host_os-$host_cpu
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2803 $as_echo "$target" >&6; }
2805 if test "$host_os" = "mingw32" ; then
2809 # Don't know where else to put this...
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2811 $as_echo_n "checking building AROS in... " >&6; }
2812 AROS_BUILDDIR=`${PWDCMD-pwd}`
2813 AROS_BUILDDIR_UNIX=${PWD}
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2815 $as_echo "$AROS_BUILDDIR" >&6; }
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2818 $as_echo_n "checking AROS source in... " >&6; }
2819 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2822 $as_echo "$SRCDIR" >&6; }
2824 # Parse the target field into something useful.
2826 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2827 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2830 # Some debug output, to be removed again.
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2832 $as_echo_n "checking for target system (debug output)... " >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2834 $as_echo "$target_os" >&6; }
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2836 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2838 $as_echo "$target_cpu" >&6; }
2840 aros_nominal_width=800
2841 aros_nominal_height=600
2842 aros_nominal_depth=4
2845 default_c_compilers="gcc clang cc"
2847 # Check whether --with-c-compiler was given.
2848 if test "${with_c_compiler+set}" = set; then :
2849 withval=$with_c_compiler; use_c_compiler="$withval"
2854 if test "$use_c_compiler" = ""; then
2855 host_c_compilers="$default_c_compilers"
2857 host_c_compilers="$use_c_compiler"
2860 default_cxx_compilers="g++ clang++ c++"
2862 # Check whether --with-cxx-compiler was given.
2863 if test "${with_cxx_compiler+set}" = set; then :
2864 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2869 if test "$use_cxx_compiler" = ""; then
2870 host_cxx_compilers="$default_cxx_compilers"
2872 host_cxx_compilers="$use_cxx_compiler"
2876 # The first step is to find the host binaries.
2877 # Check for a compiler.
2878 # Due to a bug in autoconf check for c++ compiler first.
2879 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2881 ac_cpp='$CXXCPP $CPPFLAGS'
2882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2885 if test -z "$CXX"; then
2886 if test -n "$CCC"; then
2889 if test -n "$ac_tool_prefix"; then
2890 for ac_prog in ${host_cxx_compilers}
2892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CXX+:} false; then :
2897 $as_echo_n "(cached) " >&6
2899 if test -n "$CXX"; then
2900 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 if test -n "$CXX"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2922 $as_echo "$CXX" >&6; }
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2929 test -n "$CXX" && break
2932 if test -z "$CXX"; then
2934 for ac_prog in ${host_cxx_compilers}
2936 # Extract the first word of "$ac_prog", so it can be a program name with args.
2937 set dummy $ac_prog; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2941 $as_echo_n "(cached) " >&6
2943 if test -n "$ac_ct_CXX"; then
2944 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_ac_ct_CXX="$ac_prog"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2964 if test -n "$ac_ct_CXX"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2966 $as_echo "$ac_ct_CXX" >&6; }
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2973 test -n "$ac_ct_CXX" && break
2976 if test "x$ac_ct_CXX" = x; then
2979 case $cross_compiling:$ac_tool_warned in
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2991 # Provide some information about the compiler.
2992 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2995 for ac_option in --version -v -V -qversion; do
2996 { { ac_try="$ac_compiler $ac_option >&5"
2998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2999 *) ac_try_echo
=$ac_try;;
3001 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3002 $as_echo "$ac_try_echo"; } >&5
3003 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3005 if test -s conftest.err
; then
3007 ... rest of stderr output deleted ...
3008 10q' conftest.err
>conftest.er1
3009 cat conftest.er1
>&5
3011 rm -f conftest.er1 conftest.err
3012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3013 test $ac_status = 0; }
3016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3027 ac_clean_files_save
=$ac_clean_files
3028 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3029 # Try to create an executable without -o first, disregard a.out.
3030 # It will help us diagnose broken compilers, and finding out an intuition
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3033 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3034 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3036 # The possible output files:
3037 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3040 for ac_file
in $ac_files
3043 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3044 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3049 if { { ac_try
="$ac_link_default"
3051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055 $as_echo "$ac_try_echo"; } >&5
3056 (eval "$ac_link_default") 2>&5
3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059 test $ac_status = 0; }; then :
3060 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3061 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3062 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3063 # so that the user can short-circuit this test for compilers unknown to
3065 for ac_file in $ac_files ''
3067 test -f "$ac_file" || continue
3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3072 # We found the default executable, but exeext='' is most
3076 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3078 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 # We set ac_cv_exeext here because the later test for it is not
3081 # safe: cross compilers may not add the suffix if given an `-o'
3082 # argument, so we may need to know it at that point already.
3083 # Even if this section looks crufty: it has the advantage of
3090 test "$ac_cv_exeext" = no && ac_cv_exeext=
3095 if test -z "$ac_file"; then :
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3098 $as_echo "$as_me: failed program was:" >&5
3099 sed 's
/^
/|
/' conftest.$ac_ext >&5
3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3103 as_fn_error 77 "C++ compiler cannot create executables
3104 See \`config.log
' for more details" "$LINENO" 5; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3107 $as_echo "yes" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3110 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3112 $as_echo "$ac_file" >&6; }
3113 ac_exeext=$ac_cv_exeext
3115 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3116 ac_clean_files=$ac_clean_files_save
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3118 $as_echo_n "checking for suffix of executables... " >&6; }
3119 if { { ac_try="$ac_link"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_link") 2>&5
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; then :
3130 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3131 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3132 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3134 for ac_file
in conftest.exe conftest conftest.
*; do
3135 test -f "$ac_file" ||
continue
3137 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3138 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3147 See \`config.log' for more details" "$LINENO" 5; }
3149 rm -f conftest conftest
$ac_cv_exeext
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3151 $as_echo "$ac_cv_exeext" >&6; }
3153 rm -f conftest.
$ac_ext
3154 EXEEXT
=$ac_cv_exeext
3156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3162 FILE *f = fopen ("conftest.out", "w");
3163 return ferror (f) || fclose (f) != 0;
3169 ac_clean_files
="$ac_clean_files conftest.out"
3170 # Check that the compiler produces executables we can run. If not, either
3171 # the compiler is broken, or we cross compile.
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3173 $as_echo_n "checking whether we are cross compiling... " >&6; }
3174 if test "$cross_compiling" != yes; then
3175 { { ac_try
="$ac_link"
3177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_link") 2>&5
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }
3186 if { ac_try='./conftest$ac_cv_exeext'
3187 { { case "(($ac_try" in
3188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3189 *) ac_try_echo
=$ac_try;;
3191 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_try") 2>&5
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }; }; then
3199 if test "$cross_compiling" = maybe
; then
3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error $?
"cannot run C++ compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details" "$LINENO" 5; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3211 $as_echo "$cross_compiling" >&6; }
3213 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3214 ac_clean_files
=$ac_clean_files_save
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3216 $as_echo_n "checking for suffix of object files... " >&6; }
3217 if ${ac_cv_objext+:} false
; then :
3218 $as_echo_n "(cached) " >&6
3220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3231 rm -f conftest.o conftest.obj
3232 if { { ac_try
="$ac_compile"
3234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_compile") 2>&5
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }; then :
3243 for ac_file in conftest.o conftest.obj conftest.*; do
3244 test -f "$ac_file" || continue;
3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3247 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3258 See \
`config.log' for more details" "$LINENO" 5; }
3260 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3263 $as_echo "$ac_cv_objext" >&6; }
3264 OBJEXT=$ac_cv_objext
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3267 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3268 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3269 $as_echo_n "(cached) " >&6
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3285 if ac_fn_cxx_try_compile "$LINENO"; then :
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3295 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3296 if test $ac_compiler_gnu = yes; then
3301 ac_test_CXXFLAGS=${CXXFLAGS+set}
3302 ac_save_CXXFLAGS=$CXXFLAGS
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3304 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3305 if ${ac_cv_prog_cxx_g+:} false; then :
3306 $as_echo_n "(cached) " >&6
3308 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3309 ac_cxx_werror_flag=yes
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3323 if ac_fn_cxx_try_compile "$LINENO"; then :
3324 ac_cv_prog_cxx_g=yes
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3338 if ac_fn_cxx_try_compile "$LINENO"; then :
3341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3354 if ac_fn_cxx_try_compile "$LINENO"; then :
3355 ac_cv_prog_cxx_g=yes
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3365 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3366 if test "$ac_test_CXXFLAGS" = set; then
3367 CXXFLAGS=$ac_save_CXXFLAGS
3368 elif test $ac_cv_prog_cxx_g = yes; then
3369 if test "$GXX" = yes; then
3375 if test "$GXX" = yes; then
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 if test -n "$ac_tool_prefix"; then
3393 for ac_prog in ${host_c_compilers}
3395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if ${ac_cv_prog_CC+:} false; then :
3400 $as_echo_n "(cached) " >&6
3402 if test -n "$CC"; then
3403 ac_cv_prog_CC="$CC" # Let the user override the test.
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 $as_echo "$CC" >&6; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3432 test -n "$CC" && break
3435 if test -z "$CC"; then
3437 for ac_prog in ${host_c_compilers}
3439 # Extract the first word of "$ac_prog", so it can be a program name with args.
3440 set dummy $ac_prog; ac_word=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3444 $as_echo_n "(cached) " >&6
3446 if test -n "$ac_ct_CC"; then
3447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_ac_ct_CC="$ac_prog"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3467 if test -n "$ac_ct_CC"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3469 $as_echo "$ac_ct_CC" >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3476 test -n "$ac_ct_CC" && break
3479 if test "x$ac_ct_CC" = x; then
3482 case $cross_compiling:$ac_tool_warned in
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3486 ac_tool_warned=yes ;;
3493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3496 See \
`config.log' for more details" "$LINENO" 5; }
3498 # Provide some information about the compiler.
3499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3502 for ac_option in --version -v -V -qversion; do
3503 { { ac_try="$ac_compiler $ac_option >&5"
3505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3506 *) ac_try_echo
=$ac_try;;
3508 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3512 if test -s conftest.err
; then
3514 ... rest of stderr output deleted ...
3515 10q' conftest.err
>conftest.er1
3516 cat conftest.er1
>&5
3518 rm -f conftest.er1 conftest.err
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3524 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3525 if ${ac_cv_c_compiler_gnu+:} false
; then :
3526 $as_echo_n "(cached) " >&6
3528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3542 if ac_fn_c_try_compile
"$LINENO"; then :
3547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3548 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3552 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3553 if test $ac_compiler_gnu = yes; then
3558 ac_test_CFLAGS
=${CFLAGS+set}
3559 ac_save_CFLAGS
=$CFLAGS
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3561 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3562 if ${ac_cv_prog_cc_g+:} false
; then :
3563 $as_echo_n "(cached) " >&6
3565 ac_save_c_werror_flag
=$ac_c_werror_flag
3566 ac_c_werror_flag
=yes
3569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3580 if ac_fn_c_try_compile
"$LINENO"; then :
3584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3595 if ac_fn_c_try_compile
"$LINENO"; then :
3598 ac_c_werror_flag
=$ac_save_c_werror_flag
3600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 if ac_fn_c_try_compile
"$LINENO"; then :
3614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3619 ac_c_werror_flag
=$ac_save_c_werror_flag
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3622 $as_echo "$ac_cv_prog_cc_g" >&6; }
3623 if test "$ac_test_CFLAGS" = set; then
3624 CFLAGS
=$ac_save_CFLAGS
3625 elif test $ac_cv_prog_cc_g = yes; then
3626 if test "$GCC" = yes; then
3632 if test "$GCC" = yes; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3639 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3640 if ${ac_cv_prog_cc_c89+:} false
; then :
3641 $as_echo_n "(cached) " >&6
3643 ac_cv_prog_cc_c89
=no
3645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3650 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3651 struct buf { int x; };
3652 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3653 static char *e (p, i)
3659 static char *f (char * (*g) (char **, int), char **p, ...)
3664 s = g (p, va_arg (v,int));
3669 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3670 function prototypes and stuff, but not '\xHH' hex character constants.
3671 These don't provoke an error unfortunately, instead are silently treated
3672 as 'x'. The following induces an error, until -std is added to get
3673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3674 array size at least. It's necessary to write '\x00'==0 to get something
3675 that's true only with -std. */
3676 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3678 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3679 inside strings and character constants. */
3681 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3683 int test (int i, double x);
3684 struct s1 {int (*f) (int a);};
3685 struct s2 {int (*f) (double a);};
3686 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3697 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3698 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3700 CC
="$ac_save_CC $ac_arg"
3701 if ac_fn_c_try_compile
"$LINENO"; then :
3702 ac_cv_prog_cc_c89
=$ac_arg
3704 rm -f core conftest.err conftest.
$ac_objext
3705 test "x$ac_cv_prog_cc_c89" != "xno" && break
3707 rm -f conftest.
$ac_ext
3712 case "x$ac_cv_prog_cc_c89" in
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3715 $as_echo "none needed" >&6; } ;;
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3718 $as_echo "unsupported" >&6; } ;;
3720 CC
="$CC $ac_cv_prog_cc_c89"
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3722 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3724 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3729 ac_cpp
='$CPP $CPPFLAGS'
3730 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3734 aros_host_def_cc
="$CC"
3735 case $ac_cv_prog_cc_stdc in #(
3737 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3740 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3741 if ${ac_cv_prog_cc_c99+:} false
; then :
3742 $as_echo_n "(cached) " >&6
3744 ac_cv_prog_cc_c99
=no
3746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3749 #include <stdbool.h>
3754 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3755 #define debug(...) fprintf (stderr, __VA_ARGS__)
3756 #define showlist(...) puts (#__VA_ARGS__)
3757 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3759 test_varargs_macros (void)
3764 debug ("X = %d\n", x);
3765 showlist (The first, second, and third items.);
3766 report (x>y, "x is %d but y is %d", x, y);
3769 // Check long long types.
3770 #define BIG64 18446744073709551615ull
3771 #define BIG32 4294967295ul
3772 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3774 your preprocessor is broken;
3778 your preprocessor is broken;
3780 static long long int bignum = -9223372036854775807LL;
3781 static unsigned long long int ubignum = BIG64;
3783 struct incomplete_array
3791 const wchar_t *name;
3795 typedef const char *ccp;
3798 test_restrict (ccp restrict text)
3800 // See if C++-style comments work.
3801 // Iterate through items via the restricted pointer.
3802 // Also check for declarations in for loops.
3803 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3808 // Check varargs and va_copy.
3810 test_varargs (const char *format, ...)
3813 va_start (args, format);
3815 va_copy (args_copy, args);
3826 str = va_arg (args_copy, const char *);
3829 number = va_arg (args_copy, int);
3832 fnumber = va_arg (args_copy, double);
3847 _Bool success = false;
3850 if (test_restrict ("String literal") == 0)
3852 char *restrict newvar = "Another string";
3855 test_varargs ("s, d' f .", "string", 65, 34.234);
3856 test_varargs_macros ();
3858 // Check flexible array members.
3859 struct incomplete_array *ia =
3860 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3862 for (int i = 0; i < ia->datasize; ++i)
3863 ia->data[i] = i * 1.234;
3865 // Check named initializers.
3866 struct named_init ni = {
3868 .name = L"Test wide string",
3869 .average = 543.34343,
3874 int dynamic_array[ni.number];
3875 dynamic_array[ni.number - 1] = 543;
3877 // work around unused variable warnings
3878 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3879 || dynamic_array[ni.number - 1] != 543);
3885 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3887 CC
="$ac_save_CC $ac_arg"
3888 if ac_fn_c_try_compile
"$LINENO"; then :
3889 ac_cv_prog_cc_c99
=$ac_arg
3891 rm -f core conftest.err conftest.
$ac_objext
3892 test "x$ac_cv_prog_cc_c99" != "xno" && break
3894 rm -f conftest.
$ac_ext
3899 case "x$ac_cv_prog_cc_c99" in
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3902 $as_echo "none needed" >&6; } ;;
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3905 $as_echo "unsupported" >&6; } ;;
3907 CC
="$CC $ac_cv_prog_cc_c99"
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3909 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3911 if test "x$ac_cv_prog_cc_c99" != xno
; then :
3912 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3916 if ${ac_cv_prog_cc_c89+:} false
; then :
3917 $as_echo_n "(cached) " >&6
3919 ac_cv_prog_cc_c89
=no
3921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3927 struct buf { int x; };
3928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929 static char *e (p, i)
3935 static char *f (char * (*g) (char **, int), char **p, ...)
3940 s = g (p, va_arg (v,int));
3945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3946 function prototypes and stuff, but not '\xHH' hex character constants.
3947 These don't provoke an error unfortunately, instead are silently treated
3948 as 'x'. The following induces an error, until -std is added to get
3949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3950 array size at least. It's necessary to write '\x00'==0 to get something
3951 that's true only with -std. */
3952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955 inside strings and character constants. */
3957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3959 int test (int i, double x);
3960 struct s1 {int (*f) (int a);};
3961 struct s2 {int (*f) (double a);};
3962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3973 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3976 CC
="$ac_save_CC $ac_arg"
3977 if ac_fn_c_try_compile
"$LINENO"; then :
3978 ac_cv_prog_cc_c89
=$ac_arg
3980 rm -f core conftest.err conftest.
$ac_objext
3981 test "x$ac_cv_prog_cc_c89" != "xno" && break
3983 rm -f conftest.
$ac_ext
3988 case "x$ac_cv_prog_cc_c89" in
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3991 $as_echo "none needed" >&6; } ;;
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994 $as_echo "unsupported" >&6; } ;;
3996 CC
="$CC $ac_cv_prog_cc_c89"
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3998 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4000 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4001 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4003 ac_cv_prog_cc_stdc
=no
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4010 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4011 if ${ac_cv_prog_cc_stdc+:} false
; then :
4012 $as_echo_n "(cached) " >&6
4015 case $ac_cv_prog_cc_stdc in #(
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4018 $as_echo "unsupported" >&6; } ;; #(
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4021 $as_echo "none needed" >&6; } ;; #(
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4024 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4028 ac_cpp
='$CPP $CPPFLAGS'
4029 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4030 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4031 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4033 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4034 # On Suns, sometimes $CPP names a directory.
4035 if test -n "$CPP" && test -d "$CPP"; then
4038 if test -z "$CPP"; then
4039 if ${ac_cv_prog_CPP+:} false
; then :
4040 $as_echo_n "(cached) " >&6
4042 # Double quotes because CPP needs to be expanded
4043 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4046 for ac_c_preproc_warn_flag
in '' yes
4048 # Use a header file that comes with gcc, so configuring glibc
4049 # with a fresh cross-compiler works.
4050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4051 # <limits.h> exists even on freestanding compilers.
4052 # On the NeXT, cc -E runs the code through the compiler's parser,
4053 # not just through cpp. "Syntax error" is here to catch this case.
4054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4057 # include <limits.h>
4059 # include <assert.h>
4063 if ac_fn_c_try_cpp
"$LINENO"; then :
4066 # Broken: fails on valid input.
4069 rm -f conftest.err conftest.i conftest.
$ac_ext
4071 # OK, works on sane cases. Now check whether nonexistent headers
4072 # can be detected and how.
4073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075 #include <ac_nonexistent.h>
4077 if ac_fn_c_try_cpp
"$LINENO"; then :
4078 # Broken: success on invalid input.
4081 # Passes both tests.
4085 rm -f conftest.err conftest.i conftest.
$ac_ext
4088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4089 rm -f conftest.i conftest.err conftest.
$ac_ext
4090 if $ac_preproc_ok; then :
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4103 $as_echo "$CPP" >&6; }
4105 for ac_c_preproc_warn_flag
in '' yes
4107 # Use a header file that comes with gcc, so configuring glibc
4108 # with a fresh cross-compiler works.
4109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4110 # <limits.h> exists even on freestanding compilers.
4111 # On the NeXT, cc -E runs the code through the compiler's parser,
4112 # not just through cpp. "Syntax error" is here to catch this case.
4113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4116 # include <limits.h>
4118 # include <assert.h>
4122 if ac_fn_c_try_cpp
"$LINENO"; then :
4125 # Broken: fails on valid input.
4128 rm -f conftest.err conftest.i conftest.
$ac_ext
4130 # OK, works on sane cases. Now check whether nonexistent headers
4131 # can be detected and how.
4132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134 #include <ac_nonexistent.h>
4136 if ac_fn_c_try_cpp
"$LINENO"; then :
4137 # Broken: success on invalid input.
4140 # Passes both tests.
4144 rm -f conftest.err conftest.i conftest.
$ac_ext
4147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4148 rm -f conftest.i conftest.err conftest.
$ac_ext
4149 if $ac_preproc_ok; then :
4152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4155 See \`config.log' for more details" "$LINENO" 5; }
4159 ac_cpp
='$CPP $CPPFLAGS'
4160 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4165 # Check for a compatible awk
4166 for ac_prog
in gawk nawk
4168 # Extract the first word of "$ac_prog", so it can be a program name with args.
4169 set dummy
$ac_prog; ac_word
=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if ${ac_cv_prog_AWK+:} false
; then :
4173 $as_echo_n "(cached) " >&6
4175 if test -n "$AWK"; then
4176 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4182 test -z "$as_dir" && as_dir
=.
4183 for ac_exec_ext
in '' $ac_executable_extensions; do
4184 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4185 ac_cv_prog_AWK
="$ac_prog"
4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 if test -n "$AWK"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4198 $as_echo "$AWK" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4205 test -n "$AWK" && break
4209 if test "$AWK" = ""; then
4212 if test "$AWK" = "no"; then
4215 if test "$req_avail" = "no"; then
4216 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4218 # Extract the first word of "mmake", so it can be a program name with args.
4219 set dummy mmake
; ac_word
=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_MMAKE+:} false
; then :
4223 $as_echo_n "(cached) " >&6
4225 if test -n "$MMAKE"; then
4226 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir
=.
4233 for ac_exec_ext
in '' $ac_executable_extensions; do
4234 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_MMAKE
="mmake "
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 MMAKE
=$ac_cv_prog_MMAKE
4246 if test -n "$MMAKE"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4248 $as_echo "$MMAKE" >&6; }
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4256 # Perform some default variable assignments. Note all of these will be
4257 # Regenerated from the script, so there is no need to cache them.
4259 aros_build_host
=$host
4260 aros_host_cpp
="$CPP"
4262 aros_host_cxx
="$CXX"
4263 if test "$GCC" = "yes"; then
4264 aros_gcc_ld
=`$CC -print-prog-name=ld`
4265 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4266 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_path_aros_host_ld+:} false
; then :
4270 $as_echo_n "(cached) " >&6
4272 case $aros_host_ld in
4274 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4278 for as_dir
in `dirname $aros_gcc_ld`
4281 test -z "$as_dir" && as_dir
=.
4282 for ac_exec_ext
in '' $ac_executable_extensions; do
4283 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 aros_host_ld
=$ac_cv_path_aros_host_ld
4296 if test -n "$aros_host_ld"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4298 $as_echo "$aros_host_ld" >&6; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4306 if test "$aros_host_ld" = ""; then
4307 # Extract the first word of "ld", so it can be a program name with args.
4308 set dummy ld
; ac_word
=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_path_aros_host_ld+:} false
; then :
4312 $as_echo_n "(cached) " >&6
4314 case $aros_host_ld in
4316 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir
=.
4324 for ac_exec_ext
in '' $ac_executable_extensions; do
4325 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 aros_host_ld
=$ac_cv_path_aros_host_ld
4338 if test -n "$aros_host_ld"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4340 $as_echo "$aros_host_ld" >&6; }
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4349 if test "$aros_host_ld" = ""; then
4352 if test "$aros_host_ld" = "no"; then
4355 if test "$req_avail" = "no"; then
4356 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4358 aros_host_make
="make"
4359 aros_host_cflags
="$CFLAGS"
4360 aros_host_cxxflags
="$CXXFLAGS"
4361 aros_host_ldflags
="$LDFLAGS"
4362 aros_host_debug
="-g -O0"
4363 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4364 aros_host_mkargs
="--no-print-directory"
4365 aros_host_exe_suffix
="$EXEEXT"
4366 aros_host_lib_suffix
=""
4368 # Ignore all compliance, AROS ROMs = 0
4369 # KickStart v1.0 = 30
4370 # KickStart v1.3 = 34
4371 # KickStart v2.0 = 37
4372 # KickStart v3.0 = 39
4373 # KickStart v3.1 = 40
4375 aros_amigaos_compliance
=0
4377 for ac_prog
in aclocal aclocal19 aclocal-1.9
4379 # Extract the first word of "$ac_prog", so it can be a program name with args.
4380 set dummy
$ac_prog; ac_word
=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4384 $as_echo_n "(cached) " >&6
4386 if test -n "$aros_host_aclocal"; then
4387 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir
=.
4394 for ac_exec_ext
in '' $ac_executable_extensions; do
4395 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4407 if test -n "$aros_host_aclocal"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4409 $as_echo "$aros_host_aclocal" >&6; }
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4416 test -n "$aros_host_aclocal" && break
4419 for ac_prog
in autoconf autoconf259 autoconf253
4421 # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy
$ac_prog; ac_word
=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4426 $as_echo_n "(cached) " >&6
4428 if test -n "$aros_host_autoconf"; then
4429 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir
=.
4436 for ac_exec_ext
in '' $ac_executable_extensions; do
4437 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4449 if test -n "$aros_host_autoconf"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4451 $as_echo "$aros_host_autoconf" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4458 test -n "$aros_host_autoconf" && break
4461 for ac_prog
in autoheader autoheader259 autoheader253
4463 # Extract the first word of "$ac_prog", so it can be a program name with args.
4464 set dummy
$ac_prog; ac_word
=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4468 $as_echo_n "(cached) " >&6
4470 if test -n "$aros_host_autoheader"; then
4471 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir
=.
4478 for ac_exec_ext
in '' $ac_executable_extensions; do
4479 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4491 if test -n "$aros_host_autoheader"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4493 $as_echo "$aros_host_autoheader" >&6; }
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4500 test -n "$aros_host_autoheader" && break
4503 for ac_prog
in automake automake19 automake-1.9
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy
$ac_prog; ac_word
=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4510 $as_echo_n "(cached) " >&6
4512 if test -n "$aros_host_automake"; then
4513 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir
=.
4520 for ac_exec_ext
in '' $ac_executable_extensions; do
4521 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4522 ac_cv_prog_aros_host_automake
="$ac_prog"
4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 aros_host_automake
=$ac_cv_prog_aros_host_automake
4533 if test -n "$aros_host_automake"; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4535 $as_echo "$aros_host_automake" >&6; }
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4542 test -n "$aros_host_automake" && break
4547 if test "$aros_host_aclocal" = ""; then
4550 if test "$aros_host_aclocal" = "no"; then
4553 if test "$req_avail" = "no"; then
4554 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4557 if test "$aros_host_automake" = ""; then
4560 if test "$aros_host_automake" = "no"; then
4563 if test "$req_avail" = "no"; then
4564 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4567 case "$aros_host_cc" in
4569 aros_host_cc_pipe
=""
4572 aros_host_cc_pipe
="-pipe"
4575 aros_host_cc_pipe
=""
4578 aros_host_cc_pipe
=""
4582 aros_kernel_cc_includes
=""
4583 aros_target_cc_includes
=""
4586 # ----------------------------------------------------------------------------------------
4587 # Host-specific defaults
4589 # This is the main host configuration section. It is where the host
4590 # can change the values of any variables it needs to change. We do
4591 # not look at anything that compiles to the target yet, we'll get
4596 aros_host_arch
="aros"
4597 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4600 aros_host_cpu
="i386"
4603 aros_host_cpu
="x86_64"
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4610 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4611 aros_host_cpu
="$host_cpu"
4617 aros_host_arch
="linux"
4618 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4619 android_build_os
="linux-x86"
4620 android_tool
="android"
4621 default_android_sdk
="/opt/android-sdk-linux_x86"
4624 aros_host_cpu
="i386"
4627 aros_host_cpu
="x86_64"
4630 aros_host_cpu
="m68k"
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4640 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4641 aros_host_cpu
="$host_cpu"
4647 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4648 aros_host_make
="gmake"
4649 aros_host_arch
="freebsd"
4650 aros_host_cpu
="i386"
4652 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4656 aros_object_format
="elf_i386"
4660 aros_object_format
="elf_i386_fbsd"
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/stddef.h" >&5
4668 $as_echo_n "checking for /usr/include/stddef.h... " >&6; }
4669 if ${ac_cv_file__usr_include_stddef_h+:} false
; then :
4670 $as_echo_n "(cached) " >&6
4672 test "$cross_compiling" = yes &&
4673 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
4674 if test -r "/usr/include/stddef.h"; then
4675 ac_cv_file__usr_include_stddef_h
=yes
4677 ac_cv_file__usr_include_stddef_h
=no
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_stddef_h" >&5
4681 $as_echo "$ac_cv_file__usr_include_stddef_h" >&6; }
4682 if test "x$ac_cv_file__usr_include_stddef_h" = xyes
; then :
4685 as_fn_error $?
"XCode incorrectly configured!
4686 please run 'xcode-select --install' before
4687 re-running configure" "$LINENO" 5
4691 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4692 aros_host_arch
="darwin"
4694 if [ -z ${SED+x} ]; then SED
="gsed"; fi
4695 android_build_os
="darwin-x86"
4696 android_tool
="android"
4697 default_android_sdk
="/android-sdk-mac_x86"
4700 aros_host_cpu
="i386"
4703 aros_host_cpu
="x86_64"
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4710 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4711 aros_host_cpu
="$host_cpu"
4715 aros_host_ldflags
="$aros_host_ldflags -liconv"
4720 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4721 aros_host_make
="gmake"
4722 aros_host_arch
="dragonfly"
4725 aros_host_cpu
="i386"
4728 aros_host_cpu
="x86_64"
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4732 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4733 aros_host_cpu
="$host_cpu"
4739 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4740 aros_host_make
="gmake"
4741 aros_host_arch
="netbsd"
4744 aros_host_cpu
="i386"
4747 aros_host_cpu
="m68k"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4751 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4752 aros_host_cpu
="$host_cpu"
4755 aros_host_lib_suffix
=".0.0"
4759 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4760 aros_host_make
="gmake"
4761 aros_host_arch
="openbsd"
4764 aros_host_cpu
="i386"
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4768 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4769 aros_host_cpu
="$host_cpu"
4775 aros_host_arch
="solaris"
4776 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4779 aros_host_cpu
="i386"
4782 aros_host_cpu
="sparc"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4786 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4787 aros_host_cpu
="$host_cpu"
4793 aros_host_arch
="morphos"
4799 aros_host_arch
="amiga"
4805 TOUCH
="/gg/bin/touch"
4808 aros_host_cpu
="m68k"
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4815 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4816 aros_host_cpu
="$host_cpu"
4822 aros_host_arch
="cygwin"
4823 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4825 android_build_os
="windows"
4826 android_tool
="android.bat"
4827 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4831 aros_host_cpu
="i386"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4835 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4836 aros_host_cpu
="$host_cpu"
4842 aros_host_arch
="mingw32"
4843 aros_host_cflags
="$aros_host_cflags $aros_host_cc_pipe"
4845 android_build_os
="windows"
4846 android_tool
="android.bat"
4847 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4849 libpng_libextra
="-lws2_32"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4855 $as_echo_n "checking for Windows native gcc target... " >&6; }
4856 host_cpu
=`gcc -dumpmachine`
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4858 $as_echo "$host_cpu" >&6; }
4865 aros_host_cpu
="i386"
4869 aros_host_cpu
="i386"
4873 aros_host_cpu
="x86_64"
4874 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4879 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4880 aros_host_cpu
="$host_cpu"
4885 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4889 # Extract the first word of "ar", so it can be a program name with args.
4890 set dummy
ar; ac_word
=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if ${ac_cv_prog_aros_host_ar+:} false
; then :
4894 $as_echo_n "(cached) " >&6
4896 if test -n "$aros_host_ar"; then
4897 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4903 test -z "$as_dir" && as_dir
=.
4904 for ac_exec_ext
in '' $ac_executable_extensions; do
4905 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4906 ac_cv_prog_aros_host_ar
="ar cr"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 aros_host_ar
=$ac_cv_prog_aros_host_ar
4917 if test -n "$aros_host_ar"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4919 $as_echo "$aros_host_ar" >&6; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4927 if test "$aros_host_ar" = ""; then
4930 if test "$aros_host_ar" = "no"; then
4933 if test "$req_avail" = "no"; then
4934 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4936 # Extract the first word of "ranlib", so it can be a program name with args.
4937 set dummy ranlib
; ac_word
=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_aros_host_ranlib+:} false
; then :
4941 $as_echo_n "(cached) " >&6
4943 if test -n "$aros_host_ranlib"; then
4944 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4950 test -z "$as_dir" && as_dir
=.
4951 for ac_exec_ext
in '' $ac_executable_extensions; do
4952 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_aros_host_ranlib
="ranlib "
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4964 if test -n "$aros_host_ranlib"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4966 $as_echo "$aros_host_ranlib" >&6; }
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4974 if test "$aros_host_ranlib" = ""; then
4977 if test "$aros_host_ranlib" = "no"; then
4980 if test "$req_avail" = "no"; then
4981 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4983 # Extract the first word of "strip", so it can be a program name with args.
4984 set dummy strip
; ac_word
=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if ${ac_cv_prog_aros_host_strip+:} false
; then :
4988 $as_echo_n "(cached) " >&6
4990 if test -n "$aros_host_strip"; then
4991 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
4993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir
=.
4998 for ac_exec_ext
in '' $ac_executable_extensions; do
4999 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_prog_aros_host_strip
="strip "
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 aros_host_strip
=$ac_cv_prog_aros_host_strip
5011 if test -n "$aros_host_strip"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5013 $as_echo "$aros_host_strip" >&6; }
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5021 if test "$aros_host_strip" = ""; then
5024 if test "$aros_host_strip" = "no"; then
5027 if test "$req_avail" = "no"; then
5028 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5031 # Extract the first word of "rm", so it can be a program name with args.
5032 set dummy
rm; ac_word
=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_RM+:} false
; then :
5036 $as_echo_n "(cached) " >&6
5038 if test -n "$RM"; then
5039 ac_cv_prog_RM
="$RM" # Let the user override the test.
5041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir
=.
5046 for ac_exec_ext
in '' $ac_executable_extensions; do
5047 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_prog_RM
="rm -rf"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 if test -n "$RM"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5061 $as_echo "$RM" >&6; }
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5069 if test "$RM" = ""; then
5072 if test "$RM" = "no"; then
5075 if test "$req_avail" = "no"; then
5076 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5078 # Extract the first word of "cp", so it can be a program name with args.
5079 set dummy
cp; ac_word
=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if ${ac_cv_prog_CP+:} false
; then :
5083 $as_echo_n "(cached) " >&6
5085 if test -n "$CP"; then
5086 ac_cv_prog_CP
="$CP" # Let the user override the test.
5088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5092 test -z "$as_dir" && as_dir
=.
5093 for ac_exec_ext
in '' $ac_executable_extensions; do
5094 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 if test -n "$CP"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5108 $as_echo "$CP" >&6; }
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5116 if test "$CP" = ""; then
5119 if test "$CP" = "no"; then
5122 if test "$req_avail" = "no"; then
5123 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5125 # Extract the first word of "mv", so it can be a program name with args.
5126 set dummy
mv; ac_word
=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_MV+:} false
; then :
5130 $as_echo_n "(cached) " >&6
5132 if test -n "$MV"; then
5133 ac_cv_prog_MV
="$MV" # Let the user override the test.
5135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir
=.
5140 for ac_exec_ext
in '' $ac_executable_extensions; do
5141 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 if test -n "$MV"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5155 $as_echo "$MV" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5163 if test "$MV" = ""; then
5166 if test "$MV" = "no"; then
5169 if test "$req_avail" = "no"; then
5170 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5172 # Extract the first word of "echo", so it can be a program name with args.
5173 set dummy
echo; ac_word
=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_prog_ECHO+:} false
; then :
5177 $as_echo_n "(cached) " >&6
5179 if test -n "$ECHO"; then
5180 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir
=.
5187 for ac_exec_ext
in '' $ac_executable_extensions; do
5188 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_ECHO
="echo "
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 ECHO
=$ac_cv_prog_ECHO
5200 if test -n "$ECHO"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5202 $as_echo "$ECHO" >&6; }
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5210 if test "$ECHO" = ""; then
5213 if test "$ECHO" = "no"; then
5216 if test "$req_avail" = "no"; then
5217 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5219 # Extract the first word of "mkdir", so it can be a program name with args.
5220 set dummy mkdir
; ac_word
=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_prog_MKDIR+:} false
; then :
5224 $as_echo_n "(cached) " >&6
5226 if test -n "$MKDIR"; then
5227 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5233 test -z "$as_dir" && as_dir
=.
5234 for ac_exec_ext
in '' $ac_executable_extensions; do
5235 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5236 ac_cv_prog_MKDIR
="mkdir -p"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 MKDIR
=$ac_cv_prog_MKDIR
5247 if test -n "$MKDIR"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5249 $as_echo "$MKDIR" >&6; }
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5257 if test "$MKDIR" = ""; then
5260 if test "$MKDIR" = "no"; then
5263 if test "$req_avail" = "no"; then
5264 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5266 # Extract the first word of "touch", so it can be a program name with args.
5267 set dummy
touch; ac_word
=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_TOUCH+:} false
; then :
5271 $as_echo_n "(cached) " >&6
5273 if test -n "$TOUCH"; then
5274 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir
=.
5281 for ac_exec_ext
in '' $ac_executable_extensions; do
5282 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_prog_TOUCH
="touch "
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 TOUCH
=$ac_cv_prog_TOUCH
5294 if test -n "$TOUCH"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5296 $as_echo "$TOUCH" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5304 if test "$TOUCH" = ""; then
5307 if test "$TOUCH" = "no"; then
5310 if test "$req_avail" = "no"; then
5311 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5313 # Extract the first word of "sort", so it can be a program name with args.
5314 set dummy
sort; ac_word
=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_SORT+:} false
; then :
5318 $as_echo_n "(cached) " >&6
5320 if test -n "$SORT"; then
5321 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5327 test -z "$as_dir" && as_dir
=.
5328 for ac_exec_ext
in '' $ac_executable_extensions; do
5329 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_SORT
="sort "
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 SORT
=$ac_cv_prog_SORT
5341 if test -n "$SORT"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5343 $as_echo "$SORT" >&6; }
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5351 if test "$SORT" = ""; then
5354 if test "$SORT" = "no"; then
5357 if test "$req_avail" = "no"; then
5358 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5360 # Extract the first word of "uniq", so it can be a program name with args.
5361 set dummy
uniq; ac_word
=$2
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if ${ac_cv_prog_UNIQ+:} false
; then :
5365 $as_echo_n "(cached) " >&6
5367 if test -n "$UNIQ"; then
5368 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5374 test -z "$as_dir" && as_dir
=.
5375 for ac_exec_ext
in '' $ac_executable_extensions; do
5376 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_UNIQ
="uniq "
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 UNIQ
=$ac_cv_prog_UNIQ
5388 if test -n "$UNIQ"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5390 $as_echo "$UNIQ" >&6; }
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5398 if test "$UNIQ" = ""; then
5401 if test "$UNIQ" = "no"; then
5404 if test "$req_avail" = "no"; then
5405 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5407 # Extract the first word of "true", so it can be a program name with args.
5408 set dummy true
; ac_word
=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_prog_NOP+:} false
; then :
5412 $as_echo_n "(cached) " >&6
5414 if test -n "$NOP"; then
5415 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir
=.
5422 for ac_exec_ext
in '' $ac_executable_extensions; do
5423 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_NOP
="true "
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 if test -n "$NOP"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5437 $as_echo "$NOP" >&6; }
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5445 if test "$NOP" = ""; then
5448 if test "$NOP" = "no"; then
5451 if test "$req_avail" = "no"; then
5452 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5454 # Extract the first word of "cat", so it can be a program name with args.
5455 set dummy
cat; ac_word
=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_CAT+:} false
; then :
5459 $as_echo_n "(cached) " >&6
5461 if test -n "$CAT"; then
5462 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir
=.
5469 for ac_exec_ext
in '' $ac_executable_extensions; do
5470 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_CAT
="cat "
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 if test -n "$CAT"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5484 $as_echo "$CAT" >&6; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5492 if test "$CAT" = ""; then
5495 if test "$CAT" = "no"; then
5498 if test "$req_avail" = "no"; then
5499 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5501 # Extract the first word of "bison", so it can be a program name with args.
5502 set dummy bison
; ac_word
=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if ${ac_cv_prog_BISON+:} false
; then :
5506 $as_echo_n "(cached) " >&6
5508 if test -n "$BISON"; then
5509 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5515 test -z "$as_dir" && as_dir
=.
5516 for ac_exec_ext
in '' $ac_executable_extensions; do
5517 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_prog_BISON
="bison "
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 BISON
=$ac_cv_prog_BISON
5529 if test -n "$BISON"; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5531 $as_echo "$BISON" >&6; }
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5539 if test "$BISON" = ""; then
5542 if test "$BISON" = "no"; then
5545 if test "$req_avail" = "no"; then
5546 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5548 # Extract the first word of "flex", so it can be a program name with args.
5549 set dummy flex
; ac_word
=$2
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if ${ac_cv_prog_FLEX+:} false
; then :
5553 $as_echo_n "(cached) " >&6
5555 if test -n "$FLEX"; then
5556 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5562 test -z "$as_dir" && as_dir
=.
5563 for ac_exec_ext
in '' $ac_executable_extensions; do
5564 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5565 ac_cv_prog_FLEX
="flex "
5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 FLEX
=$ac_cv_prog_FLEX
5576 if test -n "$FLEX"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5578 $as_echo "$FLEX" >&6; }
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581 $as_echo "no" >&6; }
5586 if test "$FLEX" = ""; then
5589 if test "$FLEX" = "no"; then
5592 if test "$req_avail" = "no"; then
5593 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5595 # Extract the first word of "pngtopnm", so it can be a program name with args.
5596 set dummy pngtopnm
; ac_word
=$2
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598 $as_echo_n "checking for $ac_word... " >&6; }
5599 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5600 $as_echo_n "(cached) " >&6
5602 if test -n "$PNGTOPNM"; then
5603 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5609 test -z "$as_dir" && as_dir
=.
5610 for ac_exec_ext
in '' $ac_executable_extensions; do
5611 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5612 ac_cv_prog_PNGTOPNM
="pngtopnm "
5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5623 if test -n "$PNGTOPNM"; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5625 $as_echo "$PNGTOPNM" >&6; }
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628 $as_echo "no" >&6; }
5633 if test "$PNGTOPNM" = ""; then
5636 if test "$PNGTOPNM" = "no"; then
5639 if test "$req_avail" = "no"; then
5640 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5642 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5643 set dummy ppmtoilbm
; ac_word
=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5647 $as_echo_n "(cached) " >&6
5649 if test -n "$PPMTOILBM"; then
5650 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir
=.
5657 for ac_exec_ext
in '' $ac_executable_extensions; do
5658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5670 if test -n "$PPMTOILBM"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5672 $as_echo "$PPMTOILBM" >&6; }
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5680 if test "$PPMTOILBM" = ""; then
5683 if test "$PPMTOILBM" = "no"; then
5686 if test "$req_avail" = "no"; then
5687 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5689 # Extract the first word of "sed", so it can be a program name with args.
5690 set dummy
sed; ac_word
=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if ${ac_cv_prog_SED+:} false
; then :
5694 $as_echo_n "(cached) " >&6
5696 if test -n "$SED"; then
5697 ac_cv_prog_SED
="$SED" # Let the user override the test.
5699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5703 test -z "$as_dir" && as_dir
=.
5704 for ac_exec_ext
in '' $ac_executable_extensions; do
5705 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5706 ac_cv_prog_SED
="sed "
5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 if test -n "$SED"; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5719 $as_echo "$SED" >&6; }
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5727 if test "$SED" = ""; then
5730 if test "$SED" = "no"; then
5733 if test "$req_avail" = "no"; then
5734 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5736 # Extract the first word of "chmod", so it can be a program name with args.
5737 set dummy
chmod; ac_word
=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_prog_CHMOD+:} false
; then :
5741 $as_echo_n "(cached) " >&6
5743 if test -n "$CHMOD"; then
5744 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5750 test -z "$as_dir" && as_dir
=.
5751 for ac_exec_ext
in '' $ac_executable_extensions; do
5752 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_CHMOD
="chmod "
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 CHMOD
=$ac_cv_prog_CHMOD
5764 if test -n "$CHMOD"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5766 $as_echo "$CHMOD" >&6; }
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5774 if test "$CHMOD" = ""; then
5777 if test "$CHMOD" = "no"; then
5780 if test "$req_avail" = "no"; then
5781 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5783 # Extract the first word of "patch", so it can be a program name with args.
5784 set dummy
patch; ac_word
=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if ${ac_cv_prog_PATCH+:} false
; then :
5788 $as_echo_n "(cached) " >&6
5790 if test -n "$PATCH"; then
5791 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5797 test -z "$as_dir" && as_dir
=.
5798 for ac_exec_ext
in '' $ac_executable_extensions; do
5799 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5800 ac_cv_prog_PATCH
="patch "
5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 PATCH
=$ac_cv_prog_PATCH
5811 if test -n "$PATCH"; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5813 $as_echo "$PATCH" >&6; }
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5821 if test "$PATCH" = ""; then
5824 if test "$PATCH" = "no"; then
5827 if test "$req_avail" = "no"; then
5828 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5837 if test -n "$PYTHON"; then
5838 # If the user set $PYTHON, use it and don't search something else.
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5840 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5842 # split strings by '.' and convert to numeric. Append some zeros
5843 # because we need at least 4 digits for the hex conversion.
5844 # map returns an iterator in Python 3.0 and a list in 2.x
5845 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5847 # xrange is not present in Python 3.0 and range returns an iterator
5848 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5849 sys.exit(sys.hexversion < minverhex)"
5850 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5851 ($PYTHON -c "$prog") >&5 2>&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; then :
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5856 $as_echo "yes" >&6; }
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 as_fn_error $?
"Python interpreter is too old" "$LINENO" 5
5862 am_display_PYTHON
=$PYTHON
5864 # Otherwise, try each interpreter until we find one that satisfies
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5867 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5868 if ${am_cv_pathless_PYTHON+:} false
; then :
5869 $as_echo_n "(cached) " >&6
5872 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
5873 test "$am_cv_pathless_PYTHON" = none
&& break
5875 # split strings by '.' and convert to numeric. Append some zeros
5876 # because we need at least 4 digits for the hex conversion.
5877 # map returns an iterator in Python 3.0 and a list in 2.x
5878 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5880 # xrange is not present in Python 3.0 and range returns an iterator
5881 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5882 sys.exit(sys.hexversion < minverhex)"
5883 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5884 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; then :
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5893 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5894 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5895 if test "$am_cv_pathless_PYTHON" = none
; then
5898 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5899 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if ${ac_cv_path_PYTHON+:} false
; then :
5903 $as_echo_n "(cached) " >&6
5907 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir
=.
5915 for ac_exec_ext
in '' $ac_executable_extensions; do
5916 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 PYTHON
=$ac_cv_path_PYTHON
5929 if test -n "$PYTHON"; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5931 $as_echo "$PYTHON" >&6; }
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5939 am_display_PYTHON
=$am_cv_pathless_PYTHON
5943 if test "$PYTHON" = :; then
5944 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5949 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5950 if ${am_cv_python_version+:} false
; then :
5951 $as_echo_n "(cached) " >&6
5953 am_cv_python_version
=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5956 $as_echo "$am_cv_python_version" >&6; }
5957 PYTHON_VERSION
=$am_cv_python_version
5961 PYTHON_PREFIX
='${prefix}'
5963 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5968 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5969 if ${am_cv_python_platform+:} false
; then :
5970 $as_echo_n "(cached) " >&6
5972 am_cv_python_platform
=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5975 $as_echo "$am_cv_python_platform" >&6; }
5976 PYTHON_PLATFORM
=$am_cv_python_platform
5979 # Just factor out some code duplication.
5980 am_python_setup_sysconfig
="\
5982 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5983 # with python 3.x. See automake bug#10227.
5987 can_use_sysconfig = 0
5989 can_use_sysconfig = 1
5990 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5991 # <https://github.com/pypa/virtualenv/issues/118>
5993 from platform import python_implementation
5994 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5995 can_use_sysconfig = 0
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6001 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6002 if ${am_cv_python_pythondir+:} false
; then :
6003 $as_echo_n "(cached) " >&6
6005 if test "x$prefix" = xNONE
6007 am_py_prefix
=$ac_default_prefix
6009 am_py_prefix
=$prefix
6011 am_cv_python_pythondir
=`$PYTHON -c "
6012 $am_python_setup_sysconfig
6013 if can_use_sysconfig:
6014 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6016 from distutils import sysconfig
6017 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6018 sys.stdout.write(sitedir)"`
6019 case $am_cv_python_pythondir in
6021 am__strip_prefix
=`echo "$am_py_prefix" | sed 's|.|.|g'`
6022 am_cv_python_pythondir
=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6025 case $am_py_prefix in
6028 am_cv_python_pythondir
=$PYTHON_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6036 $as_echo "$am_cv_python_pythondir" >&6; }
6037 pythondir
=$am_cv_python_pythondir
6041 pkgpythondir
=\
${pythondir}/$PACKAGE
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6045 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6046 if ${am_cv_python_pyexecdir+:} false
; then :
6047 $as_echo_n "(cached) " >&6
6049 if test "x$exec_prefix" = xNONE
6051 am_py_exec_prefix
=$am_py_prefix
6053 am_py_exec_prefix
=$exec_prefix
6055 am_cv_python_pyexecdir
=`$PYTHON -c "
6056 $am_python_setup_sysconfig
6057 if can_use_sysconfig:
6058 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6060 from distutils import sysconfig
6061 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6062 sys.stdout.write(sitedir)"`
6063 case $am_cv_python_pyexecdir in
6064 $am_py_exec_prefix*)
6065 am__strip_prefix
=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6066 am_cv_python_pyexecdir
=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6069 case $am_py_exec_prefix in
6072 am_cv_python_pyexecdir
=$PYTHON_EXEC_PREFIX/lib
/python
$PYTHON_VERSION/site-packages
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6080 $as_echo "$am_cv_python_pyexecdir" >&6; }
6081 pyexecdir
=$am_cv_python_pyexecdir
6085 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
6093 # Check whether --enable-libpng-config was given.
6094 if test "${enable_libpng_config+set}" = set; then :
6095 enableval
=$enable_libpng_config;
6098 if test "$enable_libpng_config" != "no"; then
6099 # Extract the first word of "libpng-config", so it can be a program name with args.
6100 set dummy libpng-config
; ac_word
=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false
; then :
6104 $as_echo_n "(cached) " >&6
6106 if test -n "$arosconfig_use_libpngconfig"; then
6107 ac_cv_prog_arosconfig_use_libpngconfig
="$arosconfig_use_libpngconfig" # Let the user override the test.
6109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir
=.
6114 for ac_exec_ext
in '' $ac_executable_extensions; do
6115 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_arosconfig_use_libpngconfig
="yes"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig
="no"
6127 arosconfig_use_libpngconfig
=$ac_cv_prog_arosconfig_use_libpngconfig
6128 if test -n "$arosconfig_use_libpngconfig"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6130 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6138 if test "$arosconfig_use_libpngconfig" = "yes"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6140 $as_echo_n "checking libpng-config library... " >&6; }
6141 libpng_incdir
="`libpng-config --cflags`"
6142 libpng_libextra
="$libpng_libextra `libpng-config --ldflags`"
6143 libpng
="`libpng-config --libs`"
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6145 $as_echo "$libpng" >&6; }
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6149 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6150 if ${ac_cv_lib_png_png_read_png+:} false
; then :
6151 $as_echo_n "(cached) " >&6
6153 ac_check_lib_save_LIBS
=$LIBS
6155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6158 /* Override any GCC internal prototype to avoid an error.
6159 Use char because int might match the return type of a GCC
6160 builtin and then its argument prototype would still apply. */
6164 char png_read_png ();
6168 return png_read_png ();
6173 if ac_fn_c_try_link
"$LINENO"; then :
6174 ac_cv_lib_png_png_read_png
=yes
6176 ac_cv_lib_png_png_read_png
=no
6178 rm -f core conftest.err conftest.
$ac_objext \
6179 conftest
$ac_exeext conftest.
$ac_ext
6180 LIBS
=$ac_check_lib_save_LIBS
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6183 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6184 if test "x$ac_cv_lib_png_png_read_png" = xyes
; then :
6190 if test "$libpng_libextra" != ""; then
6191 if test "$libpng" != "no"; then
6192 libpng_libextra
="$libpng_libextra $libpng"
6197 if test "$libpng" = ""; then
6200 if test "$libpng" = "no"; then
6203 if test "$req_avail" = "no"; then
6204 as_fn_error $?
"libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6220 # Check for some includes for the X11 HIDD and the kernel
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6223 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6224 if ${ac_cv_path_GREP+:} false
; then :
6225 $as_echo_n "(cached) " >&6
6227 if test -z "$GREP"; then
6228 ac_path_GREP_found
=false
6229 # Loop through the user's path and test for each of PROGNAME-LIST
6230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6231 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6234 test -z "$as_dir" && as_dir
=.
6235 for ac_prog
in grep ggrep
; do
6236 for ac_exec_ext
in '' $ac_executable_extensions; do
6237 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6238 as_fn_executable_p
"$ac_path_GREP" ||
continue
6239 # Check for GNU ac_path_GREP and select it if it is found.
6240 # Check for GNU $ac_path_GREP
6241 case `"$ac_path_GREP" --version 2>&1` in
6243 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6246 $as_echo_n 0123456789 >"conftest.in"
6249 cat "conftest.in" "conftest.in" >"conftest.tmp"
6250 mv "conftest.tmp" "conftest.in"
6251 cp "conftest.in" "conftest.nl"
6252 $as_echo 'GREP' >> "conftest.nl"
6253 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6254 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6255 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6256 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6257 # Best one so far, save it but keep looking for a better one
6258 ac_cv_path_GREP
="$ac_path_GREP"
6259 ac_path_GREP_max
=$ac_count
6261 # 10*(2^10) chars as input seems more than enough
6262 test $ac_count -gt 10 && break
6264 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6267 $ac_path_GREP_found && break 3
6272 if test -z "$ac_cv_path_GREP"; then
6273 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6276 ac_cv_path_GREP
=$GREP
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6281 $as_echo "$ac_cv_path_GREP" >&6; }
6282 GREP
="$ac_cv_path_GREP"
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6286 $as_echo_n "checking for egrep... " >&6; }
6287 if ${ac_cv_path_EGREP+:} false
; then :
6288 $as_echo_n "(cached) " >&6
6290 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6291 then ac_cv_path_EGREP
="$GREP -E"
6293 if test -z "$EGREP"; then
6294 ac_path_EGREP_found
=false
6295 # Loop through the user's path and test for each of PROGNAME-LIST
6296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6297 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6300 test -z "$as_dir" && as_dir
=.
6301 for ac_prog
in egrep; do
6302 for ac_exec_ext
in '' $ac_executable_extensions; do
6303 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6304 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6305 # Check for GNU ac_path_EGREP and select it if it is found.
6306 # Check for GNU $ac_path_EGREP
6307 case `"$ac_path_EGREP" --version 2>&1` in
6309 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6312 $as_echo_n 0123456789 >"conftest.in"
6315 cat "conftest.in" "conftest.in" >"conftest.tmp"
6316 mv "conftest.tmp" "conftest.in"
6317 cp "conftest.in" "conftest.nl"
6318 $as_echo 'EGREP' >> "conftest.nl"
6319 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6320 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6321 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6322 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6323 # Best one so far, save it but keep looking for a better one
6324 ac_cv_path_EGREP
="$ac_path_EGREP"
6325 ac_path_EGREP_max
=$ac_count
6327 # 10*(2^10) chars as input seems more than enough
6328 test $ac_count -gt 10 && break
6330 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6333 $ac_path_EGREP_found && break 3
6338 if test -z "$ac_cv_path_EGREP"; then
6339 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6342 ac_cv_path_EGREP
=$EGREP
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6348 $as_echo "$ac_cv_path_EGREP" >&6; }
6349 EGREP
="$ac_cv_path_EGREP"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6353 $as_echo_n "checking for ANSI C header files... " >&6; }
6354 if ${ac_cv_header_stdc+:} false
; then :
6355 $as_echo_n "(cached) " >&6
6357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6372 if ac_fn_c_try_compile
"$LINENO"; then :
6373 ac_cv_header_stdc
=yes
6375 ac_cv_header_stdc
=no
6377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6379 if test $ac_cv_header_stdc = yes; then
6380 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 $EGREP "memchr" >/dev
/null
2>&1; then :
6390 ac_cv_header_stdc
=no
6396 if test $ac_cv_header_stdc = yes; then
6397 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6404 $EGREP "free" >/dev
/null
2>&1; then :
6407 ac_cv_header_stdc
=no
6413 if test $ac_cv_header_stdc = yes; then
6414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6415 if test "$cross_compiling" = yes; then :
6418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6422 #if ((' ' & 0x0FF) == 0x020)
6423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6426 # define ISLOWER(c) \
6427 (('a' <= (c) && (c) <= 'i') \
6428 || ('j' <= (c) && (c) <= 'r') \
6429 || ('s' <= (c) && (c) <= 'z'))
6430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6438 for (i = 0; i < 256; i++)
6439 if (XOR (islower (i), ISLOWER (i))
6440 || toupper (i) != TOUPPER (i))
6445 if ac_fn_c_try_run
"$LINENO"; then :
6448 ac_cv_header_stdc
=no
6450 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6451 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6457 $as_echo "$ac_cv_header_stdc" >&6; }
6458 if test $ac_cv_header_stdc = yes; then
6460 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6464 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6465 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6466 inttypes.h stdint.h unistd.h
6468 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6469 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6471 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6472 cat >>confdefs.h
<<_ACEOF
6473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6481 for ac_header
in sys
/ipc.h sys
/shm.h \
6482 sys
/mmap.h sys
/mman.h sysexits.h \
6483 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6486 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6487 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6488 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6489 cat >>confdefs.h
<<_ACEOF
6490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6498 for ac_header
in sys
/mount.h
6500 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6502 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6503 cat >>confdefs.h
<<_ACEOF
6504 #define HAVE_SYS_MOUNT_H 1
6513 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6514 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6516 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6517 if eval \
${$as_ac_Header+:} false
; then :
6518 $as_echo_n "(cached) " >&6
6520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 #include <sys/types.h>
6534 if ac_fn_c_try_compile
"$LINENO"; then :
6535 eval "$as_ac_Header=yes"
6537 eval "$as_ac_Header=no"
6539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6541 eval ac_res
=\$
$as_ac_Header
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6543 $as_echo "$ac_res" >&6; }
6544 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6545 cat >>confdefs.h
<<_ACEOF
6546 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6549 ac_header_dirent
=$ac_hdr; break
6553 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6554 if test $ac_header_dirent = dirent.h
; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6556 $as_echo_n "checking for library containing opendir... " >&6; }
6557 if ${ac_cv_search_opendir+:} false
; then :
6558 $as_echo_n "(cached) " >&6
6560 ac_func_search_save_LIBS
=$LIBS
6561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6564 /* Override any GCC internal prototype to avoid an error.
6565 Use char because int might match the return type of a GCC
6566 builtin and then its argument prototype would still apply. */
6579 for ac_lib
in '' dir
; do
6580 if test -z "$ac_lib"; then
6581 ac_res
="none required"
6584 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6586 if ac_fn_c_try_link
"$LINENO"; then :
6587 ac_cv_search_opendir
=$ac_res
6589 rm -f core conftest.err conftest.
$ac_objext \
6591 if ${ac_cv_search_opendir+:} false
; then :
6595 if ${ac_cv_search_opendir+:} false
; then :
6598 ac_cv_search_opendir
=no
6601 LIBS
=$ac_func_search_save_LIBS
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6604 $as_echo "$ac_cv_search_opendir" >&6; }
6605 ac_res
=$ac_cv_search_opendir
6606 if test "$ac_res" != no
; then :
6607 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6613 $as_echo_n "checking for library containing opendir... " >&6; }
6614 if ${ac_cv_search_opendir+:} false
; then :
6615 $as_echo_n "(cached) " >&6
6617 ac_func_search_save_LIBS
=$LIBS
6618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6621 /* Override any GCC internal prototype to avoid an error.
6622 Use char because int might match the return type of a GCC
6623 builtin and then its argument prototype would still apply. */
6636 for ac_lib
in '' x
; do
6637 if test -z "$ac_lib"; then
6638 ac_res
="none required"
6641 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6643 if ac_fn_c_try_link
"$LINENO"; then :
6644 ac_cv_search_opendir
=$ac_res
6646 rm -f core conftest.err conftest.
$ac_objext \
6648 if ${ac_cv_search_opendir+:} false
; then :
6652 if ${ac_cv_search_opendir+:} false
; then :
6655 ac_cv_search_opendir
=no
6658 LIBS
=$ac_func_search_save_LIBS
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6661 $as_echo "$ac_cv_search_opendir" >&6; }
6662 ac_res
=$ac_cv_search_opendir
6663 if test "$ac_res" != no
; then :
6664 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6671 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6672 if ${ac_cv_header_stat_broken+:} false
; then :
6673 $as_echo_n "(cached) " >&6
6675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677 #include <sys/types.h>
6678 #include <sys/stat.h>
6680 #if defined S_ISBLK && defined S_IFDIR
6681 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6684 #if defined S_ISBLK && defined S_IFCHR
6685 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6688 #if defined S_ISLNK && defined S_IFREG
6689 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6692 #if defined S_ISSOCK && defined S_IFREG
6693 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6697 if ac_fn_c_try_compile
"$LINENO"; then :
6698 ac_cv_header_stat_broken
=no
6700 ac_cv_header_stat_broken
=yes
6702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6705 $as_echo "$ac_cv_header_stat_broken" >&6; }
6706 if test $ac_cv_header_stat_broken = yes; then
6708 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6713 $as_echo_n "checking for ANSI C header files... " >&6; }
6714 if ${ac_cv_header_stdc+:} false
; then :
6715 $as_echo_n "(cached) " >&6
6717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6732 if ac_fn_c_try_compile
"$LINENO"; then :
6733 ac_cv_header_stdc
=yes
6735 ac_cv_header_stdc
=no
6737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6739 if test $ac_cv_header_stdc = yes; then
6740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6747 $EGREP "memchr" >/dev
/null
2>&1; then :
6750 ac_cv_header_stdc
=no
6756 if test $ac_cv_header_stdc = yes; then
6757 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6764 $EGREP "free" >/dev
/null
2>&1; then :
6767 ac_cv_header_stdc
=no
6773 if test $ac_cv_header_stdc = yes; then
6774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6775 if test "$cross_compiling" = yes; then :
6778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6782 #if ((' ' & 0x0FF) == 0x020)
6783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6786 # define ISLOWER(c) \
6787 (('a' <= (c) && (c) <= 'i') \
6788 || ('j' <= (c) && (c) <= 'r') \
6789 || ('s' <= (c) && (c) <= 'z'))
6790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6798 for (i = 0; i < 256; i++)
6799 if (XOR (islower (i), ISLOWER (i))
6800 || toupper (i) != TOUPPER (i))
6805 if ac_fn_c_try_run
"$LINENO"; then :
6808 ac_cv_header_stdc
=no
6810 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6811 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6817 $as_echo "$ac_cv_header_stdc" >&6; }
6818 if test $ac_cv_header_stdc = yes; then
6820 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6825 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6826 if ${ac_cv_header_sys_wait_h+:} false
; then :
6827 $as_echo_n "(cached) " >&6
6829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 #include <sys/types.h>
6832 #include <sys/wait.h>
6834 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6837 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6845 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6850 if ac_fn_c_try_compile
"$LINENO"; then :
6851 ac_cv_header_sys_wait_h
=yes
6853 ac_cv_header_sys_wait_h
=no
6855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6858 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6859 if test $ac_cv_header_sys_wait_h = yes; then
6861 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6866 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6867 if ${ac_cv_header_time+:} false
; then :
6868 $as_echo_n "(cached) " >&6
6870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 #include <sys/types.h>
6873 #include <sys/time.h>
6879 if ((struct tm *) 0)
6885 if ac_fn_c_try_compile
"$LINENO"; then :
6886 ac_cv_header_time
=yes
6888 ac_cv_header_time
=no
6890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6893 $as_echo "$ac_cv_header_time" >&6; }
6894 if test $ac_cv_header_time = yes; then
6896 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6900 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6901 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
6903 cat >>confdefs.h
<<_ACEOF
6904 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6908 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6913 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6914 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
6916 cat >>confdefs.h
<<_ACEOF
6917 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6921 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6924 case " $LIBOBJS " in
6925 *" fileblocks.$ac_objext "* ) ;;
6926 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6933 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6934 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
6936 cat >>confdefs.h
<<_ACEOF
6937 #define HAVE_STRUCT_STAT_ST_RDEV 1
6941 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6947 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6948 if ${ac_cv_struct_tm+:} false
; then :
6949 $as_echo_n "(cached) " >&6
6951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6953 #include <sys/types.h>
6960 int *p = &tm.tm_sec;
6966 if ac_fn_c_try_compile
"$LINENO"; then :
6967 ac_cv_struct_tm
=time.h
6969 ac_cv_struct_tm
=sys
/time.h
6971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6974 $as_echo "$ac_cv_struct_tm" >&6; }
6975 if test $ac_cv_struct_tm = sys
/time.h
; then
6977 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6981 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6982 #include <$ac_cv_struct_tm>
6985 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
6987 cat >>confdefs.h
<<_ACEOF
6988 #define HAVE_STRUCT_TM_TM_ZONE 1
6994 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6996 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6999 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7001 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
7007 cat >>confdefs.h
<<_ACEOF
7008 #define HAVE_DECL_TZNAME $ac_have_decl
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7012 $as_echo_n "checking for tzname... " >&6; }
7013 if ${ac_cv_var_tzname+:} false
; then :
7014 $as_echo_n "(cached) " >&6
7016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7019 #if !HAVE_DECL_TZNAME
7020 extern char *tzname[];
7026 return tzname[0][0];
7031 if ac_fn_c_try_link
"$LINENO"; then :
7032 ac_cv_var_tzname
=yes
7036 rm -f core conftest.err conftest.
$ac_objext \
7037 conftest
$ac_exeext conftest.
$ac_ext
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7040 $as_echo "$ac_cv_var_tzname" >&6; }
7041 if test $ac_cv_var_tzname = yes; then
7043 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7048 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7049 if test "x$ac_cv_type_off_t" = xyes
; then :
7053 cat >>confdefs.h
<<_ACEOF
7054 #define off_t long int
7059 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7060 if test "x$ac_cv_type_pid_t" = xyes
; then :
7064 cat >>confdefs.h
<<_ACEOF
7070 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7071 if test "x$ac_cv_type_size_t" = xyes
; then :
7075 cat >>confdefs.h
<<_ACEOF
7076 #define size_t unsigned int
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7082 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7083 if ${ac_cv_type_uid_t+:} false
; then :
7084 $as_echo_n "(cached) " >&6
7086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088 #include <sys/types.h>
7091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7092 $EGREP "uid_t" >/dev
/null
2>&1; then :
7093 ac_cv_type_uid_t
=yes
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7101 $as_echo "$ac_cv_type_uid_t" >&6; }
7102 if test $ac_cv_type_uid_t = no
; then
7104 $as_echo "#define uid_t int" >>confdefs.h
7107 $as_echo "#define gid_t int" >>confdefs.h
7112 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7113 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7115 cat >>confdefs.h
<<_ACEOF
7116 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7123 # Look for some functions
7124 for ac_func
in getpagesize kqueue statfs statvfs \
7125 clone kse_create rfork_thread thr_create sa_register \
7126 getcontext makecontext setcontext sigaltstack swapcontext
7128 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7129 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7130 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7131 cat >>confdefs.h
<<_ACEOF
7132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7142 for ac_header
in $ac_header_list
7144 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7145 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7147 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7148 cat >>confdefs.h
<<_ACEOF
7149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7163 for ac_func
in getpagesize
7165 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7166 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7167 cat >>confdefs.h
<<_ACEOF
7168 #define HAVE_GETPAGESIZE 1
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7175 $as_echo_n "checking for working mmap... " >&6; }
7176 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7177 $as_echo_n "(cached) " >&6
7179 if test "$cross_compiling" = yes; then :
7180 ac_cv_func_mmap_fixed_mapped
=no
7182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7184 $ac_includes_default
7185 /* malloc might have been renamed as rpl_malloc. */
7188 /* Thanks to Mike Haertel and Jim Avera for this test.
7189 Here is a matrix of mmap possibilities:
7190 mmap private not fixed
7191 mmap private fixed at somewhere currently unmapped
7192 mmap private fixed at somewhere already mapped
7193 mmap shared not fixed
7194 mmap shared fixed at somewhere currently unmapped
7195 mmap shared fixed at somewhere already mapped
7196 For private mappings, we should verify that changes cannot be read()
7197 back from the file, nor mmap's back from the file at a different
7198 address. (There have been systems where private was not correctly
7199 implemented like the infamous i386 svr4.0, and systems where the
7200 VM page cache was not coherent with the file system buffer cache
7201 like early versions of FreeBSD and possibly contemporary NetBSD.)
7202 For shared mappings, we should conversely verify that changes get
7203 propagated back to all the places they're supposed to be.
7205 Grep wants private fixed already mapped.
7206 The main things grep needs to know about mmap are:
7207 * does it exist and is it safe to write into the mmap'd area
7208 * how to use it (BSD variants) */
7211 #include <sys/mman.h>
7213 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7217 /* This mess was copied from the GNU getpagesize.h. */
7218 #ifndef HAVE_GETPAGESIZE
7219 # ifdef _SC_PAGESIZE
7220 # define getpagesize() sysconf(_SC_PAGESIZE)
7221 # else /* no _SC_PAGESIZE */
7222 # ifdef HAVE_SYS_PARAM_H
7223 # include <sys/param.h>
7224 # ifdef EXEC_PAGESIZE
7225 # define getpagesize() EXEC_PAGESIZE
7226 # else /* no EXEC_PAGESIZE */
7228 # define getpagesize() NBPG * CLSIZE
7231 # endif /* no CLSIZE */
7232 # else /* no NBPG */
7234 # define getpagesize() NBPC
7235 # else /* no NBPC */
7237 # define getpagesize() PAGESIZE
7238 # endif /* PAGESIZE */
7239 # endif /* no NBPC */
7240 # endif /* no NBPG */
7241 # endif /* no EXEC_PAGESIZE */
7242 # else /* no HAVE_SYS_PARAM_H */
7243 # define getpagesize() 8192 /* punt totally */
7244 # endif /* no HAVE_SYS_PARAM_H */
7245 # endif /* no _SC_PAGESIZE */
7247 #endif /* no HAVE_GETPAGESIZE */
7252 char *data, *data2, *data3;
7257 pagesize = getpagesize ();
7259 /* First, make a file with some known garbage in it. */
7260 data = (char *) malloc (pagesize);
7263 for (i = 0; i < pagesize; ++i)
7264 *(data + i) = rand ();
7266 fd = creat ("conftest.mmap", 0600);
7269 if (write (fd, data, pagesize) != pagesize)
7273 /* Next, check that the tail of a page is zero-filled. File must have
7274 non-zero length, otherwise we risk SIGBUS for entire page. */
7275 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7279 if (write (fd2, cdata2, 1) != 1)
7281 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7282 if (data2 == MAP_FAILED)
7284 for (i = 0; i < pagesize; ++i)
7288 if (munmap (data2, pagesize))
7291 /* Next, try to mmap the file at a fixed address which already has
7292 something else allocated at it. If we can, also make sure that
7293 we see the same garbage. */
7294 fd = open ("conftest.mmap", O_RDWR);
7297 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7298 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7300 for (i = 0; i < pagesize; ++i)
7301 if (*(data + i) != *(data2 + i))
7304 /* Finally, make sure that changes to the mapped area do not
7305 percolate back to the file as seen by read(). (This is a bug on
7306 some variants of i386 svr4.0.) */
7307 for (i = 0; i < pagesize; ++i)
7308 *(data2 + i) = *(data2 + i) + 1;
7309 data3 = (char *) malloc (pagesize);
7312 if (read (fd, data3, pagesize) != pagesize)
7314 for (i = 0; i < pagesize; ++i)
7315 if (*(data + i) != *(data3 + i))
7321 if ac_fn_c_try_run
"$LINENO"; then :
7322 ac_cv_func_mmap_fixed_mapped
=yes
7324 ac_cv_func_mmap_fixed_mapped
=no
7326 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7327 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7332 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7333 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7335 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7338 rm -f conftest.mmap conftest.txt
7341 #-----------------------------------------------------------------------------
7344 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7345 # it switched on by default, and we use the host compiler, so it compiles AROS
7346 # code with this enabled resulting in link failures as we don't have support
7349 # We use two methods to disable it. For the host compiler (used to compile
7350 # some hosted modules), we test to see if the compiler supports stack
7351 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7352 # work on all platforms.
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7356 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7357 save_cflags
="$CFLAGS"
7358 CFLAGS
="$CFLAGS -fno-stack-protector"
7359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7370 if ac_fn_c_try_compile
"$LINENO"; then :
7371 use_no_stack_protector
="yes"
7373 use_no_stack_protector
="no"
7375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7377 $as_echo "$use_no_stack_protector" >&6; }
7378 if test "x-$use_no_stack_protector" = "x-yes" ; then
7379 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7381 CFLAGS
="$save_cflags"
7383 #-----------------------------------------------------------------------------
7385 # Disable pointer-signedness warnings if the compiler recognises the option
7386 # (this only works for the host compiler at the moment)
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7389 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7390 save_cflags
="$CFLAGS"
7391 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7403 if ac_fn_c_try_compile
"$LINENO"; then :
7404 use_no_sign_warning
="yes"
7406 use_no_sign_warning
="no"
7408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7410 $as_echo "$use_no_sign_warning" >&6; }
7411 if test "x-$use_no_sign_warning" = "x-yes" ; then
7412 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7414 CFLAGS
="$save_cflags"
7416 #-----------------------------------------------------------------------------
7418 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7421 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7422 save_cflags
="$CFLAGS"
7423 CFLAGS
="$CFLAGS -fgnu89-inline"
7424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7435 if ac_fn_c_try_compile
"$LINENO"; then :
7436 use_gnu89_inline
="yes"
7438 use_gnu89_inline
="no"
7440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7442 $as_echo "$use_gnu89_inline" >&6; }
7443 if test "x-$use_gnu89_inline" = "x-yes" ; then
7444 gnu89_inline
="-fgnu89-inline"
7446 CFLAGS
="$save_cflags"
7449 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7450 # On GCC >= 4.0 -iquote should be used
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7453 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7454 CFLAGS
="$CFLAGS -iquote."
7455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7466 if ac_fn_c_try_compile
"$LINENO"; then :
7471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7473 $as_echo "$has_iquote" >&6; }
7474 if test "x-$has_iquote" = "x-yes" ; then
7475 host_cflags_iquote
=-iquote
7476 host_cflags_iquote_end
=
7478 host_cflags_iquote
=-I
7479 host_cflags_iquote_end
=-I-
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7483 $as_echo "$as_me: Performing target configuration..." >&6;}
7486 aros_nowarn_flags
="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7488 toolchain_needs_sysroot
=no
7490 aros_config_cflags
="-Wall -Werror-implicit-function-declaration"
7491 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
7492 aros_config_ldflags
=""
7494 aros_shared_default
=yes
7496 aros_shared_cflags
="-fPIC"
7497 aros_shared_aflags
=""
7498 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7499 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7501 aros_kernel_ar_flags
="cr"
7502 aros_target_ar_flags
="cr"
7503 aros_target_nm_flags
="-C -ul"
7504 aros_target_strip_flags
="--strip-unneeded -R.comment"
7509 aros_target_genmap
="-Wl,-Map -Xlinker"
7511 # Native flavour stuff
7512 aros_serial_debug
="0"
7514 # Palm native flavour stuff
7515 aros_palm_debug_hack
="0"
7517 # Unix flavour stuff
7518 aros_nesting_supervisor
="0"
7520 # Collect-aros stuff: "-ius" to ignore undefined symbols
7521 ignore_undefined_symbols
=""
7523 # Check for X11 by default
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7532 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7534 # Check whether --with-toolchain was given.
7535 if test "${with_toolchain+set}" = set; then :
7536 withval
=$with_toolchain; aros_toolchain
="$withval"
7538 aros_toolchain
="gnu"
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7542 $as_echo "$aros_toolchain" >&6; }
7544 case "$aros_toolchain" in
7546 # toolchain_needs_sysroot=yes
7547 toolchain_c_compiler
="clang"
7548 toolchain_cxx_compiler
="clang++"
7549 toolchain_cpp_preprocessor
="clang -E"
7551 toolchain_as
="llvm-as"
7552 toolchain_ar
="llvm-ar"
7553 toolchain_ranlib
="llvm-ranlib"
7554 toolchain_nm
="llvm-nm"
7555 toolchain_strip
="true"
7556 toolchain_objcopy
="llvm-objcopy"
7557 toolchain_objdump
="llvm-objdump"
7560 toolchain_c_compiler
="gcc"
7561 toolchain_cxx_compiler
="g++"
7562 toolchain_cpp_preprocessor
="cpp"
7566 toolchain_ranlib
="ranlib"
7568 toolchain_strip
="strip"
7569 toolchain_objcopy
="objcopy"
7570 toolchain_objdump
="objdump"
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7574 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7575 toolchain_c_compiler
="cc"
7576 toolchain_cxx_compiler
="c++"
7577 toolchain_cpp_preprocessor
="cpp"
7581 toolchain_ranlib
="ranlib"
7583 toolchain_strip
="strip"
7584 toolchain_objcopy
="objcopy"
7585 toolchain_objdump
="objdump"
7589 #-----------------------------------------------------------------------------
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7592 $as_echo_n "checking which type of build to do... " >&6; }
7593 # Check whether --enable-build_type was given.
7594 if test "${enable_build_type+set}" = set; then :
7595 enableval
=$enable_build_type; build_type
=$enableval
7597 build_type
="personal"
7601 if test "$build_type" = "nightly"; then
7602 build_type_string
="NIGHTLY"
7603 elif test "$build_type" = "snapshot"; then
7604 build_type_string
="SNAPSHOT"
7605 elif test "$build_type" = "milestone"; then
7606 build_type_string
="MILESTONE"
7607 elif test "$build_type" = "release"; then
7608 build_type_string
="RELEASE"
7610 build_type_string
="PERSONAL"
7611 build_type
="personal"
7614 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7617 $as_echo "$build_type" >&6; }
7619 #-----------------------------------------------------------------------------
7620 all_debug_types
="messages stack modules mungwall symbols"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7623 $as_echo_n "checking which debug types to enable... " >&6; }
7624 # Check whether --enable-debug was given.
7625 if test "${enable_debug+set}" = set; then :
7626 enableval
=$enable_debug; debug
="$enableval"
7632 if test "$debug" = "" -o "$debug" = "no"; then
7634 elif test "$debug" = "yes"; then
7638 if test "$debug" = "all" ; then
7639 debug
="messages stack modules symbols"
7640 for d
in $all_debug_types; do
7641 export aros_
${d}_debug
="1"
7644 for d
in $all_debug_types; do
7645 export aros_
${d}_debug
="0"
7649 if test "$debug" != "none"; then
7650 debug
=`echo $debug | sed s/,/\ /g`
7653 for d2
in $all_debug_types; do
7654 if test "$d2" = "$d"; then
7659 if test "$found" = "0"; then
7660 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7662 export aros_
${d}_debug
="1"
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7667 $as_echo "$debug" >&6; }
7669 if test "$aros_messages_debug" = "1"; then
7670 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
7672 aros_messages_debug
=""
7674 if test "$aros_symbols_debug" = "1"; then
7675 aros_symbols_debug
="-g"
7677 aros_symbols_debug
=""
7680 # These are the flags to pass when compiling debugged programs
7681 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
7682 aros_debug_aflags
=""
7683 aros_debug_ldflags
="$aros_symbols_debug"
7685 #-----------------------------------------------------------------------------
7686 # Checking for distcc and ccache.
7688 # Always apply the transforms in this particular order. Basically you should
7689 # always run 'ccache distcc compiler' in that order for the best performance.
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7692 $as_echo_n "checking whether to enable distcc... " >&6; }
7693 # Check whether --enable-distcc was given.
7694 if test "${enable_distcc+set}" = set; then :
7695 enableval
=$enable_distcc; distcc
="$enableval"
7700 if test "$distcc" != "" -a "$distcc" != "no"; then
7701 # AC_CHECK_PROG will print out the result in this case
7702 # Extract the first word of "distcc", so it can be a program name with args.
7703 set dummy distcc
; ac_word
=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if ${ac_cv_path_DISTCC+:} false
; then :
7707 $as_echo_n "(cached) " >&6
7711 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
7714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir
=.
7719 for ac_exec_ext
in '' $ac_executable_extensions; do
7720 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
7733 DISTCC
=$ac_cv_path_DISTCC
7734 if test -n "$DISTCC"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7736 $as_echo "$DISTCC" >&6; }
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7749 $as_echo_n "checking whether to enable ccache... " >&6; }
7750 # Check whether --enable-ccache was given.
7751 if test "${enable_ccache+set}" = set; then :
7752 enableval
=$enable_ccache; ccache
="$enableval"
7757 if test "$ccache" != "" -a "$ccache" != "no"; then
7758 # AC_CHECK_PROG will print out the result in this case
7759 # Extract the first word of "ccache", so it can be a program name with args.
7760 set dummy ccache
; ac_word
=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_prog_CCACHE+:} false
; then :
7764 $as_echo_n "(cached) " >&6
7766 if test -n "$CCACHE"; then
7767 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
7769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7773 test -z "$as_dir" && as_dir
=.
7774 for ac_exec_ext
in '' $ac_executable_extensions; do
7775 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_CCACHE
="ccache"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 CCACHE
=$ac_cv_prog_CCACHE
7787 if test -n "$CCACHE"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7789 $as_echo "$CCACHE" >&6; }
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7801 #-----------------------------------------------------------------------------
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7803 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7805 # Check whether --with-kernel-gcc-version was given.
7806 if test "${with_kernel_gcc_version+set}" = set; then :
7807 withval
=$with_kernel_gcc_version; kernel_tool_version
="$withval"
7809 kernel_tool_version
=""
7812 if test "$kernel_tool_version" != "" ; then
7813 msg_result
=$kernel_tool_version
7815 msg_result
="default"
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7818 $as_echo "$msg_result" >&6; }
7820 #-----------------------------------------------------------------------------
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7822 $as_echo_n "checking what optimization flags to use... " >&6; }
7824 # Check whether --with-optimization was given.
7825 if test "${with_optimization+set}" = set; then :
7826 withval
=$with_optimization; optimization
="$withval"
7828 optimization
="unknown"
7831 if test "$optimization" = "unknown"; then
7832 if test "$debug" != "none"; then
7838 aros_optimization_cflags
="$optimization"
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7840 $as_echo "$optimization" >&6; }
7842 #-----------------------------------------------------------------------------
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7844 $as_echo_n "checking which paranoia flags to use... " >&6; }
7846 # Check whether --with-paranoia was given.
7847 if test "${with_paranoia+set}" = set; then :
7848 withval
=$with_paranoia; paranoia_flags
="$withval"
7850 paranoia_flags
="default"
7853 if test "$paranoia_flags" = "default"; then
7856 else if test "$paranoia_flags" = "yes"; then
7857 paranoia_flags
="-Wall -Werror"
7858 msg_result
="$paranoia_flags"
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7861 $as_echo "$msg_result" >&6; }
7862 aros_config_cflags
="$aros_config_cflags $paranoia_flags"
7864 #-----------------------------------------------------------------------------
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7866 $as_echo_n "checking what target variant to enable... " >&6; }
7867 # Check whether --enable-target_variant was given.
7868 if test "${enable_target_variant+set}" = set; then :
7869 enableval
=$enable_target_variant; target_variant
=$enableval
7874 if test "$target_variant" = ""; then
7875 aros_target_variant
=""
7876 aros_target_suffix
=""
7879 aros_target_variant
="$target_variant"
7880 aros_target_suffix
="-$target_variant"
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7883 $as_echo "$enableval" >&6; }
7885 #-----------------------------------------------------------------------------
7886 # Target-specific defaults. You can override then on a per-target basis.
7888 # Bootloader name. Currently used by PC target.
7889 target_bootloader
="none"
7892 #-----------------------------------------------------------------------------
7893 # Additional options for some specific targets
7895 case "$aros_target_variant" in
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7898 $as_echo_n "checking XCode path... " >&6; }
7900 # Check whether --with-xcode was given.
7901 if test "${with_xcode+set}" = set; then :
7902 withval
=$with_xcode; aros_xcode_path
="$withval"
7904 aros_xcode_path
="/Developer"
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7908 $as_echo "$aros_xcode_path" >&6; }
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7911 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7913 # Check whether --with-sdk-version was given.
7914 if test "${with_sdk_version+set}" = set; then :
7915 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7917 aros_sdk_version
="4.1"
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7921 $as_echo "$aros_sdk_version" >&6; }
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7927 $as_echo_n "checking Android SDK path... " >&6; }
7929 # Check whether --with-sdk was given.
7930 if test "${with_sdk+set}" = set; then :
7931 withval
=$with_sdk; aros_android_sdk
="$withval"
7933 aros_android_sdk
=$default_android_sdk
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7937 $as_echo "$aros_android_sdk" >&6; }
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7940 $as_echo_n "checking Android NDK path... " >&6; }
7942 # Check whether --with-ndk was given.
7943 if test "${with_ndk+set}" = set; then :
7944 withval
=$with_ndk; aros_android_ndk
="$withval"
7946 aros_android_ndk
="none"
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7950 $as_echo "$aros_android_ndk" >&6; }
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7953 $as_echo_n "checking what Android SDK version to use... " >&6; }
7955 # Check whether --with-sdk-version was given.
7956 if test "${with_sdk_version+set}" = set; then :
7957 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7959 aros_sdk_version
="12"
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7963 $as_echo "$aros_sdk_version" >&6; }
7965 aros_android_level
=android-
$aros_sdk_version
7966 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
7967 echo "Platform $aros_android_level is not installed in your SDK"
7968 echo "Use --with-sdk-version=<API level number> to select another platform version"
7969 echo "You can check what plaform versions are installed in your SDK"
7970 echo "by examining contents of $aros_android_sdk/platforms directory"
7971 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
7974 export PATH
="$aros_android_sdk/tools:$PATH"
7975 # Extract the first word of "$android_tool", so it can be a program name with args.
7976 set dummy
$android_tool; ac_word
=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if ${ac_cv_path_android_tool+:} false
; then :
7980 $as_echo_n "(cached) " >&6
7982 case $android_tool in
7984 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
7987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7991 test -z "$as_dir" && as_dir
=.
7992 for ac_exec_ext
in '' $ac_executable_extensions; do
7993 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 android_tool
=$ac_cv_path_android_tool
8006 if test -n "$android_tool"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8008 $as_echo "$android_tool" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8016 if test "$android_tool" = ""; then
8019 if test "$android_tool" = "no"; then
8022 if test "$req_avail" = "no"; then
8023 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
8026 if test "$aros_android_ndk" != "none"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8028 $as_echo_n "checking what Android NDK version to use... " >&6; }
8030 # Check whether --with-ndk-version was given.
8031 if test "${with_ndk_version+set}" = set; then :
8032 withval
=$with_ndk_version; aros_ndk_version
="$withval"
8034 aros_ndk_version
="9"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8038 $as_echo "$aros_ndk_version" >&6; }
8041 # Extract the first word of "ant", so it can be a program name with args.
8042 set dummy ant
; ac_word
=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if ${ac_cv_path_ant+:} false
; then :
8046 $as_echo_n "(cached) " >&6
8050 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
8053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8057 test -z "$as_dir" && as_dir
=.
8058 for ac_exec_ext
in '' $ac_executable_extensions; do
8059 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8060 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
8061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 if test -n "$ant"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8074 $as_echo "$ant" >&6; }
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8081 if test "$ant" = ""; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8083 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8087 $as_echo_n "checking Build debug or release apk... " >&6; }
8089 # Check whether --with-apk-version was given.
8090 if test "${with_apk_version+set}" = set; then :
8091 withval
=$with_apk_version; aros_android_antapk
=$withval
8093 aros_android_antapk
=release
8096 if test $aros_android_antapk != release
-a $aros_android_antapk != debug
; then
8097 as_fn_error $?
"apk-version has to be release or debug" "$LINENO" 5
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8100 $as_echo "$aros_android_antapk" >&6; }
8102 if test "$host_os" = "mingw32"; then
8103 android_tool
="cmd //c $android_tool"
8111 #-----------------------------------------------------------------------------
8112 # External toolchains
8113 kernel_tool_prefix
="none"
8114 aros_tool_prefix
="none"
8115 elf_tool_prefix
="${target_cpu}-elf-"
8117 # This is the target configuration switch.
8118 case "$target_os" in
8120 aros_target_arch
="linux"
8121 aros_target_family
="unix"
8122 case "$target_cpu" in
8124 aros_target_cpu
="m68k"
8125 aros_object_format
="m68kelf"
8126 aros_flavour
="emulcompat"
8127 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8128 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8129 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8130 gcc_target_cpu
="mc68000"
8133 aros_target_cpu
="i386"
8134 aros_object_format
="elf_i386"
8135 aros_flavour
="emulation"
8136 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8137 aros_kernel_ldflags
="-Wl,-melf_i386"
8138 aros_nominal_depth
=8
8139 gcc_target_cpu
="i386"
8140 pci_hidd_target
="hidd-pci-linux"
8141 android_tool_dir_prefix
="x86"
8142 android_tool_prefix
="i686-android-linux"
8143 android_ndk_arch
="x86"
8146 aros_target_cpu
="x86_64"
8147 aros_object_format
="elf_x86_64"
8148 aros_flavour
="emulation"
8149 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8150 aros_config_cflags
="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
8151 aros_nominal_depth
=8
8152 pci_hidd_target
="hidd-pci-linux"
8155 aros_target_cpu
="ppc"
8156 aros_object_format
="elf32ppc"
8157 aros_flavour
="emulation"
8158 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8159 aros_nominal_depth
=8
8160 gcc_target_cpu
="ppc"
8163 # Same as powerpc, but I need this for the nightly build to work again.
8164 # Actually, the nightly should be made working with powerpc target.
8165 # That just was too much work for the moment, another week or two.
8167 aros_target_cpu
="ppc"
8168 aros_object_format
="elf32ppc"
8169 aros_flavour
="emulation"
8170 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8171 aros_nominal_depth
=8
8172 gcc_target_cpu
="ppc"
8175 aros_target_cpu
="aarch64"
8176 target_cpu
="aarch64"
8177 aros_object_format
="aarch64elf_aros"
8178 aros_flavour
="emulation"
8179 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8180 gcc_target_cpu
="aarch64"
8181 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8182 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8183 aros_arch_libs
="-laeabi"
8184 gcc_default_float_abi
="hard"
8185 kernel_tool_prefix
="aarch64-linux-gnueabihf-"
8188 aros_target_cpu
="arm"
8190 aros_object_format
="armelf_aros"
8191 aros_flavour
="emulation"
8192 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8193 gcc_target_cpu
="arm"
8194 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8195 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8196 aros_arch_libs
="-laeabi"
8197 gcc_default_float_abi
="hard"
8198 android_tool_dir_prefix
="arm-linux-androideabi"
8199 android_tool_prefix
="arm-linux-androideabi"
8200 android_ndk_arch
="arm"
8201 kernel_tool_prefix
="arm-linux-gnueabihf-"
8204 aros_target_cpu
="arm"
8205 aros_object_format
="armelf_aros"
8206 aros_flavour
="emulation"
8207 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8208 gcc_target_cpu
="arm"
8209 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8210 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
8211 aros_arch_libs
="-laeabi"
8212 android_tool_dir_prefix
="arm-linux-androideabi"
8213 android_tool_prefix
="arm-linux-androideabi"
8214 android_ndk_arch
="arm"
8215 kernel_tool_prefix
="arm-linux-gnueabi-"
8218 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8221 case "$aros_target_variant" in
8224 if test "$android_ndk_arch" = ""; then
8225 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8228 aros_nominal_width
=320
8229 aros_nominal_height
=480
8230 if test "$aros_android_ndk" = "none"; then
8231 aros_kernel_cflags
="-mandroid"
8232 aros_kernel_ldflags
="-mandroid"
8235 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8236 kernel_tool_version
=""
8237 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8238 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
8239 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
8240 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8241 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
8244 host_android_gfx
=yes
8245 # Disable implicit PIC mode
8246 aros_target_cflags
="$aros_target_cflags -fno-pic"
8247 kernel_tool_prefix
="$android_tool_prefix-"
8253 aros_target_arch
="pc"
8254 aros_shared_default
="no"
8255 target_bootloader
="grub2"
8256 case "$target_cpu" in
8258 aros_target_cpu
="i386"
8261 if test "$aros_object_format" = "" ; then
8262 aros_object_format
="elf_i386"
8264 aros_flavour
="standalone"
8265 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8266 aros_kernel_ldflags
="-Wl,-melf_i386"
8267 aros_nominal_width
=640
8268 aros_nominal_height
=480
8269 gcc_target_cpu
="i386"
8272 aros_target_cpu
="x86_64"
8274 if test "$aros_object_format" = "" ; then
8275 aros_object_format
="elf_x86_64"
8277 aros_flavour
="standalone"
8278 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8279 aros_config_cflags
="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8280 aros_kernel_ldflags
=""
8281 aros_nominal_width
=640
8282 aros_nominal_height
=480
8283 case "$aros_target_variant" in
8285 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8290 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8296 aros_target_arch
="prep"
8297 aros_shared_default
="no"
8298 aros_target_cpu
="ppc"
8299 aros_object_format
="elf32ppc"
8300 aros_flavour
="ppcnative"
8301 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8302 aros_kernel_ldflags
=""
8303 aros_nominal_width
=640
8304 aros_nominal_height
=480
8305 gcc_target_cpu
="ppc"
8309 aros_target_arch
="freebsd"
8310 aros_target_family
="unix"
8311 aros_target_cpu
="i386"
8312 aros_flavour
="emulation"
8313 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8314 gcc_target_cpu
="i386"
8316 aros_target_strip_flags
="-x"
8320 aros_target_arch
="darwin"
8321 aros_target_family
="unix"
8322 aros_flavour
="emulation"
8323 case "$target_cpu" in
8325 aros_ios_platform
="iPhoneSimulator"
8326 aros_target_cpu
="i386"
8327 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8328 aros_kernel_ldflags
=""
8329 aros_macosx_version
="10.4"
8330 aros_nominal_depth
=8
8331 gcc_target_cpu
="i386"
8332 aros_object_format
="elf_i386"
8333 aros_kernel_ar_flags
="-cr"
8334 aros_target_strip_flags
="-x"
8335 kernel_tool_flags
="-m32"
8338 aros_target_cpu
="x86_64"
8339 aros_object_format
="elf_x86_64"
8340 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8341 aros_macosx_version
="10.6"
8342 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8343 aros_kernel_cflags
="-m64"
8344 aros_kernel_ldflags
="-m64"
8345 aros_target_cflags
="-mcmodel=large"
8346 aros_nominal_depth
=8
8348 aros_kernel_ar_flags
="-cr"
8351 aros_kernel_ranlib
="ranlib"
8353 aros_kernel_strip
="strip"
8354 kernel_tool_prefix
="i686-apple-darwin10-"
8357 aros_target_cpu
="ppc"
8358 aros_object_format
="elf32ppc"
8359 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8360 aros_kernel_ldflags
=""
8361 aros_macosx_version
="10.0"
8362 aros_nominal_depth
=8
8363 gcc_target_cpu
="ppc"
8365 aros_kernel_ar_flags
="-cr"
8366 aros_kernel_ld
="ld -arch ppc"
8367 aros_kernel_as
="as -arch ppc"
8368 aros_kernel_ranlib
="ranlib -arch ppc"
8369 aros_kernel_nm
="nm -arch ppc"
8370 aros_kernel_strip
="strip -arch ppc"
8371 kernel_tool_prefix
="powerpc-apple-darwin10-"
8374 aros_ios_platform
="iPhoneOS"
8375 aros_target_cpu
="arm"
8376 aros_object_format
="armelf_aros"
8377 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8378 aros_arch_libs
="-laeabi"
8379 aros_nominal_depth
=8
8380 gcc_target_cpu
="arm"
8382 aros_kernel_ar_flags
="-cr"
8383 aros_kernel_ld
="ld -arch arm"
8384 aros_kernel_ranlib
="ranlib -arch arm"
8385 kernel_tool_prefix
="arm-apple-darwin10-"
8386 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8389 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8392 case "$aros_target_variant" in
8394 aros_ios_version
="3.0"
8395 aros_nominal_width
=320
8396 aros_nominal_height
=480
8397 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8398 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
8399 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
8401 # This is here because it may depend on iOS or SDK version
8402 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8403 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8404 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8407 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8408 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8414 aros_target_arch
="dragonfly"
8415 aros_target_family
="unix"
8416 aros_flavour
="emulation"
8417 case "$target_cpu" in
8419 aros_target_cpu
="i386"
8420 aros_object_format
="elf_i386"
8421 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8424 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8425 aros_target_cpu
="x86_64"
8426 aros_object_format
="elf_x86_64"
8427 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8430 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8436 aros_target_arch
="netbsd"
8437 aros_target_family
="unix"
8438 case "$target_cpu" in
8440 aros_target_cpu
="m68k"
8441 aros_object_format
="m68kelf"
8442 aros_flavour
="emulcompat"
8443 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8444 gcc_target_cpu
="mc68000"
8447 aros_target_cpu
="i386"
8448 aros_object_format
="elf_i386"
8449 aros_flavour
="emulation"
8450 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8451 aros_nominal_depth
=8
8452 gcc_target_cpu
="i386"
8455 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8458 aros_target_genmap
="-Wl,-M -Xlinker >"
8459 aros_flavour
="emulation"
8460 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8464 aros_target_arch
="openbsd"
8465 aros_target_family
="unix"
8466 case "$target_cpu" in
8468 aros_target_cpu
="i386"
8469 aros_object_format
="elf_i386"
8470 aros_flavour
="emulation"
8471 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8472 gcc_target_cpu
="i386"
8475 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8478 aros_target_genmap
="-Wl,-M -Xlinker >"
8479 aros_target_nm_flags
="-u"
8480 aros_flavour
="emulation"
8484 aros_target_arch
="solaris"
8485 aros_target_family
="unix"
8486 case "$target_cpu" in
8488 aros_target_cpu
="i386"
8489 aros_object_format
="elf_i386"
8490 aros_flavour
="emulation"
8491 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8492 aros_nominal_depth
=8
8493 gcc_target_cpu
="i386"
8496 aros_target_cpu
="sparc"
8497 aros_object_format
="elf_sparc"
8498 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8499 gcc_target_cpu
="sparc"
8502 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8505 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
8506 aros_flavour
="emulation"
8510 aros_target_arch
="morphos"
8511 aros_shared_default
="no"
8512 aros_target_cpu
="ppc"
8513 aros_object_format
="elf_ppc"
8514 aros_flavour
="nativecompat"
8515 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8516 gcc_target_cpu
="ppc"
8520 aros_target_arch
="sam440"
8521 aros_shared_default
="no"
8522 aros_target_cpu
="ppc"
8523 aros_object_format
="elf32ppc"
8524 aros_flavour
="ppcnative"
8525 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8526 aros_kernel_ldflags
=""
8527 aros_nominal_width
=1024
8528 aros_nominal_height
=768
8529 aros_nominal_depth
=24
8530 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8531 gcc_target_cpu
="powerpc"
8535 aros_target_arch
="efika"
8536 aros_shared_default
="no"
8537 aros_target_cpu
="arm"
8538 aros_object_format
="armelf_aros"
8539 aros_flavour
="standalone"
8540 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8541 aros_kernel_ldflags
=""
8542 aros_nominal_width
=1024
8543 aros_nominal_height
=600
8544 aros_arch_libs
="-laeabi"
8545 gcc_default_cpu
="armv7-a"
8546 gcc_default_fpu
="vfpv3"
8547 aros_config_cflags
="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8548 aros_config_aflags
="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8549 aros_optimization_cflags
="$aros_optimization_cflags -Os"
8550 case "$target_cpu" in
8552 gcc_default_float_abi
="hard"
8557 gcc_default_float_abi
="softfp"
8560 as_fn_error $?
"\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8566 aros_target_arch
="chrp"
8567 aros_shared_default
="no"
8568 aros_target_cpu
="ppc"
8569 aros_object_format
="elf32ppc"
8570 aros_flavour
="ppcnative"
8571 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8572 aros_kernel_ldflags
=""
8573 aros_nominal_width
=640
8574 aros_nominal_height
=480
8575 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8576 gcc_target_cpu
="powerpc"
8577 case "$aros_target_variant" in
8579 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8585 aros_flavour
="standalone"
8586 aros_target_arch
="raspi"
8588 aros_shared_default
="no"
8590 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__"
8592 case "$target_cpu" in
8594 aros_target_cpu
="aarch64"
8595 gcc_default_cpu
="aarch64"
8596 aros_object_format
="aarch64elf_aros"
8599 aros_target_cpu
="arm"
8600 gcc_default_cpu
="armv6zk"
8601 gcc_default_cpu_tune
="arm1176jzf-s"
8602 aros_object_format
="armelf_aros"
8603 aros_config_cflags
="$aros_config_cflags -marm"
8604 aros_config_aflags
="$aros_config_aflags -marm"
8605 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8606 aros_target_cflags
="$aros_kernel_cflags -marm"
8607 aros_target_mkdep
="$aros_target_mkdep -Darm"
8608 aros_arch_libs
="-laeabi"
8611 aros_target_cpu
="arm"
8612 gcc_default_cpu
="armv6zk"
8613 gcc_default_cpu_tune
="arm1176jzf-s"
8614 aros_object_format
="armelf_aros"
8615 aros_config_cflags
="$aros_config_cflags -marm"
8616 aros_config_aflags
="$aros_config_aflags -marm"
8617 aros_kernel_cflags
="$aros_kernel_cflags -marm"
8618 aros_target_cflags
="$aros_kernel_cflags -marm"
8619 aros_target_mkdep
="$aros_target_mkdep -Darm"
8620 aros_arch_libs
="-laeabi"
8623 as_fn_error $?
"\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8627 aros_config_cflags
="$aros_config_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8628 aros_config_aflags
="$aros_config_aflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8629 aros_kernel_cflags
="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8630 aros_target_cflags
="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8632 case "$aros_target_variant" in
8634 ENABLE_EXECSMP
="#define __AROSEXEC_SMP__"
8640 aros_flavour
="standalone"
8641 aros_target_arch
="stm32f7_discovery"
8642 aros_target_cpu
="arm"
8643 aros_target_cpu_mode
="thumb2"
8644 aros_object_format
="armelf_aros"
8645 aros_shared_default
="no"
8647 # stm32f7 has DSP opcode support
8648 gcc_default_cpu
="armv7e-m"
8649 # gcc_default_cpu="armv7-m"
8650 gcc_default_cpu_tune
="cortex-m7"
8651 gcc_default_fpu
="fpv4-sp-d16"
8652 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8653 # gcc_default_fpu="fpv5-sp-d16"
8654 gcc_default_float_abi
="hard"
8656 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dthumb"
8660 aros_target_arch
="amiga"
8661 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8662 aros_shared_default
="no"
8664 case "$target_cpu" in
8666 # Check whether --enable-amigaos_compliance was given.
8667 if test "${enable_amigaos_compliance+set}" = set; then :
8668 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
8672 aros_target_cpu
="m68k"
8673 aros_object_format
="m68kelf"
8674 aros_flavour
="standcompat"
8675 gcc_target_cpu
="m68000"
8676 aros_nowarn_flags
="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8677 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8678 aros_optimization_cflags
="$aros_optimization_cflags -Os"
8679 aros_config_aflags
="$aros_config_aflags"
8680 aros_target_strip_flags
="-R.comment --strip-debug"
8681 aros_nominal_width
=640
8682 aros_nominal_height
=256
8683 aros_nominal_depth
=2
8687 aros_flavour
="native"
8688 gcc_target_cpu
="ppc"
8691 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8697 aros_target_arch
="mingw32"
8698 aros_shared_default
="no"
8699 aros_flavour
="emulation"
8700 aros_shared_cflags
=""
8701 need_crosstools
="yes"
8704 case "$target_cpu" in
8706 aros_target_cpu
="i386"
8707 aros_object_format
="elf_i386"
8708 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8709 aros_nominal_depth
=8
8710 gcc_target_cpu
="i386"
8712 kernel_tool_prefix
="i386-mingw32-"
8715 aros_target_cpu
="x86_64"
8716 aros_object_format
="elf_x86_64"
8717 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8718 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8719 aros_nominal_depth
=8
8720 kernel_tool_prefix
="x86_64-w64-mingw32-"
8723 aros_target_cpu
="arm"
8724 aros_object_format
="armelf_aros"
8725 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8726 aros_arch_libs
="-laeabi"
8727 aros_nominal_depth
=8
8728 gcc_target_cpu
="arm"
8729 gcc_default_float_abi
="soft"
8730 kernel_tool_prefix
="arm-mingw32ce-"
8731 aros_nominal_width
=160
8732 aros_nominal_height
=160
8735 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8738 if test $host_os = "cygwin"; then
8739 aros_kernel_cflags
="-mno-cygwin"
8743 aros_target_arch
="pp"
8744 aros_shared_default
="no"
8745 case "$target_cpu" in
8747 aros_target_cpu
="m68k"
8748 aros_object_format
="m68kelf"
8749 aros_flavour
="palmnative"
8750 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8751 aros_nominal_width
=160
8752 aros_nominal_height
=160
8753 aros_nominal_depth
=1
8754 aros_target_ar_flags
="cru"
8755 aros_compiler_libs
="-lgcc1"
8756 aros_shared_default
=no
8757 aros_shared_cflags
="-fpic"
8758 aros_shared_aflags
=""
8759 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8760 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8761 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8762 aros_debug_aflags
=""
8763 aros_debug_ldflags
="$aros_symbols_debug"
8764 aros_mungwall_debug
="0"
8765 aros_modules_debug
="0"
8766 gcc_target_cpu
="mc68000"
8767 ignore_undefined_symbols
="-ius"
8770 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8776 aros_target_arch
="mac"
8777 aros_shared_default
="no"
8778 case "$target_cpu" in
8780 aros_target_cpu
="m68k"
8781 aros_object_format
="m68kelf"
8782 aros_flavour
="mac68knative"
8783 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8784 aros_nominal_width
=512
8785 aros_nominal_height
=384
8786 aros_nominal_depth
=8
8787 aros_target_ar_flags
="cru"
8788 aros_compiler_libs
="-lgcc1"
8789 aros_shared_default
=no
8790 aros_shared_cflags
="-fpic"
8791 aros_shared_aflags
=""
8792 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8793 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8794 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8795 aros_debug_aflags
=""
8796 aros_debug_ldflags
="$aros_symbols_debug"
8797 aros_mungwall_debug
="0"
8798 aros_modules_debug
="0"
8799 gcc_target_cpu
="mc68000"
8800 ignore_undefined_symbols
="-ius"
8803 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8809 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
8813 #-----------------------------------------------------------------------------
8814 crosstools_guess
="yes"
8815 aros_target_toolchain
="no"
8816 aros_config_sysroot
=""
8817 aros_kernel_sysroot
=""
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8820 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8822 # Check whether --with-kernel-toolchain-prefix was given.
8823 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8824 withval
=$with_kernel_toolchain_prefix; kernel_tool_prefix
="$withval"
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8828 $as_echo "$kernel_tool_prefix" >&6; }
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8831 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8833 # Check whether --with-elf-toolchain-prefix was given.
8834 if test "${with_elf_toolchain_prefix+set}" = set; then :
8835 withval
=$with_elf_toolchain_prefix; elf_tool_prefix
="$withval"
8836 crosstools_guess
="no"
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8840 $as_echo "$elf_tool_prefix" >&6; }
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8843 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8845 # Check whether --with-aros-toolchain was given.
8846 if test "${with_aros_toolchain+set}" = set; then :
8847 withval
=$with_aros_toolchain; aros_tool_prefix
="$withval"
8848 crosstools_guess
="no"
8851 if test "$aros_tool_prefix" = "yes" ; then
8852 aros_tool_prefix
=$aros_target_cpu-aros-
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8855 $as_echo "$aros_tool_prefix" >&6; }
8857 #-----------------------------------------------------------------------------
8858 # Checking if we should build crosstools..
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8860 $as_echo_n "checking whether to build crosstools... " >&6; }
8861 # Check whether --enable-crosstools was given.
8862 if test "${enable_crosstools+set}" = set; then :
8863 enableval
=$enable_crosstools; crosstools
="$enableval"
8865 crosstools
="$crosstools_guess"
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8869 $as_echo "$crosstools" >&6; }
8871 if test "${crosstools}" = "yes"; then
8872 if test "${crosstools_guess}" = "no"; then
8873 as_fn_error $?
"Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8877 if test "${crosstools}" = "yes" ||
test "${crosstools_guess}" = "no"; then
8878 aros_target_toolchain
="yes"
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8882 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8884 # Check whether --with-aros-toolchain-install was given.
8885 if test "${with_aros_toolchain_install+set}" = set; then :
8886 withval
=$with_aros_toolchain_install; aros_toolchain_install
=$withval
8889 if test "x$aros_toolchain_install" = "x"; then
8890 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8892 AROS_CROSSTOOLSDIR
="$aros_toolchain_install"
8893 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
8894 if test "$crosstools_guess" = "no" ; then
8895 toolchain_needs_sysroot
=yes
8897 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8898 aros_kernel_sysroot
= $aros_config_sysroot
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8903 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8906 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8907 if test "$toolchain_needs_sysroot" = "yes" ; then
8908 aros_config_sysroot
="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8911 $as_echo "$toolchain_needs_sysroot" >&6; }
8913 #-----------------------------------------------------------------------------
8914 if test "$aros_toolchain" = "gnu" ; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8916 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8919 # Check whether --with-binutils-version was given.
8920 if test "${with_binutils_version+set}" = set; then :
8921 withval
=$with_binutils_version; use_binutils_version
="$withval"
8923 use_binutils_version
=""
8926 if test "$use_binutils_version" = ""; then
8927 target_binutils_version
="$default_binutils_version"
8929 target_binutils_version
="$use_binutils_version"
8931 if test "$aros_toolchain" = "gnu" ; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8933 $as_echo "$target_binutils_version" >&6; }
8937 # Helper to identify gcc version
8940 #-----------------------------------------------------------------------------
8941 if test "$aros_toolchain" = "gnu" ; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8943 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8946 # Check whether --with-gcc-version was given.
8947 if test "${with_gcc_version+set}" = set; then :
8948 withval
=$with_gcc_version; use_gcc_version
="$withval"
8953 if test "$use_gcc_version" = ""; then
8954 if test "${crosstools}" = "no"; then
8955 if test "x$aros_toolchain_install" != "x"; then
8957 target_gcc_version
=""
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8959 $as_echo_n "checking gcc version... " >&6; }
8960 if ${ax_cv_gcc_version+:} false
; then :
8961 $as_echo_n "(cached) " >&6
8964 ax_cv_gcc_version
="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
8965 if test "x$ax_cv_gcc_version" = "x"; then :
8967 ax_cv_gcc_version
=""
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8973 $as_echo "$ax_cv_gcc_version" >&6; }
8974 target_gcc_version
=$ax_cv_gcc_version
8979 if test "$use_gcc_version" = ""; then
8980 target_gcc_version
="$default_gcc_version"
8983 target_gcc_version
="$use_gcc_version"
8985 if test "$aros_toolchain" = "gnu" ; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8987 $as_echo "$target_gcc_version" >&6; }
8989 GCC_VERSION_MAJOR
=$
(echo $target_gcc_version | cut
-d'.' -f1)
8990 GCC_VERSION_MINOR
=$
(echo $target_gcc_version | cut
-d'.' -f2)
8991 GCC_VERSION_PATCH
=$
(echo $target_gcc_version | cut
-d'.' -f3)
8993 gcc_fix_bitfields
="false"
8994 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8995 gcc_fix_bitfields
="true"
8997 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8998 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8999 gcc_fix_bitfields
="true"
9004 if test "$gcc_fix_bitfields" = "true" ; then
9005 case "$aros_target_cpu" in
9007 aros_kernel_cflags
="$aros_kernel_cflags -mno-ms-bitfields"
9008 aros_target_cflags
="$aros_target_cflags -mno-ms-bitfields"
9011 aros_kernel_cflags
="$aros_kernel_cflags -mno-ms-bitfields"
9012 aros_target_cflags
="$aros_target_cflags -mno-ms-bitfields"
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9019 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9020 # Check whether --enable-objc was given.
9021 if test "${enable_objc+set}" = set; then :
9022 enableval
=$enable_objc; objc
="$enableval"
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9028 $as_echo "$objc" >&6; }
9029 if test "x$objc" = "xyes"; then
9032 objc_target
="no-objc"
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9036 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9037 # Check whether --enable-java was given.
9038 if test "${enable_java+set}" = set; then :
9039 enableval
=$enable_java; java
="$enableval"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9045 $as_echo "$java" >&6; }
9046 if test "x$java" != "xno"; then
9049 java_target
="no-java"
9052 spec_obj_format
="-m $aros_object_format"
9053 # Now process extra architecture-specific options.
9054 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9055 # as well as floating-point ABI.
9056 case "$aros_target_cpu" in
9058 spec_obj_format
="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9061 if test "$gcc_default_cpu" = ""; then
9062 gcc_default_cpu
="armv6"
9064 if test "$gcc_default_fpu" = ""; then
9065 gcc_default_fpu
="vfp"
9067 if test "$gcc_default_float_abi" = ""; then
9068 if test "$target_cpu" = "armhf"; then
9069 gcc_default_float_abi
="hard"
9071 gcc_default_float_abi
="softfp"
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9076 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9078 # Check whether --with-cpu was given.
9079 if test "${with_cpu+set}" = set; then :
9080 withval
=$with_cpu; aros_gcc_cpu
="$withval"
9082 aros_gcc_cpu
=$gcc_default_cpu
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9086 $as_echo "$aros_gcc_cpu" >&6; }
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9089 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9091 # Check whether --with-fpu was given.
9092 if test "${with_fpu+set}" = set; then :
9093 withval
=$with_fpu; aros_gcc_fpu
="$withval"
9095 aros_gcc_fpu
=$gcc_default_fpu
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9099 $as_echo "$aros_gcc_fpu" >&6; }
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9102 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9104 # Check whether --with-float was given.
9105 if test "${with_float+set}" = set; then :
9106 withval
=$with_float; aros_gcc_float_abi
="$withval"
9108 aros_gcc_float_abi
=$gcc_default_float_abi
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9112 $as_echo "$aros_gcc_float_abi" >&6; }
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9115 $as_echo_n "checking Which ARM mode to use... " >&6; }
9116 if test "$aros_target_cpu_mode" = ""; then
9117 aros_target_cpu_mode
="arm32"
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9119 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9122 $as_echo "$aros_target_cpu_mode" >&6; }
9125 case "$aros_target_cpu_mode" in
9127 gcc_default_mode
="arm"
9128 aros_isa_flags
="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9131 as_fn_error $?
"ARM 64-bit mode is unsupported" "$LINENO" 5
9134 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9137 as_fn_error $?
"Thumb1 16-bit mode is unsupported" "$LINENO" 5
9140 gcc_default_mode
="thumb"
9141 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9142 aros_isa_flags
="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9145 as_fn_error $?
"Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9149 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9150 aros_config_aflags
="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9153 aros_isa_flags
="-m32 -march=i486"
9154 aros_kernel_cflags
="$aros_kernel_cflags $aros_isa_flags"
9155 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
9159 # Some architectures may need custom ELF specs.
9160 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
9161 elf_specs_in
=config
/${aros_object_format}-specs.
in
9163 elf_specs_in
=config
/elf-specs.
in
9166 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9167 # Since we override specs, we may need to put these defines there
9168 if test "$gcc_target_cpu" != ""; then
9169 gcc_target_cpu
="-D__${gcc_target_cpu}__"
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9173 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9175 # Check whether --with-portssources was given.
9176 if test "${with_portssources+set}" = set; then :
9177 withval
=$with_portssources; with_portssrcdir
=$withval
9179 with_portssrcdir
="default"
9182 if test "$with_portssrcdir" = "default"; then
9183 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9185 AROS_PORTSSRCDIR
="$with_portssrcdir"
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9188 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9191 $as_echo_n "checking which bootloader to use... " >&6; }
9193 # Check whether --with-bootloader was given.
9194 if test "${with_bootloader+set}" = set; then :
9195 withval
=$with_bootloader; target_bootloader
=$withval
9197 target_bootloader
=$target_bootloader
9200 if test "$target_bootloader" = "none"; then
9201 aros_target_bootloader
=""
9203 aros_target_bootloader
="$target_bootloader"
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9206 $as_echo "$target_bootloader" >&6; }
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9209 $as_echo_n "checking which icon-set to use... " >&6; }
9211 # Check whether --with-iconset was given.
9212 if test "${with_iconset+set}" = set; then :
9213 withval
=$with_iconset; target_iconset
=$withval
9215 target_iconset
="default"
9218 if test "$target_iconset" = "default"; then
9219 aros_target_iconset
="Gorilla"
9220 target_iconset
="default (Gorilla)"
9222 aros_target_iconset
="$target_iconset"
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9225 $as_echo "$target_iconset" >&6; }
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9228 $as_echo_n "checking which GUI Theme to use... " >&6; }
9230 # Check whether --with-theme was given.
9231 if test "${with_theme+set}" = set; then :
9232 withval
=$with_theme; target_guitheme
=$withval
9234 target_guitheme
="default"
9237 if test "$target_guitheme" = "default"; then
9238 aros_target_guitheme
="Ice"
9240 aros_target_guitheme
="$target_guitheme"
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9243 $as_echo "$aros_target_guitheme" >&6; }
9245 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9249 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9253 if test "$aros_host_cpu" == "x86_64" ; then
9254 if test "$aros_target_cpu" == "i386" ; then
9259 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9260 if test "$aros_host_arch" != "$aros_target_arch" ; then
9264 if test "$host_cc_elf" = "no" ; then
9269 if test "$cross_compiling" = "no" ; then
9270 kernel_tool_prefix
=""
9271 if test "$host_cc_elf" = "yes" ; then
9276 if test "$kernel_tool_version" != ""; then
9277 kernel_tool_version
="-$kernel_tool_version"
9280 #######################################################################
9281 ## Compute what toolchains to use, and their paths ##
9282 #######################################################################
9284 # This takes, as input:
9285 # crosstools {yes,no}
9286 # kernel_tool_version {"",[version]}
9287 # target_tool_version {"",[version]}
9288 # kernel_tool_prefix {none,[some-arch-os-]}
9290 # target_tool_prefix ${aros_target_cpu}-aros-
9291 # aros_tool_prefix ${aros_target_cpu}-aros-
9294 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9295 # Where the 'kernel' binaries are located
9296 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9297 # Where the 'target' binaries are located
9298 # (not the symlink farm - that is aros_target_*!)
9301 # if crosstools then
9302 # if kernel_tools_prefix = "no-kernel-prefix-"
9303 # aros_kernel_* = crosstools cc paths
9304 # aros_kernel_cc = elf cc wrapper around crosstools cc
9306 # VALIDATE(${kernel_tools_prefix}*)
9307 # aros_kernel_* = ${kernel_tools_prefix}*
9308 # if ${kernel_tools_prefix}cc is an AROS gcc
9309 # aros_kernel_cc = ${kernel_tools_prefix}cc
9311 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9315 # orig_target_* = aros built crosstools
9316 # orig_target_cc = elf cc wrapper around crosstools cc
9318 # VALIDATE(${kernel_tools_prefix}*)
9320 # orig_target_* = aros_kernel_*
9321 # if aros_kernel_cc is an AROS gcc
9322 # orig_target_cc = aros_kernel_cc
9324 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9328 if test "$aros_toolchain" = "gnu" ; then
9329 target_tool_prefix
="${aros_target_cpu}-aros-"
9330 elif test "$aros_toolchain" = "llvm" ; then
9331 target_tool_prefix
="bin/"
9334 if test "$kernel_tool_prefix" != "" ; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9336 $as_echo_n "checking which kernel tools... " >&6; }
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9338 $as_echo "$kernel_tool_prefix" >&6; };
9341 if test "$kernel_tool_prefix" = "none" ; then
9342 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9343 as_fn_error $?
"--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9346 # Kernel tools required - find them
9347 # Note that 'normally', aros_kernel_* overrides will be
9348 # empty, unless specified in the per-arch sections above.
9349 if test "x$aros_kernel_cpp" = "x"; then
9350 aros_kernel_cpp
=${kernel_tool_prefix}${CPP}
9353 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9354 if test "$cross_compiling" = "yes" ; then
9355 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9356 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9358 $as_echo_n "checking for $ac_word... " >&6; }
9359 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9360 $as_echo_n "(cached) " >&6
9362 case $aros_kernel_cpp in
9364 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9371 test -z "$as_dir" && as_dir
=.
9372 for ac_exec_ext
in '' $ac_executable_extensions; do
9373 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9374 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9385 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9386 if test -n "$aros_kernel_cpp"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9388 $as_echo "$aros_kernel_cpp" >&6; }
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9396 if test "$GCC" = "yes"; then
9397 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
9398 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9399 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9401 $as_echo_n "checking for $ac_word... " >&6; }
9402 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9403 $as_echo_n "(cached) " >&6
9405 case $aros_kernel_cpp in
9407 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9411 for as_dir
in `dirname $aros_gcc_cpp`
9414 test -z "$as_dir" && as_dir
=.
9415 for ac_exec_ext
in '' $ac_executable_extensions; do
9416 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9417 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9428 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9429 if test -n "$aros_kernel_cpp"; then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9431 $as_echo "$aros_kernel_cpp" >&6; }
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9434 $as_echo "no" >&6; }
9439 if test "$aros_kernel_cpp" = ""; then
9440 # Extract the first word of "cpp", so it can be a program name with args.
9441 set dummy cpp
; ac_word
=$2
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9443 $as_echo_n "checking for $ac_word... " >&6; }
9444 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9445 $as_echo_n "(cached) " >&6
9447 case $aros_kernel_cpp in
9449 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9456 test -z "$as_dir" && as_dir
=.
9457 for ac_exec_ext
in '' $ac_executable_extensions; do
9458 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9459 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9470 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9471 if test -n "$aros_kernel_cpp"; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9473 $as_echo "$aros_kernel_cpp" >&6; }
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 $as_echo "no" >&6; }
9483 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9484 set dummy
$aros_kernel_cpp${kernel_tool_version}; ac_word
=$2
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9486 $as_echo_n "checking for $ac_word... " >&6; }
9487 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
9488 $as_echo_n "(cached) " >&6
9490 case $aros_kernel_cpp in
9492 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
9495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9499 test -z "$as_dir" && as_dir
=.
9500 for ac_exec_ext
in '' $ac_executable_extensions; do
9501 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9502 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
9503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9513 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
9514 if test -n "$aros_kernel_cpp"; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9516 $as_echo "$aros_kernel_cpp" >&6; }
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 $as_echo "no" >&6; }
9526 if test "$aros_kernel_cpp" = ""; then
9529 if test "$aros_kernel_cpp" = "no"; then
9532 if test "$req_avail" = "no"; then
9533 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9535 if test "x$aros_kernel_cc" = "x"; then
9536 aros_kernel_cc
=${kernel_tool_prefix}${CC}
9539 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9540 if test "$cross_compiling" = "yes" ; then
9541 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9542 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9544 $as_echo_n "checking for $ac_word... " >&6; }
9545 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9546 $as_echo_n "(cached) " >&6
9548 case $aros_kernel_cc in
9550 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9557 test -z "$as_dir" && as_dir
=.
9558 for ac_exec_ext
in '' $ac_executable_extensions; do
9559 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9560 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9572 if test -n "$aros_kernel_cc"; then
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9574 $as_echo "$aros_kernel_cc" >&6; }
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577 $as_echo "no" >&6; }
9582 if test "$GCC" = "yes"; then
9583 aros_gcc_cc
=`$CC -print-prog-name=cc`
9584 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9585 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587 $as_echo_n "checking for $ac_word... " >&6; }
9588 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9589 $as_echo_n "(cached) " >&6
9591 case $aros_kernel_cc in
9593 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9597 for as_dir
in `dirname $aros_gcc_cc`
9600 test -z "$as_dir" && as_dir
=.
9601 for ac_exec_ext
in '' $ac_executable_extensions; do
9602 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9603 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9615 if test -n "$aros_kernel_cc"; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9617 $as_echo "$aros_kernel_cc" >&6; }
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620 $as_echo "no" >&6; }
9625 if test "$aros_kernel_cc" = ""; then
9626 # Extract the first word of "cc", so it can be a program name with args.
9627 set dummy cc
; ac_word
=$2
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9631 $as_echo_n "(cached) " >&6
9633 case $aros_kernel_cc in
9635 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9642 test -z "$as_dir" && as_dir
=.
9643 for ac_exec_ext
in '' $ac_executable_extensions; do
9644 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9645 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9657 if test -n "$aros_kernel_cc"; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9659 $as_echo "$aros_kernel_cc" >&6; }
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9669 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9670 set dummy
$aros_kernel_cc${kernel_tool_version}; ac_word
=$2
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
9674 $as_echo_n "(cached) " >&6
9676 case $aros_kernel_cc in
9678 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
9681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9685 test -z "$as_dir" && as_dir
=.
9686 for ac_exec_ext
in '' $ac_executable_extensions; do
9687 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9688 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9699 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
9700 if test -n "$aros_kernel_cc"; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9702 $as_echo "$aros_kernel_cc" >&6; }
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705 $as_echo "no" >&6; }
9712 if test "$aros_kernel_cc" = ""; then
9715 if test "$aros_kernel_cc" = "no"; then
9718 if test "$req_avail" = "no"; then
9719 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9721 if test "x$aros_kernel_cxx" = "x"; then
9722 aros_kernel_cxx
=${kernel_tool_prefix}${CXX}
9725 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9726 if test "$cross_compiling" = "yes" ; then
9727 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9728 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9730 $as_echo_n "checking for $ac_word... " >&6; }
9731 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9732 $as_echo_n "(cached) " >&6
9734 case $aros_kernel_cxx in
9736 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9743 test -z "$as_dir" && as_dir
=.
9744 for ac_exec_ext
in '' $ac_executable_extensions; do
9745 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9746 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9757 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9758 if test -n "$aros_kernel_cxx"; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9760 $as_echo "$aros_kernel_cxx" >&6; }
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 $as_echo "no" >&6; }
9768 if test "$GCC" = "yes"; then
9769 aros_gcc_cxx
=`$CC -print-prog-name=cxx`
9770 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9771 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 $as_echo_n "checking for $ac_word... " >&6; }
9774 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9775 $as_echo_n "(cached) " >&6
9777 case $aros_kernel_cxx in
9779 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9783 for as_dir
in `dirname $aros_gcc_cxx`
9786 test -z "$as_dir" && as_dir
=.
9787 for ac_exec_ext
in '' $ac_executable_extensions; do
9788 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9789 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9800 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9801 if test -n "$aros_kernel_cxx"; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9803 $as_echo "$aros_kernel_cxx" >&6; }
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9811 if test "$aros_kernel_cxx" = ""; then
9812 # Extract the first word of "cxx", so it can be a program name with args.
9813 set dummy cxx
; ac_word
=$2
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815 $as_echo_n "checking for $ac_word... " >&6; }
9816 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9817 $as_echo_n "(cached) " >&6
9819 case $aros_kernel_cxx in
9821 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9828 test -z "$as_dir" && as_dir
=.
9829 for ac_exec_ext
in '' $ac_executable_extensions; do
9830 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9831 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9842 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9843 if test -n "$aros_kernel_cxx"; then
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9845 $as_echo "$aros_kernel_cxx" >&6; }
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848 $as_echo "no" >&6; }
9855 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9856 set dummy
$aros_kernel_cxx${kernel_tool_version}; ac_word
=$2
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858 $as_echo_n "checking for $ac_word... " >&6; }
9859 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9860 $as_echo_n "(cached) " >&6
9862 case $aros_kernel_cxx in
9864 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9871 test -z "$as_dir" && as_dir
=.
9872 for ac_exec_ext
in '' $ac_executable_extensions; do
9873 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9874 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9886 if test -n "$aros_kernel_cxx"; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9888 $as_echo "$aros_kernel_cxx" >&6; }
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 $as_echo "no" >&6; }
9897 # If it's set, make sure it's really there
9898 if test "x$aros_kernel_cxx" != "x" ; then
9900 if test "$aros_kernel_cxx" = ""; then
9903 if test "$aros_kernel_cxx" = "no"; then
9906 if test "$req_avail" = "no"; then
9907 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9911 if test "$aros_kernel_ld" = ""; then
9912 if test "$cross_compiling" = "yes" ; then
9913 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9914 set dummy
${kernel_tool_prefix}ld
; 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_ld+:} false
; then :
9918 $as_echo_n "(cached) " >&6
9920 case $aros_kernel_ld in
9922 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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_ld
="$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_ld
=$ac_cv_path_aros_kernel_ld
9944 if test -n "$aros_kernel_ld"; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9946 $as_echo "$aros_kernel_ld" >&6; }
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }
9954 if test "$GCC" = "yes"; then
9955 aros_gcc_ld
=`$CC -print-prog-name=ld`
9956 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9957 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959 $as_echo_n "checking for $ac_word... " >&6; }
9960 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9961 $as_echo_n "(cached) " >&6
9963 case $aros_kernel_ld in
9965 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9969 for as_dir
in `dirname $aros_gcc_ld`
9972 test -z "$as_dir" && as_dir
=.
9973 for ac_exec_ext
in '' $ac_executable_extensions; do
9974 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9975 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9986 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9987 if test -n "$aros_kernel_ld"; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9989 $as_echo "$aros_kernel_ld" >&6; }
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992 $as_echo "no" >&6; }
9997 if test "$aros_kernel_ld" = ""; then
9998 # Extract the first word of "ld", so it can be a program name with args.
9999 set dummy ld
; ac_word
=$2
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001 $as_echo_n "checking for $ac_word... " >&6; }
10002 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10003 $as_echo_n "(cached) " >&6
10005 case $aros_kernel_ld in
10007 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10011 for as_dir
in $PATH
10014 test -z "$as_dir" && as_dir
=.
10015 for ac_exec_ext
in '' $ac_executable_extensions; do
10016 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10017 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10028 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10029 if test -n "$aros_kernel_ld"; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10031 $as_echo "$aros_kernel_ld" >&6; }
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10041 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10042 set dummy
$aros_kernel_ld; ac_word
=$2
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 $as_echo_n "checking for $ac_word... " >&6; }
10045 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
10046 $as_echo_n "(cached) " >&6
10048 case $aros_kernel_ld in
10050 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
10053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10054 for as_dir
in $PATH
10057 test -z "$as_dir" && as_dir
=.
10058 for ac_exec_ext
in '' $ac_executable_extensions; do
10059 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
10072 if test -n "$aros_kernel_ld"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10074 $as_echo "$aros_kernel_ld" >&6; }
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10084 if test "$aros_kernel_ld" = ""; then
10087 if test "$aros_kernel_ld" = "no"; then
10090 if test "$req_avail" = "no"; then
10091 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10094 if test "$aros_kernel_as" = ""; then
10095 if test "$cross_compiling" = "yes" ; then
10096 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10097 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099 $as_echo_n "checking for $ac_word... " >&6; }
10100 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10101 $as_echo_n "(cached) " >&6
10103 case $aros_kernel_as in
10105 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10109 for as_dir
in $PATH
10112 test -z "$as_dir" && as_dir
=.
10113 for ac_exec_ext
in '' $ac_executable_extensions; do
10114 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10115 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10126 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10127 if test -n "$aros_kernel_as"; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10129 $as_echo "$aros_kernel_as" >&6; }
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10132 $as_echo "no" >&6; }
10137 if test "$GCC" = "yes"; then
10138 aros_gcc_as
=`$CC -print-prog-name=as`
10139 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10140 set dummy
`basename $aros_gcc_as`; ac_word
=$2
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10142 $as_echo_n "checking for $ac_word... " >&6; }
10143 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10144 $as_echo_n "(cached) " >&6
10146 case $aros_kernel_as in
10148 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10152 for as_dir
in `dirname $aros_gcc_as`
10155 test -z "$as_dir" && as_dir
=.
10156 for ac_exec_ext
in '' $ac_executable_extensions; do
10157 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10158 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10170 if test -n "$aros_kernel_as"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10172 $as_echo "$aros_kernel_as" >&6; }
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10180 if test "$aros_kernel_as" = ""; then
10181 # Extract the first word of "as", so it can be a program name with args.
10182 set dummy as
; ac_word
=$2
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184 $as_echo_n "checking for $ac_word... " >&6; }
10185 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10186 $as_echo_n "(cached) " >&6
10188 case $aros_kernel_as in
10190 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10194 for as_dir
in $PATH
10197 test -z "$as_dir" && as_dir
=.
10198 for ac_exec_ext
in '' $ac_executable_extensions; do
10199 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10211 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10212 if test -n "$aros_kernel_as"; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10214 $as_echo "$aros_kernel_as" >&6; }
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10224 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10225 set dummy
$aros_kernel_as; ac_word
=$2
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10227 $as_echo_n "checking for $ac_word... " >&6; }
10228 if ${ac_cv_path_aros_kernel_as+:} false
; then :
10229 $as_echo_n "(cached) " >&6
10231 case $aros_kernel_as in
10233 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
10236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10237 for as_dir
in $PATH
10240 test -z "$as_dir" && as_dir
=.
10241 for ac_exec_ext
in '' $ac_executable_extensions; do
10242 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10243 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
10244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10254 aros_kernel_as
=$ac_cv_path_aros_kernel_as
10255 if test -n "$aros_kernel_as"; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10257 $as_echo "$aros_kernel_as" >&6; }
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260 $as_echo "no" >&6; }
10267 if test "$aros_kernel_as" = ""; then
10270 if test "$aros_kernel_as" = "no"; then
10273 if test "$req_avail" = "no"; then
10274 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
10277 if test "$aros_kernel_ar" = ""; then
10278 if test "$cross_compiling" = "yes" ; then
10279 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10280 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10282 $as_echo_n "checking for $ac_word... " >&6; }
10283 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10284 $as_echo_n "(cached) " >&6
10286 case $aros_kernel_ar in
10288 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10292 for as_dir
in $PATH
10295 test -z "$as_dir" && as_dir
=.
10296 for ac_exec_ext
in '' $ac_executable_extensions; do
10297 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10298 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10309 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10310 if test -n "$aros_kernel_ar"; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10312 $as_echo "$aros_kernel_ar" >&6; }
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 $as_echo "no" >&6; }
10320 if test "$GCC" = "yes"; then
10321 aros_gcc_ar
=`$CC -print-prog-name=ar`
10322 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10323 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325 $as_echo_n "checking for $ac_word... " >&6; }
10326 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10327 $as_echo_n "(cached) " >&6
10329 case $aros_kernel_ar in
10331 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10335 for as_dir
in `dirname $aros_gcc_ar`
10338 test -z "$as_dir" && as_dir
=.
10339 for ac_exec_ext
in '' $ac_executable_extensions; do
10340 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10341 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10352 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10353 if test -n "$aros_kernel_ar"; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10355 $as_echo "$aros_kernel_ar" >&6; }
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10363 if test "$aros_kernel_ar" = ""; then
10364 # Extract the first word of "ar", so it can be a program name with args.
10365 set dummy
ar; ac_word
=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10369 $as_echo_n "(cached) " >&6
10371 case $aros_kernel_ar in
10373 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10377 for as_dir
in $PATH
10380 test -z "$as_dir" && as_dir
=.
10381 for ac_exec_ext
in '' $ac_executable_extensions; do
10382 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10383 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10395 if test -n "$aros_kernel_ar"; then
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10397 $as_echo "$aros_kernel_ar" >&6; }
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10407 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10408 set dummy
$aros_kernel_ar; ac_word
=$2
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410 $as_echo_n "checking for $ac_word... " >&6; }
10411 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
10412 $as_echo_n "(cached) " >&6
10414 case $aros_kernel_ar in
10416 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
10419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10420 for as_dir
in $PATH
10423 test -z "$as_dir" && as_dir
=.
10424 for ac_exec_ext
in '' $ac_executable_extensions; do
10425 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10426 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
10438 if test -n "$aros_kernel_ar"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10440 $as_echo "$aros_kernel_ar" >&6; }
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10450 if test "$aros_kernel_ar" = ""; then
10453 if test "$aros_kernel_ar" = "no"; then
10456 if test "$req_avail" = "no"; then
10457 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10460 if test "$aros_kernel_ranlib" = ""; then
10461 if test "$cross_compiling" = "yes" ; then
10462 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10463 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10467 $as_echo_n "(cached) " >&6
10469 case $aros_kernel_ranlib in
10471 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10475 for as_dir
in $PATH
10478 test -z "$as_dir" && as_dir
=.
10479 for ac_exec_ext
in '' $ac_executable_extensions; do
10480 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10481 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10493 if test -n "$aros_kernel_ranlib"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10495 $as_echo "$aros_kernel_ranlib" >&6; }
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10503 if test "$GCC" = "yes"; then
10504 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
10505 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10506 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10510 $as_echo_n "(cached) " >&6
10512 case $aros_kernel_ranlib in
10514 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10518 for as_dir
in `dirname $aros_gcc_ranlib`
10521 test -z "$as_dir" && as_dir
=.
10522 for ac_exec_ext
in '' $ac_executable_extensions; do
10523 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10524 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10536 if test -n "$aros_kernel_ranlib"; then
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10538 $as_echo "$aros_kernel_ranlib" >&6; }
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 $as_echo "no" >&6; }
10546 if test "$aros_kernel_ranlib" = ""; then
10547 # Extract the first word of "ranlib", so it can be a program name with args.
10548 set dummy ranlib
; ac_word
=$2
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550 $as_echo_n "checking for $ac_word... " >&6; }
10551 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10552 $as_echo_n "(cached) " >&6
10554 case $aros_kernel_ranlib in
10556 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10560 for as_dir
in $PATH
10563 test -z "$as_dir" && as_dir
=.
10564 for ac_exec_ext
in '' $ac_executable_extensions; do
10565 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10566 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10577 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10578 if test -n "$aros_kernel_ranlib"; then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10580 $as_echo "$aros_kernel_ranlib" >&6; }
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10590 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10591 set dummy
$aros_kernel_ranlib; ac_word
=$2
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593 $as_echo_n "checking for $ac_word... " >&6; }
10594 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
10595 $as_echo_n "(cached) " >&6
10597 case $aros_kernel_ranlib in
10599 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
10602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10603 for as_dir
in $PATH
10606 test -z "$as_dir" && as_dir
=.
10607 for ac_exec_ext
in '' $ac_executable_extensions; do
10608 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10609 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
10610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10620 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
10621 if test -n "$aros_kernel_ranlib"; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10623 $as_echo "$aros_kernel_ranlib" >&6; }
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10633 if test "$aros_kernel_ranlib" = ""; then
10636 if test "$aros_kernel_ranlib" = "no"; then
10639 if test "$req_avail" = "no"; then
10640 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10643 if test "$aros_kernel_nm" = ""; then
10644 if test "$cross_compiling" = "yes" ; then
10645 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10646 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10648 $as_echo_n "checking for $ac_word... " >&6; }
10649 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10650 $as_echo_n "(cached) " >&6
10652 case $aros_kernel_nm in
10654 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10658 for as_dir
in $PATH
10661 test -z "$as_dir" && as_dir
=.
10662 for ac_exec_ext
in '' $ac_executable_extensions; do
10663 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10664 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10675 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10676 if test -n "$aros_kernel_nm"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10678 $as_echo "$aros_kernel_nm" >&6; }
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10686 if test "$GCC" = "yes"; then
10687 aros_gcc_nm
=`$CC -print-prog-name=nm`
10688 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10689 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691 $as_echo_n "checking for $ac_word... " >&6; }
10692 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10693 $as_echo_n "(cached) " >&6
10695 case $aros_kernel_nm in
10697 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10701 for as_dir
in `dirname $aros_gcc_nm`
10704 test -z "$as_dir" && as_dir
=.
10705 for ac_exec_ext
in '' $ac_executable_extensions; do
10706 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10707 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10719 if test -n "$aros_kernel_nm"; then
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10721 $as_echo "$aros_kernel_nm" >&6; }
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10729 if test "$aros_kernel_nm" = ""; then
10730 # Extract the first word of "nm", so it can be a program name with args.
10731 set dummy nm
; ac_word
=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10735 $as_echo_n "(cached) " >&6
10737 case $aros_kernel_nm in
10739 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10743 for as_dir
in $PATH
10746 test -z "$as_dir" && as_dir
=.
10747 for ac_exec_ext
in '' $ac_executable_extensions; do
10748 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10749 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10761 if test -n "$aros_kernel_nm"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10763 $as_echo "$aros_kernel_nm" >&6; }
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10773 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10774 set dummy
$aros_kernel_nm; ac_word
=$2
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10776 $as_echo_n "checking for $ac_word... " >&6; }
10777 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
10778 $as_echo_n "(cached) " >&6
10780 case $aros_kernel_nm in
10782 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
10785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10786 for as_dir
in $PATH
10789 test -z "$as_dir" && as_dir
=.
10790 for ac_exec_ext
in '' $ac_executable_extensions; do
10791 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10792 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
10804 if test -n "$aros_kernel_nm"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10806 $as_echo "$aros_kernel_nm" >&6; }
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10816 if test "$aros_kernel_nm" = ""; then
10819 if test "$aros_kernel_nm" = "no"; then
10822 if test "$req_avail" = "no"; then
10823 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10826 if test "$aros_kernel_strip" = ""; then
10827 if test "$cross_compiling" = "yes" ; then
10828 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10829 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831 $as_echo_n "checking for $ac_word... " >&6; }
10832 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10833 $as_echo_n "(cached) " >&6
10835 case $aros_kernel_strip in
10837 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10841 for as_dir
in $PATH
10844 test -z "$as_dir" && as_dir
=.
10845 for ac_exec_ext
in '' $ac_executable_extensions; do
10846 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10847 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10858 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10859 if test -n "$aros_kernel_strip"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10861 $as_echo "$aros_kernel_strip" >&6; }
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864 $as_echo "no" >&6; }
10869 if test "$GCC" = "yes"; then
10870 aros_gcc_strip
=`$CC -print-prog-name=strip`
10871 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10872 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10874 $as_echo_n "checking for $ac_word... " >&6; }
10875 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10876 $as_echo_n "(cached) " >&6
10878 case $aros_kernel_strip in
10880 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10884 for as_dir
in `dirname $aros_gcc_strip`
10887 test -z "$as_dir" && as_dir
=.
10888 for ac_exec_ext
in '' $ac_executable_extensions; do
10889 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10890 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10901 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10902 if test -n "$aros_kernel_strip"; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10904 $as_echo "$aros_kernel_strip" >&6; }
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10912 if test "$aros_kernel_strip" = ""; then
10913 # Extract the first word of "strip", so it can be a program name with args.
10914 set dummy strip
; ac_word
=$2
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916 $as_echo_n "checking for $ac_word... " >&6; }
10917 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10918 $as_echo_n "(cached) " >&6
10920 case $aros_kernel_strip in
10922 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10926 for as_dir
in $PATH
10929 test -z "$as_dir" && as_dir
=.
10930 for ac_exec_ext
in '' $ac_executable_extensions; do
10931 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10932 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10944 if test -n "$aros_kernel_strip"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10946 $as_echo "$aros_kernel_strip" >&6; }
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10956 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10957 set dummy
$aros_kernel_strip; ac_word
=$2
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959 $as_echo_n "checking for $ac_word... " >&6; }
10960 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10961 $as_echo_n "(cached) " >&6
10963 case $aros_kernel_strip in
10965 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10969 for as_dir
in $PATH
10972 test -z "$as_dir" && as_dir
=.
10973 for ac_exec_ext
in '' $ac_executable_extensions; do
10974 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10975 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10987 if test -n "$aros_kernel_strip"; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10989 $as_echo "$aros_kernel_strip" >&6; }
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10999 if test "$aros_kernel_strip" = ""; then
11002 if test "$aros_kernel_strip" = "no"; then
11005 if test "$req_avail" = "no"; then
11006 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11009 # Objcopy and objdump are not required for the kernel
11010 # toolchain on many architectures.
11011 # So we'll look for them, but not make them strictly required.
11013 if test "$aros_kernel_objcopy" = ""; then
11014 if test "$cross_compiling" = "yes" ; then
11015 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11016 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11018 $as_echo_n "checking for $ac_word... " >&6; }
11019 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11020 $as_echo_n "(cached) " >&6
11022 case $aros_kernel_objcopy in
11024 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11028 for as_dir
in $PATH
11031 test -z "$as_dir" && as_dir
=.
11032 for ac_exec_ext
in '' $ac_executable_extensions; do
11033 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11034 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11046 if test -n "$aros_kernel_objcopy"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11048 $as_echo "$aros_kernel_objcopy" >&6; }
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051 $as_echo "no" >&6; }
11056 if test "$GCC" = "yes"; then
11057 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
11058 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11059 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061 $as_echo_n "checking for $ac_word... " >&6; }
11062 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11063 $as_echo_n "(cached) " >&6
11065 case $aros_kernel_objcopy in
11067 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11071 for as_dir
in `dirname $aros_gcc_objcopy`
11074 test -z "$as_dir" && as_dir
=.
11075 for ac_exec_ext
in '' $ac_executable_extensions; do
11076 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11077 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11089 if test -n "$aros_kernel_objcopy"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11091 $as_echo "$aros_kernel_objcopy" >&6; }
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11099 if test "$aros_kernel_objcopy" = ""; then
11100 # Extract the first word of "objcopy", so it can be a program name with args.
11101 set dummy objcopy
; ac_word
=$2
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103 $as_echo_n "checking for $ac_word... " >&6; }
11104 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11105 $as_echo_n "(cached) " >&6
11107 case $aros_kernel_objcopy in
11109 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11113 for as_dir
in $PATH
11116 test -z "$as_dir" && as_dir
=.
11117 for ac_exec_ext
in '' $ac_executable_extensions; do
11118 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11119 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11131 if test -n "$aros_kernel_objcopy"; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11133 $as_echo "$aros_kernel_objcopy" >&6; }
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11143 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11144 set dummy
$aros_kernel_objcopy; ac_word
=$2
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11146 $as_echo_n "checking for $ac_word... " >&6; }
11147 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
11148 $as_echo_n "(cached) " >&6
11150 case $aros_kernel_objcopy in
11152 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
11155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11156 for as_dir
in $PATH
11159 test -z "$as_dir" && as_dir
=.
11160 for ac_exec_ext
in '' $ac_executable_extensions; do
11161 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11162 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
11163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
11174 if test -n "$aros_kernel_objcopy"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11176 $as_echo "$aros_kernel_objcopy" >&6; }
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11186 if test "$aros_kernel_objdump" = ""; then
11187 if test "$cross_compiling" = "yes" ; then
11188 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11189 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191 $as_echo_n "checking for $ac_word... " >&6; }
11192 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11193 $as_echo_n "(cached) " >&6
11195 case $aros_kernel_objdump in
11197 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11201 for as_dir
in $PATH
11204 test -z "$as_dir" && as_dir
=.
11205 for ac_exec_ext
in '' $ac_executable_extensions; do
11206 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11207 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11218 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11219 if test -n "$aros_kernel_objdump"; then
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11221 $as_echo "$aros_kernel_objdump" >&6; }
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11229 if test "$GCC" = "yes"; then
11230 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
11231 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11232 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11234 $as_echo_n "checking for $ac_word... " >&6; }
11235 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11236 $as_echo_n "(cached) " >&6
11238 case $aros_kernel_objdump in
11240 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11244 for as_dir
in `dirname $aros_gcc_objdump`
11247 test -z "$as_dir" && as_dir
=.
11248 for ac_exec_ext
in '' $ac_executable_extensions; do
11249 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11250 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11261 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11262 if test -n "$aros_kernel_objdump"; then
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11264 $as_echo "$aros_kernel_objdump" >&6; }
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267 $as_echo "no" >&6; }
11272 if test "$aros_kernel_objdump" = ""; then
11273 # Extract the first word of "objdump", so it can be a program name with args.
11274 set dummy objdump
; ac_word
=$2
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11276 $as_echo_n "checking for $ac_word... " >&6; }
11277 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11278 $as_echo_n "(cached) " >&6
11280 case $aros_kernel_objdump in
11282 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11286 for as_dir
in $PATH
11289 test -z "$as_dir" && as_dir
=.
11290 for ac_exec_ext
in '' $ac_executable_extensions; do
11291 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11292 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11304 if test -n "$aros_kernel_objdump"; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11306 $as_echo "$aros_kernel_objdump" >&6; }
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11316 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11317 set dummy
$aros_kernel_objdump; ac_word
=$2
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319 $as_echo_n "checking for $ac_word... " >&6; }
11320 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
11321 $as_echo_n "(cached) " >&6
11323 case $aros_kernel_objdump in
11325 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
11328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11329 for as_dir
in $PATH
11332 test -z "$as_dir" && as_dir
=.
11333 for ac_exec_ext
in '' $ac_executable_extensions; do
11334 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11346 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
11347 if test -n "$aros_kernel_objdump"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11349 $as_echo "$aros_kernel_objdump" >&6; }
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352 $as_echo "no" >&6; }
11358 if test "x${crosstools}" != "xyes" ; then
11360 if test "$aros_kernel_objcopy" = ""; then
11363 if test "$aros_kernel_objcopy" = "no"; then
11366 if test "$req_avail" = "no"; then
11367 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11370 if test "$aros_kernel_objdump" = ""; then
11373 if test "$aros_kernel_objdump" = "no"; then
11376 if test "$req_avail" = "no"; then
11377 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11383 $as_echo_n "checking which target tools to use... " >&6; }
11384 if test "$aros_target_toolchain" = "yes"; then
11385 if test "$aros_toolchain" = "llvm" ; then
11388 msg_result
=$target_tool_prefix
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11391 $as_echo "$msg_result" >&6; }
11392 # We are building AROS crosstools
11393 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11394 orig_target_cc
="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11395 orig_target_cxx
="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11396 orig_target_cpp
="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11397 orig_target_ld
="${tmp_tool_prefix}${toolchain_ld}"
11398 orig_target_as
="${tmp_tool_prefix}${toolchain_as}"
11399 orig_target_ar
="${tmp_tool_prefix}${toolchain_ar}"
11400 orig_target_ranlib
="${tmp_tool_prefix}${toolchain_ranlib}"
11401 orig_target_nm
="${tmp_tool_prefix}${toolchain_nm}"
11402 orig_target_strip
="${tmp_tool_prefix}${toolchain_strip}"
11403 orig_target_objcopy
="${tmp_tool_prefix}${toolchain_objcopy}"
11404 orig_target_objdump
="${tmp_tool_prefix}${toolchain_objdump}"
11406 # Determine whether AROS or ELF tools should be used
11407 if test "$aros_tool_prefix" = "none"; then
11408 aros_tool_prefix
="${elf_tool_prefix}"
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11412 $as_echo "$aros_tool_prefix" >&6; }
11413 # We are *not* building AROS crosstools - use the AROS or ELF tools
11415 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11416 if test "$cross_compiling" = "yes" ; then
11417 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11418 set dummy
${target_tool_prefix}cpp
; ac_word
=$2
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11420 $as_echo_n "checking for $ac_word... " >&6; }
11421 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11422 $as_echo_n "(cached) " >&6
11424 case $orig_target_cpp in
11426 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11430 for as_dir
in $PATH
11433 test -z "$as_dir" && as_dir
=.
11434 for ac_exec_ext
in '' $ac_executable_extensions; do
11435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11436 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11447 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11448 if test -n "$orig_target_cpp"; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11450 $as_echo "$orig_target_cpp" >&6; }
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453 $as_echo "no" >&6; }
11458 if test "$GCC" = "yes"; then
11459 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
11460 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11461 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463 $as_echo_n "checking for $ac_word... " >&6; }
11464 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11465 $as_echo_n "(cached) " >&6
11467 case $orig_target_cpp in
11469 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11473 for as_dir
in `dirname $aros_gcc_cpp`
11476 test -z "$as_dir" && as_dir
=.
11477 for ac_exec_ext
in '' $ac_executable_extensions; do
11478 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11479 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11491 if test -n "$orig_target_cpp"; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11493 $as_echo "$orig_target_cpp" >&6; }
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11501 if test "$orig_target_cpp" = ""; then
11502 # Extract the first word of "cpp", so it can be a program name with args.
11503 set dummy cpp
; ac_word
=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11507 $as_echo_n "(cached) " >&6
11509 case $orig_target_cpp in
11511 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11515 for as_dir
in $PATH
11518 test -z "$as_dir" && as_dir
=.
11519 for ac_exec_ext
in '' $ac_executable_extensions; do
11520 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11521 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11533 if test -n "$orig_target_cpp"; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11535 $as_echo "$orig_target_cpp" >&6; }
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11545 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11546 set dummy
${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word
=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if ${ac_cv_path_orig_target_cpp+:} false
; then :
11550 $as_echo_n "(cached) " >&6
11552 case $orig_target_cpp in
11554 ac_cv_path_orig_target_cpp
="$orig_target_cpp" # Let the user override the test with a path.
11557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11558 for as_dir
in $PATH
11561 test -z "$as_dir" && as_dir
=.
11562 for ac_exec_ext
in '' $ac_executable_extensions; do
11563 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11564 ac_cv_path_orig_target_cpp
="$as_dir/$ac_word$ac_exec_ext"
11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 orig_target_cpp
=$ac_cv_path_orig_target_cpp
11576 if test -n "$orig_target_cpp"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11578 $as_echo "$orig_target_cpp" >&6; }
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11588 if test "$orig_target_cpp" = ""; then
11591 if test "$orig_target_cpp" = "no"; then
11594 if test "$req_avail" = "no"; then
11595 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11598 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11599 if test "$cross_compiling" = "yes" ; then
11600 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11601 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603 $as_echo_n "checking for $ac_word... " >&6; }
11604 if ${ac_cv_path_orig_target_cc+:} false
; then :
11605 $as_echo_n "(cached) " >&6
11607 case $orig_target_cc in
11609 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11613 for as_dir
in $PATH
11616 test -z "$as_dir" && as_dir
=.
11617 for ac_exec_ext
in '' $ac_executable_extensions; do
11618 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11619 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 orig_target_cc
=$ac_cv_path_orig_target_cc
11631 if test -n "$orig_target_cc"; then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11633 $as_echo "$orig_target_cc" >&6; }
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11641 if test "$GCC" = "yes"; then
11642 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
11643 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11644 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11646 $as_echo_n "checking for $ac_word... " >&6; }
11647 if ${ac_cv_path_orig_target_cc+:} false
; then :
11648 $as_echo_n "(cached) " >&6
11650 case $orig_target_cc in
11652 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11656 for as_dir
in `dirname $aros_gcc_gcc`
11659 test -z "$as_dir" && as_dir
=.
11660 for ac_exec_ext
in '' $ac_executable_extensions; do
11661 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11662 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 orig_target_cc
=$ac_cv_path_orig_target_cc
11674 if test -n "$orig_target_cc"; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11676 $as_echo "$orig_target_cc" >&6; }
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11684 if test "$orig_target_cc" = ""; then
11685 # Extract the first word of "gcc", so it can be a program name with args.
11686 set dummy gcc
; ac_word
=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if ${ac_cv_path_orig_target_cc+:} false
; then :
11690 $as_echo_n "(cached) " >&6
11692 case $orig_target_cc in
11694 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11698 for as_dir
in $PATH
11701 test -z "$as_dir" && as_dir
=.
11702 for ac_exec_ext
in '' $ac_executable_extensions; do
11703 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11704 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 orig_target_cc
=$ac_cv_path_orig_target_cc
11716 if test -n "$orig_target_cc"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11718 $as_echo "$orig_target_cc" >&6; }
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11728 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11729 set dummy
${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word
=$2
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731 $as_echo_n "checking for $ac_word... " >&6; }
11732 if ${ac_cv_path_orig_target_cc+:} false
; then :
11733 $as_echo_n "(cached) " >&6
11735 case $orig_target_cc in
11737 ac_cv_path_orig_target_cc
="$orig_target_cc" # Let the user override the test with a path.
11740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11741 for as_dir
in $PATH
11744 test -z "$as_dir" && as_dir
=.
11745 for ac_exec_ext
in '' $ac_executable_extensions; do
11746 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11747 ac_cv_path_orig_target_cc
="$as_dir/$ac_word$ac_exec_ext"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 orig_target_cc
=$ac_cv_path_orig_target_cc
11759 if test -n "$orig_target_cc"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11761 $as_echo "$orig_target_cc" >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11771 if test "$orig_target_cc" = ""; then
11774 if test "$orig_target_cc" = "no"; then
11777 if test "$req_avail" = "no"; then
11778 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11781 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11782 if test "$cross_compiling" = "yes" ; then
11783 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11784 set dummy
${target_tool_prefix}g
++; ac_word
=$2
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11786 $as_echo_n "checking for $ac_word... " >&6; }
11787 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11788 $as_echo_n "(cached) " >&6
11790 case $orig_target_cxx in
11792 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11796 for as_dir
in $PATH
11799 test -z "$as_dir" && as_dir
=.
11800 for ac_exec_ext
in '' $ac_executable_extensions; do
11801 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11802 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11814 if test -n "$orig_target_cxx"; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11816 $as_echo "$orig_target_cxx" >&6; }
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11824 if test "$GCC" = "yes"; then
11825 aros_gcc_g
++=`$CC -print-prog-name=g++`
11826 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11827 set dummy
`basename $aros_gcc_g++`; ac_word
=$2
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11829 $as_echo_n "checking for $ac_word... " >&6; }
11830 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11831 $as_echo_n "(cached) " >&6
11833 case $orig_target_cxx in
11835 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11839 for as_dir
in `dirname $aros_gcc_g++`
11842 test -z "$as_dir" && as_dir
=.
11843 for ac_exec_ext
in '' $ac_executable_extensions; do
11844 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11845 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11857 if test -n "$orig_target_cxx"; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11859 $as_echo "$orig_target_cxx" >&6; }
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 $as_echo "no" >&6; }
11867 if test "$orig_target_cxx" = ""; then
11868 # Extract the first word of "g++", so it can be a program name with args.
11869 set dummy g
++; ac_word
=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11873 $as_echo_n "(cached) " >&6
11875 case $orig_target_cxx in
11877 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11881 for as_dir
in $PATH
11884 test -z "$as_dir" && as_dir
=.
11885 for ac_exec_ext
in '' $ac_executable_extensions; do
11886 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11887 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11898 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11899 if test -n "$orig_target_cxx"; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11901 $as_echo "$orig_target_cxx" >&6; }
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11911 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
11912 set dummy
${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word
=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if ${ac_cv_path_orig_target_cxx+:} false
; then :
11916 $as_echo_n "(cached) " >&6
11918 case $orig_target_cxx in
11920 ac_cv_path_orig_target_cxx
="$orig_target_cxx" # Let the user override the test with a path.
11923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11924 for as_dir
in $PATH
11927 test -z "$as_dir" && as_dir
=.
11928 for ac_exec_ext
in '' $ac_executable_extensions; do
11929 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11930 ac_cv_path_orig_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
11931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 orig_target_cxx
=$ac_cv_path_orig_target_cxx
11942 if test -n "$orig_target_cxx"; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11944 $as_echo "$orig_target_cxx" >&6; }
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11954 if test "$orig_target_cxx" = ""; then
11957 if test "$orig_target_cxx" = "no"; then
11960 if test "$req_avail" = "no"; then
11961 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11964 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
11965 if test "$cross_compiling" = "yes" ; then
11966 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11967 set dummy
${target_tool_prefix}gcc
; ac_word
=$2
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969 $as_echo_n "checking for $ac_word... " >&6; }
11970 if ${ac_cv_path_orig_target_ld+:} false
; then :
11971 $as_echo_n "(cached) " >&6
11973 case $orig_target_ld in
11975 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
11978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11979 for as_dir
in $PATH
11982 test -z "$as_dir" && as_dir
=.
11983 for ac_exec_ext
in '' $ac_executable_extensions; do
11984 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11985 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
11986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11996 orig_target_ld
=$ac_cv_path_orig_target_ld
11997 if test -n "$orig_target_ld"; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11999 $as_echo "$orig_target_ld" >&6; }
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12007 if test "$GCC" = "yes"; then
12008 aros_gcc_gcc
=`$CC -print-prog-name=gcc`
12009 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12010 set dummy
`basename $aros_gcc_gcc`; ac_word
=$2
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012 $as_echo_n "checking for $ac_word... " >&6; }
12013 if ${ac_cv_path_orig_target_ld+:} false
; then :
12014 $as_echo_n "(cached) " >&6
12016 case $orig_target_ld in
12018 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12022 for as_dir
in `dirname $aros_gcc_gcc`
12025 test -z "$as_dir" && as_dir
=.
12026 for ac_exec_ext
in '' $ac_executable_extensions; do
12027 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12028 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12039 orig_target_ld
=$ac_cv_path_orig_target_ld
12040 if test -n "$orig_target_ld"; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12042 $as_echo "$orig_target_ld" >&6; }
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045 $as_echo "no" >&6; }
12050 if test "$orig_target_ld" = ""; then
12051 # Extract the first word of "gcc", so it can be a program name with args.
12052 set dummy gcc
; ac_word
=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_path_orig_target_ld+:} false
; then :
12056 $as_echo_n "(cached) " >&6
12058 case $orig_target_ld in
12060 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12064 for as_dir
in $PATH
12067 test -z "$as_dir" && as_dir
=.
12068 for ac_exec_ext
in '' $ac_executable_extensions; do
12069 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12070 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12081 orig_target_ld
=$ac_cv_path_orig_target_ld
12082 if test -n "$orig_target_ld"; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12084 $as_echo "$orig_target_ld" >&6; }
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12094 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12095 set dummy
${aros_tool_prefix}${toolchain_ld}; ac_word
=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if ${ac_cv_path_orig_target_ld+:} false
; then :
12099 $as_echo_n "(cached) " >&6
12101 case $orig_target_ld in
12103 ac_cv_path_orig_target_ld
="$orig_target_ld" # Let the user override the test with a path.
12106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12107 for as_dir
in $PATH
12110 test -z "$as_dir" && as_dir
=.
12111 for ac_exec_ext
in '' $ac_executable_extensions; do
12112 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12113 ac_cv_path_orig_target_ld
="$as_dir/$ac_word$ac_exec_ext"
12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12124 orig_target_ld
=$ac_cv_path_orig_target_ld
12125 if test -n "$orig_target_ld"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12127 $as_echo "$orig_target_ld" >&6; }
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; }
12137 if test "$orig_target_ld" = ""; then
12140 if test "$orig_target_ld" = "no"; then
12143 if test "$req_avail" = "no"; then
12144 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12147 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12148 if test "$cross_compiling" = "yes" ; then
12149 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12150 set dummy
${target_tool_prefix}as
; ac_word
=$2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12152 $as_echo_n "checking for $ac_word... " >&6; }
12153 if ${ac_cv_path_orig_target_as+:} false
; then :
12154 $as_echo_n "(cached) " >&6
12156 case $orig_target_as in
12158 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12162 for as_dir
in $PATH
12165 test -z "$as_dir" && as_dir
=.
12166 for ac_exec_ext
in '' $ac_executable_extensions; do
12167 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12168 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12179 orig_target_as
=$ac_cv_path_orig_target_as
12180 if test -n "$orig_target_as"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12182 $as_echo "$orig_target_as" >&6; }
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; }
12190 if test "$GCC" = "yes"; then
12191 aros_gcc_as
=`$CC -print-prog-name=as`
12192 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12193 set dummy
`basename $aros_gcc_as`; ac_word
=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if ${ac_cv_path_orig_target_as+:} false
; then :
12197 $as_echo_n "(cached) " >&6
12199 case $orig_target_as in
12201 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12205 for as_dir
in `dirname $aros_gcc_as`
12208 test -z "$as_dir" && as_dir
=.
12209 for ac_exec_ext
in '' $ac_executable_extensions; do
12210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12211 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12222 orig_target_as
=$ac_cv_path_orig_target_as
12223 if test -n "$orig_target_as"; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12225 $as_echo "$orig_target_as" >&6; }
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12233 if test "$orig_target_as" = ""; then
12234 # Extract the first word of "as", so it can be a program name with args.
12235 set dummy as
; ac_word
=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if ${ac_cv_path_orig_target_as+:} false
; then :
12239 $as_echo_n "(cached) " >&6
12241 case $orig_target_as in
12243 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12247 for as_dir
in $PATH
12250 test -z "$as_dir" && as_dir
=.
12251 for ac_exec_ext
in '' $ac_executable_extensions; do
12252 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264 orig_target_as
=$ac_cv_path_orig_target_as
12265 if test -n "$orig_target_as"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12267 $as_echo "$orig_target_as" >&6; }
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12277 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12278 set dummy aros_tool_prefix
}${toolchain_as}; ac_word
=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if ${ac_cv_path_orig_target_as+:} false
; then :
12282 $as_echo_n "(cached) " >&6
12284 case $orig_target_as in
12286 ac_cv_path_orig_target_as
="$orig_target_as" # Let the user override the test with a path.
12289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12290 for as_dir
in $PATH
12293 test -z "$as_dir" && as_dir
=.
12294 for ac_exec_ext
in '' $ac_executable_extensions; do
12295 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12296 ac_cv_path_orig_target_as
="$as_dir/$ac_word$ac_exec_ext"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 orig_target_as
=$ac_cv_path_orig_target_as
12308 if test -n "$orig_target_as"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12310 $as_echo "$orig_target_as" >&6; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12320 if test "$orig_target_as" = ""; then
12323 if test "$orig_target_as" = "no"; then
12326 if test "$req_avail" = "no"; then
12327 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
12330 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12331 if test "$cross_compiling" = "yes" ; then
12332 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12333 set dummy
${target_tool_prefix}ar; ac_word
=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_path_orig_target_ar+:} false
; then :
12337 $as_echo_n "(cached) " >&6
12339 case $orig_target_ar in
12341 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12345 for as_dir
in $PATH
12348 test -z "$as_dir" && as_dir
=.
12349 for ac_exec_ext
in '' $ac_executable_extensions; do
12350 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12351 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 orig_target_ar
=$ac_cv_path_orig_target_ar
12363 if test -n "$orig_target_ar"; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12365 $as_echo "$orig_target_ar" >&6; }
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12373 if test "$GCC" = "yes"; then
12374 aros_gcc_ar
=`$CC -print-prog-name=ar`
12375 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12376 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12378 $as_echo_n "checking for $ac_word... " >&6; }
12379 if ${ac_cv_path_orig_target_ar+:} false
; then :
12380 $as_echo_n "(cached) " >&6
12382 case $orig_target_ar in
12384 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12388 for as_dir
in `dirname $aros_gcc_ar`
12391 test -z "$as_dir" && as_dir
=.
12392 for ac_exec_ext
in '' $ac_executable_extensions; do
12393 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12394 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405 orig_target_ar
=$ac_cv_path_orig_target_ar
12406 if test -n "$orig_target_ar"; then
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12408 $as_echo "$orig_target_ar" >&6; }
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12416 if test "$orig_target_ar" = ""; then
12417 # Extract the first word of "ar", so it can be a program name with args.
12418 set dummy
ar; ac_word
=$2
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420 $as_echo_n "checking for $ac_word... " >&6; }
12421 if ${ac_cv_path_orig_target_ar+:} false
; then :
12422 $as_echo_n "(cached) " >&6
12424 case $orig_target_ar in
12426 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12430 for as_dir
in $PATH
12433 test -z "$as_dir" && as_dir
=.
12434 for ac_exec_ext
in '' $ac_executable_extensions; do
12435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12436 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447 orig_target_ar
=$ac_cv_path_orig_target_ar
12448 if test -n "$orig_target_ar"; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12450 $as_echo "$orig_target_ar" >&6; }
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; }
12460 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12461 set dummy
${aros_tool_prefix}${toolchain_ar}; ac_word
=$2
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463 $as_echo_n "checking for $ac_word... " >&6; }
12464 if ${ac_cv_path_orig_target_ar+:} false
; then :
12465 $as_echo_n "(cached) " >&6
12467 case $orig_target_ar in
12469 ac_cv_path_orig_target_ar
="$orig_target_ar" # Let the user override the test with a path.
12472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12473 for as_dir
in $PATH
12476 test -z "$as_dir" && as_dir
=.
12477 for ac_exec_ext
in '' $ac_executable_extensions; do
12478 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12479 ac_cv_path_orig_target_ar
="$as_dir/$ac_word$ac_exec_ext"
12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490 orig_target_ar
=$ac_cv_path_orig_target_ar
12491 if test -n "$orig_target_ar"; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12493 $as_echo "$orig_target_ar" >&6; }
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12503 if test "$orig_target_ar" = ""; then
12506 if test "$orig_target_ar" = "no"; then
12509 if test "$req_avail" = "no"; then
12510 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12513 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12514 if test "$cross_compiling" = "yes" ; then
12515 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12516 set dummy
${target_tool_prefix}ar; ac_word
=$2
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12518 $as_echo_n "checking for $ac_word... " >&6; }
12519 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12520 $as_echo_n "(cached) " >&6
12522 case $orig_target_ranlib in
12524 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12528 for as_dir
in $PATH
12531 test -z "$as_dir" && as_dir
=.
12532 for ac_exec_ext
in '' $ac_executable_extensions; do
12533 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12534 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12545 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12546 if test -n "$orig_target_ranlib"; then
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12548 $as_echo "$orig_target_ranlib" >&6; }
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; }
12556 if test "$GCC" = "yes"; then
12557 aros_gcc_ar
=`$CC -print-prog-name=ar`
12558 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12559 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12561 $as_echo_n "checking for $ac_word... " >&6; }
12562 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12563 $as_echo_n "(cached) " >&6
12565 case $orig_target_ranlib in
12567 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12571 for as_dir
in `dirname $aros_gcc_ar`
12574 test -z "$as_dir" && as_dir
=.
12575 for ac_exec_ext
in '' $ac_executable_extensions; do
12576 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12577 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12588 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12589 if test -n "$orig_target_ranlib"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12591 $as_echo "$orig_target_ranlib" >&6; }
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12599 if test "$orig_target_ranlib" = ""; then
12600 # Extract the first word of "ar", so it can be a program name with args.
12601 set dummy
ar; ac_word
=$2
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603 $as_echo_n "checking for $ac_word... " >&6; }
12604 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12605 $as_echo_n "(cached) " >&6
12607 case $orig_target_ranlib in
12609 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12613 for as_dir
in $PATH
12616 test -z "$as_dir" && as_dir
=.
12617 for ac_exec_ext
in '' $ac_executable_extensions; do
12618 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12619 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12630 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12631 if test -n "$orig_target_ranlib"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12633 $as_echo "$orig_target_ranlib" >&6; }
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12643 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12644 set dummy
${aros_tool_prefix}${toolchain_ranlib}; ac_word
=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_path_orig_target_ranlib+:} false
; then :
12648 $as_echo_n "(cached) " >&6
12650 case $orig_target_ranlib in
12652 ac_cv_path_orig_target_ranlib
="$orig_target_ranlib" # Let the user override the test with a path.
12655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12656 for as_dir
in $PATH
12659 test -z "$as_dir" && as_dir
=.
12660 for ac_exec_ext
in '' $ac_executable_extensions; do
12661 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_path_orig_target_ranlib
="$as_dir/$ac_word$ac_exec_ext"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12673 orig_target_ranlib
=$ac_cv_path_orig_target_ranlib
12674 if test -n "$orig_target_ranlib"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12676 $as_echo "$orig_target_ranlib" >&6; }
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12686 if test "$orig_target_ranlib" = ""; then
12689 if test "$orig_target_ranlib" = "no"; then
12692 if test "$req_avail" = "no"; then
12693 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12696 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12697 if test "$cross_compiling" = "yes" ; then
12698 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12699 set dummy
${target_tool_prefix}nm
; ac_word
=$2
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12701 $as_echo_n "checking for $ac_word... " >&6; }
12702 if ${ac_cv_path_orig_target_nm+:} false
; then :
12703 $as_echo_n "(cached) " >&6
12705 case $orig_target_nm in
12707 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12711 for as_dir
in $PATH
12714 test -z "$as_dir" && as_dir
=.
12715 for ac_exec_ext
in '' $ac_executable_extensions; do
12716 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12717 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12728 orig_target_nm
=$ac_cv_path_orig_target_nm
12729 if test -n "$orig_target_nm"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12731 $as_echo "$orig_target_nm" >&6; }
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12739 if test "$GCC" = "yes"; then
12740 aros_gcc_nm
=`$CC -print-prog-name=nm`
12741 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12742 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12744 $as_echo_n "checking for $ac_word... " >&6; }
12745 if ${ac_cv_path_orig_target_nm+:} false
; then :
12746 $as_echo_n "(cached) " >&6
12748 case $orig_target_nm in
12750 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12754 for as_dir
in `dirname $aros_gcc_nm`
12757 test -z "$as_dir" && as_dir
=.
12758 for ac_exec_ext
in '' $ac_executable_extensions; do
12759 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12760 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12771 orig_target_nm
=$ac_cv_path_orig_target_nm
12772 if test -n "$orig_target_nm"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12774 $as_echo "$orig_target_nm" >&6; }
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12782 if test "$orig_target_nm" = ""; then
12783 # Extract the first word of "nm", so it can be a program name with args.
12784 set dummy nm
; ac_word
=$2
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12786 $as_echo_n "checking for $ac_word... " >&6; }
12787 if ${ac_cv_path_orig_target_nm+:} false
; then :
12788 $as_echo_n "(cached) " >&6
12790 case $orig_target_nm in
12792 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12796 for as_dir
in $PATH
12799 test -z "$as_dir" && as_dir
=.
12800 for ac_exec_ext
in '' $ac_executable_extensions; do
12801 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12802 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813 orig_target_nm
=$ac_cv_path_orig_target_nm
12814 if test -n "$orig_target_nm"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12816 $as_echo "$orig_target_nm" >&6; }
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12826 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12827 set dummy
${aros_tool_prefix}${toolchain_nm}; ac_word
=$2
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829 $as_echo_n "checking for $ac_word... " >&6; }
12830 if ${ac_cv_path_orig_target_nm+:} false
; then :
12831 $as_echo_n "(cached) " >&6
12833 case $orig_target_nm in
12835 ac_cv_path_orig_target_nm
="$orig_target_nm" # Let the user override the test with a path.
12838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12839 for as_dir
in $PATH
12842 test -z "$as_dir" && as_dir
=.
12843 for ac_exec_ext
in '' $ac_executable_extensions; do
12844 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12845 ac_cv_path_orig_target_nm
="$as_dir/$ac_word$ac_exec_ext"
12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12856 orig_target_nm
=$ac_cv_path_orig_target_nm
12857 if test -n "$orig_target_nm"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12859 $as_echo "$orig_target_nm" >&6; }
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12869 if test "$orig_target_nm" = ""; then
12872 if test "$orig_target_nm" = "no"; then
12875 if test "$req_avail" = "no"; then
12876 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12879 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
12880 if test "$cross_compiling" = "yes" ; then
12881 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12882 set dummy
${target_tool_prefix}strip
; ac_word
=$2
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12884 $as_echo_n "checking for $ac_word... " >&6; }
12885 if ${ac_cv_path_orig_target_strip+:} false
; then :
12886 $as_echo_n "(cached) " >&6
12888 case $orig_target_strip in
12890 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12894 for as_dir
in $PATH
12897 test -z "$as_dir" && as_dir
=.
12898 for ac_exec_ext
in '' $ac_executable_extensions; do
12899 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12900 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12911 orig_target_strip
=$ac_cv_path_orig_target_strip
12912 if test -n "$orig_target_strip"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12914 $as_echo "$orig_target_strip" >&6; }
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12922 if test "$GCC" = "yes"; then
12923 aros_gcc_strip
=`$CC -print-prog-name=strip`
12924 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12925 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 $as_echo_n "checking for $ac_word... " >&6; }
12928 if ${ac_cv_path_orig_target_strip+:} false
; then :
12929 $as_echo_n "(cached) " >&6
12931 case $orig_target_strip in
12933 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12937 for as_dir
in `dirname $aros_gcc_strip`
12940 test -z "$as_dir" && as_dir
=.
12941 for ac_exec_ext
in '' $ac_executable_extensions; do
12942 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12943 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12954 orig_target_strip
=$ac_cv_path_orig_target_strip
12955 if test -n "$orig_target_strip"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12957 $as_echo "$orig_target_strip" >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960 $as_echo "no" >&6; }
12965 if test "$orig_target_strip" = ""; then
12966 # Extract the first word of "strip", so it can be a program name with args.
12967 set dummy strip
; ac_word
=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969 $as_echo_n "checking for $ac_word... " >&6; }
12970 if ${ac_cv_path_orig_target_strip+:} false
; then :
12971 $as_echo_n "(cached) " >&6
12973 case $orig_target_strip in
12975 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
12978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12979 for as_dir
in $PATH
12982 test -z "$as_dir" && as_dir
=.
12983 for ac_exec_ext
in '' $ac_executable_extensions; do
12984 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12985 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12996 orig_target_strip
=$ac_cv_path_orig_target_strip
12997 if test -n "$orig_target_strip"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12999 $as_echo "$orig_target_strip" >&6; }
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13009 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13010 set dummy
${aros_tool_prefix}${toolchain_strip}; ac_word
=$2
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13012 $as_echo_n "checking for $ac_word... " >&6; }
13013 if ${ac_cv_path_orig_target_strip+:} false
; then :
13014 $as_echo_n "(cached) " >&6
13016 case $orig_target_strip in
13018 ac_cv_path_orig_target_strip
="$orig_target_strip" # Let the user override the test with a path.
13021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13022 for as_dir
in $PATH
13025 test -z "$as_dir" && as_dir
=.
13026 for ac_exec_ext
in '' $ac_executable_extensions; do
13027 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13028 ac_cv_path_orig_target_strip
="$as_dir/$ac_word$ac_exec_ext"
13029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13039 orig_target_strip
=$ac_cv_path_orig_target_strip
13040 if test -n "$orig_target_strip"; then
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13042 $as_echo "$orig_target_strip" >&6; }
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13052 if test "$orig_target_strip" = ""; then
13055 if test "$orig_target_strip" = "no"; then
13058 if test "$req_avail" = "no"; then
13059 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13062 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13063 if test "$cross_compiling" = "yes" ; then
13064 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13065 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067 $as_echo_n "checking for $ac_word... " >&6; }
13068 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13069 $as_echo_n "(cached) " >&6
13071 case $orig_target_objcopy in
13073 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13077 for as_dir
in $PATH
13080 test -z "$as_dir" && as_dir
=.
13081 for ac_exec_ext
in '' $ac_executable_extensions; do
13082 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13083 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13094 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13095 if test -n "$orig_target_objcopy"; then
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13097 $as_echo "$orig_target_objcopy" >&6; }
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100 $as_echo "no" >&6; }
13105 if test "$GCC" = "yes"; then
13106 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
13107 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13108 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13110 $as_echo_n "checking for $ac_word... " >&6; }
13111 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13112 $as_echo_n "(cached) " >&6
13114 case $orig_target_objcopy in
13116 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13120 for as_dir
in `dirname $aros_gcc_objcopy`
13123 test -z "$as_dir" && as_dir
=.
13124 for ac_exec_ext
in '' $ac_executable_extensions; do
13125 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13126 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13137 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13138 if test -n "$orig_target_objcopy"; then
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13140 $as_echo "$orig_target_objcopy" >&6; }
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143 $as_echo "no" >&6; }
13148 if test "$orig_target_objcopy" = ""; then
13149 # Extract the first word of "objcopy", so it can be a program name with args.
13150 set dummy objcopy
; ac_word
=$2
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152 $as_echo_n "checking for $ac_word... " >&6; }
13153 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13154 $as_echo_n "(cached) " >&6
13156 case $orig_target_objcopy in
13158 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13162 for as_dir
in $PATH
13165 test -z "$as_dir" && as_dir
=.
13166 for ac_exec_ext
in '' $ac_executable_extensions; do
13167 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13168 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13180 if test -n "$orig_target_objcopy"; then
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13182 $as_echo "$orig_target_objcopy" >&6; }
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185 $as_echo "no" >&6; }
13192 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13193 set dummy
${aros_tool_prefix}${toolchain_objcopy}; ac_word
=$2
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195 $as_echo_n "checking for $ac_word... " >&6; }
13196 if ${ac_cv_path_orig_target_objcopy+:} false
; then :
13197 $as_echo_n "(cached) " >&6
13199 case $orig_target_objcopy in
13201 ac_cv_path_orig_target_objcopy
="$orig_target_objcopy" # Let the user override the test with a path.
13204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13205 for as_dir
in $PATH
13208 test -z "$as_dir" && as_dir
=.
13209 for ac_exec_ext
in '' $ac_executable_extensions; do
13210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13211 ac_cv_path_orig_target_objcopy
="$as_dir/$ac_word$ac_exec_ext"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13222 orig_target_objcopy
=$ac_cv_path_orig_target_objcopy
13223 if test -n "$orig_target_objcopy"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13225 $as_echo "$orig_target_objcopy" >&6; }
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13235 if test "$orig_target_objcopy" = ""; then
13238 if test "$orig_target_objcopy" = "no"; then
13241 if test "$req_avail" = "no"; then
13242 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13245 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13246 if test "$cross_compiling" = "yes" ; then
13247 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13248 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250 $as_echo_n "checking for $ac_word... " >&6; }
13251 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13252 $as_echo_n "(cached) " >&6
13254 case $orig_target_objdump in
13256 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13260 for as_dir
in $PATH
13263 test -z "$as_dir" && as_dir
=.
13264 for ac_exec_ext
in '' $ac_executable_extensions; do
13265 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13266 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13277 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13278 if test -n "$orig_target_objdump"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13280 $as_echo "$orig_target_objdump" >&6; }
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13288 if test "$GCC" = "yes"; then
13289 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
13290 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13291 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293 $as_echo_n "checking for $ac_word... " >&6; }
13294 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13295 $as_echo_n "(cached) " >&6
13297 case $orig_target_objdump in
13299 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13303 for as_dir
in `dirname $aros_gcc_objdump`
13306 test -z "$as_dir" && as_dir
=.
13307 for ac_exec_ext
in '' $ac_executable_extensions; do
13308 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13309 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13321 if test -n "$orig_target_objdump"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13323 $as_echo "$orig_target_objdump" >&6; }
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13331 if test "$orig_target_objdump" = ""; then
13332 # Extract the first word of "objdump", so it can be a program name with args.
13333 set dummy objdump
; ac_word
=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335 $as_echo_n "checking for $ac_word... " >&6; }
13336 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13337 $as_echo_n "(cached) " >&6
13339 case $orig_target_objdump in
13341 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13345 for as_dir
in $PATH
13348 test -z "$as_dir" && as_dir
=.
13349 for ac_exec_ext
in '' $ac_executable_extensions; do
13350 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13351 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13362 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13363 if test -n "$orig_target_objdump"; then
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13365 $as_echo "$orig_target_objdump" >&6; }
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13375 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13376 set dummy
${aros_tool_prefix}${toolchain_objdump}; ac_word
=$2
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378 $as_echo_n "checking for $ac_word... " >&6; }
13379 if ${ac_cv_path_orig_target_objdump+:} false
; then :
13380 $as_echo_n "(cached) " >&6
13382 case $orig_target_objdump in
13384 ac_cv_path_orig_target_objdump
="$orig_target_objdump" # Let the user override the test with a path.
13387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13388 for as_dir
in $PATH
13391 test -z "$as_dir" && as_dir
=.
13392 for ac_exec_ext
in '' $ac_executable_extensions; do
13393 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13394 ac_cv_path_orig_target_objdump
="$as_dir/$ac_word$ac_exec_ext"
13395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13405 orig_target_objdump
=$ac_cv_path_orig_target_objdump
13406 if test -n "$orig_target_objdump"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13408 $as_echo "$orig_target_objdump" >&6; }
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13418 if test "$orig_target_objdump" = ""; then
13421 if test "$orig_target_objdump" = "no"; then
13424 if test "$req_avail" = "no"; then
13425 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13429 if test "$kernel_tool_prefix" = "none" ; then
13430 # No kernel tools specified
13431 # Assume target tools == kernel tools with ELF wrapper
13432 aros_kernel_cc
=$orig_target_cc
13433 aros_kernel_cxx
=$orig_target_cxx
13434 aros_kernel_cpp
=$orig_target_cpp
13435 aros_kernel_ld
=$orig_target_ld
13436 aros_kernel_as
=$orig_target_as
13437 aros_kernel_ar
=$orig_target_ar
13438 aros_kernel_ranlib
=$orig_target_ranlib
13439 aros_kernel_nm
=$orig_target_nm
13440 aros_kernel_strip
=$orig_target_strip
13441 aros_kernel_objcopy
=$orig_target_objcopy
13442 aros_kernel_objdump
=$orig_target_objdump
13443 use_kernel_cc_wrapper
=yes
13446 # At this point, all aros_kernel_* and aros_target_*
13447 # tools should be set up correctly
13449 CC
="$aros_kernel_cc $kernel_tool_flags"
13450 CPP
="$aros_kernel_cpp"
13452 #-----------------------------------------------------------------------------
13454 # Find all the tools we need to compile. This could be cross-compiling
13455 # though! If that is the case we use the GNU form of the target and
13456 # simply add this to the front of the binary name. This is rather simple,
13457 # but it should work under most circumstances.
13459 # The default tools are to use the same as the host, but only if the
13460 # host and target CPU are the same. With GCC this is normally enough.
13464 aros_shared_ld
="$aros_host_ld"
13466 aros_target_mkdep
="$aros_host_mkdep"
13468 # The default tools executables to be linked to.
13469 if test "$rescomp" != ""; then
13470 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13471 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13473 $as_echo_n "checking for $ac_word... " >&6; }
13474 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
13475 $as_echo_n "(cached) " >&6
13477 case $aros_kernel_rescomp in
13479 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
13482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13483 for as_dir
in $PATH
13486 test -z "$as_dir" && as_dir
=.
13487 for ac_exec_ext
in '' $ac_executable_extensions; do
13488 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13489 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
13490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13500 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
13501 if test -n "$aros_kernel_rescomp"; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13503 $as_echo "$aros_kernel_rescomp" >&6; }
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13511 if test "$aros_kernel_rescomp" = ""; then
13514 if test "$aros_kernel_rescomp" = "no"; then
13517 if test "$req_avail" = "no"; then
13518 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13522 # Set up the sources for the symlink farm
13523 if test "$crosstools" = "yes"; then
13524 crosstools_target
=tools-crosstools
13527 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
13528 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
13530 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13531 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13532 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13533 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13534 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13535 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13536 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13538 # aros_cc_pre is a variable that is added to the front of the compiler name
13539 # in the generated aros-gcc shell script. We need this to enable the cache
13540 # to work across cleaned builds. Also, support DISTCC using the correct
13541 # environment variable.
13544 if test "x${DISTCC}" != "x" ; then
13545 if test "x${CCACHE}" != "x" ; then
13546 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13548 aros_cc_pre
="${DISTCC} "
13551 if test "x${CCACHE}" != "x" ; then
13552 aros_cc_pre
="${CCACHE} "
13556 aros_target_nostdinc_cflags
=-nostdinc
13558 aros_target_nostartup_ldflags
=-nostartfiles
13560 aros_target_nix_ldflags
=-nix
13562 aros_target_detach_ldflags
=-detach
13564 aros_target_nostdlib_ldflags
=-nostdlib
13569 if test "$aros_target_toolchain" != "yes"; then
13570 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13571 if test "$GCC" = "yes"; then
13572 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13575 # We do not know which c compiler version we are going to build and what we need to know
13576 # here is different for different versions so this will be set later during the
13577 # build of crosstools.
13578 if test "$aros_toolchain" = "gnu" ; then
13579 prefix
="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13580 elif test "$aros_toolchain" = "llvm" ; then
13581 prefix
="$AROS_CROSSTOOLSDIR/bin/"
13583 aros_target_cc_path
=@aros_target_cc_path@
13585 aros_target_cpp
="${prefix}${toolchain_cpp_preprocessor}"
13586 aros_target_cc
="${prefix}${toolchain_c_compiler}"
13587 aros_target_cxx
="${prefix}${toolchain_cxx_compiler}"
13588 aros_target_as
="${prefix}${toolchain_as}"
13589 aros_target_ld
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_ld}"
13590 aros_target_ar
="${prefix}${toolchain_ar} $aros_target_ar_flags"
13591 aros_target_objcopy
="${prefix}${toolchain_objcopy}"
13592 aros_target_objdump
="${prefix}${toolchain_objdump}"
13593 aros_target_ranlib
="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13594 aros_target_nm
="${prefix}${toolchain_nm} $aros_target_nm_flags"
13595 aros_target_strip
="${prefix}${toolchain_strip}"
13596 aros_plain_nm
="${prefix}${toolchain_nm}"
13597 aros_plain_ar
="${prefix}${toolchain_ar}"
13599 # Check whether --enable-includes was given.
13600 if test "${enable_includes+set}" = set; then :
13601 enableval
=$enable_includes; aros_target_incl
=$enable_includes
13603 aros_target_incl
=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13607 if test "$aros_kernel_includes" = ""; then
13608 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13609 aros_kernel_includes
="-isystem $aros_target_incl"
13613 if test "$aros_kernel_includes" != "" ; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13615 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13616 if test "$aros_kernel_cc_includes" = "" ; then
13617 # Try to guess where the directory is.
13618 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
13619 if test -d $aros_kernel_cc_includes; then
13620 # Check if there is also an include-fixed directory and add it
13621 # to kernel compiler's include path as it may contain some of
13622 # the headers we need.
13623 if test -d "$aros_kernel_cc_includes"-fixed; then
13624 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
13626 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13627 case ${host_cpu} in
13629 host_cpu_glibc
=i386
13632 host_cpu_glibc
=${host_cpu}
13635 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13636 aros_kernel_cc_includes
+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13639 # The directory doesn't exist, we need to do some more work.
13640 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
13642 # These are the headers we're looking for.
13643 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13644 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13648 for h
in $headers; do
13649 # Which other headers are needed by each of the above?
13650 deps
=$
(echo "#include <$h>" | \
13651 $aros_kernel_cc -E -M - 2>/dev
/null | \
13652 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13654 # Copy all the needed headers to a directory beneath gendir.
13657 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
13658 sed -n "s,^.*/include\(/.*\),\1,p")
13659 ! test -d $dir && mkdir
-p $dir
13660 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13666 $as_echo "$aros_kernel_cc_includes" >&6; }
13667 # Adding -nostdinc to kernel includes as they are always used together.
13668 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13671 if test "$crosstools" != "yes"; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13673 $as_echo_n "checking for the target compiler's include path... " >&6; }
13674 if test "$aros_target_cc_includes" = "" ; then
13675 #try to guess where the directory is
13676 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
13677 if ! test -d $aros_target_cc_includes; then
13678 #the directory doesn't exist, we need to do some more work
13679 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
13681 #these are the headers we're looking for
13682 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13683 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13687 for h
in $headers; do
13688 #which other headers each of the above headers needs?
13689 deps
=$
(echo "#include <$h>" | \
13690 $orig_target_cc -E -M - 2>/dev
/null | \
13691 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13693 #copy all the needed headers to a directory beneath gendir
13696 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
13697 sed -n "s,^.*/include\(/.*\),\1,p")
13698 ! test -d $dir && mkdir
-p $dir
13699 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13705 $as_echo "$aros_target_cc_includes" >&6; }
13707 # We do not know which c compiler version we are going to build and what we need to know
13708 # here is different for different versions so this will be set later during the
13709 # build of crosstools.
13710 aros_target_cc_includes
=@aros_target_cc_includes@
13714 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13715 # On GCC >= 4.0 -iquote should be used
13719 save_cflags
="$CFLAGS"
13721 kernel_cflags_iquote
=$host_cflags_iquote
13722 kernel_cflags_iquote_end
=$host_cflags_iquote_end
13723 if test "x-$cross_compiling" = "x-yes"; then
13724 CC
="$aros_kernel_cc"
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13726 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13727 if test "x-$crosstools" != "x-yes"; then
13728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13739 if ac_fn_c_try_compile
"$LINENO"; then :
13740 use_no_stack_protector
="yes"
13742 use_no_stack_protector
="no"
13744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13746 # we do know it is supported for the smallest version of gcc we are going to build
13747 # we assume it's also supported by later versions
13748 use_no_stack_protector
=yes
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13751 $as_echo "$use_no_stack_protector" >&6; }
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13753 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13754 if test "x-$crosstools" != "x-yes"; then
13755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13766 if ac_fn_c_try_compile
"$LINENO"; then :
13771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13773 # we do know it is supported for the smallest version of gcc we are going to build
13774 # we assume it's also supported by later versions
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13778 $as_echo "$has_iquote" >&6; }
13779 if test "x-$has_iquote" = "x-yes" ; then
13780 kernel_cflags_iquote
=-iquote
13781 kernel_cflags_iquote_end
=
13783 kernel_cflags_iquote
=-I
13784 kernel_cflags_iquote_end
=-I-
13787 if test "x-$use_no_stack_protector" = "x-yes" ; then
13788 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
13791 #-----------------------------------------------------------------------------
13793 # Check if we can explicitly choose older version of symbol hashing
13795 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
13796 CC
="$aros_kernel_cc"
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13798 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h. */
13810 if ac_fn_c_try_link
"$LINENO"; then :
13811 use_hash_style
="yes"
13813 use_hash_style
="no"
13815 rm -f core conftest.err conftest.
$ac_objext \
13816 conftest
$ac_exeext conftest.
$ac_ext
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13818 $as_echo "$use_hash_style" >&6; }
13819 if test "x-$use_hash_style" = "x-yes" ; then
13820 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
13823 CFLAGS
="$save_cflags"
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13832 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13834 # Check whether --with-resolution was given.
13835 if test "${with_resolution+set}" = set; then :
13836 withval
=$with_resolution; resolution
=$withval
13841 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13842 if test "$resolution" = "yes" ; then
13845 if test "$resolution" = "no" ; then
13848 if test "$resolution" != "none" ; then
13849 aros_nominal_width
=`echo $resolution | cut -d'x' -f1`
13850 aros_nominal_height
=`echo $resolution | cut -d'x' -f2`
13851 aros_nominal_depth
=`echo $resolution | cut -d'x' -f3`
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13854 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13855 aros_cv_nominal_width
=$aros_nominal_width
13856 aros_cv_nominal_height
=$aros_nominal_height
13857 aros_cv_nominal_depth
=$aros_nominal_depth
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13860 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13862 # Check whether --with-serial-debug was given.
13863 if test "${with_serial_debug+set}" = set; then :
13864 withval
=$with_serial_debug; serial_debug
=$withval
13869 if test "$aros_serial_debug" = 0 ; then
13870 serial_debug_forced
=""
13871 if test "$serial_debug" = "yes" ; then
13874 if test "$serial_debug" = "no" ; then
13875 serial_debug
="none"
13878 serial_debug_forced
="(forced)"
13879 serial_debug
=$aros_serial_debug
13881 if test "$serial_debug" != "none" ; then
13882 aros_serial_debug
=$serial_debug
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13884 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 $as_echo "no" >&6; }
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
13891 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
13892 # Check whether --enable-palm_debug_hack was given.
13893 if test "${enable_palm_debug_hack+set}" = set; then :
13894 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
13896 palm_debug_hack
="no"
13899 if test "$palm_debug_hack" = "yes" ; then
13900 aros_palm_debug_hack
="1"
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13903 $as_echo "$palm_debug_hack" >&6; }
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
13906 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
13907 # Check whether --enable-usb30_code was given.
13908 if test "${enable_usb30_code+set}" = set; then :
13909 enableval
=$enable_usb30_code; usb30_code
="yes"
13914 if test "$usb30_code" = "yes" ; then
13915 aros_config_cflags
="$aros_config_cflags -DAROS_USB30_CODE"
13916 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13919 $as_echo "$usb30_code" >&6; }
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
13922 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
13923 # Check whether --enable-nesting_supervisor was given.
13924 if test "${enable_nesting_supervisor+set}" = set; then :
13925 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
13927 nesting_supervisor
="no"
13930 if test "$nesting_supervisor" = "yes" ; then
13931 aros_nesting_supervisor
="1"
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13934 $as_echo "$nesting_supervisor" >&6; }
13936 if test "$aros_enable_mmu" = "" ; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
13938 $as_echo_n "checking whether MMU support is enabled... " >&6; }
13939 # Check whether --enable-mmu was given.
13940 if test "${enable_mmu+set}" = set; then :
13941 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
13943 aros_enable_mmu
="yes"
13946 if test "$aros_enable_mmu" = "" ; then
13947 aros_enable_mmu
="yes"
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13950 $as_echo "$aros_enable_mmu" >&6; }
13952 if test "$aros_enable_mmu" = "no" ; then
13953 aros_enable_mmu
="0"
13955 aros_enable_mmu
="1"
13959 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13961 if test "x-$need_dlopen" != "x-no" ; then
13964 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
13965 if test "x$ac_cv_func_dlopen" = xyes
; then :
13971 if test "x-$have_dl" = "x-no" ; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13973 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13974 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13975 $as_echo_n "(cached) " >&6
13977 ac_check_lib_save_LIBS
=$LIBS
13979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13982 /* Override any GCC internal prototype to avoid an error.
13983 Use char because int might match the return type of a GCC
13984 builtin and then its argument prototype would still apply. */
13997 if ac_fn_c_try_link
"$LINENO"; then :
13998 ac_cv_lib_dl_dlopen
=yes
14000 ac_cv_lib_dl_dlopen
=no
14002 rm -f core conftest.err conftest.
$ac_objext \
14003 conftest
$ac_exeext conftest.
$ac_ext
14004 LIBS
=$ac_check_lib_save_LIBS
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14007 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14008 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
14010 aros_host_ldflags
="$aros_host_ldflags -ldl"
14016 if test "x-$have_dl" = "x-no" ; then
14017 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
14023 # Check whether --enable-x11_hidd was given.
14024 if test "${enable_x11_hidd+set}" = set; then :
14025 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
14027 x11_hidd
="$need_x11"
14030 case "x-$x11_hidd" in
14031 x-yes|x-no|x-auto
) ;;
14032 *) x11_hidd
="$need_x11" ;;
14037 if test "x-$x11_hidd" != "x-no" ; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14040 $as_echo_n "checking for X... " >&6; }
14043 # Check whether --with-x was given.
14044 if test "${with_x+set}" = set; then :
14048 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14049 if test "x$with_x" = xno
; then
14050 # The user explicitly disabled X.
14053 case $x_includes,$x_libraries in #(
14054 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
14055 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
14056 $as_echo_n "(cached) " >&6
14058 # One or both of the vars are not set, and there is no cached value.
14059 ac_x_includes
=no ac_x_libraries
=no
14060 rm -f -r conftest.dir
14061 if mkdir conftest.dir
; then
14063 cat >Imakefile
<<'_ACEOF'
14065 @echo incroot='${INCROOT}'
14067 @echo usrlibdir='${USRLIBDIR}'
14069 @echo libdir='${LIBDIR}'
14071 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14072 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14073 for ac_var
in incroot usrlibdir libdir
; do
14074 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14076 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14077 for ac_extension
in a so sl dylib la dll
; do
14078 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14079 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14080 ac_im_usrlibdir
=$ac_im_libdir; break
14083 # Screen out bogus values from the imake configuration. They are
14084 # bogus both because they are the default anyway, and because
14085 # using them would break gcc on systems where it needs fixed includes.
14086 case $ac_im_incroot in
14087 /usr
/include
) ac_x_includes
= ;;
14088 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14090 case $ac_im_usrlibdir in
14091 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14092 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14096 rm -f -r conftest.dir
14099 # Standard set of common directories for X headers.
14100 # Check X11 before X11Rn because it is often a symlink to the current release.
14114 /usr/local/X11/include
14115 /usr/local/X11R7/include
14116 /usr/local/X11R6/include
14117 /usr/local/X11R5/include
14118 /usr/local/X11R4/include
14120 /usr/local/include/X11
14121 /usr/local/include/X11R7
14122 /usr/local/include/X11R6
14123 /usr/local/include/X11R5
14124 /usr/local/include/X11R4
14128 /usr/XFree86/include/X11
14132 /usr/unsupported/include
14133 /usr/athena/include
14134 /usr/local/x11r5/include
14135 /usr/lpp/Xamples/include
14137 /usr/openwin/include
14138 /usr/openwin/share/include'
14140 if test "$ac_x_includes" = no
; then
14141 # Guess where to find include files, by looking for Xlib.h.
14142 # First, try using that file with no special directory specified.
14143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145 #include <X11/Xlib.h>
14147 if ac_fn_c_try_cpp
"$LINENO"; then :
14148 # We can compile using X headers with no special include directory.
14151 for ac_dir
in $ac_x_header_dirs; do
14152 if test -r "$ac_dir/X11/Xlib.h"; then
14153 ac_x_includes
=$ac_dir
14158 rm -f conftest.err conftest.i conftest.
$ac_ext
14159 fi # $ac_x_includes = no
14161 if test "$ac_x_libraries" = no
; then
14162 # Check for the libraries.
14163 # See if we find them without any special options.
14164 # Don't add to $LIBS permanently.
14167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14169 #include <X11/Xlib.h>
14178 if ac_fn_c_try_link
"$LINENO"; then :
14180 # We can link X programs with no special library path.
14184 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14186 # Don't even attempt the hair of trying to link an X program!
14187 for ac_extension
in a so sl dylib la dll
; do
14188 if test -r "$ac_dir/libX11.$ac_extension"; then
14189 ac_x_libraries
=$ac_dir
14195 rm -f core conftest.err conftest.
$ac_objext \
14196 conftest
$ac_exeext conftest.
$ac_ext
14197 fi # $ac_x_libraries = no
14199 case $ac_x_includes,$ac_x_libraries in #(
14200 no
,* |
*,no |
*\'*)
14201 # Didn't find X, or a directory has "'" in its name.
14202 ac_cv_have_x
="have_x=no";; #(
14204 # Record where we found X for the cache.
14205 ac_cv_have_x
="have_x=yes\
14206 ac_x_includes='$ac_x_includes'\
14207 ac_x_libraries='$ac_x_libraries'"
14213 eval "$ac_cv_have_x"
14216 if test "$have_x" != yes; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14218 $as_echo "$have_x" >&6; }
14221 # If each of the values was on the command line, it overrides each guess.
14222 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14223 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14224 # Update the cache value to reflect the command line values.
14225 ac_cv_have_x
="have_x=yes\
14226 ac_x_includes='$x_includes'\
14227 ac_x_libraries='$x_libraries'"
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14229 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14232 if test "$no_x" = yes; then
14233 # Not all programs may use this symbol, but it does not hurt to define it.
14235 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
14237 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
14239 if test -n "$x_includes"; then
14240 X_CFLAGS
="$X_CFLAGS -I$x_includes"
14243 # It would also be nice to do this for all -L options, not just this one.
14244 if test -n "$x_libraries"; then
14245 X_LIBS
="$X_LIBS -L$x_libraries"
14246 # For Solaris; some versions of Sun CC require a space after -R and
14247 # others require no space. Words are not sufficient . . . .
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
14249 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
14250 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
14251 ac_xsave_c_werror_flag
=$ac_c_werror_flag
14252 ac_c_werror_flag
=yes
14253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14264 if ac_fn_c_try_link
"$LINENO"; then :
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266 $as_echo "no" >&6; }
14267 X_LIBS
="$X_LIBS -R$x_libraries"
14269 LIBS
="$ac_xsave_LIBS -R $x_libraries"
14270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14281 if ac_fn_c_try_link
"$LINENO"; then :
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14283 $as_echo "yes" >&6; }
14284 X_LIBS
="$X_LIBS -R $x_libraries"
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
14287 $as_echo "neither works" >&6; }
14289 rm -f core conftest.err conftest.
$ac_objext \
14290 conftest
$ac_exeext conftest.
$ac_ext
14292 rm -f core conftest.err conftest.
$ac_objext \
14293 conftest
$ac_exeext conftest.
$ac_ext
14294 ac_c_werror_flag
=$ac_xsave_c_werror_flag
14295 LIBS
=$ac_xsave_LIBS
14298 # Check for system-dependent libraries X programs must link with.
14299 # Do this before checking for the system-independent R6 libraries
14300 # (-lICE), since we may need -lsocket or whatever for X linking.
14302 if test "$ISC" = yes; then
14303 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
14305 # Martyn Johnson says this is needed for Ultrix, if the X
14306 # libraries were built with DECnet support. And Karl Berry says
14307 # the Alpha needs dnet_stub (dnet does not exist).
14308 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
14309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14312 /* Override any GCC internal prototype to avoid an error.
14313 Use char because int might match the return type of a GCC
14314 builtin and then its argument prototype would still apply. */
14318 char XOpenDisplay ();
14322 return XOpenDisplay ();
14327 if ac_fn_c_try_link
"$LINENO"; then :
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
14331 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
14332 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
14333 $as_echo_n "(cached) " >&6
14335 ac_check_lib_save_LIBS
=$LIBS
14336 LIBS
="-ldnet $LIBS"
14337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14340 /* Override any GCC internal prototype to avoid an error.
14341 Use char because int might match the return type of a GCC
14342 builtin and then its argument prototype would still apply. */
14350 return dnet_ntoa ();
14355 if ac_fn_c_try_link
"$LINENO"; then :
14356 ac_cv_lib_dnet_dnet_ntoa
=yes
14358 ac_cv_lib_dnet_dnet_ntoa
=no
14360 rm -f core conftest.err conftest.
$ac_objext \
14361 conftest
$ac_exeext conftest.
$ac_ext
14362 LIBS
=$ac_check_lib_save_LIBS
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
14365 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
14366 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
14367 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
14370 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
14372 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
14373 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false
; then :
14374 $as_echo_n "(cached) " >&6
14376 ac_check_lib_save_LIBS
=$LIBS
14377 LIBS
="-ldnet_stub $LIBS"
14378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14381 /* Override any GCC internal prototype to avoid an error.
14382 Use char because int might match the return type of a GCC
14383 builtin and then its argument prototype would still apply. */
14391 return dnet_ntoa ();
14396 if ac_fn_c_try_link
"$LINENO"; then :
14397 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
14399 ac_cv_lib_dnet_stub_dnet_ntoa
=no
14401 rm -f core conftest.err conftest.
$ac_objext \
14402 conftest
$ac_exeext conftest.
$ac_ext
14403 LIBS
=$ac_check_lib_save_LIBS
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
14406 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
14407 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
; then :
14408 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
14413 rm -f core conftest.err conftest.
$ac_objext \
14414 conftest
$ac_exeext conftest.
$ac_ext
14415 LIBS
="$ac_xsave_LIBS"
14417 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14418 # to get the SysV transport functions.
14419 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
14421 # The nsl library prevents programs from opening the X display
14422 # on Irix 5.2, according to T.E. Dickey.
14423 # The functions gethostbyname, getservbyname, and inet_addr are
14424 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
14425 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14426 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
14430 if test $ac_cv_func_gethostbyname = no
; then
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
14432 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
14433 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
14434 $as_echo_n "(cached) " >&6
14436 ac_check_lib_save_LIBS
=$LIBS
14438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h. */
14441 /* Override any GCC internal prototype to avoid an error.
14442 Use char because int might match the return type of a GCC
14443 builtin and then its argument prototype would still apply. */
14447 char gethostbyname ();
14451 return gethostbyname ();
14456 if ac_fn_c_try_link
"$LINENO"; then :
14457 ac_cv_lib_nsl_gethostbyname
=yes
14459 ac_cv_lib_nsl_gethostbyname
=no
14461 rm -f core conftest.err conftest.
$ac_objext \
14462 conftest
$ac_exeext conftest.
$ac_ext
14463 LIBS
=$ac_check_lib_save_LIBS
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
14466 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
14467 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
14468 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
14471 if test $ac_cv_lib_nsl_gethostbyname = no
; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
14473 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
14474 if ${ac_cv_lib_bsd_gethostbyname+:} false
; then :
14475 $as_echo_n "(cached) " >&6
14477 ac_check_lib_save_LIBS
=$LIBS
14479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14482 /* Override any GCC internal prototype to avoid an error.
14483 Use char because int might match the return type of a GCC
14484 builtin and then its argument prototype would still apply. */
14488 char gethostbyname ();
14492 return gethostbyname ();
14497 if ac_fn_c_try_link
"$LINENO"; then :
14498 ac_cv_lib_bsd_gethostbyname
=yes
14500 ac_cv_lib_bsd_gethostbyname
=no
14502 rm -f core conftest.err conftest.
$ac_objext \
14503 conftest
$ac_exeext conftest.
$ac_ext
14504 LIBS
=$ac_check_lib_save_LIBS
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
14507 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
14508 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
; then :
14509 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
14515 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14516 # socket/setsockopt and other routines are undefined under SCO ODT
14517 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14518 # on later versions), says Simon Leinen: it contains gethostby*
14519 # variants that don't use the name server (or something). -lsocket
14520 # must be given before -lnsl if both are needed. We assume that
14521 # if connect needs -lnsl, so does gethostbyname.
14522 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
14523 if test "x$ac_cv_func_connect" = xyes
; then :
14527 if test $ac_cv_func_connect = no
; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
14529 $as_echo_n "checking for connect in -lsocket... " >&6; }
14530 if ${ac_cv_lib_socket_connect+:} false
; then :
14531 $as_echo_n "(cached) " >&6
14533 ac_check_lib_save_LIBS
=$LIBS
14534 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
14535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h. */
14538 /* Override any GCC internal prototype to avoid an error.
14539 Use char because int might match the return type of a GCC
14540 builtin and then its argument prototype would still apply. */
14553 if ac_fn_c_try_link
"$LINENO"; then :
14554 ac_cv_lib_socket_connect
=yes
14556 ac_cv_lib_socket_connect
=no
14558 rm -f core conftest.err conftest.
$ac_objext \
14559 conftest
$ac_exeext conftest.
$ac_ext
14560 LIBS
=$ac_check_lib_save_LIBS
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
14563 $as_echo "$ac_cv_lib_socket_connect" >&6; }
14564 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
14565 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
14570 # Guillermo Gomez says -lposix is necessary on A/UX.
14571 ac_fn_c_check_func
"$LINENO" "remove" "ac_cv_func_remove"
14572 if test "x$ac_cv_func_remove" = xyes
; then :
14576 if test $ac_cv_func_remove = no
; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
14578 $as_echo_n "checking for remove in -lposix... " >&6; }
14579 if ${ac_cv_lib_posix_remove+:} false
; then :
14580 $as_echo_n "(cached) " >&6
14582 ac_check_lib_save_LIBS
=$LIBS
14583 LIBS
="-lposix $LIBS"
14584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14587 /* Override any GCC internal prototype to avoid an error.
14588 Use char because int might match the return type of a GCC
14589 builtin and then its argument prototype would still apply. */
14602 if ac_fn_c_try_link
"$LINENO"; then :
14603 ac_cv_lib_posix_remove
=yes
14605 ac_cv_lib_posix_remove
=no
14607 rm -f core conftest.err conftest.
$ac_objext \
14608 conftest
$ac_exeext conftest.
$ac_ext
14609 LIBS
=$ac_check_lib_save_LIBS
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
14612 $as_echo "$ac_cv_lib_posix_remove" >&6; }
14613 if test "x$ac_cv_lib_posix_remove" = xyes
; then :
14614 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
14619 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14620 ac_fn_c_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
14621 if test "x$ac_cv_func_shmat" = xyes
; then :
14625 if test $ac_cv_func_shmat = no
; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
14627 $as_echo_n "checking for shmat in -lipc... " >&6; }
14628 if ${ac_cv_lib_ipc_shmat+:} false
; then :
14629 $as_echo_n "(cached) " >&6
14631 ac_check_lib_save_LIBS
=$LIBS
14633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14636 /* Override any GCC internal prototype to avoid an error.
14637 Use char because int might match the return type of a GCC
14638 builtin and then its argument prototype would still apply. */
14651 if ac_fn_c_try_link
"$LINENO"; then :
14652 ac_cv_lib_ipc_shmat
=yes
14654 ac_cv_lib_ipc_shmat
=no
14656 rm -f core conftest.err conftest.
$ac_objext \
14657 conftest
$ac_exeext conftest.
$ac_ext
14658 LIBS
=$ac_check_lib_save_LIBS
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
14661 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
14662 if test "x$ac_cv_lib_ipc_shmat" = xyes
; then :
14663 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
14669 # Check for libraries that X11R6 Xt/Xaw programs need.
14670 ac_save_LDFLAGS
=$LDFLAGS
14671 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
14672 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14673 # check for ICE first), but we must link in the order -lSM -lICE or
14674 # we get undefined symbols. So assume we have SM if we have ICE.
14675 # These have to be linked with before -lX11, unlike the other
14676 # libraries we check for below, so use a different variable.
14677 # John Interrante, Karl Berry
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14679 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14680 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false
; then :
14681 $as_echo_n "(cached) " >&6
14683 ac_check_lib_save_LIBS
=$LIBS
14684 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
14685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14688 /* Override any GCC internal prototype to avoid an error.
14689 Use char because int might match the return type of a GCC
14690 builtin and then its argument prototype would still apply. */
14694 char IceConnectionNumber ();
14698 return IceConnectionNumber ();
14703 if ac_fn_c_try_link
"$LINENO"; then :
14704 ac_cv_lib_ICE_IceConnectionNumber
=yes
14706 ac_cv_lib_ICE_IceConnectionNumber
=no
14708 rm -f core conftest.err conftest.
$ac_objext \
14709 conftest
$ac_exeext conftest.
$ac_ext
14710 LIBS
=$ac_check_lib_save_LIBS
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14713 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14714 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
; then :
14715 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
14718 LDFLAGS
=$ac_save_LDFLAGS
14723 if test "x-$no_x" = "x-yes" ; then
14725 if test "x-$x11_hidd" != "x-auto" ; then
14726 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14733 aros_host_x11_cflags
="$X_CFLAGS"
14734 aros_host_x11_ldflags
="$X_LIBS -lX11"
14736 # Check whether --enable-x11_shm was given.
14737 if test "${enable_x11_shm+set}" = set; then :
14738 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
14740 x11_hidd_shm
="auto"
14743 case "x-$x11_hidd_shm" in
14744 x-yes|x-no|x-auto
) ;;
14745 *) x11_hidd_shm
="auto" ;;
14750 if test "x-$x11_hidd_shm" != "x-no" ; then
14752 for ac_header
in sys
/ipc.h
14754 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14755 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
14756 cat >>confdefs.h
<<_ACEOF
14757 #define HAVE_SYS_IPC_H 1
14764 for ac_header
in sys
/shm.h
14766 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14767 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
14768 cat >>confdefs.h
<<_ACEOF
14769 #define HAVE_SYS_SHM_H 1
14777 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14779 save_cflags
="$CFLAGS"
14780 save_ldflags
="$LDFLAGS"
14781 CFLAGS
="$CFLAGS $X_CFLAGS"
14782 LDFLAGS
="$LDFLAGS $X_LIBS"
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14784 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14785 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
14786 $as_echo_n "(cached) " >&6
14788 ac_check_lib_save_LIBS
=$LIBS
14789 LIBS
="-lXext $LIBS"
14790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14793 /* Override any GCC internal prototype to avoid an error.
14794 Use char because int might match the return type of a GCC
14795 builtin and then its argument prototype would still apply. */
14799 char XShmQueryExtension ();
14803 return XShmQueryExtension ();
14808 if ac_fn_c_try_link
"$LINENO"; then :
14809 ac_cv_lib_Xext_XShmQueryExtension
=yes
14811 ac_cv_lib_Xext_XShmQueryExtension
=no
14813 rm -f core conftest.err conftest.
$ac_objext \
14814 conftest
$ac_exeext conftest.
$ac_ext
14815 LIBS
=$ac_check_lib_save_LIBS
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14818 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14819 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
14823 CFLAGS
="$save_cflags"
14824 LDFLAGS
="$save_ldflags"
14828 if test "x-$have_xshm" = "x-yes" ; then
14829 DO_XSHM_SUPPORT
="1"
14830 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14831 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14833 DO_XSHM_SUPPORT
="0"
14837 # Check whether --enable-x11_vidmode was given.
14838 if test "${enable_x11_vidmode+set}" = set; then :
14839 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
14841 x11_hidd_vidmode
="auto"
14844 case "x-$x11_hidd_vidmode" in
14845 x-yes|x-no|x-auto
) ;;
14846 *) x11_hidd_vidmode
="auto" ;;
14851 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14853 save_cflags
="$CFLAGS"
14854 save_ldflags
="$LDFLAGS"
14855 CFLAGS
="$CFLAGS $X_CFLAGS"
14856 LDFLAGS
="$LDFLAGS $X_LIBS"
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14858 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14859 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
14860 $as_echo_n "(cached) " >&6
14862 ac_check_lib_save_LIBS
=$LIBS
14863 LIBS
="-lXxf86vm $LIBS"
14864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14867 /* Override any GCC internal prototype to avoid an error.
14868 Use char because int might match the return type of a GCC
14869 builtin and then its argument prototype would still apply. */
14873 char XF86VidModeQueryExtension ();
14877 return XF86VidModeQueryExtension ();
14882 if ac_fn_c_try_link
"$LINENO"; then :
14883 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
14885 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
14887 rm -f core conftest.err conftest.
$ac_objext \
14888 conftest
$ac_exeext conftest.
$ac_ext
14889 LIBS
=$ac_check_lib_save_LIBS
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14892 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14893 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
14897 CFLAGS
="$save_cflags"
14898 LDFLAGS
="$save_ldflags"
14901 if test "x-$have_vidmode" = "x-yes" ; then
14902 DO_VIDMODE_SUPPORT
="1"
14903 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14904 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14906 DO_VIDMODE_SUPPORT
="0"
14911 # Check whether --enable-sdl_hidd was given.
14912 if test "${enable_sdl_hidd+set}" = set; then :
14913 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
14918 case "x-$sdl_hidd" in
14919 x-yes|x-no|x-auto
) ;;
14920 *) sdl_hidd
="auto" ;;
14923 if test "x-$sdl_hidd" != "x-no" ; then
14927 # Check whether --with-sdl-prefix was given.
14928 if test "${with_sdl_prefix+set}" = set; then :
14929 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
14935 # Check whether --with-sdl-exec-prefix was given.
14936 if test "${with_sdl_exec_prefix+set}" = set; then :
14937 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
14942 # Check whether --enable-sdltest was given.
14943 if test "${enable_sdltest+set}" = set; then :
14944 enableval
=$enable_sdltest;
14950 if test x
$sdl_exec_prefix != x
; then
14951 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14952 if test x
${SDL_CONFIG+set} != xset
; then
14953 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
14956 if test x
$sdl_prefix != x
; then
14957 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
14958 if test x
${SDL_CONFIG+set} != xset
; then
14959 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
14963 as_save_PATH
="$PATH"
14964 if test "x$prefix" != xNONE
; then
14965 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
14967 # Extract the first word of "sdl-config", so it can be a program name with args.
14968 set dummy sdl-config
; ac_word
=$2
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14970 $as_echo_n "checking for $ac_word... " >&6; }
14971 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
14972 $as_echo_n "(cached) " >&6
14974 case $SDL_CONFIG in
14976 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
14979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14980 for as_dir
in $PATH
14983 test -z "$as_dir" && as_dir
=.
14984 for ac_exec_ext
in '' $ac_executable_extensions; do
14985 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14994 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
14998 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
14999 if test -n "$SDL_CONFIG"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15001 $as_echo "$SDL_CONFIG" >&6; }
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15004 $as_echo "no" >&6; }
15008 PATH
="$as_save_PATH"
15009 min_sdl_version
=$SDL_VERSION
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15011 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15013 if test "$SDL_CONFIG" = "no" ; then
15016 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
15017 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
15019 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
15020 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15021 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
15022 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15023 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
15024 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15025 if test "x$enable_sdltest" = "xyes" ; then
15026 ac_save_CFLAGS
="$CFLAGS"
15027 ac_save_CXXFLAGS
="$CXXFLAGS"
15028 ac_save_LIBS
="$LIBS"
15029 CFLAGS
="$CFLAGS $SDL_CFLAGS"
15030 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
15031 LIBS
="$LIBS $SDL_LIBS"
15033 if test "$cross_compiling" = yes; then :
15034 echo $ac_n "cross compiling; assumed OK... $ac_c"
15036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15040 #include <stdlib.h>
15041 #include <string.h>
15045 my_strdup (char *str)
15051 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15052 strcpy (new_str, str);
15060 int main (int argc, char *argv[])
15062 int major, minor, micro;
15065 /* This hangs on some systems (?)
15066 system ("touch conf.sdltest");
15068 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15070 /* HP/UX 9 (%@#!) writes to sscanf strings */
15071 tmp_version = my_strdup("$min_sdl_version");
15072 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
15073 printf("%s, bad version string\n", "$min_sdl_version");
15077 if (($sdl_major_version > major) ||
15078 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15079 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15085 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15086 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15087 printf("*** best to upgrade to the required version.\n");
15088 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15089 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15090 printf("*** config.cache before re-running configure\n");
15097 if ac_fn_c_try_run
"$LINENO"; then :
15102 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15103 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15106 CFLAGS
="$ac_save_CFLAGS"
15107 CXXFLAGS
="$ac_save_CXXFLAGS"
15108 LIBS
="$ac_save_LIBS"
15111 if test "x$no_sdl" = x
; then
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15113 $as_echo "yes" >&6; }
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15117 $as_echo "no" >&6; }
15118 if test "$SDL_CONFIG" = "no" ; then
15119 echo "*** The sdl-config script installed by SDL could not be found"
15120 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15121 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15122 echo "*** full path to sdl-config."
15124 if test -f conf.sdltest
; then
15127 echo "*** Could not run SDL test program, checking why..."
15128 CFLAGS
="$CFLAGS $SDL_CFLAGS"
15129 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
15130 LIBS
="$LIBS $SDL_LIBS"
15131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15137 int main(int argc, char *argv[])
15140 #define main K_and_R_C_main
15150 if ac_fn_c_try_link
"$LINENO"; then :
15151 echo "*** The test program compiled, but did not run. This usually means"
15152 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15153 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15154 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15155 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15156 echo "*** is required on your system"
15158 echo "*** If you have an old version installed, it is best to remove it, although"
15159 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15161 echo "*** The test program failed to compile or link. See the file config.log for the"
15162 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15163 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15164 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15166 rm -f core conftest.err conftest.
$ac_objext \
15167 conftest
$ac_exeext conftest.
$ac_ext
15168 CFLAGS
="$ac_save_CFLAGS"
15169 CXXFLAGS
="$ac_save_CXXFLAGS"
15170 LIBS
="$ac_save_LIBS"
15182 if test "x-$have_sdl" != "x-yes" ; then
15184 if test "x-$sdl_hidd" != "x-auto" ; then
15185 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15190 aros_host_sdl_cflags
=$SDL_CFLAGS
15191 aros_host_sdl_libs
=$SDL_LIBS
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15199 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15200 # Check whether --enable-dbus was given.
15201 if test "${enable_dbus+set}" = set; then :
15202 enableval
=$enable_dbus; dbus
="yes"
15207 if test "$dbus" = "yes" ; then
15209 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
15210 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
15211 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
15212 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15217 $as_echo "$dbus" >&6; }
15219 if test "$use_kernel_cc_wrapper" = "yes" ; then
15220 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15237 # Compatability with other Amiga-like operation systems
15341 # Hosted Graphics Related
15359 # Native version related
15363 # Palm native version related
15366 # Unix/Hosted version related
15372 # Apple iOS related
15377 # ARM default GCC target related
15405 # Collect-aros stuff: "-ius" to ignore undefined symbols
15408 # C compiler related
15413 #ObjC compiler related
15422 case "$aros_flavour" in
15423 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
15424 aros_flavour
="emulation" ;;
15425 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15426 aros_flavour
="emulation" ;;
15427 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
15428 aros_flavour
="standalone";;
15429 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15430 aros_flavour
="standalone";;
15431 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
15432 aros_flavour
="native" ;;
15433 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15434 aros_flavour
="native" ;;
15435 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
15436 aros_flavour
="linklib" ;;
15437 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15438 aros_flavour
="palmnative" ;;
15439 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15440 aros_flavour
="mac68knative" ;;
15441 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15442 aros_flavour
="ppcnative" ;;
15445 if test ! -d ${aros_inc_dir} ; then
15446 ${MKDIR} ${aros_inc_dir}
15448 if test ! -d ${aros_geninc_dir} ; then
15449 ${MKDIR} ${aros_geninc_dir}
15451 if test ! -d ${aros_hostcfg_dir} ; then
15452 ${MKDIR} ${aros_hostcfg_dir}
15454 if test ! -d ${aros_targetcfg_dir} ; then
15455 ${MKDIR} ${aros_targetcfg_dir}
15457 if test ! -d ${aros_tools_dir} ; then
15458 ${MKDIR} ${aros_tools_dir}
15460 if test ! -d ${aros_scripts_dir} ; then
15461 ${MKDIR} ${aros_scripts_dir}
15464 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15467 # Generic build tools (metamake, etc)
15468 ac_config_commands
="$ac_config_commands genmf-executable-support"
15470 ac_config_files
="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
15474 ac_config_commands
="$ac_config_commands binutils-support"
15476 ac_config_files
="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
15479 # Bare Elf support script and spec
15480 if test "${use_kernel_cc_wrapper}" = "yes"; then
15481 ac_config_commands
="$ac_config_commands elf-compiler-support"
15483 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"
15487 # Host compiler support scripts and spec
15488 if test "${aros_target_toolchain}" = "no"; then
15489 ac_config_commands
="$ac_config_commands host-compiler-wrapper-support"
15491 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"
15496 if test "$aros_target_variant" == "android"; then
15497 ac_config_files
="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15502 ac_config_files
="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15505 cat >confcache
<<\_ACEOF
15506 # This file is a shell script that caches the results of configure
15507 # tests run on this system so they can be shared between configure
15508 # scripts and configure runs, see configure's option --config-cache.
15509 # It is not useful on other systems. If it contains results you don't
15510 # want to keep, you may remove or edit it.
15512 # config.status only pays attention to the cache file if you give it
15513 # the --recheck option to rerun configure.
15515 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15516 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15517 # following values.
15521 # The following way of writing the cache mishandles newlines in values,
15522 # but we know of no workaround that is simple, portable, and efficient.
15523 # So, we kill variables containing newlines.
15524 # Ultrix sh set writes to stderr and can't be redirected directly,
15525 # and sets the high bit in the cache file unless we assign to the vars.
15527 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15528 eval ac_val
=\$
$ac_var
15532 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15533 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15536 _ | IFS | as_nl
) ;; #(
15537 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15538 *) { eval $ac_var=; unset $ac_var;} ;;
15544 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15545 *${as_nl}ac_space
=\
*)
15546 # `set' does not quote correctly, so add quotes: double-quote
15547 # substitution turns \\\\ into \\, and sed turns \\ into \.
15550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15553 # `set' quotes correctly as required by POSIX, so do not add quotes.
15554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15563 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15565 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15567 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15568 if test -w "$cache_file"; then
15569 if test "x$cache_file" != "x/dev/null"; then
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15571 $as_echo "$as_me: updating cache $cache_file" >&6;}
15572 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15573 cat confcache
>"$cache_file"
15575 case $cache_file in #(
15577 mv -f confcache
"$cache_file"$$
&&
15578 mv -f "$cache_file"$$
"$cache_file" ;; #(
15580 mv -f confcache
"$cache_file" ;;
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15586 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15591 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15592 # Let make expand exec_prefix.
15593 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15595 DEFS
=-DHAVE_CONFIG_H
15600 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15601 # 1. Remove the extension, and $U if already installed.
15602 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15603 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15605 # will be set to the directory where LIBOBJS objects are built.
15606 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15607 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15609 LIBOBJS
=$ac_libobjs
15611 LTLIBOBJS
=$ac_ltlibobjs
15615 : "${CONFIG_STATUS=./config.status}"
15617 ac_clean_files_save
=$ac_clean_files
15618 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15620 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15622 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15624 # Generated by $as_me.
15625 # Run this file to recreate the current configuration.
15626 # Compiler output produced by configure, useful for debugging
15627 # configure, is in config.log if it exists.
15630 ac_cs_recheck=false
15633 SHELL=\${CONFIG_SHELL-$SHELL}
15636 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15637 ## -------------------- ##
15638 ## M4sh Initialization. ##
15639 ## -------------------- ##
15641 # Be more Bourne compatible
15642 DUALCASE
=1; export DUALCASE
# for MKS sh
15643 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15646 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15647 # is contrary to our usage. Disable this feature.
15648 alias -g '${1+"$@"}'='"$@"'
15649 setopt NO_GLOB_SUBST
15651 case `(set -o) 2>/dev/null` in #(
15663 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15664 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15665 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15667 # Prefer a ksh shell builtin over an external printf program on Solaris,
15668 # but without wasting forks for bash or zsh.
15669 if test -z "$BASH_VERSION$ZSH_VERSION" \
15670 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15671 as_echo='print
-r --'
15672 as_echo_n='print
-rn --'
15673 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15674 as_echo='printf %s
\n'
15675 as_echo_n='printf %s
'
15677 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15678 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15679 as_echo_n='/usr
/ucb
/echo -n'
15681 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15682 as_echo_n_body='eval
15686 expr "X$arg" : "X\\(.*\\)$as_nl";
15687 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15689 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15691 export as_echo_n_body
15692 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15694 export as_echo_body
15695 as_echo='sh
-c $as_echo_body as_echo
'
15698 # The user is always right.
15699 if test "${PATH_SEPARATOR+set}" != set; then
15701 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15702 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15709 # We need space, tab and new line, in precisely that order. Quoting is
15710 # there to prevent editors from complaining about space-tab.
15711 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15712 # splitting by setting IFS to empty value.)
15715 # Find who we are. Look in the path if we contain no directory separator.
15718 *[\\/]* ) as_myself=$0 ;;
15719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15720 for as_dir in $PATH
15723 test -z "$as_dir" && as_dir=.
15724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15730 # We did not find ourselves, most probably we were run as `sh COMMAND'
15731 # in which case we are not to be found in the path.
15732 if test "x$as_myself" = x
; then
15735 if test ! -f "$as_myself"; then
15736 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15740 # Unset variables that we do not need and which cause bugs (e.g. in
15741 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15742 # suppresses any "Segmentation fault" message there. '((' could
15743 # trigger a bug in pdksh 5.2.14.
15744 for as_var
in BASH_ENV ENV MAIL MAILPATH
15745 do eval test x\
${$as_var+set} = xset \
15746 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15759 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15762 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15763 # ----------------------------------------
15764 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15765 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15766 # script with STATUS, using 1 if that was 0.
15769 as_status
=$1; test $as_status -eq 0 && as_status
=1
15771 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15772 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15774 $as_echo "$as_me: error: $2" >&2
15775 as_fn_exit
$as_status
15779 # as_fn_set_status STATUS
15780 # -----------------------
15781 # Set $? to STATUS, without forking.
15782 as_fn_set_status
()
15785 } # as_fn_set_status
15787 # as_fn_exit STATUS
15788 # -----------------
15789 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15793 as_fn_set_status
$1
15799 # Portably unset VAR.
15802 { eval $1=; unset $1;}
15804 as_unset
=as_fn_unset
15805 # as_fn_append VAR VALUE
15806 # ----------------------
15807 # Append the text in VALUE to the end of the definition contained in VAR. Take
15808 # advantage of any shell optimizations that allow amortized linear growth over
15809 # repeated appends, instead of the typical quadratic growth present in naive
15811 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15812 eval 'as_fn_append ()
15823 # as_fn_arith ARG...
15824 # ------------------
15825 # Perform arithmetic evaluation on the ARGs, and store the result in the
15826 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15827 # must be portable across $(()) and expr.
15828 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15829 eval 'as_fn_arith ()
15836 as_val
=`expr "$@" || test $? -eq 1`
15841 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15842 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15848 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15849 as_basename
=basename
15854 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15860 as_me
=`$as_basename -- "$0" ||
15861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15862 X"$0" : 'X\(//\)$' \| \
15863 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15865 sed '/^.*\/\([^/][^/]*\)\/*$/{
15879 # Avoid depending upon Character Ranges.
15880 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15881 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15882 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15883 as_cr_digits
='0123456789'
15884 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15886 ECHO_C
= ECHO_N
= ECHO_T
=
15887 case `echo -n x` in #(((((
15889 case `echo 'xy\c'` in
15890 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15892 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15899 rm -f conf$$ conf$$.exe conf$$.
file
15900 if test -d conf$$.dir
; then
15901 rm -f conf$$.dir
/conf$$.
file
15904 mkdir conf$$.dir
2>/dev
/null
15906 if (echo >conf$$.
file) 2>/dev
/null
; then
15907 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15909 # ... but there are two gotchas:
15910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15912 # In both cases, we have to default to `cp -pR'.
15913 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15915 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15923 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15924 rmdir conf$$.dir
2>/dev
/null
15929 # Create "$as_dir" as a directory, including parents if necessary.
15934 -*) as_dir
=.
/$as_dir;;
15936 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15940 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15941 *) as_qdir
=$as_dir;;
15943 as_dirs
="'$as_qdir' $as_dirs"
15944 as_dir
=`$as_dirname -- "$as_dir" ||
15945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15946 X"$as_dir" : 'X\(//\)[^/]' \| \
15947 X"$as_dir" : 'X\(//\)$' \| \
15948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15949 $as_echo X"$as_dir" |
15950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15954 /^X\(\/\/\)[^/].*/{
15967 test -d "$as_dir" && break
15969 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15970 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15974 if mkdir
-p .
2>/dev
/null
; then
15975 as_mkdir_p
='mkdir -p "$as_dir"'
15977 test -d .
/-p && rmdir .
/-p
15982 # as_fn_executable_p FILE
15983 # -----------------------
15984 # Test if FILE is an executable regular file.
15985 as_fn_executable_p
()
15987 test -f "$1" && test -x "$1"
15988 } # as_fn_executable_p
15989 as_test_x
='test -x'
15990 as_executable_p
=as_fn_executable_p
15992 # Sed expression to map a string onto a valid CPP name.
15993 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15995 # Sed expression to map a string onto a valid variable name.
15996 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16000 ## ----------------------------------- ##
16001 ## Main body of $CONFIG_STATUS script. ##
16002 ## ----------------------------------- ##
16004 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16007 # Save the log message, to keep $0 and so on meaningful, and to
16008 # report actual input values of CONFIG_FILES etc. instead of their
16009 # values after options handling.
16011 This file was extended by $as_me, which was
16012 generated by GNU Autoconf 2.69. Invocation command line was
16014 CONFIG_FILES = $CONFIG_FILES
16015 CONFIG_HEADERS = $CONFIG_HEADERS
16016 CONFIG_LINKS = $CONFIG_LINKS
16017 CONFIG_COMMANDS = $CONFIG_COMMANDS
16020 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16025 case $ac_config_files in *"
16026 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16029 case $ac_config_headers in *"
16030 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16035 # Files that config.status was made for.
16036 config_files="$ac_config_files"
16037 config_headers="$ac_config_headers"
16038 config_commands="$ac_config_commands"
16042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16044 \`$as_me' instantiates files and other configuration actions
16045 from templates according to the current configuration. Unless the files
16046 and actions are specified as TAGs, all are instantiated by default.
16048 Usage: $0 [OPTION]... [TAG]...
16050 -h, --help print this help, then exit
16051 -V, --version print version number and configuration settings, then exit
16052 --config print configuration, then exit
16053 -q, --quiet, --silent
16054 do not print progress messages
16055 -d, --debug don't remove temporary files
16056 --recheck update $as_me by reconfiguring in the same conditions
16057 --file=FILE[:TEMPLATE]
16058 instantiate the configuration file FILE
16059 --header=FILE[:TEMPLATE]
16060 instantiate the configuration header FILE
16062 Configuration files:
16065 Configuration headers:
16068 Configuration commands:
16071 Report bugs to the package provider."
16074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16075 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16078 configured by $0, generated by GNU Autoconf 2.69,
16079 with options \\"\$ac_cs_config\\"
16081 Copyright (C) 2012 Free Software Foundation, Inc.
16082 This config.status script is free software; the Free Software Foundation
16083 gives unlimited permission to copy, distribute and modify it."
16087 test -n "\$AWK" || AWK=awk
16090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16091 # The default lists apply if the user does not specify any file.
16097 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16098 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16102 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16114 # Handling of the options.
16115 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16117 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16118 $as_echo "$ac_cs_version"; exit ;;
16119 --config |
--confi |
--conf |
--con |
--co |
--c )
16120 $as_echo "$ac_cs_config"; exit ;;
16121 --debug |
--debu |
--deb |
--de |
--d |
-d )
16123 --file |
--fil |
--fi |
--f )
16126 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16127 '') as_fn_error $?
"missing file argument" ;;
16129 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16130 ac_need_defaults
=false
;;
16131 --header |
--heade |
--head |
--hea )
16134 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16136 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16137 ac_need_defaults
=false
;;
16139 # Conflict between --help and --header
16140 as_fn_error $?
"ambiguous option: \`$1'
16141 Try \`$0 --help' for more information.";;
16142 --help |
--hel |
-h )
16143 $as_echo "$ac_cs_usage"; exit ;;
16144 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16145 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16148 # This is an error.
16149 -*) as_fn_error $?
"unrecognized option: \`$1'
16150 Try \`$0 --help' for more information." ;;
16152 *) as_fn_append ac_config_targets
" $1"
16153 ac_need_defaults
=false
;;
16159 ac_configure_extra_args
=
16161 if $ac_cs_silent; then
16163 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16168 if \$ac_cs_recheck; then
16169 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16172 CONFIG_SHELL='$SHELL'
16173 export CONFIG_SHELL
16178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16183 ## Running $as_me. ##
16189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16193 aros_tools_dir=${aros_tools_dir}
16196 aros_host_exe_suffix=${aros_host_exe_suffix}
16197 aros_tools_dir=${aros_tools_dir}
16198 aros_target_cpu=${aros_target_cpu}
16199 aros_target_arch=${aros_target_arch}
16200 aros_target_suffix=${aros_target_suffix}
16201 orig_target_nm=${orig_target_nm}
16202 orig_target_as=${orig_target_as}
16203 orig_target_ar=${orig_target_ar}
16204 orig_target_ranlib=${orig_target_ranlib}
16205 orig_target_objdump=${orig_target_objdump}
16206 orig_target_objcopy=${orig_target_objcopy}
16207 orig_target_strip=${orig_target_strip}
16208 aros_kernel_ld=${aros_kernel_ld}
16212 aros_host_exe_suffix=${aros_host_exe_suffix}
16213 aros_tools_dir=${aros_tools_dir}
16214 aros_target_cpu=${aros_target_cpu}
16215 aros_target_arch=${aros_target_arch}
16216 aros_target_suffix=${aros_target_suffix}
16217 aros_kernel_ld=${aros_kernel_ld}
16221 aros_host_exe_suffix=${aros_host_exe_suffix}
16222 aros_tools_dir=${aros_tools_dir}
16223 aros_target_cpu=${aros_target_cpu}
16224 aros_target_arch=${aros_target_arch}
16225 aros_target_suffix=${aros_target_suffix}
16231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16233 # Handling of arguments.
16234 for ac_config_target
in $ac_config_targets
16236 case $ac_config_target in
16237 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16238 "genmf-executable-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf-executable-support" ;;
16239 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16240 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
16241 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16242 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16243 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16244 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16245 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16246 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
16247 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16248 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16249 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
16250 "binutils-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS binutils-support" ;;
16251 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in" ;;
16252 "elf-compiler-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS elf-compiler-support" ;;
16253 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16254 "${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" ;;
16255 "host-compiler-wrapper-support") CONFIG_COMMANDS
="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16256 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16257 "${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" ;;
16258 "${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" ;;
16259 "${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" ;;
16260 "${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" ;;
16261 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16263 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16268 # If the user did not use the arguments to specify the items to instantiate,
16269 # then the envvar interface is used. Set only those that are not.
16270 # We use the long form for the default assignment because of an extremely
16271 # bizarre bug on SunOS 4.1.3.
16272 if $ac_need_defaults; then
16273 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16274 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16275 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16278 # Have a temporary directory for convenience. Make it in the build tree
16279 # simply because there is no reason against having it here, and in addition,
16280 # creating and moving files from /tmp can sometimes cause problems.
16281 # Hook for its removal unless debugging.
16282 # Note that there is a small window in which the directory will not be cleaned:
16283 # after its creation but before its name has been assigned to `$tmp'.
16287 trap 'exit_status=$?
16288 : "${ac_tmp:=$tmp}"
16289 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16291 trap 'as_fn_exit 1' 1 2 13 15
16293 # Create a (secure) tmp directory for tmp files.
16296 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16300 tmp
=.
/conf$$
-$RANDOM
16301 (umask 077 && mkdir
"$tmp")
16302 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16305 # Set up the scripts for CONFIG_FILES section.
16306 # No need to generate them if there are no CONFIG_FILES.
16307 # This happens for instance with `./config.status config.h'.
16308 if test -n "$CONFIG_FILES"; then
16311 ac_cr
=`echo X | tr X '\015'`
16312 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16313 # But we know of no other shell where ac_cr would be empty at this
16314 # point, so we can use a bashism as a fallback.
16315 if test "x$ac_cr" = x
; then
16316 eval ac_cr
=\$
\'\\r
\'
16318 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16319 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16322 ac_cs_awk_cr
=$ac_cr
16325 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16330 echo "cat >conf$$subs.awk <<_ACEOF" &&
16331 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16333 } >conf$$subs.sh ||
16334 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16335 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16337 for ac_last_try in false false false false false :; do
16338 . ./conf$$subs.sh ||
16339 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16341 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16342 if test $ac_delim_n = $ac_delim_num; then
16344 elif $ac_last_try; then
16345 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16347 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16350 rm -f conf$$subs.sh
16352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16353 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16357 s/^/S["/; s
/!.
*/"]=/
16367 s/\(.\{148\}\)..*/\1/
16369 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16374 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16381 s/\(.\{148\}\)..*/\1/
16383 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16387 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16392 ' <conf$$subs.awk | sed '
16397 ' >>$CONFIG_STATUS || ac_write_fail=1
16398 rm -f conf$$subs.awk
16399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16401 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16402 for (key in S) S_is_set[key] = 1
16408 nfields = split(line, field, "@
")
16410 len = length(field[1])
16411 for (i = 2; i < nfields; i++) {
16413 keylen = length(key)
16414 if (S_is_set[key]) {
16416 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16417 len += length(value) + length(field[++i])
16428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16429 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16430 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16433 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16434 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16437 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16438 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16439 # trailing colons and then remove the whole line if VPATH becomes empty
16440 # (actually we leave an empty line to preserve line numbers).
16441 if test "x
$srcdir" = x.; then
16442 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16461 fi # test -n "$CONFIG_FILES"
16463 # Set up the scripts for CONFIG_HEADERS section.
16464 # No need to generate them if there are no CONFIG_HEADERS.
16465 # This happens for instance with `./config.status Makefile'.
16466 if test -n "$CONFIG_HEADERS"; then
16467 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16471 # Transform confdefs.h into an awk script `defines.awk', embedded as
16472 # here-document in config.status, that substitutes the proper values into
16473 # config.h.in to produce config.h.
16475 # Create a delimiter string that does not exist in confdefs.h, to ease
16476 # handling of long lines.
16478 for ac_last_try in false false :; do
16479 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16480 if test -z "$ac_tt"; then
16482 elif $ac_last_try; then
16483 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16485 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16489 # For the awk script, D is an array of macro values keyed by name,
16490 # likewise P contains macro parameters if any. Preserve backslash
16491 # newline sequences.
16493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16495 s/.\{148\}/&'"$ac_delim"'/g
16498 s/^[ ]*#[ ]*define[ ][ ]*/ /
16505 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16507 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16512 D["\
1"]=" \
3\\\\\\n
"\\/p
16514 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16519 s/.\{148\}/&'"$ac_delim"'/g
16524 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16527 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16529 ' <confdefs.h | sed '
16530 s/'"$ac_delim"'/"\\\
16531 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16534 for (key in D) D_is_set[key] = 1
16537 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16539 split(line, arg, " ")
16540 if (arg[1] == "#") {
16544 defundef
= substr
(arg
[1], 2)
16547 split(mac1
, mac2
, "(") #)
16549 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16550 if (D_is_set
[macro
]) {
16551 # Preserve the white space surrounding the "#".
16552 print prefix
"define", macro P
[macro
] D
[macro
]
16555 # Replace #undef with comments. This is necessary, for example,
16556 # in the case of _POSIX_SOURCE, which is predefined and required
16557 # on some systems where configure will not decide to define it.
16558 if (defundef
== "undef") {
16559 print
"/*", prefix defundef
, macro
, "*/"
16567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16568 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16569 fi # test -n "$CONFIG_HEADERS"
16572 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16577 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16579 case $ac_mode$ac_tag in
16581 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16582 :[FH
]-) ac_tag
=-:-;;
16583 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16600 -) ac_f
="$ac_tmp/stdin";;
16601 *) # Look for the file first in the build tree, then in the source tree
16602 # (if the path is not absolute). The absolute path cannot be DOS-style,
16603 # because $ac_f cannot contain `:'.
16607 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16609 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16611 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16612 as_fn_append ac_file_inputs
" '$ac_f'"
16615 # Let's still pretend it is `configure' which instantiates (i.e., don't
16616 # use $as_me), people would be surprised to read:
16617 # /* config.h. Generated by config.status. */
16618 configure_input
='Generated from '`
16619 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16621 if test x
"$ac_file" != x-
; then
16622 configure_input
="$ac_file. $configure_input"
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16624 $as_echo "$as_me: creating $ac_file" >&6;}
16626 # Neutralize special characters interpreted by sed in replacement strings.
16627 case $configure_input in #(
16628 *\
&* |
*\|
* |
*\\* )
16629 ac_sed_conf_input
=`$as_echo "$configure_input" |
16630 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16631 *) ac_sed_conf_input
=$configure_input;;
16635 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16636 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16641 ac_dir
=`$as_dirname -- "$ac_file" ||
16642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16643 X"$ac_file" : 'X\(//\)[^/]' \| \
16644 X"$ac_file" : 'X\(//\)$' \| \
16645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16646 $as_echo X"$ac_file" |
16647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16651 /^X\(\/\/\)[^/].*/{
16664 as_dir
="$ac_dir"; as_fn_mkdir_p
16668 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16670 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16671 # A ".." for each directory in $ac_dir_suffix.
16672 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16673 case $ac_top_builddir_sub in
16674 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16675 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16678 ac_abs_top_builddir
=$ac_pwd
16679 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16680 # for backward compatibility:
16681 ac_top_builddir
=$ac_top_build_prefix
16684 .
) # We are building in place.
16686 ac_top_srcdir
=$ac_top_builddir_sub
16687 ac_abs_top_srcdir
=$ac_pwd ;;
16688 [\\/]* | ?
:[\\/]* ) # Absolute name.
16689 ac_srcdir
=$srcdir$ac_dir_suffix;
16690 ac_top_srcdir
=$srcdir
16691 ac_abs_top_srcdir
=$srcdir ;;
16692 *) # Relative name.
16693 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16694 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16695 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16697 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16709 # If the template does not know about datarootdir, expand it.
16710 # FIXME: This hack should be removed a few years after 2.60.
16711 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16722 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16723 *datarootdir
*) ac_datarootdir_seen
=yes;;
16724 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16726 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16729 ac_datarootdir_hack='
16730 s&@datadir@&$datadir&g
16731 s&@docdir@&$docdir&g
16732 s&@infodir@&$infodir&g
16733 s&@localedir@&$localedir&g
16734 s&@mandir@&$mandir&g
16735 s&\\\${datarootdir}&$datarootdir&g' ;;
16739 # Neutralize VPATH when `$srcdir' = `.'.
16740 # Shell code in configure.ac might set extrasub.
16741 # FIXME: do we really want to maintain this feature?
16742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16743 ac_sed_extra="$ac_vpsub
16746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16748 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16749 s|@configure_input@|
$ac_sed_conf_input|
;t t
16750 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16751 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16752 s
&@srcdir@
&$ac_srcdir&;t t
16753 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16754 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16755 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16756 s
&@builddir@
&$ac_builddir&;t t
16757 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16758 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16759 $ac_datarootdir_hack
16761 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16762 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16764 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16765 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16767 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16769 which seems to be undefined. Please make sure it is defined" >&5
16770 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16771 which seems to be undefined. Please make sure it is defined" >&2;}
16773 rm -f "$ac_tmp/stdin"
16775 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16776 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16784 if test x"$ac_file" != x-; then
16786 $as_echo "/* $configure_input */" \
16787 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16788 } >"$ac_tmp/config.h" \
16789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16790 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16792 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16795 mv "$ac_tmp/config.h" "$ac_file" \
16796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16799 $as_echo "/* $configure_input */" \
16800 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16801 || as_fn_error $? "could not create -" "$LINENO" 5
16805 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16806 $as_echo "$as_me: executing $ac_file commands" >&6;}
16811 case $ac_file$ac_mode in
16812 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16813 "binutils-support":C)
16814 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16816 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16818 chmod a+x ${prefix2}-ld
16820 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16821 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16822 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16823 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16824 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16825 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16826 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16828 "elf-compiler-support":C)
16829 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16831 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16833 chmod a+x ${prefix2}-gcc
16835 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16837 "host-compiler-wrapper-support":C)
16838 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16840 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16842 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16851 ac_clean_files=$ac_clean_files_save
16853 test $ac_write_fail = 0 ||
16854 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16857 # configure is writing to config.log, and then calls config.status.
16858 # config.status does its own redirection, appending to config.log.
16859 # Unfortunately, on DOS this fails, as config.log is still kept open
16860 # by configure, so config.status won't be able to
write to it
; its
16861 # output is simply discarded. So we exec the FD to /dev/null,
16862 # effectively closing config.log, so it can be properly (re)opened and
16863 # appended to by config.status. When coming back to configure, we
16864 # need to make the FD available again.
16865 if test "$no_create" != yes; then
16867 ac_config_status_args
=
16868 test "$silent" = yes &&
16869 ac_config_status_args
="$ac_config_status_args --quiet"
16871 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16873 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16874 # would make configure fail if this is the last instruction.
16875 $ac_cs_success || as_fn_exit
1
16877 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16879 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16884 #XXX compatability...
16885 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
16887 if test -n "$aros_shared_cflags" ; then
16888 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16889 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg