make.tmpl - fix a typo and remove the additional strips.
[AROS.git] / configure
blobff5ea7b7d799495129cae752e5a6119ca6e27716
1 #! /bin/sh
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 :
18 emulate sh
19 NULLCMD=:
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+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
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
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
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.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
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
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
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 || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
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
156 as_fn_exit 255
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 :
162 emulate sh
163 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
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; }
183 exitcode=0
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || 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 :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
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 :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
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
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
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.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
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
257 exit 255
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."
266 else
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."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
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 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
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
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
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 :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
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.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
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
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
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. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
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).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
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
522 as_ln_s='ln -s'
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 ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
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"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
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
558 exec 6>&1
560 # Name of the host.
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`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 aros_host_sdl_libs
626 aros_host_sdl_cflags
627 aros_host_x11_ldflags
628 aros_host_x11_cflags
629 DO_VIDMODE_SUPPORT
630 DO_XSHM_SUPPORT
631 ENABLE_X11
632 KERNEL_DBUS_INCLUDES
633 KERNEL_DBUS_KOBJ
634 DBUS_LIBFLAGS
635 DBUS_CFLAGS
636 ENABLE_DBUS
637 java_target
638 objc_target
639 target_binutils_version
640 gcc_target_cpu
641 ignore_undefined_symbols
642 aros_modules_debug
643 aros_stack_debug
644 aros_mungwall_debug
645 aros_debug
646 aros_android_antapk
647 aros_android_level
648 aros_ios_sdk
649 aros_ios_version
650 aros_ios_platform
651 aros_palm_debug_hack
652 gcc_default_mode
653 gcc_default_float_abi
654 gcc_default_fpu
655 gcc_default_cpu_tune
656 gcc_default_cpu
657 aros_nesting_supervisor
658 target_grub2_version
659 aros_enable_mmu
660 ENABLE_EXECSMP
661 PLATFORM_EXECSMP
662 aros_serial_debug
663 aros_nominal_depth
664 aros_nominal_height
665 aros_nominal_width
666 pci_hidd_target
667 use_libatomic
668 crosstools_cxx_target
669 crosstools_target
670 aros_isa_flags
671 aros_isa_extra
672 aros_kernel_isa_flags
673 aros_optimization_cflags
674 aros_config_coverage
675 aros_config_lto
676 aros_target_strip_flags
677 aros_target_genmap
678 aros_debug_ldflags
679 aros_debug_aflags
680 aros_debug_cxxflags
681 aros_debug_cflags
682 aros_debug_cppflags
683 aros_kernel_ldflags
684 aros_kernel_objcflags
685 aros_kernel_includes
686 aros_kernel_cflags
687 aros_kernel_cppflags
688 aros_kernel_sysroot
689 aros_config_ldflags
690 aros_config_aflags
691 aros_config_cxxflags
692 aros_config_cflags
693 aros_config_cppflags
694 aros_nowarn_flags
695 aros_warn_flags
696 aros_shared_ldflags
697 aros_shared_aflags
698 aros_shared_cflags
699 aros_cxx_libs
700 aros_c_libs
701 spec_obj_format
702 aros_object_format
703 aros_shared_ld
704 aros_shared_default
705 aros_target_nm
706 aros_target_strip
707 aros_target_objcopy
708 aros_target_objdump
709 aros_target_cc_path
710 aros_target_cc_includes
711 aros_target_ld
712 aros_target_as
713 aros_target_cpp
714 aros_target_cxx
715 aros_target_cc
716 aros_plain_ar
717 aros_plain_nm
718 aros_target_ranlib
719 aros_target_ar
720 aros_target_suffix
721 aros_target_variant
722 aros_target_cpu_mode
723 aros_target_cpu
724 aros_target_family
725 aros_target_arch
726 aros_target_bootloader
727 aros_target_iconset
728 aros_target_guitheme
729 aros_target_options
730 target_extra_cfg
731 make_extra_targetcfg
732 make_extra_commands
733 aros_elf_translate
734 aros_tools_dir
735 aros_host_lib_suffix
736 aros_host_exe_suffix
737 aros_host_mkargs
738 aros_host_mkdep
739 aros_host_debug
740 aros_host_ldflags
741 gnu89_inline
742 aros_host_cxxflags
743 aros_host_cflags
744 aros_host_cppflags
745 aros_host_make
746 aros_host_ar
747 aros_host_cxx
748 aros_host_cc
749 aros_host_def_cc
750 aros_host_cpp
751 aros_host_cpu
752 aros_host_arch
753 aros_cc_pre
754 host_extra_cfg
755 ax_cv_flex_version
756 host_stat_h__unused_used
757 aros_amigaos_compliance
758 AROS_PORTSSRCDIR
759 AROS_CROSSTOOLSDIR
760 SRCDIR
761 AROS_BUILDDIR_UNIX
762 AROS_BUILDDIR
763 aros_build_host
764 aros_toolchain_ld
765 aros_target_toolchain
766 aros_flavour_uc
767 aros_flavour
768 aros_cpu
769 aros_arch
770 SDL_LIBS
771 SDL_CFLAGS
772 SDL_CONFIG
773 XMKMF
774 kernel_cflags_iquote_end
775 kernel_cflags_iquote
776 host_cflags_iquote_end
777 host_cflags_iquote
778 aros_toolchain
779 aros_target_nostdlib_ldflags
780 aros_target_detach_ldflags
781 aros_target_nix_ldflags
782 aros_target_nostartup_ldflags
783 aros_target_nostdinc_cflags
784 aros_kernel_rescomp
785 orig_target_objdump
786 orig_target_objcopy
787 orig_target_strip
788 orig_target_nm
789 orig_target_ranlib
790 orig_target_ar
791 orig_target_as
792 orig_target_ld
793 orig_target_cxx
794 orig_target_cc
795 orig_target_cpp
796 aros_kernel_objdump
797 aros_kernel_objcopy
798 aros_kernel_strip
799 aros_kernel_nm
800 aros_kernel_ranlib
801 aros_kernel_ar
802 aros_kernel_as
803 aros_kernel_ld
804 aros_kernel_cxx
805 aros_kernel_cc
806 aros_kernel_cpp
807 target_gcc_version
809 android_tool
810 CCACHE
811 DISTCC
812 LIBOBJS
813 EGREP
814 GREP
816 TEST
819 libpng_incdir
820 libpng_libextra
821 libpng
822 arosconfig_use_libpngconfig
823 pkgpyexecdir
824 pyexecdir
825 pkgpythondir
826 pythondir
827 PYTHON_PLATFORM
828 PYTHON_EXEC_PREFIX
829 PYTHON_PREFIX
830 PYTHON_VERSION
831 PYTHON
832 PATCH
833 CHMOD
835 PPMTOILBM
836 PNGTOPNM
837 FLEX
838 BISON
841 UNIQ
842 SORT
843 TOUCH
844 MKDIR
845 ECHO
849 aros_host_strip
850 aros_host_ranlib
851 aros_host_full_ar
852 aros_host_cmd_ar
853 aros_host_automake
854 aros_host_autoheader
855 aros_host_autoconf
856 aros_host_aclocal
857 aros_host_ld
858 base_lld_name
859 MMAKE
862 ac_ct_CC
863 CFLAGS
865 OBJEXT
866 EXEEXT
867 ac_ct_CXX
868 CPPFLAGS
869 LDFLAGS
870 CXXFLAGS
872 host_os
873 host_vendor
874 host_cpu
875 host
876 build_os
877 build_vendor
878 build_cpu
879 build
880 target_alias
881 host_alias
882 build_alias
883 LIBS
884 ECHO_T
885 ECHO_N
886 ECHO_C
887 DEFS
888 mandir
889 localedir
890 libdir
891 psdir
892 pdfdir
893 dvidir
894 htmldir
895 infodir
896 docdir
897 oldincludedir
898 includedir
899 runstatedir
900 localstatedir
901 sharedstatedir
902 sysconfdir
903 datadir
904 datarootdir
905 libexecdir
906 sbindir
907 bindir
908 program_transform_name
909 prefix
910 exec_prefix
911 PACKAGE_URL
912 PACKAGE_BUGREPORT
913 PACKAGE_STRING
914 PACKAGE_VERSION
915 PACKAGE_TARNAME
916 PACKAGE_NAME
917 PATH_SEPARATOR
918 SHELL'
919 ac_subst_files=''
920 ac_user_opts='
921 enable_option_checking
922 with_c_compiler
923 with_cxx_compiler
924 enable_libpng_config
925 with_toolchain
926 enable_lto
927 enable_coverage
928 enable_build_type
929 enable_debug
930 enable_distcc
931 enable_ccache
932 with_kernel_gcc_version
933 with_optimization
934 with_paranoia
935 enable_target_variant
936 with_xcode
937 with_sdk_version
938 with_sdk
939 with_ndk
940 with_ndk_version
941 with_apk_version
942 enable_amigaos_compliance
943 with_kernel_toolchain_prefix
944 with_elf_toolchain_prefix
945 with_aros_toolchain
946 enable_crosstools
947 with_aros_toolchain_install
948 with_binutils_version
949 with_gcc_version
950 enable_objc
951 enable_java
952 with_cpu
953 with_fpu
954 with_float
955 with_portssources
956 with_bootloader
957 with_iconset
958 with_theme
959 enable_includes
960 with_resolution
961 with_serial_debug
962 enable_palm_debug_hack
963 enable_usb30_code
964 enable_nesting_supervisor
965 enable_mmu
966 enable_x11_hidd
967 with_x
968 enable_x11_shm
969 enable_x11_vidmode
970 enable_sdl_hidd
971 with_sdl_prefix
972 with_sdl_exec_prefix
973 enable_sdltest
974 enable_dbus
976 ac_precious_vars='build_alias
977 host_alias
978 target_alias
980 CXXFLAGS
981 LDFLAGS
982 LIBS
983 CPPFLAGS
986 CFLAGS
988 PYTHON
989 XMKMF'
992 # Initialize some variables set by options.
993 ac_init_help=
994 ac_init_version=false
995 ac_unrecognized_opts=
996 ac_unrecognized_sep=
997 # The variables have the same names as the options, with
998 # dashes changed to underlines.
999 cache_file=/dev/null
1000 exec_prefix=NONE
1001 no_create=
1002 no_recursion=
1003 prefix=NONE
1004 program_prefix=NONE
1005 program_suffix=NONE
1006 program_transform_name=s,x,x,
1007 silent=
1008 site=
1009 srcdir=
1010 verbose=
1011 x_includes=NONE
1012 x_libraries=NONE
1014 # Installation directory options.
1015 # These are left unexpanded so users can "make install exec_prefix=/foo"
1016 # and all the variables that are supposed to be based on exec_prefix
1017 # by default will actually change.
1018 # Use braces instead of parens because sh, perl, etc. also accept them.
1019 # (The list follows the same order as the GNU Coding Standards.)
1020 bindir='${exec_prefix}/bin'
1021 sbindir='${exec_prefix}/sbin'
1022 libexecdir='${exec_prefix}/libexec'
1023 datarootdir='${prefix}/share'
1024 datadir='${datarootdir}'
1025 sysconfdir='${prefix}/etc'
1026 sharedstatedir='${prefix}/com'
1027 localstatedir='${prefix}/var'
1028 runstatedir='${localstatedir}/run'
1029 includedir='${prefix}/include'
1030 oldincludedir='/usr/include'
1031 docdir='${datarootdir}/doc/${PACKAGE}'
1032 infodir='${datarootdir}/info'
1033 htmldir='${docdir}'
1034 dvidir='${docdir}'
1035 pdfdir='${docdir}'
1036 psdir='${docdir}'
1037 libdir='${exec_prefix}/lib'
1038 localedir='${datarootdir}/locale'
1039 mandir='${datarootdir}/man'
1041 ac_prev=
1042 ac_dashdash=
1043 for ac_option
1045 # If the previous option needs an argument, assign it.
1046 if test -n "$ac_prev"; then
1047 eval $ac_prev=\$ac_option
1048 ac_prev=
1049 continue
1052 case $ac_option in
1053 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1054 *=) ac_optarg= ;;
1055 *) ac_optarg=yes ;;
1056 esac
1058 # Accept the important Cygnus configure options, so we can diagnose typos.
1060 case $ac_dashdash$ac_option in
1062 ac_dashdash=yes ;;
1064 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065 ac_prev=bindir ;;
1066 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067 bindir=$ac_optarg ;;
1069 -build | --build | --buil | --bui | --bu)
1070 ac_prev=build_alias ;;
1071 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072 build_alias=$ac_optarg ;;
1074 -cache-file | --cache-file | --cache-fil | --cache-fi \
1075 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076 ac_prev=cache_file ;;
1077 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079 cache_file=$ac_optarg ;;
1081 --config-cache | -C)
1082 cache_file=config.cache ;;
1084 -datadir | --datadir | --datadi | --datad)
1085 ac_prev=datadir ;;
1086 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087 datadir=$ac_optarg ;;
1089 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090 | --dataroo | --dataro | --datar)
1091 ac_prev=datarootdir ;;
1092 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094 datarootdir=$ac_optarg ;;
1096 -disable-* | --disable-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error $? "invalid feature name: $ac_useropt"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "enable_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval enable_$ac_useropt=no ;;
1112 -docdir | --docdir | --docdi | --doc | --do)
1113 ac_prev=docdir ;;
1114 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1115 docdir=$ac_optarg ;;
1117 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1118 ac_prev=dvidir ;;
1119 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1120 dvidir=$ac_optarg ;;
1122 -enable-* | --enable-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid feature name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "enable_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval enable_$ac_useropt=\$ac_optarg ;;
1138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140 | --exec | --exe | --ex)
1141 ac_prev=exec_prefix ;;
1142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144 | --exec=* | --exe=* | --ex=*)
1145 exec_prefix=$ac_optarg ;;
1147 -gas | --gas | --ga | --g)
1148 # Obsolete; use --with-gas.
1149 with_gas=yes ;;
1151 -help | --help | --hel | --he | -h)
1152 ac_init_help=long ;;
1153 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154 ac_init_help=recursive ;;
1155 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156 ac_init_help=short ;;
1158 -host | --host | --hos | --ho)
1159 ac_prev=host_alias ;;
1160 -host=* | --host=* | --hos=* | --ho=*)
1161 host_alias=$ac_optarg ;;
1163 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164 ac_prev=htmldir ;;
1165 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166 | --ht=*)
1167 htmldir=$ac_optarg ;;
1169 -includedir | --includedir | --includedi | --included | --include \
1170 | --includ | --inclu | --incl | --inc)
1171 ac_prev=includedir ;;
1172 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173 | --includ=* | --inclu=* | --incl=* | --inc=*)
1174 includedir=$ac_optarg ;;
1176 -infodir | --infodir | --infodi | --infod | --info | --inf)
1177 ac_prev=infodir ;;
1178 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179 infodir=$ac_optarg ;;
1181 -libdir | --libdir | --libdi | --libd)
1182 ac_prev=libdir ;;
1183 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184 libdir=$ac_optarg ;;
1186 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187 | --libexe | --libex | --libe)
1188 ac_prev=libexecdir ;;
1189 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190 | --libexe=* | --libex=* | --libe=*)
1191 libexecdir=$ac_optarg ;;
1193 -localedir | --localedir | --localedi | --localed | --locale)
1194 ac_prev=localedir ;;
1195 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196 localedir=$ac_optarg ;;
1198 -localstatedir | --localstatedir | --localstatedi | --localstated \
1199 | --localstate | --localstat | --localsta | --localst | --locals)
1200 ac_prev=localstatedir ;;
1201 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203 localstatedir=$ac_optarg ;;
1205 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206 ac_prev=mandir ;;
1207 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208 mandir=$ac_optarg ;;
1210 -nfp | --nfp | --nf)
1211 # Obsolete; use --without-fp.
1212 with_fp=no ;;
1214 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215 | --no-cr | --no-c | -n)
1216 no_create=yes ;;
1218 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220 no_recursion=yes ;;
1222 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224 | --oldin | --oldi | --old | --ol | --o)
1225 ac_prev=oldincludedir ;;
1226 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229 oldincludedir=$ac_optarg ;;
1231 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232 ac_prev=prefix ;;
1233 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234 prefix=$ac_optarg ;;
1236 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237 | --program-pre | --program-pr | --program-p)
1238 ac_prev=program_prefix ;;
1239 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241 program_prefix=$ac_optarg ;;
1243 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244 | --program-suf | --program-su | --program-s)
1245 ac_prev=program_suffix ;;
1246 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248 program_suffix=$ac_optarg ;;
1250 -program-transform-name | --program-transform-name \
1251 | --program-transform-nam | --program-transform-na \
1252 | --program-transform-n | --program-transform- \
1253 | --program-transform | --program-transfor \
1254 | --program-transfo | --program-transf \
1255 | --program-trans | --program-tran \
1256 | --progr-tra | --program-tr | --program-t)
1257 ac_prev=program_transform_name ;;
1258 -program-transform-name=* | --program-transform-name=* \
1259 | --program-transform-nam=* | --program-transform-na=* \
1260 | --program-transform-n=* | --program-transform-=* \
1261 | --program-transform=* | --program-transfor=* \
1262 | --program-transfo=* | --program-transf=* \
1263 | --program-trans=* | --program-tran=* \
1264 | --progr-tra=* | --program-tr=* | --program-t=*)
1265 program_transform_name=$ac_optarg ;;
1267 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268 ac_prev=pdfdir ;;
1269 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270 pdfdir=$ac_optarg ;;
1272 -psdir | --psdir | --psdi | --psd | --ps)
1273 ac_prev=psdir ;;
1274 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275 psdir=$ac_optarg ;;
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 silent=yes ;;
1281 -runstatedir | --runstatedir | --runstatedi | --runstated \
1282 | --runstate | --runstat | --runsta | --runst | --runs \
1283 | --run | --ru | --r)
1284 ac_prev=runstatedir ;;
1285 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1286 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1287 | --run=* | --ru=* | --r=*)
1288 runstatedir=$ac_optarg ;;
1290 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1291 ac_prev=sbindir ;;
1292 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1293 | --sbi=* | --sb=*)
1294 sbindir=$ac_optarg ;;
1296 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298 | --sharedst | --shareds | --shared | --share | --shar \
1299 | --sha | --sh)
1300 ac_prev=sharedstatedir ;;
1301 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1304 | --sha=* | --sh=*)
1305 sharedstatedir=$ac_optarg ;;
1307 -site | --site | --sit)
1308 ac_prev=site ;;
1309 -site=* | --site=* | --sit=*)
1310 site=$ac_optarg ;;
1312 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1313 ac_prev=srcdir ;;
1314 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315 srcdir=$ac_optarg ;;
1317 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318 | --syscon | --sysco | --sysc | --sys | --sy)
1319 ac_prev=sysconfdir ;;
1320 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322 sysconfdir=$ac_optarg ;;
1324 -target | --target | --targe | --targ | --tar | --ta | --t)
1325 ac_prev=target_alias ;;
1326 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327 target_alias=$ac_optarg ;;
1329 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330 verbose=yes ;;
1332 -version | --version | --versio | --versi | --vers | -V)
1333 ac_init_version=: ;;
1335 -with-* | --with-*)
1336 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 as_fn_error $? "invalid package name: $ac_useropt"
1340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1344 "with_$ac_useropt"
1345 "*) ;;
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1348 esac
1349 eval with_$ac_useropt=\$ac_optarg ;;
1351 -without-* | --without-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355 as_fn_error $? "invalid package name: $ac_useropt"
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1360 "with_$ac_useropt"
1361 "*) ;;
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1364 esac
1365 eval with_$ac_useropt=no ;;
1367 --x)
1368 # Obsolete; use --with-x.
1369 with_x=yes ;;
1371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372 | --x-incl | --x-inc | --x-in | --x-i)
1373 ac_prev=x_includes ;;
1374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376 x_includes=$ac_optarg ;;
1378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380 ac_prev=x_libraries ;;
1381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383 x_libraries=$ac_optarg ;;
1385 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information"
1389 *=*)
1390 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391 # Reject names that are not valid shell variable names.
1392 case $ac_envvar in #(
1393 '' | [0-9]* | *[!_$as_cr_alnum]* )
1394 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1395 esac
1396 eval $ac_envvar=\$ac_optarg
1397 export $ac_envvar ;;
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1407 esac
1408 done
1410 if test -n "$ac_prev"; then
1411 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412 as_fn_error $? "missing argument to $ac_option"
1415 if test -n "$ac_unrecognized_opts"; then
1416 case $enable_option_checking in
1417 no) ;;
1418 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1419 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420 esac
1423 # Check all directory arguments for consistency.
1424 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425 datadir sysconfdir sharedstatedir localstatedir includedir \
1426 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427 libdir localedir mandir runstatedir
1429 eval ac_val=\$$ac_var
1430 # Remove trailing slashes.
1431 case $ac_val in
1432 */ )
1433 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434 eval $ac_var=\$ac_val;;
1435 esac
1436 # Be sure to have absolute directory names.
1437 case $ac_val in
1438 [\\/$]* | ?:[\\/]* ) continue;;
1439 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1440 esac
1441 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1442 done
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1447 build=$build_alias
1448 host=$host_alias
1449 target=$target_alias
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x; then
1453 if test "x$build_alias" = x; then
1454 cross_compiling=maybe
1455 elif test "x$build_alias" != "x$host_alias"; then
1456 cross_compiling=yes
1460 ac_tool_prefix=
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1463 test "$silent" = yes && exec 6>/dev/null
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469 as_fn_error $? "working directory cannot be determined"
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471 as_fn_error $? "pwd does not report name of working directory"
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476 ac_srcdir_defaulted=yes
1477 # Try the directory containing this script, then the parent directory.
1478 ac_confdir=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480 X"$as_myself" : 'X\(//\)[^/]' \| \
1481 X"$as_myself" : 'X\(//\)$' \| \
1482 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1485 s//\1/
1488 /^X\(\/\/\)[^/].*/{
1489 s//\1/
1492 /^X\(\/\/\)$/{
1493 s//\1/
1496 /^X\(\/\).*/{
1497 s//\1/
1500 s/.*/./; q'`
1501 srcdir=$ac_confdir
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1503 srcdir=..
1505 else
1506 ac_srcdir_defaulted=no
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1512 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 ac_abs_confdir=`(
1514 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1515 pwd)`
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1518 srcdir=.
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1523 case $srcdir in
1524 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525 esac
1526 for ac_var in $ac_precious_vars; do
1527 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_env_${ac_var}_value=\$${ac_var}
1529 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1531 done
1534 # Report the --help message.
1536 if test "$ac_init_help" = "long"; then
1537 # Omit some internal or obsolete options to make the list less imposing.
1538 # This message is too long to be a string in the A/UX 3.1 sh.
1539 cat <<_ACEOF
1540 \`configure' configures this package to adapt to many kinds of systems.
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE. See below for descriptions of some of the useful variables.
1547 Defaults for the options are specified in brackets.
1549 Configuration:
1550 -h, --help display this help and exit
1551 --help=short display options specific to this package
1552 --help=recursive display the short help of all the included packages
1553 -V, --version display version information and exit
1554 -q, --quiet, --silent do not print \`checking ...' messages
1555 --cache-file=FILE cache test results in FILE [disabled]
1556 -C, --config-cache alias for \`--cache-file=config.cache'
1557 -n, --no-create do not create output files
1558 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1560 Installation directories:
1561 --prefix=PREFIX install architecture-independent files in PREFIX
1562 [$ac_default_prefix]
1563 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1564 [PREFIX]
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1571 For better control, use the options below.
1573 Fine tuning of the installation directories:
1574 --bindir=DIR user executables [EPREFIX/bin]
1575 --sbindir=DIR system admin executables [EPREFIX/sbin]
1576 --libexecdir=DIR program executables [EPREFIX/libexec]
1577 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1578 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1579 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1580 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1581 --libdir=DIR object code libraries [EPREFIX/lib]
1582 --includedir=DIR C header files [PREFIX/include]
1583 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1584 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1585 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1586 --infodir=DIR info documentation [DATAROOTDIR/info]
1587 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1588 --mandir=DIR man documentation [DATAROOTDIR/man]
1589 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1590 --htmldir=DIR html documentation [DOCDIR]
1591 --dvidir=DIR dvi documentation [DOCDIR]
1592 --pdfdir=DIR pdf documentation [DOCDIR]
1593 --psdir=DIR ps documentation [DOCDIR]
1594 _ACEOF
1596 cat <<\_ACEOF
1598 X features:
1599 --x-includes=DIR X include files are in DIR
1600 --x-libraries=DIR X library files are in DIR
1602 System types:
1603 --build=BUILD configure for building on BUILD [guessed]
1604 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1605 _ACEOF
1608 if test -n "$ac_init_help"; then
1610 cat <<\_ACEOF
1612 Optional Features:
1613 --disable-option-checking ignore unrecognized --enable/--with options
1614 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1615 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1616 --disable-libpng-config disable libpng-config test and configuration
1617 --enable-lto=yes|no Enable link time optimizations if the target
1618 compiler supports them (default=no)
1619 --enable-coverage=yes|no
1620 Enable coverage instrumentation if the target
1621 compiler supports it (default=no)
1622 --enable-build-type=TYPE
1623 Select the build type. Available types are:
1624 personal, nightly, snapshot, milestone, release. Do
1625 NOT use this option unless you know what you are
1626 doing! (default=personal)
1627 --enable-debug=list Enable different types of debug. Commas or
1628 whitespaces can be used to separate the items in the
1629 list. Available types of debug are: all, none,
1630 messages, stack, mungwall, modules, symbols. If no
1631 list is provided then "all" is assumed.
1632 (default=none)
1633 --enable-distcc Use distcc as a front end to the compiler
1634 (default=no).
1635 --enable-ccache Use ccache as a front end to the compiler
1636 (default=no).
1637 --enable-target-variant=NAME
1638 Enable a specific target variant (default=none)
1639 --enable-amigaos-compliance=VERSION
1640 Enforce userspace AmigaOS compliance to a specific
1641 KickStart version (default=none).
1642 --disable-crosstools Do not build cross-compiler toolchain
1643 --enable-objc Enable Objectve-C support (default=no)
1644 --enable-java Enable Java support (default=no)
1645 --enable-includes=dir Alternative system include directory
1646 --enable-palm-debug-hack
1647 Enable palm debug output hack in palm native
1648 (default=no)
1649 --enable-usb30-code Enable usb3.0 code (default=no)
1650 --enable-nesting-supervisor
1651 Enable nesting supervisor support in unix
1652 (default=no)
1653 --disable-mmu Disable MMU support (default=enabled)
1654 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1655 --enable-x11-shm use X11 shared memory (default=auto)
1656 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1657 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1658 --disable-sdltest Do not try to compile and run a test SDL program
1659 --enable-dbus Enable DBUS support via dbus.library (default=no)
1661 Optional Packages:
1662 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1663 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1664 --with-c-compiler=VERSION
1665 Use specified c compiler for building AROS
1666 --with-cxx-compiler=VERSION
1667 Use specified c++ compiler building AROS
1668 --with-toolchain=family Which toolchain family to crosscompile with
1669 (defaults to gnu)
1670 --with-kernel-gcc-version=VERSION
1671 Use gcc-VERSION for building bootstrap
1672 --with-optimization=FLAGS
1673 Use optimization flags FLAGS (e.g
1674 --with-optimization=-O2).
1675 --with-paranoia=(yes|no|FLAGS)
1676 Specific compiler warning FLAGS to enable for
1677 paranoia builds (default=-Wall -Werror)
1678 --with-xcode=PATH Specify XCode path for iOS targets
1679 (default=/Developer).
1680 --with-sdk-version=VERSION
1681 Use iOS SDK version VERSION (default=4.1).
1682 --with-sdk=PATH Specify Android SDK path
1683 (default=$default_android_sdk).
1684 --with-ndk=PATH Specify Android NDK path (default=none).
1685 --with-sdk-version=LEVEL
1686 Use Android SDK for API LEVEL (default=12).
1687 --with-ndk-version=LEVEL
1688 Use Android NDK for API LEVEL (default=9).
1689 --with-apk-version=(release|debug)
1690 Which version of AROSBootstrap.apk to compile.
1691 Release version needs key for signing, debug version
1692 will only run in emulator. (default=release)
1693 --with-kernel-toolchain-prefix=...
1694 Specify crosscompile toolchain prefix for kernel
1695 objects
1696 --with-elf-toolchain-prefix=...
1697 Specify crosscompile toolchain prefix to wrap for
1698 AROS objects
1699 --with-aros-toolchain=PREFIX
1700 Specify prebuilt AROS toolchain. Use yes for default
1701 name
1702 --with-aros-toolchain-install=DIR
1703 Where to install or search for cross tools binaries
1704 --with-binutils-version=VERSION
1705 Use binutils-VERSION for building AROS
1706 --with-gcc-version=VERSION
1707 Compile gcc-VERSION for AROS
1708 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1709 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1710 --with-float=<spec> Specify floating point ABI
1711 (default=$gcc_default_float_abi).
1712 --with-portssources=DIR Where to download sourcecode for external ports
1713 --with-bootloader=NAME Use a specific bootloader
1714 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1715 --with-theme=NAME Use a specific GUI Theme
1716 --with-resolution=XRESxYRESxDEPTH
1717 Default resolution of the initial WorkbenchScreen
1718 --with-serial-debug Enable serial debug output in native (default=no)
1719 --with-x use the X Window System
1720 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1721 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1723 Some influential environment variables:
1724 CXX C++ compiler command
1725 CXXFLAGS C++ compiler flags
1726 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1727 nonstandard directory <lib dir>
1728 LIBS libraries to pass to the linker, e.g. -l<library>
1729 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1730 you have headers in a nonstandard directory <include dir>
1731 CC C compiler command
1732 CFLAGS C compiler flags
1733 CPP C preprocessor
1734 PYTHON the Python interpreter
1735 XMKMF Path to xmkmf, Makefile generator for X Window System
1737 Use these variables to override the choices made by `configure' or to help
1738 it to find libraries and programs with nonstandard names/locations.
1740 Report bugs to the package provider.
1741 _ACEOF
1742 ac_status=$?
1745 if test "$ac_init_help" = "recursive"; then
1746 # If there are subdirs, report their specific --help.
1747 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1748 test -d "$ac_dir" ||
1749 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1750 continue
1751 ac_builddir=.
1753 case "$ac_dir" in
1754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1756 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1757 # A ".." for each directory in $ac_dir_suffix.
1758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1759 case $ac_top_builddir_sub in
1760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1762 esac ;;
1763 esac
1764 ac_abs_top_builddir=$ac_pwd
1765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1766 # for backward compatibility:
1767 ac_top_builddir=$ac_top_build_prefix
1769 case $srcdir in
1770 .) # We are building in place.
1771 ac_srcdir=.
1772 ac_top_srcdir=$ac_top_builddir_sub
1773 ac_abs_top_srcdir=$ac_pwd ;;
1774 [\\/]* | ?:[\\/]* ) # Absolute name.
1775 ac_srcdir=$srcdir$ac_dir_suffix;
1776 ac_top_srcdir=$srcdir
1777 ac_abs_top_srcdir=$srcdir ;;
1778 *) # Relative name.
1779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1780 ac_top_srcdir=$ac_top_build_prefix$srcdir
1781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1782 esac
1783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1785 cd "$ac_dir" || { ac_status=$?; continue; }
1786 # Check for guested configure.
1787 if test -f "$ac_srcdir/configure.gnu"; then
1788 echo &&
1789 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1790 elif test -f "$ac_srcdir/configure"; then
1791 echo &&
1792 $SHELL "$ac_srcdir/configure" --help=recursive
1793 else
1794 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1795 fi || ac_status=$?
1796 cd "$ac_pwd" || { ac_status=$?; break; }
1797 done
1800 test -n "$ac_init_help" && exit $ac_status
1801 if $ac_init_version; then
1802 cat <<\_ACEOF
1803 configure
1804 generated by GNU Autoconf 2.69
1806 Copyright (C) 2012 Free Software Foundation, Inc.
1807 This configure script is free software; the Free Software Foundation
1808 gives unlimited permission to copy, distribute and modify it.
1809 _ACEOF
1810 exit
1813 ## ------------------------ ##
1814 ## Autoconf initialization. ##
1815 ## ------------------------ ##
1817 # ac_fn_cxx_try_compile LINENO
1818 # ----------------------------
1819 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_cxx_try_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext
1824 if { { ac_try="$ac_compile"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_compile") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_cxx_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest.$ac_objext; then :
1843 ac_retval=0
1844 else
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1848 ac_retval=1
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1853 } # ac_fn_cxx_try_compile
1855 # ac_fn_c_try_compile LINENO
1856 # --------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_c_try_compile ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext
1862 if { { ac_try="$ac_compile"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1886 ac_retval=1
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_c_try_compile
1893 # ac_fn_c_try_cpp LINENO
1894 # ----------------------
1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_cpp ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } > conftest.i && {
1915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 }; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_c_try_cpp
1930 # ac_fn_c_try_link LINENO
1931 # -----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_c_try_link ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 rm -f conftest.$ac_objext conftest$ac_exeext
1937 if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_c_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 test -x conftest$ac_exeext
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=1
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1974 } # ac_fn_c_try_link
1976 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1977 # -------------------------------------------------------
1978 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1979 # the include files in INCLUDES and setting the cache variable VAR
1980 # accordingly.
1981 ac_fn_c_check_header_mongrel ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if eval \${$3+:} false; then :
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 else
1994 # Is the header compilable?
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1996 $as_echo_n "checking $2 usability... " >&6; }
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2000 #include <$2>
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_header_compiler=yes
2004 else
2005 ac_header_compiler=no
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2009 $as_echo "$ac_header_compiler" >&6; }
2011 # Is the header present?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2013 $as_echo_n "checking $2 presence... " >&6; }
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 #include <$2>
2017 _ACEOF
2018 if ac_fn_c_try_cpp "$LINENO"; then :
2019 ac_header_preproc=yes
2020 else
2021 ac_header_preproc=no
2023 rm -f conftest.err conftest.i conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2025 $as_echo "$ac_header_preproc" >&6; }
2027 # So? What about this header?
2028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2029 yes:no: )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2031 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 no:yes:* )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2037 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2039 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2041 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2043 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 esac
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 eval "$3=\$ac_header_compiler"
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_header_mongrel
2063 # ac_fn_c_try_run LINENO
2064 # ----------------------
2065 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2066 # that executables *can* be run.
2067 ac_fn_c_try_run ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_link"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_link") 2>&5
2078 ac_status=$?
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2081 { { case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084 esac
2085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086 $as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_try") 2>&5
2088 ac_status=$?
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; }; }; then :
2091 ac_retval=0
2092 else
2093 $as_echo "$as_me: program exited with status $ac_status" >&5
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2097 ac_retval=$ac_status
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 as_fn_set_status $ac_retval
2103 } # ac_fn_c_try_run
2105 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2106 # -------------------------------------------------------
2107 # Tests whether HEADER exists and can be compiled using the include files in
2108 # INCLUDES, setting the cache variable VAR accordingly.
2109 ac_fn_c_check_header_compile ()
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if eval \${$3+:} false; then :
2115 $as_echo_n "(cached) " >&6
2116 else
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2120 #include <$2>
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 eval "$3=yes"
2124 else
2125 eval "$3=no"
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 } # ac_fn_c_check_header_compile
2136 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2137 # ----------------------------------------------------
2138 # Tries to find if the field MEMBER exists in type AGGR, after including
2139 # INCLUDES, setting cache variable VAR accordingly.
2140 ac_fn_c_check_member ()
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2144 $as_echo_n "checking for $2.$3... " >&6; }
2145 if eval \${$4+:} false; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2152 main ()
2154 static $2 ac_aggr;
2155 if (ac_aggr.$3)
2156 return 0;
2158 return 0;
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 eval "$4=yes"
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2168 main ()
2170 static $2 ac_aggr;
2171 if (sizeof ac_aggr.$3)
2172 return 0;
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 eval "$4=yes"
2179 else
2180 eval "$4=no"
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 eval ac_res=\$$4
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_member
2193 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2194 # ---------------------------------------------
2195 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2196 # accordingly.
2197 ac_fn_c_check_decl ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 as_decl_name=`echo $2|sed 's/ *(.*//'`
2201 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2203 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2204 if eval \${$3+:} false; then :
2205 $as_echo_n "(cached) " >&6
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2211 main ()
2213 #ifndef $as_decl_name
2214 #ifdef __cplusplus
2215 (void) $as_decl_use;
2216 #else
2217 (void) $as_decl_name;
2218 #endif
2219 #endif
2222 return 0;
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 eval "$3=yes"
2227 else
2228 eval "$3=no"
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 eval ac_res=\$$3
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234 $as_echo "$ac_res" >&6; }
2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237 } # ac_fn_c_check_decl
2239 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2240 # -------------------------------------------
2241 # Tests whether TYPE exists after having included INCLUDES, setting cache
2242 # variable VAR accordingly.
2243 ac_fn_c_check_type ()
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247 $as_echo_n "checking for $2... " >&6; }
2248 if eval \${$3+:} false; then :
2249 $as_echo_n "(cached) " >&6
2250 else
2251 eval "$3=no"
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2256 main ()
2258 if (sizeof ($2))
2259 return 0;
2261 return 0;
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2269 main ()
2271 if (sizeof (($2)))
2272 return 0;
2274 return 0;
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2279 else
2280 eval "$3=yes"
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 eval ac_res=\$$3
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 } # ac_fn_c_check_type
2293 # ac_fn_c_check_func LINENO FUNC VAR
2294 # ----------------------------------
2295 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2296 ac_fn_c_check_func ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2300 $as_echo_n "checking for $2... " >&6; }
2301 if eval \${$3+:} false; then :
2302 $as_echo_n "(cached) " >&6
2303 else
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2306 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2308 #define $2 innocuous_$2
2310 /* System header to define __stub macros and hopefully few prototypes,
2311 which can conflict with char $2 (); below.
2312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2313 <limits.h> exists even on freestanding compilers. */
2315 #ifdef __STDC__
2316 # include <limits.h>
2317 #else
2318 # include <assert.h>
2319 #endif
2321 #undef $2
2323 /* Override any GCC internal prototype to avoid an error.
2324 Use char because int might match the return type of a GCC
2325 builtin and then its argument prototype would still apply. */
2326 #ifdef __cplusplus
2327 extern "C"
2328 #endif
2329 char $2 ();
2330 /* The GNU C library defines this for functions which it implements
2331 to always fail with ENOSYS. Some functions are actually named
2332 something starting with __ and the normal name is an alias. */
2333 #if defined __stub_$2 || defined __stub___$2
2334 choke me
2335 #endif
2338 main ()
2340 return $2 ();
2342 return 0;
2344 _ACEOF
2345 if ac_fn_c_try_link "$LINENO"; then :
2346 eval "$3=yes"
2347 else
2348 eval "$3=no"
2350 rm -f core conftest.err conftest.$ac_objext \
2351 conftest$ac_exeext conftest.$ac_ext
2353 eval ac_res=\$$3
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2355 $as_echo "$ac_res" >&6; }
2356 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2358 } # ac_fn_c_check_func
2359 cat >config.log <<_ACEOF
2360 This file contains any messages produced by compilers while
2361 running configure, to aid debugging if configure makes a mistake.
2363 It was created by $as_me, which was
2364 generated by GNU Autoconf 2.69. Invocation command line was
2366 $ $0 $@
2368 _ACEOF
2369 exec 5>>config.log
2371 cat <<_ASUNAME
2372 ## --------- ##
2373 ## Platform. ##
2374 ## --------- ##
2376 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2377 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2378 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2379 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2380 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2382 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2383 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2385 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2386 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2387 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2388 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2389 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2390 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2391 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2393 _ASUNAME
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 $as_echo "PATH: $as_dir"
2401 done
2402 IFS=$as_save_IFS
2404 } >&5
2406 cat >&5 <<_ACEOF
2409 ## ----------- ##
2410 ## Core tests. ##
2411 ## ----------- ##
2413 _ACEOF
2416 # Keep a trace of the command line.
2417 # Strip out --no-create and --no-recursion so they do not pile up.
2418 # Strip out --silent because we don't want to record it for future runs.
2419 # Also quote any args containing shell meta-characters.
2420 # Make two passes to allow for proper duplicate-argument suppression.
2421 ac_configure_args=
2422 ac_configure_args0=
2423 ac_configure_args1=
2424 ac_must_keep_next=false
2425 for ac_pass in 1 2
2427 for ac_arg
2429 case $ac_arg in
2430 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2432 | -silent | --silent | --silen | --sile | --sil)
2433 continue ;;
2434 *\'*)
2435 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2436 esac
2437 case $ac_pass in
2438 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2440 as_fn_append ac_configure_args1 " '$ac_arg'"
2441 if test $ac_must_keep_next = true; then
2442 ac_must_keep_next=false # Got value, back to normal.
2443 else
2444 case $ac_arg in
2445 *=* | --config-cache | -C | -disable-* | --disable-* \
2446 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2447 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2448 | -with-* | --with-* | -without-* | --without-* | --x)
2449 case "$ac_configure_args0 " in
2450 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2451 esac
2453 -* ) ac_must_keep_next=true ;;
2454 esac
2456 as_fn_append ac_configure_args " '$ac_arg'"
2458 esac
2459 done
2460 done
2461 { ac_configure_args0=; unset ac_configure_args0;}
2462 { ac_configure_args1=; unset ac_configure_args1;}
2464 # When interrupted or exit'd, cleanup temporary files, and complete
2465 # config.log. We remove comments because anyway the quotes in there
2466 # would cause problems or look ugly.
2467 # WARNING: Use '\'' to represent an apostrophe within the trap.
2468 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2469 trap 'exit_status=$?
2470 # Save into config.log some information that might help in debugging.
2472 echo
2474 $as_echo "## ---------------- ##
2475 ## Cache variables. ##
2476 ## ---------------- ##"
2477 echo
2478 # The following way of writing the cache mishandles newlines in values,
2480 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2481 eval ac_val=\$$ac_var
2482 case $ac_val in #(
2483 *${as_nl}*)
2484 case $ac_var in #(
2485 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2487 esac
2488 case $ac_var in #(
2489 _ | IFS | as_nl) ;; #(
2490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2491 *) { eval $ac_var=; unset $ac_var;} ;;
2492 esac ;;
2493 esac
2494 done
2495 (set) 2>&1 |
2496 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2497 *${as_nl}ac_space=\ *)
2498 sed -n \
2499 "s/'\''/'\''\\\\'\'''\''/g;
2500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2501 ;; #(
2503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2505 esac |
2506 sort
2508 echo
2510 $as_echo "## ----------------- ##
2511 ## Output variables. ##
2512 ## ----------------- ##"
2513 echo
2514 for ac_var in $ac_subst_vars
2516 eval ac_val=\$$ac_var
2517 case $ac_val in
2518 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 esac
2520 $as_echo "$ac_var='\''$ac_val'\''"
2521 done | sort
2522 echo
2524 if test -n "$ac_subst_files"; then
2525 $as_echo "## ------------------- ##
2526 ## File substitutions. ##
2527 ## ------------------- ##"
2528 echo
2529 for ac_var in $ac_subst_files
2531 eval ac_val=\$$ac_var
2532 case $ac_val in
2533 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2534 esac
2535 $as_echo "$ac_var='\''$ac_val'\''"
2536 done | sort
2537 echo
2540 if test -s confdefs.h; then
2541 $as_echo "## ----------- ##
2542 ## confdefs.h. ##
2543 ## ----------- ##"
2544 echo
2545 cat confdefs.h
2546 echo
2548 test "$ac_signal" != 0 &&
2549 $as_echo "$as_me: caught signal $ac_signal"
2550 $as_echo "$as_me: exit $exit_status"
2551 } >&5
2552 rm -f core *.core core.conftest.* &&
2553 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2554 exit $exit_status
2556 for ac_signal in 1 2 13 15; do
2557 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2558 done
2559 ac_signal=0
2561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2562 rm -f -r conftest* confdefs.h
2564 $as_echo "/* confdefs.h */" > confdefs.h
2566 # Predefined preprocessor variables.
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_NAME "$PACKAGE_NAME"
2570 _ACEOF
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2574 _ACEOF
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2578 _ACEOF
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_STRING "$PACKAGE_STRING"
2582 _ACEOF
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2586 _ACEOF
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_URL "$PACKAGE_URL"
2590 _ACEOF
2593 # Let the site file select an alternate cache file if it wants to.
2594 # Prefer an explicitly selected file to automatically selected ones.
2595 ac_site_file1=NONE
2596 ac_site_file2=NONE
2597 if test -n "$CONFIG_SITE"; then
2598 # We do not want a PATH search for config.site.
2599 case $CONFIG_SITE in #((
2600 -*) ac_site_file1=./$CONFIG_SITE;;
2601 */*) ac_site_file1=$CONFIG_SITE;;
2602 *) ac_site_file1=./$CONFIG_SITE;;
2603 esac
2604 elif test "x$prefix" != xNONE; then
2605 ac_site_file1=$prefix/share/config.site
2606 ac_site_file2=$prefix/etc/config.site
2607 else
2608 ac_site_file1=$ac_default_prefix/share/config.site
2609 ac_site_file2=$ac_default_prefix/etc/config.site
2611 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2613 test "x$ac_site_file" = xNONE && continue
2614 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2616 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2617 sed 's/^/| /' "$ac_site_file" >&5
2618 . "$ac_site_file" \
2619 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621 as_fn_error $? "failed to load site script $ac_site_file
2622 See \`config.log' for more details" "$LINENO" 5; }
2624 done
2626 if test -r "$cache_file"; then
2627 # Some versions of bash will fail to source /dev/null (special files
2628 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2629 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2631 $as_echo "$as_me: loading cache $cache_file" >&6;}
2632 case $cache_file in
2633 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2634 *) . "./$cache_file";;
2635 esac
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2639 $as_echo "$as_me: creating cache $cache_file" >&6;}
2640 >$cache_file
2643 as_fn_append ac_header_list " stdlib.h"
2644 as_fn_append ac_header_list " unistd.h"
2645 as_fn_append ac_header_list " sys/param.h"
2646 # Check that the precious variables saved in the cache have kept the same
2647 # value.
2648 ac_cache_corrupted=false
2649 for ac_var in $ac_precious_vars; do
2650 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2651 eval ac_new_set=\$ac_env_${ac_var}_set
2652 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2653 eval ac_new_val=\$ac_env_${ac_var}_value
2654 case $ac_old_set,$ac_new_set in
2655 set,)
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2657 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2658 ac_cache_corrupted=: ;;
2659 ,set)
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2661 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2662 ac_cache_corrupted=: ;;
2663 ,);;
2665 if test "x$ac_old_val" != "x$ac_new_val"; then
2666 # differences in whitespace do not lead to failure.
2667 ac_old_val_w=`echo x $ac_old_val`
2668 ac_new_val_w=`echo x $ac_new_val`
2669 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2671 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2672 ac_cache_corrupted=:
2673 else
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2675 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2676 eval $ac_var=\$ac_old_val
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2679 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2681 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2682 fi;;
2683 esac
2684 # Pass precious variables to config.status.
2685 if test "$ac_new_set" = set; then
2686 case $ac_new_val in
2687 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2688 *) ac_arg=$ac_var=$ac_new_val ;;
2689 esac
2690 case " $ac_configure_args " in
2691 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2692 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2693 esac
2695 done
2696 if $ac_cache_corrupted; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2700 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2701 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2703 ## -------------------- ##
2704 ## Main body of script. ##
2705 ## -------------------- ##
2707 ac_ext=c
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715 ac_aux_dir=
2716 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2717 if test -f "$ac_dir/install-sh"; then
2718 ac_aux_dir=$ac_dir
2719 ac_install_sh="$ac_aux_dir/install-sh -c"
2720 break
2721 elif test -f "$ac_dir/install.sh"; then
2722 ac_aux_dir=$ac_dir
2723 ac_install_sh="$ac_aux_dir/install.sh -c"
2724 break
2725 elif test -f "$ac_dir/shtool"; then
2726 ac_aux_dir=$ac_dir
2727 ac_install_sh="$ac_aux_dir/shtool install -c"
2728 break
2730 done
2731 if test -z "$ac_aux_dir"; then
2732 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2735 # These three variables are undocumented and unsupported,
2736 # and are intended to be withdrawn in a future Autoconf release.
2737 # They can cause serious problems if a builder's source tree is in a directory
2738 # whose full name contains unusual characters.
2739 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2740 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2741 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2745 # Check what host we are running on.
2746 # If a target is not suggested, we use this one.
2747 # Note that what we call a target, Autoconf calls a host.
2748 # Make sure we can run config.sub.
2749 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2750 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2753 $as_echo_n "checking build system type... " >&6; }
2754 if ${ac_cv_build+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 ac_build_alias=$build_alias
2758 test "x$ac_build_alias" = x &&
2759 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2760 test "x$ac_build_alias" = x &&
2761 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2762 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2763 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2767 $as_echo "$ac_cv_build" >&6; }
2768 case $ac_cv_build in
2769 *-*-*) ;;
2770 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2771 esac
2772 build=$ac_cv_build
2773 ac_save_IFS=$IFS; IFS='-'
2774 set x $ac_cv_build
2775 shift
2776 build_cpu=$1
2777 build_vendor=$2
2778 shift; shift
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2781 build_os=$*
2782 IFS=$ac_save_IFS
2783 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2787 $as_echo_n "checking host system type... " >&6; }
2788 if ${ac_cv_host+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test "x$host_alias" = x; then
2792 ac_cv_host=$ac_cv_build
2793 else
2794 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2800 $as_echo "$ac_cv_host" >&6; }
2801 case $ac_cv_host in
2802 *-*-*) ;;
2803 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2804 esac
2805 host=$ac_cv_host
2806 ac_save_IFS=$IFS; IFS='-'
2807 set x $ac_cv_host
2808 shift
2809 host_cpu=$1
2810 host_vendor=$2
2811 shift; shift
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2814 host_os=$*
2815 IFS=$ac_save_IFS
2816 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2820 # Default versions for the gnu tools we build
2821 default_toolchain_family=`cat ${srcdir}/config/toolchain_def`
2822 default_gcc_version=`cat ${srcdir}/config/gcc_def`
2823 exp_gcc_version=`cat ${srcdir}/config/gcc_exp`
2824 default_binutils_version=`cat ${srcdir}/config/binutils_def`
2825 exp_binutils_version=`cat ${srcdir}/config/binutils_exp`
2826 default_grub2_version="2.02"
2827 target_grub2_version=$default_grub2_version
2829 # The AROS target is slightly different to the normal GNU style
2830 # format. We don't have the middle part, and we reverse the order
2831 # of the $(CPU) and $(OS) bits.
2833 # Don't strip the version of the target yet, it might be
2834 # useful on some systems.
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2837 $as_echo_n "checking for AROS style target... " >&6; }
2839 if test "$target" = "NONE" ; then
2840 target=$host_os-$host_cpu
2841 else
2842 if test "$target" = "" ; then
2843 target=$host_os-$host_cpu
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2847 $as_echo "$target" >&6; }
2849 if test "$host_os" = "mingw32" ; then
2850 PWDCMD="pwd -W"
2853 # Don't know where else to put this...
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2855 $as_echo_n "checking building AROS in... " >&6; }
2856 AROS_BUILDDIR=`${PWDCMD-pwd}`
2857 AROS_BUILDDIR_UNIX=${PWD}
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2859 $as_echo "$AROS_BUILDDIR" >&6; }
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2862 $as_echo_n "checking AROS source in... " >&6; }
2863 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2864 SRCDIR=${srcpwd}
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2866 $as_echo "$SRCDIR" >&6; }
2868 # Parse the target field into something useful.
2870 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2871 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2874 # Some debug output, to be removed again.
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2876 $as_echo_n "checking for target system (debug output)... " >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2878 $as_echo "$target_os" >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2880 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2882 $as_echo "$target_cpu" >&6; }
2884 aros_nominal_width=800
2885 aros_nominal_height=600
2886 aros_nominal_depth=4
2889 default_c_compilers="gcc clang cc"
2891 # Check whether --with-c-compiler was given.
2892 if test "${with_c_compiler+set}" = set; then :
2893 withval=$with_c_compiler; use_c_compiler="$withval"
2894 else
2895 use_c_compiler=""
2898 if test "$use_c_compiler" = ""; then
2899 host_c_compilers="$default_c_compilers"
2900 else
2901 host_c_compilers="$use_c_compiler"
2902 CC=$use_c_compiler
2905 default_cxx_compilers="g++ clang++ c++"
2907 # Check whether --with-cxx-compiler was given.
2908 if test "${with_cxx_compiler+set}" = set; then :
2909 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2910 else
2911 use_cxx_compiler=""
2914 if test "$use_cxx_compiler" = ""; then
2915 host_cxx_compilers="$default_cxx_compilers"
2916 else
2917 host_cxx_compilers="$use_cxx_compiler"
2918 CXX=$use_cxx_compiler
2922 # The first step is to find the host binaries.
2923 # Check for a compiler.
2924 # Due to a bug in autoconf check for c++ compiler first.
2925 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2926 ac_ext=cpp
2927 ac_cpp='$CXXCPP $CPPFLAGS'
2928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2931 if test -z "$CXX"; then
2932 if test -n "$CCC"; then
2933 CXX=$CCC
2934 else
2935 if test -n "$ac_tool_prefix"; then
2936 for ac_prog in ${host_cxx_compilers}
2938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_CXX+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 if test -n "$CXX"; then
2946 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2959 done
2960 done
2961 IFS=$as_save_IFS
2965 CXX=$ac_cv_prog_CXX
2966 if test -n "$CXX"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2968 $as_echo "$CXX" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2975 test -n "$CXX" && break
2976 done
2978 if test -z "$CXX"; then
2979 ac_ct_CXX=$CXX
2980 for ac_prog in ${host_cxx_compilers}
2982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy $ac_prog; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 if test -n "$ac_ct_CXX"; then
2990 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_ac_ct_CXX="$ac_prog"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3003 done
3004 done
3005 IFS=$as_save_IFS
3009 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3010 if test -n "$ac_ct_CXX"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3012 $as_echo "$ac_ct_CXX" >&6; }
3013 else
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3019 test -n "$ac_ct_CXX" && break
3020 done
3022 if test "x$ac_ct_CXX" = x; then
3023 CXX="g++"
3024 else
3025 case $cross_compiling:$ac_tool_warned in
3026 yes:)
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029 ac_tool_warned=yes ;;
3030 esac
3031 CXX=$ac_ct_CXX
3037 # Provide some information about the compiler.
3038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3039 set X $ac_compile
3040 ac_compiler=$2
3041 for ac_option in --version -v -V -qversion; do
3042 { { ac_try="$ac_compiler $ac_option >&5"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 $as_echo "$ac_try_echo"; } >&5
3049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3050 ac_status=$?
3051 if test -s conftest.err; then
3052 sed '10a\
3053 ... rest of stderr output deleted ...
3054 10q' conftest.err >conftest.er1
3055 cat conftest.er1 >&5
3057 rm -f conftest.er1 conftest.err
3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059 test $ac_status = 0; }
3060 done
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3066 main ()
3070 return 0;
3072 _ACEOF
3073 ac_clean_files_save=$ac_clean_files
3074 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3075 # Try to create an executable without -o first, disregard a.out.
3076 # It will help us diagnose broken compilers, and finding out an intuition
3077 # of exeext.
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3079 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3080 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3082 # The possible output files:
3083 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3085 ac_rmfiles=
3086 for ac_file in $ac_files
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3091 esac
3092 done
3093 rm -f $ac_rmfiles
3095 if { { ac_try="$ac_link_default"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_link_default") 2>&5
3103 ac_status=$?
3104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105 test $ac_status = 0; }; then :
3106 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3107 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3108 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3109 # so that the user can short-circuit this test for compilers unknown to
3110 # Autoconf.
3111 for ac_file in $ac_files ''
3113 test -f "$ac_file" || continue
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3117 [ab].out )
3118 # We found the default executable, but exeext='' is most
3119 # certainly right.
3120 break;;
3121 *.* )
3122 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3123 then :; else
3124 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3126 # We set ac_cv_exeext here because the later test for it is not
3127 # safe: cross compilers may not add the suffix if given an `-o'
3128 # argument, so we may need to know it at that point already.
3129 # Even if this section looks crufty: it has the advantage of
3130 # actually working.
3131 break;;
3133 break;;
3134 esac
3135 done
3136 test "$ac_cv_exeext" = no && ac_cv_exeext=
3138 else
3139 ac_file=''
3141 if test -z "$ac_file"; then :
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 $as_echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error 77 "C++ compiler cannot create executables
3150 See \`config.log' for more details" "$LINENO" 5; }
3151 else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3153 $as_echo "yes" >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3156 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3158 $as_echo "$ac_file" >&6; }
3159 ac_exeext=$ac_cv_exeext
3161 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3162 ac_clean_files=$ac_clean_files_save
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3164 $as_echo_n "checking for suffix of executables... " >&6; }
3165 if { { ac_try="$ac_link"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_link") 2>&5
3173 ac_status=$?
3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }; then :
3176 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3177 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3178 # work properly (i.e., refer to `conftest.exe'), while it won't with
3179 # `rm'.
3180 for ac_file in conftest.exe conftest conftest.*; do
3181 test -f "$ac_file" || continue
3182 case $ac_file in
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3184 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3185 break;;
3186 * ) break;;
3187 esac
3188 done
3189 else
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3193 See \`config.log' for more details" "$LINENO" 5; }
3195 rm -f conftest conftest$ac_cv_exeext
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3197 $as_echo "$ac_cv_exeext" >&6; }
3199 rm -f conftest.$ac_ext
3200 EXEEXT=$ac_cv_exeext
3201 ac_exeext=$EXEEXT
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3204 #include <stdio.h>
3206 main ()
3208 FILE *f = fopen ("conftest.out", "w");
3209 return ferror (f) || fclose (f) != 0;
3212 return 0;
3214 _ACEOF
3215 ac_clean_files="$ac_clean_files conftest.out"
3216 # Check that the compiler produces executables we can run. If not, either
3217 # the compiler is broken, or we cross compile.
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3219 $as_echo_n "checking whether we are cross compiling... " >&6; }
3220 if test "$cross_compiling" != yes; then
3221 { { ac_try="$ac_link"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227 $as_echo "$ac_try_echo"; } >&5
3228 (eval "$ac_link") 2>&5
3229 ac_status=$?
3230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231 test $ac_status = 0; }
3232 if { ac_try='./conftest$ac_cv_exeext'
3233 { { case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_try") 2>&5
3240 ac_status=$?
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }; }; then
3243 cross_compiling=no
3244 else
3245 if test "$cross_compiling" = maybe; then
3246 cross_compiling=yes
3247 else
3248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error $? "cannot run C++ compiled programs.
3251 If you meant to cross compile, use \`--host'.
3252 See \`config.log' for more details" "$LINENO" 5; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3257 $as_echo "$cross_compiling" >&6; }
3259 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3260 ac_clean_files=$ac_clean_files_save
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3262 $as_echo_n "checking for suffix of object files... " >&6; }
3263 if ${ac_cv_objext+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265 else
3266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267 /* end confdefs.h. */
3270 main ()
3274 return 0;
3276 _ACEOF
3277 rm -f conftest.o conftest.obj
3278 if { { ac_try="$ac_compile"
3279 case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 $as_echo "$ac_try_echo"; } >&5
3285 (eval "$ac_compile") 2>&5
3286 ac_status=$?
3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288 test $ac_status = 0; }; then :
3289 for ac_file in conftest.o conftest.obj conftest.*; do
3290 test -f "$ac_file" || continue;
3291 case $ac_file in
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3293 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3294 break;;
3295 esac
3296 done
3297 else
3298 $as_echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error $? "cannot compute suffix of object files: cannot compile
3304 See \`config.log' for more details" "$LINENO" 5; }
3306 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3309 $as_echo "$ac_cv_objext" >&6; }
3310 OBJEXT=$ac_cv_objext
3311 ac_objext=$OBJEXT
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3313 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3314 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3321 main ()
3323 #ifndef __GNUC__
3324 choke me
3325 #endif
3328 return 0;
3330 _ACEOF
3331 if ac_fn_cxx_try_compile "$LINENO"; then :
3332 ac_compiler_gnu=yes
3333 else
3334 ac_compiler_gnu=no
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3341 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3342 if test $ac_compiler_gnu = yes; then
3343 GXX=yes
3344 else
3345 GXX=
3347 ac_test_CXXFLAGS=${CXXFLAGS+set}
3348 ac_save_CXXFLAGS=$CXXFLAGS
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3350 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3351 if ${ac_cv_prog_cxx_g+:} false; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3355 ac_cxx_werror_flag=yes
3356 ac_cv_prog_cxx_g=no
3357 CXXFLAGS="-g"
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3362 main ()
3366 return 0;
3368 _ACEOF
3369 if ac_fn_cxx_try_compile "$LINENO"; then :
3370 ac_cv_prog_cxx_g=yes
3371 else
3372 CXXFLAGS=""
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3377 main ()
3381 return 0;
3383 _ACEOF
3384 if ac_fn_cxx_try_compile "$LINENO"; then :
3386 else
3387 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3388 CXXFLAGS="-g"
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3393 main ()
3397 return 0;
3399 _ACEOF
3400 if ac_fn_cxx_try_compile "$LINENO"; then :
3401 ac_cv_prog_cxx_g=yes
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3411 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3412 if test "$ac_test_CXXFLAGS" = set; then
3413 CXXFLAGS=$ac_save_CXXFLAGS
3414 elif test $ac_cv_prog_cxx_g = yes; then
3415 if test "$GXX" = yes; then
3416 CXXFLAGS="-g -O2"
3417 else
3418 CXXFLAGS="-g"
3420 else
3421 if test "$GXX" = yes; then
3422 CXXFLAGS="-O2"
3423 else
3424 CXXFLAGS=
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 CXX_BASE=$CXX
3434 # Extract the first word of "$CXX", so it can be a program name with args.
3435 set dummy $CXX; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_path_CXX+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 case $CXX in
3442 [\\/]* | ?:[\\/]*)
3443 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3457 done
3458 done
3459 IFS=$as_save_IFS
3462 esac
3464 CXX=$ac_cv_path_CXX
3465 if test -n "$CXX"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3467 $as_echo "$CXX" >&6; }
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3474 ac_ext=c
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479 if test -n "$ac_tool_prefix"; then
3480 for ac_prog in ${host_c_compilers}
3482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 $as_echo_n "checking for $ac_word... " >&6; }
3486 if ${ac_cv_prog_CC+:} false; then :
3487 $as_echo_n "(cached) " >&6
3488 else
3489 if test -n "$CC"; then
3490 ac_cv_prog_CC="$CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3503 done
3504 done
3505 IFS=$as_save_IFS
3509 CC=$ac_cv_prog_CC
3510 if test -n "$CC"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512 $as_echo "$CC" >&6; }
3513 else
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3519 test -n "$CC" && break
3520 done
3522 if test -z "$CC"; then
3523 ac_ct_CC=$CC
3524 for ac_prog in ${host_c_compilers}
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 if test -n "$ac_ct_CC"; then
3534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_ac_ct_CC="$ac_prog"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3547 done
3548 done
3549 IFS=$as_save_IFS
3553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3554 if test -n "$ac_ct_CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3556 $as_echo "$ac_ct_CC" >&6; }
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3563 test -n "$ac_ct_CC" && break
3564 done
3566 if test "x$ac_ct_CC" = x; then
3567 CC=""
3568 else
3569 case $cross_compiling:$ac_tool_warned in
3570 yes:)
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573 ac_tool_warned=yes ;;
3574 esac
3575 CC=$ac_ct_CC
3580 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 as_fn_error $? "no acceptable C compiler found in \$PATH
3583 See \`config.log' for more details" "$LINENO" 5; }
3585 # Provide some information about the compiler.
3586 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3587 set X $ac_compile
3588 ac_compiler=$2
3589 for ac_option in --version -v -V -qversion; do
3590 { { ac_try="$ac_compiler $ac_option >&5"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596 $as_echo "$ac_try_echo"; } >&5
3597 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3598 ac_status=$?
3599 if test -s conftest.err; then
3600 sed '10a\
3601 ... rest of stderr output deleted ...
3602 10q' conftest.err >conftest.er1
3603 cat conftest.er1 >&5
3605 rm -f conftest.er1 conftest.err
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }
3608 done
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3611 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3612 if ${ac_cv_c_compiler_gnu+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3619 main ()
3621 #ifndef __GNUC__
3622 choke me
3623 #endif
3626 return 0;
3628 _ACEOF
3629 if ac_fn_c_try_compile "$LINENO"; then :
3630 ac_compiler_gnu=yes
3631 else
3632 ac_compiler_gnu=no
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3639 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3640 if test $ac_compiler_gnu = yes; then
3641 GCC=yes
3642 else
3643 GCC=
3645 ac_test_CFLAGS=${CFLAGS+set}
3646 ac_save_CFLAGS=$CFLAGS
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3648 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3649 if ${ac_cv_prog_cc_g+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 ac_save_c_werror_flag=$ac_c_werror_flag
3653 ac_c_werror_flag=yes
3654 ac_cv_prog_cc_g=no
3655 CFLAGS="-g"
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3660 main ()
3664 return 0;
3666 _ACEOF
3667 if ac_fn_c_try_compile "$LINENO"; then :
3668 ac_cv_prog_cc_g=yes
3669 else
3670 CFLAGS=""
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3675 main ()
3679 return 0;
3681 _ACEOF
3682 if ac_fn_c_try_compile "$LINENO"; then :
3684 else
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3686 CFLAGS="-g"
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3691 main ()
3695 return 0;
3697 _ACEOF
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699 ac_cv_prog_cc_g=yes
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 ac_c_werror_flag=$ac_save_c_werror_flag
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3709 $as_echo "$ac_cv_prog_cc_g" >&6; }
3710 if test "$ac_test_CFLAGS" = set; then
3711 CFLAGS=$ac_save_CFLAGS
3712 elif test $ac_cv_prog_cc_g = yes; then
3713 if test "$GCC" = yes; then
3714 CFLAGS="-g -O2"
3715 else
3716 CFLAGS="-g"
3718 else
3719 if test "$GCC" = yes; then
3720 CFLAGS="-O2"
3721 else
3722 CFLAGS=
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3726 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3727 if ${ac_cv_prog_cc_c89+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 ac_cv_prog_cc_c89=no
3731 ac_save_CC=$CC
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734 #include <stdarg.h>
3735 #include <stdio.h>
3736 struct stat;
3737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3738 struct buf { int x; };
3739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3740 static char *e (p, i)
3741 char **p;
3742 int i;
3744 return p[i];
3746 static char *f (char * (*g) (char **, int), char **p, ...)
3748 char *s;
3749 va_list v;
3750 va_start (v,p);
3751 s = g (p, va_arg (v,int));
3752 va_end (v);
3753 return s;
3756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3757 function prototypes and stuff, but not '\xHH' hex character constants.
3758 These don't provoke an error unfortunately, instead are silently treated
3759 as 'x'. The following induces an error, until -std is added to get
3760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3761 array size at least. It's necessary to write '\x00'==0 to get something
3762 that's true only with -std. */
3763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3765 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3766 inside strings and character constants. */
3767 #define FOO(x) 'x'
3768 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3770 int test (int i, double x);
3771 struct s1 {int (*f) (int a);};
3772 struct s2 {int (*f) (double a);};
3773 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3774 int argc;
3775 char **argv;
3777 main ()
3779 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3781 return 0;
3783 _ACEOF
3784 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3785 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3787 CC="$ac_save_CC $ac_arg"
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_cv_prog_cc_c89=$ac_arg
3791 rm -f core conftest.err conftest.$ac_objext
3792 test "x$ac_cv_prog_cc_c89" != "xno" && break
3793 done
3794 rm -f conftest.$ac_ext
3795 CC=$ac_save_CC
3798 # AC_CACHE_VAL
3799 case "x$ac_cv_prog_cc_c89" in
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3802 $as_echo "none needed" >&6; } ;;
3803 xno)
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3805 $as_echo "unsupported" >&6; } ;;
3807 CC="$CC $ac_cv_prog_cc_c89"
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3810 esac
3811 if test "x$ac_cv_prog_cc_c89" != xno; then :
3815 ac_ext=c
3816 ac_cpp='$CPP $CPPFLAGS'
3817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821 CC_BASE=$CC
3822 # Extract the first word of "$CC", so it can be a program name with args.
3823 set dummy $CC; ac_word=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if ${ac_cv_path_CC+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 case $CC in
3830 [\\/]* | ?:[\\/]*)
3831 ac_cv_path_CC="$CC" # Let the user override the test with a path.
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 break 2
3845 done
3846 done
3847 IFS=$as_save_IFS
3850 esac
3852 CC=$ac_cv_path_CC
3853 if test -n "$CC"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3855 $as_echo "$CC" >&6; }
3856 else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3862 aros_host_def_cc="$CC"
3863 case $ac_cv_prog_cc_stdc in #(
3864 no) :
3865 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3866 *) :
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3868 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3869 if ${ac_cv_prog_cc_c99+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 ac_cv_prog_cc_c99=no
3873 ac_save_CC=$CC
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876 #include <stdarg.h>
3877 #include <stdbool.h>
3878 #include <stdlib.h>
3879 #include <wchar.h>
3880 #include <stdio.h>
3882 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3883 #define debug(...) fprintf (stderr, __VA_ARGS__)
3884 #define showlist(...) puts (#__VA_ARGS__)
3885 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3886 static void
3887 test_varargs_macros (void)
3889 int x = 1234;
3890 int y = 5678;
3891 debug ("Flag");
3892 debug ("X = %d\n", x);
3893 showlist (The first, second, and third items.);
3894 report (x>y, "x is %d but y is %d", x, y);
3897 // Check long long types.
3898 #define BIG64 18446744073709551615ull
3899 #define BIG32 4294967295ul
3900 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3901 #if !BIG_OK
3902 your preprocessor is broken;
3903 #endif
3904 #if BIG_OK
3905 #else
3906 your preprocessor is broken;
3907 #endif
3908 static long long int bignum = -9223372036854775807LL;
3909 static unsigned long long int ubignum = BIG64;
3911 struct incomplete_array
3913 int datasize;
3914 double data[];
3917 struct named_init {
3918 int number;
3919 const wchar_t *name;
3920 double average;
3923 typedef const char *ccp;
3925 static inline int
3926 test_restrict (ccp restrict text)
3928 // See if C++-style comments work.
3929 // Iterate through items via the restricted pointer.
3930 // Also check for declarations in for loops.
3931 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3932 continue;
3933 return 0;
3936 // Check varargs and va_copy.
3937 static void
3938 test_varargs (const char *format, ...)
3940 va_list args;
3941 va_start (args, format);
3942 va_list args_copy;
3943 va_copy (args_copy, args);
3945 const char *str;
3946 int number;
3947 float fnumber;
3949 while (*format)
3951 switch (*format++)
3953 case 's': // string
3954 str = va_arg (args_copy, const char *);
3955 break;
3956 case 'd': // int
3957 number = va_arg (args_copy, int);
3958 break;
3959 case 'f': // float
3960 fnumber = va_arg (args_copy, double);
3961 break;
3962 default:
3963 break;
3966 va_end (args_copy);
3967 va_end (args);
3971 main ()
3974 // Check bool.
3975 _Bool success = false;
3977 // Check restrict.
3978 if (test_restrict ("String literal") == 0)
3979 success = true;
3980 char *restrict newvar = "Another string";
3982 // Check varargs.
3983 test_varargs ("s, d' f .", "string", 65, 34.234);
3984 test_varargs_macros ();
3986 // Check flexible array members.
3987 struct incomplete_array *ia =
3988 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3989 ia->datasize = 10;
3990 for (int i = 0; i < ia->datasize; ++i)
3991 ia->data[i] = i * 1.234;
3993 // Check named initializers.
3994 struct named_init ni = {
3995 .number = 34,
3996 .name = L"Test wide string",
3997 .average = 543.34343,
4000 ni.number = 58;
4002 int dynamic_array[ni.number];
4003 dynamic_array[ni.number - 1] = 543;
4005 // work around unused variable warnings
4006 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4007 || dynamic_array[ni.number - 1] != 543);
4010 return 0;
4012 _ACEOF
4013 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4015 CC="$ac_save_CC $ac_arg"
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_cv_prog_cc_c99=$ac_arg
4019 rm -f core conftest.err conftest.$ac_objext
4020 test "x$ac_cv_prog_cc_c99" != "xno" && break
4021 done
4022 rm -f conftest.$ac_ext
4023 CC=$ac_save_CC
4026 # AC_CACHE_VAL
4027 case "x$ac_cv_prog_cc_c99" in
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4030 $as_echo "none needed" >&6; } ;;
4031 xno)
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4033 $as_echo "unsupported" >&6; } ;;
4035 CC="$CC $ac_cv_prog_cc_c99"
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4037 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4038 esac
4039 if test "x$ac_cv_prog_cc_c99" != xno; then :
4040 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4041 else
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4043 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4044 if ${ac_cv_prog_cc_c89+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 ac_cv_prog_cc_c89=no
4048 ac_save_CC=$CC
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 #include <stdarg.h>
4052 #include <stdio.h>
4053 struct stat;
4054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4055 struct buf { int x; };
4056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4057 static char *e (p, i)
4058 char **p;
4059 int i;
4061 return p[i];
4063 static char *f (char * (*g) (char **, int), char **p, ...)
4065 char *s;
4066 va_list v;
4067 va_start (v,p);
4068 s = g (p, va_arg (v,int));
4069 va_end (v);
4070 return s;
4073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4074 function prototypes and stuff, but not '\xHH' hex character constants.
4075 These don't provoke an error unfortunately, instead are silently treated
4076 as 'x'. The following induces an error, until -std is added to get
4077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4078 array size at least. It's necessary to write '\x00'==0 to get something
4079 that's true only with -std. */
4080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4083 inside strings and character constants. */
4084 #define FOO(x) 'x'
4085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4087 int test (int i, double x);
4088 struct s1 {int (*f) (int a);};
4089 struct s2 {int (*f) (double a);};
4090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4091 int argc;
4092 char **argv;
4094 main ()
4096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4098 return 0;
4100 _ACEOF
4101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4104 CC="$ac_save_CC $ac_arg"
4105 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_cv_prog_cc_c89=$ac_arg
4108 rm -f core conftest.err conftest.$ac_objext
4109 test "x$ac_cv_prog_cc_c89" != "xno" && break
4110 done
4111 rm -f conftest.$ac_ext
4112 CC=$ac_save_CC
4115 # AC_CACHE_VAL
4116 case "x$ac_cv_prog_cc_c89" in
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4119 $as_echo "none needed" >&6; } ;;
4120 xno)
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4122 $as_echo "unsupported" >&6; } ;;
4124 CC="$CC $ac_cv_prog_cc_c89"
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4126 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4127 esac
4128 if test "x$ac_cv_prog_cc_c89" != xno; then :
4129 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4130 else
4131 ac_cv_prog_cc_stdc=no
4136 esac
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4138 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4139 if ${ac_cv_prog_cc_stdc+:} false; then :
4140 $as_echo_n "(cached) " >&6
4143 case $ac_cv_prog_cc_stdc in #(
4144 no) :
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4146 $as_echo "unsupported" >&6; } ;; #(
4147 '') :
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4149 $as_echo "none needed" >&6; } ;; #(
4150 *) :
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4152 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4153 esac
4155 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4161 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4162 # On Suns, sometimes $CPP names a directory.
4163 if test -n "$CPP" && test -d "$CPP"; then
4164 CPP=
4166 if test -z "$CPP"; then
4167 if ${ac_cv_prog_CPP+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 # Double quotes because CPP needs to be expanded
4171 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4173 ac_preproc_ok=false
4174 for ac_c_preproc_warn_flag in '' yes
4176 # Use a header file that comes with gcc, so configuring glibc
4177 # with a fresh cross-compiler works.
4178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4179 # <limits.h> exists even on freestanding compilers.
4180 # On the NeXT, cc -E runs the code through the compiler's parser,
4181 # not just through cpp. "Syntax error" is here to catch this case.
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4184 #ifdef __STDC__
4185 # include <limits.h>
4186 #else
4187 # include <assert.h>
4188 #endif
4189 Syntax error
4190 _ACEOF
4191 if ac_fn_c_try_cpp "$LINENO"; then :
4193 else
4194 # Broken: fails on valid input.
4195 continue
4197 rm -f conftest.err conftest.i conftest.$ac_ext
4199 # OK, works on sane cases. Now check whether nonexistent headers
4200 # can be detected and how.
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203 #include <ac_nonexistent.h>
4204 _ACEOF
4205 if ac_fn_c_try_cpp "$LINENO"; then :
4206 # Broken: success on invalid input.
4207 continue
4208 else
4209 # Passes both tests.
4210 ac_preproc_ok=:
4211 break
4213 rm -f conftest.err conftest.i conftest.$ac_ext
4215 done
4216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4217 rm -f conftest.i conftest.err conftest.$ac_ext
4218 if $ac_preproc_ok; then :
4219 break
4222 done
4223 ac_cv_prog_CPP=$CPP
4226 CPP=$ac_cv_prog_CPP
4227 else
4228 ac_cv_prog_CPP=$CPP
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4231 $as_echo "$CPP" >&6; }
4232 ac_preproc_ok=false
4233 for ac_c_preproc_warn_flag in '' yes
4235 # Use a header file that comes with gcc, so configuring glibc
4236 # with a fresh cross-compiler works.
4237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4238 # <limits.h> exists even on freestanding compilers.
4239 # On the NeXT, cc -E runs the code through the compiler's parser,
4240 # not just through cpp. "Syntax error" is here to catch this case.
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #ifdef __STDC__
4244 # include <limits.h>
4245 #else
4246 # include <assert.h>
4247 #endif
4248 Syntax error
4249 _ACEOF
4250 if ac_fn_c_try_cpp "$LINENO"; then :
4252 else
4253 # Broken: fails on valid input.
4254 continue
4256 rm -f conftest.err conftest.i conftest.$ac_ext
4258 # OK, works on sane cases. Now check whether nonexistent headers
4259 # can be detected and how.
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262 #include <ac_nonexistent.h>
4263 _ACEOF
4264 if ac_fn_c_try_cpp "$LINENO"; then :
4265 # Broken: success on invalid input.
4266 continue
4267 else
4268 # Passes both tests.
4269 ac_preproc_ok=:
4270 break
4272 rm -f conftest.err conftest.i conftest.$ac_ext
4274 done
4275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4276 rm -f conftest.i conftest.err conftest.$ac_ext
4277 if $ac_preproc_ok; then :
4279 else
4280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4283 See \`config.log' for more details" "$LINENO" 5; }
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 # detect the compiler version
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which toolchain family ${CC} belongs to" >&5
4295 $as_echo_n "checking which toolchain family ${CC} belongs to... " >&6; }
4296 HOST_COMPILER_VERSION=`"$CC" --version 2>/dev/null`
4297 if test x"$HOST_COMPILER_VERSION" = "x"; then
4298 HOST_COMPILER_VERSION=`"$CC" --qversion 2>/dev/null`
4300 if test x"$HOST_COMPILER_VERSION" = "x"; then
4301 HOST_COMPILER_VERSION=`"$CC" -V 2>/dev/null`
4304 IS_SUN_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'Sun C\+\+'`
4305 if test "$IS_SUN_COMPILER" -ne "0"; then
4306 HOST_TOOLCHAIN_PREFIX=
4307 HOST_TOOLCHAIN_SUFFIX=
4308 HOST_TOOLCHAIN_FAMILY=sun
4310 IS_LLVM_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'LLVM|clang'`
4311 if test "$IS_LLVM_COMPILER" -ne "0"; then
4312 if test "$CC_BASE" != "gcc"; then
4313 HOST_TOOLCHAIN_PREFIX=llvm-
4314 HOST_TOOLCHAIN_SUFFIX="`echo $CC_BASE | sed -e \"s|clang||g\"`"
4315 HOST_TOOLCHAIN_FAMILY=llvm
4316 else
4317 IS_GNU_COMPILER=1
4320 if test "x$IS_GNU_COMPILER" = "x"; then
4321 IS_GNU_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'gcc'`
4323 if test "$IS_GNU_COMPILER" -ne "0"; then
4324 HOST_TOOLCHAIN_PREFIX=
4325 HOST_TOOLCHAIN_SUFFIX=
4326 HOST_TOOLCHAIN_FAMILY=gnu
4328 if test x"$HOST_TOOLCHAIN_FAMILY" = "x"; then
4329 HOST_TOOLCHAIN_FAMILY=unknown
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_TOOLCHAIN_FAMILY" >&5
4332 $as_echo "$HOST_TOOLCHAIN_FAMILY" >&6; }
4334 # Check for a compatible awk
4335 for ac_prog in gawk nawk
4337 # Extract the first word of "$ac_prog", so it can be a program name with args.
4338 set dummy $ac_prog; ac_word=$2
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340 $as_echo_n "checking for $ac_word... " >&6; }
4341 if ${ac_cv_prog_AWK+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test -n "$AWK"; then
4345 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_AWK="$ac_prog"
4355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4358 done
4359 done
4360 IFS=$as_save_IFS
4364 AWK=$ac_cv_prog_AWK
4365 if test -n "$AWK"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4367 $as_echo "$AWK" >&6; }
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4374 test -n "$AWK" && break
4375 done
4377 req_avail=yes
4378 if test "$AWK" = ""; then
4379 req_avail=no
4381 if test "$AWK" = "no"; then
4382 req_avail=no
4384 if test "$req_avail" = "no"; then
4385 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4387 # Extract the first word of "mmake", so it can be a program name with args.
4388 set dummy mmake; ac_word=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if ${ac_cv_prog_MMAKE+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if test -n "$MMAKE"; then
4395 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404 ac_cv_prog_MMAKE="mmake "
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4408 done
4409 done
4410 IFS=$as_save_IFS
4414 MMAKE=$ac_cv_prog_MMAKE
4415 if test -n "$MMAKE"; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4417 $as_echo "$MMAKE" >&6; }
4418 else
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4425 # Perform some default variable assignments. Note all of these will be
4426 # Regenerated from the script, so there is no need to cache them.
4428 aros_build_host=$host
4429 aros_host_cpp="$CPP"
4430 aros_host_cc="$CC"
4431 aros_host_cxx="$CXX"
4432 base_ld_name=${HOST_TOOLCHAIN_PREFIX}ld${HOST_TOOLCHAIN_SUFFIX}
4433 if test "$HOST_TOOLCHAIN_FAMILY" = "llvm"; then
4434 for ac_prog in $base_ld_name ld.lld${HOST_TOOLCHAIN_SUFFIX} ld64.lld${HOST_TOOLCHAIN_SUFFIX} ld-link${HOST_TOOLCHAIN_SUFFIX}.exe ld${HOST_TOOLCHAIN_SUFFIX}
4436 # Extract the first word of "$ac_prog", so it can be a program name with args.
4437 set dummy $ac_prog; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if ${ac_cv_prog_base_lld_name+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -n "$base_lld_name"; then
4444 ac_cv_prog_base_lld_name="$base_lld_name" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453 ac_cv_prog_base_lld_name="$ac_prog"
4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4457 done
4458 done
4459 IFS=$as_save_IFS
4463 base_lld_name=$ac_cv_prog_base_lld_name
4464 if test -n "$base_lld_name"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $base_lld_name" >&5
4466 $as_echo "$base_lld_name" >&6; }
4467 else
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 $as_echo "no" >&6; }
4473 test -n "$base_lld_name" && break
4474 done
4476 base_ld_name=$base_lld_name
4479 if test "$base_ld_name" = ""; then
4480 ac_tool_ld=ld
4481 else
4482 ac_tool_ld=$base_ld_name
4484 if test "$GCC" = "yes"; then
4485 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
4486 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4487 set dummy `basename $aros_gcc_ld`; ac_word=$2
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if ${ac_cv_path_aros_host_ld+:} false; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 case $aros_host_ld in
4494 [\\/]* | ?:[\\/]*)
4495 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in `dirname $aros_gcc_ld`
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4509 done
4510 done
4511 IFS=$as_save_IFS
4514 esac
4516 aros_host_ld=$ac_cv_path_aros_host_ld
4517 if test -n "$aros_host_ld"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4519 $as_echo "$aros_host_ld" >&6; }
4520 else
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4527 if test "$aros_host_ld" = ""; then
4528 for ac_prog in $ac_tool_ld
4530 # Extract the first word of "$ac_prog", so it can be a program name with args.
4531 set dummy $ac_prog; ac_word=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if ${ac_cv_path_aros_host_ld+:} false; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 case $aros_host_ld in
4538 [\\/]* | ?:[\\/]*)
4539 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4553 done
4554 done
4555 IFS=$as_save_IFS
4558 esac
4560 aros_host_ld=$ac_cv_path_aros_host_ld
4561 if test -n "$aros_host_ld"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4563 $as_echo "$aros_host_ld" >&6; }
4564 else
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4570 test -n "$aros_host_ld" && break
4571 done
4575 req_avail=yes
4576 if test "$aros_host_ld" = ""; then
4577 req_avail=no
4579 if test "$aros_host_ld" = "no"; then
4580 req_avail=no
4582 if test "$req_avail" = "no"; then
4583 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4585 aros_host_make="make"
4586 aros_host_cflags="$CFLAGS"
4587 aros_host_cxxflags="$CXXFLAGS"
4588 aros_host_cppflags="$CPPFLAGS"
4589 aros_host_ldflags="$LDFLAGS"
4590 aros_host_debug="-g -O0"
4591 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4592 aros_host_mkargs="--no-print-directory"
4593 aros_host_exe_suffix="$EXEEXT"
4594 aros_host_lib_suffix=""
4596 # Ignore all compliance, AROS ROMs = 0
4597 # KickStart v1.0 = 30
4598 # KickStart v1.3 = 34
4599 # KickStart v2.0 = 37
4600 # KickStart v3.0 = 39
4601 # KickStart v3.1 = 40
4602 # AmigaOS v3.5 = 44
4603 aros_amigaos_compliance=0
4605 for ac_prog in aclocal aclocal19 aclocal-1.9
4607 # Extract the first word of "$ac_prog", so it can be a program name with args.
4608 set dummy $ac_prog; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -n "$aros_host_aclocal"; then
4615 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_prog_aros_host_aclocal="$ac_prog"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4628 done
4629 done
4630 IFS=$as_save_IFS
4634 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4635 if test -n "$aros_host_aclocal"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4637 $as_echo "$aros_host_aclocal" >&6; }
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4644 test -n "$aros_host_aclocal" && break
4645 done
4647 for ac_prog in autoconf autoconf259 autoconf253
4649 # Extract the first word of "$ac_prog", so it can be a program name with args.
4650 set dummy $ac_prog; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 if test -n "$aros_host_autoconf"; then
4657 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_prog_aros_host_autoconf="$ac_prog"
4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4670 done
4671 done
4672 IFS=$as_save_IFS
4676 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4677 if test -n "$aros_host_autoconf"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4679 $as_echo "$aros_host_autoconf" >&6; }
4680 else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4686 test -n "$aros_host_autoconf" && break
4687 done
4689 for ac_prog in autoheader autoheader259 autoheader253
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy $ac_prog; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$aros_host_autoheader"; then
4699 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_aros_host_autoheader="$ac_prog"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4712 done
4713 done
4714 IFS=$as_save_IFS
4718 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4719 if test -n "$aros_host_autoheader"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4721 $as_echo "$aros_host_autoheader" >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4728 test -n "$aros_host_autoheader" && break
4729 done
4731 for ac_prog in automake automake19 automake-1.9
4733 # Extract the first word of "$ac_prog", so it can be a program name with args.
4734 set dummy $ac_prog; ac_word=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if ${ac_cv_prog_aros_host_automake+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 if test -n "$aros_host_automake"; then
4741 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4750 ac_cv_prog_aros_host_automake="$ac_prog"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4754 done
4755 done
4756 IFS=$as_save_IFS
4760 aros_host_automake=$ac_cv_prog_aros_host_automake
4761 if test -n "$aros_host_automake"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4763 $as_echo "$aros_host_automake" >&6; }
4764 else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4770 test -n "$aros_host_automake" && break
4771 done
4774 req_avail=yes
4775 if test "$aros_host_aclocal" = ""; then
4776 req_avail=no
4778 if test "$aros_host_aclocal" = "no"; then
4779 req_avail=no
4781 if test "$req_avail" = "no"; then
4782 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4784 req_avail=yes
4785 if test "$aros_host_automake" = ""; then
4786 req_avail=no
4788 if test "$aros_host_automake" = "no"; then
4789 req_avail=no
4791 if test "$req_avail" = "no"; then
4792 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4795 case "$aros_host_cc" in
4796 *clang*)
4797 aros_host_cc_pipe=""
4799 *gcc*)
4800 aros_host_cc_pipe="-pipe"
4802 icc)
4803 aros_host_cc_pipe=""
4806 aros_host_cc_pipe=""
4808 esac
4810 aros_kernel_cc_includes=""
4811 aros_target_cc_includes=""
4812 host_cc_elf=yes
4814 # ----------------------------------------------------------------------------------------
4815 # Host-specific defaults
4817 # This is the main host configuration section. It is where the host
4818 # can change the values of any variables it needs to change. We do
4819 # not look at anything that compiles to the target yet, we'll get
4820 # to that later.
4822 case "$host_os" in
4823 aros*)
4824 aros_host_arch="aros"
4825 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4826 case "$host_cpu" in
4827 *i?86*)
4828 aros_host_cpu="i386"
4830 *x86_64*)
4831 aros_host_cpu="x86_64"
4833 *powerpc*)
4834 aros_host_cpu="ppc"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4838 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4839 aros_host_cpu="$host_cpu"
4841 esac
4844 linux*)
4845 aros_host_arch="linux"
4846 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4847 android_build_os="linux-x86"
4848 android_tool="android"
4849 default_android_sdk="/opt/android-sdk-linux_x86"
4850 case "$host_cpu" in
4851 *i?86*)
4852 aros_host_cpu="i386"
4854 *x86_64*)
4855 aros_host_cpu="x86_64"
4857 *m68k*)
4858 aros_host_cpu="m68k"
4860 *powerpc*)
4861 aros_host_cpu="ppc"
4863 *arm*)
4864 aros_host_cpu="arm"
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4868 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4869 aros_host_cpu="$host_cpu"
4871 esac
4874 freebsd*)
4875 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4876 aros_host_make="gmake"
4877 aros_host_arch="freebsd"
4878 aros_host_cpu="i386"
4880 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4882 case $host_os in
4883 freebsd[234]*)
4884 aros_object_format="elf_i386"
4888 aros_object_format="elf_i386_fbsd"
4890 esac
4894 darwin*)
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4896 $as_echo_n "checking for macOS SDK files... " >&6; }
4897 LOC=$( xcode-select -p )
4898 if test $? != 0; then :
4899 as_fn_error $? "XCode incorrectly configured!
4900 please run 'xcode-select --install' before
4901 re-running configure" "$LINENO" 5
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4904 $as_echo "$LOC" >&6; }
4905 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4906 aros_host_arch="darwin"
4907 host_cc_elf=no
4908 if [ -z ${SED+x} ]; then SED="gsed"; fi
4909 android_build_os="darwin-x86"
4910 android_tool="android"
4911 default_android_sdk="/android-sdk-mac_x86"
4912 case "$host_cpu" in
4913 *i?86*)
4914 aros_host_cpu="i386"
4916 *x86_64*)
4917 aros_host_cpu="x86_64"
4919 *powerpc*)
4920 aros_host_cpu="ppc"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4924 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4925 aros_host_cpu="$host_cpu"
4927 esac
4929 aros_host_ldflags="$aros_host_ldflags -liconv"
4933 dragonfly*)
4934 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4935 aros_host_make="gmake"
4936 aros_host_arch="dragonfly"
4937 case $host_cpu in
4938 *i?86*)
4939 aros_host_cpu="i386"
4941 *amd64*)
4942 aros_host_cpu="x86_64"
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4946 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4947 aros_host_cpu="$host_cpu"
4949 esac
4952 netbsd*)
4953 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4954 aros_host_make="gmake"
4955 aros_host_arch="netbsd"
4956 case "$host_cpu" in
4957 *i?86*)
4958 aros_host_cpu="i386"
4960 *m68k*)
4961 aros_host_cpu="m68k"
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4965 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4966 aros_host_cpu="$host_cpu"
4968 esac
4969 aros_host_lib_suffix=".0.0"
4972 openbsd*)
4973 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4974 aros_host_make="gmake"
4975 aros_host_arch="openbsd"
4976 case "$host_cpu" in
4977 *i?86*)
4978 aros_host_cpu="i386"
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4982 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4983 aros_host_cpu="$host_cpu"
4985 esac
4988 solaris*)
4989 aros_host_arch="solaris"
4990 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4991 case "$host_cpu" in
4992 *i?86*)
4993 aros_host_cpu="i386"
4995 *sparc*)
4996 aros_host_cpu="sparc"
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5000 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5001 aros_host_cpu="$host_cpu"
5003 esac
5006 morphos*)
5007 aros_host_arch="morphos"
5008 aros_host_cpu="ppc"
5009 host_cc_elf=no
5012 amiga*)
5013 aros_host_arch="amiga"
5014 host_cc_elf=no
5015 SORT="/gg/bin/sort"
5016 TEST="/gg/bin/test"
5017 UNIQ="/gg/bin/uniq"
5018 FOR="for"
5019 TOUCH="/gg/bin/touch"
5020 case "$host_cpu" in
5021 *m68k*)
5022 aros_host_cpu="m68k"
5024 *powerpc*)
5025 aros_host_cpu="ppc"
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5029 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5030 aros_host_cpu="$host_cpu"
5032 esac
5035 cygwin*)
5036 aros_host_arch="cygwin"
5037 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5038 host_cc_elf=no
5039 android_build_os="windows"
5040 android_tool="android.bat"
5041 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
5043 case "$host_cpu" in
5044 *i?86*)
5045 aros_host_cpu="i386"
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5049 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5050 aros_host_cpu="$host_cpu"
5052 esac
5055 mingw32*)
5056 aros_host_arch="mingw32"
5057 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5058 host_cc_elf=no
5059 android_build_os="windows"
5060 android_tool="android.bat"
5061 default_android_sdk="/c/android-sdk-windows-1.6_r1"
5063 libpng_libextra="-lws2_32"
5065 case "$host_cpu" in
5066 *i?86*)
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
5069 $as_echo_n "checking for Windows native gcc target... " >&6; }
5070 host_cpu=`gcc -dumpmachine`
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
5072 $as_echo "$host_cpu" >&6; }
5075 esac
5077 case "$host_cpu" in
5078 *i?86*)
5079 aros_host_cpu="i386"
5082 mingw32*)
5083 aros_host_cpu="i386"
5086 *x86_64*)
5087 aros_host_cpu="x86_64"
5088 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5093 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5094 aros_host_cpu="$host_cpu"
5096 esac
5099 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
5101 esac
5103 base_ar_name=${HOST_TOOLCHAIN_PREFIX}ar${HOST_TOOLCHAIN_SUFFIX}
5104 # Extract the first word of "$base_ar_name", so it can be a program name with args.
5105 set dummy $base_ar_name; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_aros_host_cmd_ar+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$aros_host_cmd_ar"; then
5112 ac_cv_prog_aros_host_cmd_ar="$aros_host_cmd_ar" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_aros_host_cmd_ar="$base_ar_name cr"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5131 aros_host_cmd_ar=$ac_cv_prog_aros_host_cmd_ar
5132 if test -n "$aros_host_cmd_ar"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_cmd_ar" >&5
5134 $as_echo "$aros_host_cmd_ar" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 # Extract the first word of "$aros_host_cmd_ar", so it can be a program name with args.
5142 set dummy $aros_host_cmd_ar; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if ${ac_cv_path_aros_host_full_ar+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 case $aros_host_full_ar in
5149 [\\/]* | ?:[\\/]*)
5150 ac_cv_path_aros_host_full_ar="$aros_host_full_ar" # Let the user override the test with a path.
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_path_aros_host_full_ar="$as_dir/$ac_word$ac_exec_ext"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5164 done
5165 done
5166 IFS=$as_save_IFS
5168 test -z "$ac_cv_path_aros_host_full_ar" && ac_cv_path_aros_host_full_ar="$aros_host_cmd_ar "
5170 esac
5172 aros_host_full_ar=$ac_cv_path_aros_host_full_ar
5173 if test -n "$aros_host_full_ar"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_full_ar" >&5
5175 $as_echo "$aros_host_full_ar" >&6; }
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5182 aros_host_ar=`echo $aros_host_cmd_ar | sed -e "s|$base_ar_name|$aros_host_full_ar|g"`
5183 req_avail=yes
5184 if test "$aros_host_ar" = ""; then
5185 req_avail=no
5187 if test "$aros_host_ar" = "no"; then
5188 req_avail=no
5190 if test "$req_avail" = "no"; then
5191 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5193 base_ranlib_name=${HOST_TOOLCHAIN_PREFIX}ranlib${HOST_TOOLCHAIN_SUFFIX}
5194 # Extract the first word of "$base_ranlib_name", so it can be a program name with args.
5195 set dummy $base_ranlib_name; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_path_aros_host_ranlib+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 case $aros_host_ranlib in
5202 [\\/]* | ?:[\\/]*)
5203 ac_cv_path_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test with a path.
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213 ac_cv_path_aros_host_ranlib="$as_dir/$ac_word$ac_exec_ext"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5217 done
5218 done
5219 IFS=$as_save_IFS
5221 test -z "$ac_cv_path_aros_host_ranlib" && ac_cv_path_aros_host_ranlib="$base_ranlib_name "
5223 esac
5225 aros_host_ranlib=$ac_cv_path_aros_host_ranlib
5226 if test -n "$aros_host_ranlib"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5228 $as_echo "$aros_host_ranlib" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5235 req_avail=yes
5236 if test "$aros_host_ranlib" = ""; then
5237 req_avail=no
5239 if test "$aros_host_ranlib" = "no"; then
5240 req_avail=no
5242 if test "$req_avail" = "no"; then
5243 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5245 # Extract the first word of "strip", so it can be a program name with args.
5246 set dummy strip; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_aros_host_strip+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$aros_host_strip"; then
5253 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_aros_host_strip="strip "
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5272 aros_host_strip=$ac_cv_prog_aros_host_strip
5273 if test -n "$aros_host_strip"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5275 $as_echo "$aros_host_strip" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5282 req_avail=yes
5283 if test "$aros_host_strip" = ""; then
5284 req_avail=no
5286 if test "$aros_host_strip" = "no"; then
5287 req_avail=no
5289 if test "$req_avail" = "no"; then
5290 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5293 # Extract the first word of "rm", so it can be a program name with args.
5294 set dummy rm; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if ${ac_cv_prog_RM+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -n "$RM"; then
5301 ac_cv_prog_RM="$RM" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_RM="rm -rf"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5314 done
5315 done
5316 IFS=$as_save_IFS
5320 RM=$ac_cv_prog_RM
5321 if test -n "$RM"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5323 $as_echo "$RM" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5330 req_avail=yes
5331 if test "$RM" = ""; then
5332 req_avail=no
5334 if test "$RM" = "no"; then
5335 req_avail=no
5337 if test "$req_avail" = "no"; then
5338 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5340 # Extract the first word of "cp", so it can be a program name with args.
5341 set dummy cp; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if ${ac_cv_prog_CP+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 if test -n "$CP"; then
5348 ac_cv_prog_CP="$CP" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_prog_CP="cp "
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5361 done
5362 done
5363 IFS=$as_save_IFS
5367 CP=$ac_cv_prog_CP
5368 if test -n "$CP"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5370 $as_echo "$CP" >&6; }
5371 else
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5377 req_avail=yes
5378 if test "$CP" = ""; then
5379 req_avail=no
5381 if test "$CP" = "no"; then
5382 req_avail=no
5384 if test "$req_avail" = "no"; then
5385 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5387 # Extract the first word of "mv", so it can be a program name with args.
5388 set dummy mv; ac_word=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if ${ac_cv_prog_MV+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if test -n "$MV"; then
5395 ac_cv_prog_MV="$MV" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_MV="mv "
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5408 done
5409 done
5410 IFS=$as_save_IFS
5414 MV=$ac_cv_prog_MV
5415 if test -n "$MV"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5417 $as_echo "$MV" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5424 req_avail=yes
5425 if test "$MV" = ""; then
5426 req_avail=no
5428 if test "$MV" = "no"; then
5429 req_avail=no
5431 if test "$req_avail" = "no"; then
5432 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5434 # Extract the first word of "echo", so it can be a program name with args.
5435 set dummy echo; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if ${ac_cv_prog_ECHO+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 if test -n "$ECHO"; then
5442 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_ECHO="echo "
5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5455 done
5456 done
5457 IFS=$as_save_IFS
5461 ECHO=$ac_cv_prog_ECHO
5462 if test -n "$ECHO"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5464 $as_echo "$ECHO" >&6; }
5465 else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5471 req_avail=yes
5472 if test "$ECHO" = ""; then
5473 req_avail=no
5475 if test "$ECHO" = "no"; then
5476 req_avail=no
5478 if test "$req_avail" = "no"; then
5479 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5481 # Extract the first word of "mkdir", so it can be a program name with args.
5482 set dummy mkdir; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_MKDIR+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -n "$MKDIR"; then
5489 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5498 ac_cv_prog_MKDIR="mkdir -p"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5502 done
5503 done
5504 IFS=$as_save_IFS
5508 MKDIR=$ac_cv_prog_MKDIR
5509 if test -n "$MKDIR"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5511 $as_echo "$MKDIR" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5518 req_avail=yes
5519 if test "$MKDIR" = ""; then
5520 req_avail=no
5522 if test "$MKDIR" = "no"; then
5523 req_avail=no
5525 if test "$req_avail" = "no"; then
5526 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5528 # Extract the first word of "touch", so it can be a program name with args.
5529 set dummy touch; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_prog_TOUCH+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -n "$TOUCH"; then
5536 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_prog_TOUCH="touch "
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5549 done
5550 done
5551 IFS=$as_save_IFS
5555 TOUCH=$ac_cv_prog_TOUCH
5556 if test -n "$TOUCH"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5558 $as_echo "$TOUCH" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5565 req_avail=yes
5566 if test "$TOUCH" = ""; then
5567 req_avail=no
5569 if test "$TOUCH" = "no"; then
5570 req_avail=no
5572 if test "$req_avail" = "no"; then
5573 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5575 # Extract the first word of "sort", so it can be a program name with args.
5576 set dummy sort; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_SORT+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -n "$SORT"; then
5583 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_SORT="sort "
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5596 done
5597 done
5598 IFS=$as_save_IFS
5602 SORT=$ac_cv_prog_SORT
5603 if test -n "$SORT"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5605 $as_echo "$SORT" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5612 req_avail=yes
5613 if test "$SORT" = ""; then
5614 req_avail=no
5616 if test "$SORT" = "no"; then
5617 req_avail=no
5619 if test "$req_avail" = "no"; then
5620 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5622 # Extract the first word of "uniq", so it can be a program name with args.
5623 set dummy uniq; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_prog_UNIQ+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 if test -n "$UNIQ"; then
5630 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_UNIQ="uniq "
5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 break 2
5643 done
5644 done
5645 IFS=$as_save_IFS
5649 UNIQ=$ac_cv_prog_UNIQ
5650 if test -n "$UNIQ"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5652 $as_echo "$UNIQ" >&6; }
5653 else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5659 req_avail=yes
5660 if test "$UNIQ" = ""; then
5661 req_avail=no
5663 if test "$UNIQ" = "no"; then
5664 req_avail=no
5666 if test "$req_avail" = "no"; then
5667 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5669 # Extract the first word of "true", so it can be a program name with args.
5670 set dummy true; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_prog_NOP+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 if test -n "$NOP"; then
5677 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5678 else
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_NOP="true "
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5690 done
5691 done
5692 IFS=$as_save_IFS
5696 NOP=$ac_cv_prog_NOP
5697 if test -n "$NOP"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5699 $as_echo "$NOP" >&6; }
5700 else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5706 req_avail=yes
5707 if test "$NOP" = ""; then
5708 req_avail=no
5710 if test "$NOP" = "no"; then
5711 req_avail=no
5713 if test "$req_avail" = "no"; then
5714 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5716 # Extract the first word of "cat", so it can be a program name with args.
5717 set dummy cat; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_CAT+:} false; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 if test -n "$CAT"; then
5724 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733 ac_cv_prog_CAT="cat "
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5737 done
5738 done
5739 IFS=$as_save_IFS
5743 CAT=$ac_cv_prog_CAT
5744 if test -n "$CAT"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5746 $as_echo "$CAT" >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5753 req_avail=yes
5754 if test "$CAT" = ""; then
5755 req_avail=no
5757 if test "$CAT" = "no"; then
5758 req_avail=no
5760 if test "$req_avail" = "no"; then
5761 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5763 # Extract the first word of "bison", so it can be a program name with args.
5764 set dummy bison; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_prog_BISON+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 if test -n "$BISON"; then
5771 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5772 else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780 ac_cv_prog_BISON="bison "
5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5784 done
5785 done
5786 IFS=$as_save_IFS
5790 BISON=$ac_cv_prog_BISON
5791 if test -n "$BISON"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5793 $as_echo "$BISON" >&6; }
5794 else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5800 req_avail=yes
5801 if test "$BISON" = ""; then
5802 req_avail=no
5804 if test "$BISON" = "no"; then
5805 req_avail=no
5807 if test "$req_avail" = "no"; then
5808 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5810 # Extract the first word of "flex", so it can be a program name with args.
5811 set dummy flex; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if ${ac_cv_prog_FLEX+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 if test -n "$FLEX"; then
5818 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827 ac_cv_prog_FLEX="flex "
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5831 done
5832 done
5833 IFS=$as_save_IFS
5837 FLEX=$ac_cv_prog_FLEX
5838 if test -n "$FLEX"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5840 $as_echo "$FLEX" >&6; }
5841 else
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5847 req_avail=yes
5848 if test "$FLEX" = ""; then
5849 req_avail=no
5851 if test "$FLEX" = "no"; then
5852 req_avail=no
5854 if test "$req_avail" = "no"; then
5855 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
5858 $as_echo_n "checking version of $FLEX... " >&6; }
5859 ax_cv_flex_version="`$FLEX --version | cut -d\" \" -f2`"
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
5861 $as_echo "$ax_cv_flex_version" >&6; }
5862 # Extract the first word of "pngtopnm", so it can be a program name with args.
5863 set dummy pngtopnm; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if test -n "$PNGTOPNM"; then
5870 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879 ac_cv_prog_PNGTOPNM="pngtopnm "
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5883 done
5884 done
5885 IFS=$as_save_IFS
5889 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5890 if test -n "$PNGTOPNM"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5892 $as_echo "$PNGTOPNM" >&6; }
5893 else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5899 req_avail=yes
5900 if test "$PNGTOPNM" = ""; then
5901 req_avail=no
5903 if test "$PNGTOPNM" = "no"; then
5904 req_avail=no
5906 if test "$req_avail" = "no"; then
5907 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5909 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5910 set dummy ppmtoilbm; ac_word=$2
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912 $as_echo_n "checking for $ac_word... " >&6; }
5913 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 if test -n "$PPMTOILBM"; then
5917 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5918 else
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 break 2
5930 done
5931 done
5932 IFS=$as_save_IFS
5936 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5937 if test -n "$PPMTOILBM"; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5939 $as_echo "$PPMTOILBM" >&6; }
5940 else
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5946 req_avail=yes
5947 if test "$PPMTOILBM" = ""; then
5948 req_avail=no
5950 if test "$PPMTOILBM" = "no"; then
5951 req_avail=no
5953 if test "$req_avail" = "no"; then
5954 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5956 # Extract the first word of "sed", so it can be a program name with args.
5957 set dummy sed; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if ${ac_cv_prog_SED+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -n "$SED"; then
5964 ac_cv_prog_SED="$SED" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973 ac_cv_prog_SED="sed "
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5977 done
5978 done
5979 IFS=$as_save_IFS
5983 SED=$ac_cv_prog_SED
5984 if test -n "$SED"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5986 $as_echo "$SED" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5993 req_avail=yes
5994 if test "$SED" = ""; then
5995 req_avail=no
5997 if test "$SED" = "no"; then
5998 req_avail=no
6000 if test "$req_avail" = "no"; then
6001 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
6003 # Extract the first word of "chmod", so it can be a program name with args.
6004 set dummy chmod; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if ${ac_cv_prog_CHMOD+:} false; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if test -n "$CHMOD"; then
6011 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020 ac_cv_prog_CHMOD="chmod "
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6024 done
6025 done
6026 IFS=$as_save_IFS
6030 CHMOD=$ac_cv_prog_CHMOD
6031 if test -n "$CHMOD"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6033 $as_echo "$CHMOD" >&6; }
6034 else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6040 req_avail=yes
6041 if test "$CHMOD" = ""; then
6042 req_avail=no
6044 if test "$CHMOD" = "no"; then
6045 req_avail=no
6047 if test "$req_avail" = "no"; then
6048 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
6050 # Extract the first word of "patch", so it can be a program name with args.
6051 set dummy patch; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if ${ac_cv_prog_PATCH+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 if test -n "$PATCH"; then
6058 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_PATCH="patch "
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6071 done
6072 done
6073 IFS=$as_save_IFS
6077 PATCH=$ac_cv_prog_PATCH
6078 if test -n "$PATCH"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
6080 $as_echo "$PATCH" >&6; }
6081 else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6087 req_avail=yes
6088 if test "$PATCH" = ""; then
6089 req_avail=no
6091 if test "$PATCH" = "no"; then
6092 req_avail=no
6094 if test "$req_avail" = "no"; then
6095 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
6104 if test -n "$PYTHON"; then
6105 # If the user set $PYTHON, use it and don't search something else.
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
6107 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
6108 prog="import sys
6109 # split strings by '.' and convert to numeric. Append some zeros
6110 # because we need at least 4 digits for the hex conversion.
6111 # map returns an iterator in Python 3.0 and a list in 2.x
6112 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6113 minverhex = 0
6114 # xrange is not present in Python 3.0 and range returns an iterator
6115 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6116 sys.exit(sys.hexversion < minverhex)"
6117 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
6118 ($PYTHON -c "$prog") >&5 2>&5
6119 ac_status=$?
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; then :
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6123 $as_echo "yes" >&6; }
6124 else
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126 $as_echo "no" >&6; }
6127 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
6129 am_display_PYTHON=$PYTHON
6130 else
6131 # Otherwise, try each interpreter until we find one that satisfies
6132 # VERSION.
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
6134 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
6135 if ${am_cv_pathless_PYTHON+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6139 for am_cv_pathless_PYTHON in python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 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
6140 test "$am_cv_pathless_PYTHON" = none && break
6141 prog="import sys
6142 # split strings by '.' and convert to numeric. Append some zeros
6143 # because we need at least 4 digits for the hex conversion.
6144 # map returns an iterator in Python 3.0 and a list in 2.x
6145 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6146 minverhex = 0
6147 # xrange is not present in Python 3.0 and range returns an iterator
6148 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6149 sys.exit(sys.hexversion < minverhex)"
6150 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
6151 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; then :
6155 break
6157 done
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
6160 $as_echo "$am_cv_pathless_PYTHON" >&6; }
6161 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
6162 if test "$am_cv_pathless_PYTHON" = none; then
6163 PYTHON=:
6164 else
6165 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
6166 set dummy $am_cv_pathless_PYTHON; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_path_PYTHON+:} false; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 case $PYTHON in
6173 [\\/]* | ?:[\\/]*)
6174 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6184 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6188 done
6189 done
6190 IFS=$as_save_IFS
6193 esac
6195 PYTHON=$ac_cv_path_PYTHON
6196 if test -n "$PYTHON"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6198 $as_echo "$PYTHON" >&6; }
6199 else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6206 am_display_PYTHON=$am_cv_pathless_PYTHON
6210 if test "$PYTHON" = :; then
6211 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
6212 else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
6216 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
6217 if ${am_cv_python_version+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
6223 $as_echo "$am_cv_python_version" >&6; }
6224 PYTHON_VERSION=$am_cv_python_version
6228 PYTHON_PREFIX='${prefix}'
6230 PYTHON_EXEC_PREFIX='${exec_prefix}'
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6235 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
6236 if ${am_cv_python_platform+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6242 $as_echo "$am_cv_python_platform" >&6; }
6243 PYTHON_PLATFORM=$am_cv_python_platform
6246 # Just factor out some code duplication.
6247 am_python_setup_sysconfig="\
6248 import sys
6249 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6250 # with python 3.x. See automake bug#10227.
6251 try:
6252 import sysconfig
6253 except ImportError:
6254 can_use_sysconfig = 0
6255 else:
6256 can_use_sysconfig = 1
6257 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6258 # <https://github.com/pypa/virtualenv/issues/118>
6259 try:
6260 from platform import python_implementation
6261 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6262 can_use_sysconfig = 0
6263 except ImportError:
6264 pass"
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6268 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6269 if ${am_cv_python_pythondir+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 if test "x$prefix" = xNONE
6273 then
6274 am_py_prefix=$ac_default_prefix
6275 else
6276 am_py_prefix=$prefix
6278 am_cv_python_pythondir=`$PYTHON -c "
6279 $am_python_setup_sysconfig
6280 if can_use_sysconfig:
6281 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6282 else:
6283 from distutils import sysconfig
6284 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6285 sys.stdout.write(sitedir)"`
6286 case $am_cv_python_pythondir in
6287 $am_py_prefix*)
6288 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6289 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6292 case $am_py_prefix in
6293 /usr|/System*) ;;
6295 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6297 esac
6299 esac
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6303 $as_echo "$am_cv_python_pythondir" >&6; }
6304 pythondir=$am_cv_python_pythondir
6308 pkgpythondir=\${pythondir}/$PACKAGE
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6312 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6313 if ${am_cv_python_pyexecdir+:} false; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 if test "x$exec_prefix" = xNONE
6317 then
6318 am_py_exec_prefix=$am_py_prefix
6319 else
6320 am_py_exec_prefix=$exec_prefix
6322 am_cv_python_pyexecdir=`$PYTHON -c "
6323 $am_python_setup_sysconfig
6324 if can_use_sysconfig:
6325 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6326 else:
6327 from distutils import sysconfig
6328 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6329 sys.stdout.write(sitedir)"`
6330 case $am_cv_python_pyexecdir in
6331 $am_py_exec_prefix*)
6332 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6333 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6336 case $am_py_exec_prefix in
6337 /usr|/System*) ;;
6339 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6341 esac
6343 esac
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6347 $as_echo "$am_cv_python_pyexecdir" >&6; }
6348 pyexecdir=$am_cv_python_pyexecdir
6352 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6360 # Check whether --enable-libpng-config was given.
6361 if test "${enable_libpng_config+set}" = set; then :
6362 enableval=$enable_libpng_config;
6365 if test "$enable_libpng_config" != "no"; then
6366 # Extract the first word of "libpng-config", so it can be a program name with args.
6367 set dummy libpng-config; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 if test -n "$arosconfig_use_libpngconfig"; then
6374 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6383 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6387 done
6388 done
6389 IFS=$as_save_IFS
6391 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6394 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6395 if test -n "$arosconfig_use_libpngconfig"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6397 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6398 else
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 $as_echo "no" >&6; }
6405 if test "$arosconfig_use_libpngconfig" = "yes"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6407 $as_echo_n "checking libpng-config library... " >&6; }
6408 libpng_incdir="`libpng-config --cflags`"
6409 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6410 libpng="`libpng-config --libs`"
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6412 $as_echo "$libpng" >&6; }
6413 else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6416 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6417 if ${ac_cv_lib_png_png_read_png+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 ac_check_lib_save_LIBS=$LIBS
6421 LIBS="-lpng $LIBS"
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6425 /* Override any GCC internal prototype to avoid an error.
6426 Use char because int might match the return type of a GCC
6427 builtin and then its argument prototype would still apply. */
6428 #ifdef __cplusplus
6429 extern "C"
6430 #endif
6431 char png_read_png ();
6433 main ()
6435 return png_read_png ();
6437 return 0;
6439 _ACEOF
6440 if ac_fn_c_try_link "$LINENO"; then :
6441 ac_cv_lib_png_png_read_png=yes
6442 else
6443 ac_cv_lib_png_png_read_png=no
6445 rm -f core conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext
6447 LIBS=$ac_check_lib_save_LIBS
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6450 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6451 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6452 libpng="-lpng"
6453 else
6454 libpng="no"
6457 if test "$libpng_libextra" != ""; then
6458 if test "$libpng" != "no"; then
6459 libpng_libextra="$libpng_libextra $libpng"
6463 req_avail=yes
6464 if test "$libpng" = ""; then
6465 req_avail=no
6467 if test "$libpng" = "no"; then
6468 req_avail=no
6470 if test "$req_avail" = "no"; then
6471 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6477 FOR=for
6479 IF=if
6481 TEST=test
6483 CMP=cmp
6487 # Check for some includes for the X11 HIDD and the kernel
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6490 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6491 if ${ac_cv_path_GREP+:} false; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 if test -z "$GREP"; then
6495 ac_path_GREP_found=false
6496 # Loop through the user's path and test for each of PROGNAME-LIST
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_prog in grep ggrep; do
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6505 as_fn_executable_p "$ac_path_GREP" || continue
6506 # Check for GNU ac_path_GREP and select it if it is found.
6507 # Check for GNU $ac_path_GREP
6508 case `"$ac_path_GREP" --version 2>&1` in
6509 *GNU*)
6510 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6512 ac_count=0
6513 $as_echo_n 0123456789 >"conftest.in"
6514 while :
6516 cat "conftest.in" "conftest.in" >"conftest.tmp"
6517 mv "conftest.tmp" "conftest.in"
6518 cp "conftest.in" "conftest.nl"
6519 $as_echo 'GREP' >> "conftest.nl"
6520 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6522 as_fn_arith $ac_count + 1 && ac_count=$as_val
6523 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6524 # Best one so far, save it but keep looking for a better one
6525 ac_cv_path_GREP="$ac_path_GREP"
6526 ac_path_GREP_max=$ac_count
6528 # 10*(2^10) chars as input seems more than enough
6529 test $ac_count -gt 10 && break
6530 done
6531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6532 esac
6534 $ac_path_GREP_found && break 3
6535 done
6536 done
6537 done
6538 IFS=$as_save_IFS
6539 if test -z "$ac_cv_path_GREP"; then
6540 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6542 else
6543 ac_cv_path_GREP=$GREP
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6548 $as_echo "$ac_cv_path_GREP" >&6; }
6549 GREP="$ac_cv_path_GREP"
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6553 $as_echo_n "checking for egrep... " >&6; }
6554 if ${ac_cv_path_EGREP+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6558 then ac_cv_path_EGREP="$GREP -E"
6559 else
6560 if test -z "$EGREP"; then
6561 ac_path_EGREP_found=false
6562 # Loop through the user's path and test for each of PROGNAME-LIST
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_prog in egrep; do
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6571 as_fn_executable_p "$ac_path_EGREP" || continue
6572 # Check for GNU ac_path_EGREP and select it if it is found.
6573 # Check for GNU $ac_path_EGREP
6574 case `"$ac_path_EGREP" --version 2>&1` in
6575 *GNU*)
6576 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6578 ac_count=0
6579 $as_echo_n 0123456789 >"conftest.in"
6580 while :
6582 cat "conftest.in" "conftest.in" >"conftest.tmp"
6583 mv "conftest.tmp" "conftest.in"
6584 cp "conftest.in" "conftest.nl"
6585 $as_echo 'EGREP' >> "conftest.nl"
6586 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6588 as_fn_arith $ac_count + 1 && ac_count=$as_val
6589 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6590 # Best one so far, save it but keep looking for a better one
6591 ac_cv_path_EGREP="$ac_path_EGREP"
6592 ac_path_EGREP_max=$ac_count
6594 # 10*(2^10) chars as input seems more than enough
6595 test $ac_count -gt 10 && break
6596 done
6597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6598 esac
6600 $ac_path_EGREP_found && break 3
6601 done
6602 done
6603 done
6604 IFS=$as_save_IFS
6605 if test -z "$ac_cv_path_EGREP"; then
6606 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6608 else
6609 ac_cv_path_EGREP=$EGREP
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6615 $as_echo "$ac_cv_path_EGREP" >&6; }
6616 EGREP="$ac_cv_path_EGREP"
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6620 $as_echo_n "checking for ANSI C header files... " >&6; }
6621 if ${ac_cv_header_stdc+:} false; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626 #include <stdlib.h>
6627 #include <stdarg.h>
6628 #include <string.h>
6629 #include <float.h>
6632 main ()
6636 return 0;
6638 _ACEOF
6639 if ac_fn_c_try_compile "$LINENO"; then :
6640 ac_cv_header_stdc=yes
6641 else
6642 ac_cv_header_stdc=no
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 if test $ac_cv_header_stdc = yes; then
6647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650 #include <string.h>
6652 _ACEOF
6653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6654 $EGREP "memchr" >/dev/null 2>&1; then :
6656 else
6657 ac_cv_header_stdc=no
6659 rm -f conftest*
6663 if test $ac_cv_header_stdc = yes; then
6664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6667 #include <stdlib.h>
6669 _ACEOF
6670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6671 $EGREP "free" >/dev/null 2>&1; then :
6673 else
6674 ac_cv_header_stdc=no
6676 rm -f conftest*
6680 if test $ac_cv_header_stdc = yes; then
6681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6682 if test "$cross_compiling" = yes; then :
6684 else
6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h. */
6687 #include <ctype.h>
6688 #include <stdlib.h>
6689 #if ((' ' & 0x0FF) == 0x020)
6690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6692 #else
6693 # define ISLOWER(c) \
6694 (('a' <= (c) && (c) <= 'i') \
6695 || ('j' <= (c) && (c) <= 'r') \
6696 || ('s' <= (c) && (c) <= 'z'))
6697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6698 #endif
6700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6702 main ()
6704 int i;
6705 for (i = 0; i < 256; i++)
6706 if (XOR (islower (i), ISLOWER (i))
6707 || toupper (i) != TOUPPER (i))
6708 return 2;
6709 return 0;
6711 _ACEOF
6712 if ac_fn_c_try_run "$LINENO"; then :
6714 else
6715 ac_cv_header_stdc=no
6717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6718 conftest.$ac_objext conftest.beam conftest.$ac_ext
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6724 $as_echo "$ac_cv_header_stdc" >&6; }
6725 if test $ac_cv_header_stdc = yes; then
6727 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6731 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6732 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6733 inttypes.h stdint.h unistd.h
6734 do :
6735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6736 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6738 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6739 cat >>confdefs.h <<_ACEOF
6740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6741 _ACEOF
6745 done
6748 for ac_header in sys/ipc.h sys/shm.h \
6749 sys/mmap.h sys/mman.h sysexits.h \
6750 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6752 do :
6753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6754 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6755 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6756 cat >>confdefs.h <<_ACEOF
6757 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6758 _ACEOF
6762 done
6765 for ac_header in sys/mount.h
6766 do :
6767 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6769 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6770 cat >>confdefs.h <<_ACEOF
6771 #define HAVE_SYS_MOUNT_H 1
6772 _ACEOF
6776 done
6778 for ac_header in GL/glx.h
6779 do :
6780 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
6781 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_GL_GLX_H 1
6784 _ACEOF
6785 host_feature_glx=yes
6786 else
6787 host_feature_glx=no
6790 done
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
6794 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6798 #define __unused __attribute__((unused))
6799 #include <sys/stat.h>
6802 main ()
6806 return 0;
6808 _ACEOF
6809 if ac_fn_c_try_compile "$LINENO"; then :
6810 host_stat_h__unused_used=no
6811 else
6812 host_stat_h__unused_used=yes
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
6816 $as_echo "$host_stat_h__unused_used" >&6; }
6818 ac_header_dirent=no
6819 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6820 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6822 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6823 if eval \${$as_ac_Header+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 #include <sys/types.h>
6829 #include <$ac_hdr>
6832 main ()
6834 if ((DIR *) 0)
6835 return 0;
6837 return 0;
6839 _ACEOF
6840 if ac_fn_c_try_compile "$LINENO"; then :
6841 eval "$as_ac_Header=yes"
6842 else
6843 eval "$as_ac_Header=no"
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 eval ac_res=\$$as_ac_Header
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6849 $as_echo "$ac_res" >&6; }
6850 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6851 cat >>confdefs.h <<_ACEOF
6852 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6853 _ACEOF
6855 ac_header_dirent=$ac_hdr; break
6858 done
6859 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6860 if test $ac_header_dirent = dirent.h; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6862 $as_echo_n "checking for library containing opendir... " >&6; }
6863 if ${ac_cv_search_opendir+:} false; then :
6864 $as_echo_n "(cached) " >&6
6865 else
6866 ac_func_search_save_LIBS=$LIBS
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6870 /* Override any GCC internal prototype to avoid an error.
6871 Use char because int might match the return type of a GCC
6872 builtin and then its argument prototype would still apply. */
6873 #ifdef __cplusplus
6874 extern "C"
6875 #endif
6876 char opendir ();
6878 main ()
6880 return opendir ();
6882 return 0;
6884 _ACEOF
6885 for ac_lib in '' dir; do
6886 if test -z "$ac_lib"; then
6887 ac_res="none required"
6888 else
6889 ac_res=-l$ac_lib
6890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6892 if ac_fn_c_try_link "$LINENO"; then :
6893 ac_cv_search_opendir=$ac_res
6895 rm -f core conftest.err conftest.$ac_objext \
6896 conftest$ac_exeext
6897 if ${ac_cv_search_opendir+:} false; then :
6898 break
6900 done
6901 if ${ac_cv_search_opendir+:} false; then :
6903 else
6904 ac_cv_search_opendir=no
6906 rm conftest.$ac_ext
6907 LIBS=$ac_func_search_save_LIBS
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6910 $as_echo "$ac_cv_search_opendir" >&6; }
6911 ac_res=$ac_cv_search_opendir
6912 if test "$ac_res" != no; then :
6913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6917 else
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6919 $as_echo_n "checking for library containing opendir... " >&6; }
6920 if ${ac_cv_search_opendir+:} false; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 ac_func_search_save_LIBS=$LIBS
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6927 /* Override any GCC internal prototype to avoid an error.
6928 Use char because int might match the return type of a GCC
6929 builtin and then its argument prototype would still apply. */
6930 #ifdef __cplusplus
6931 extern "C"
6932 #endif
6933 char opendir ();
6935 main ()
6937 return opendir ();
6939 return 0;
6941 _ACEOF
6942 for ac_lib in '' x; do
6943 if test -z "$ac_lib"; then
6944 ac_res="none required"
6945 else
6946 ac_res=-l$ac_lib
6947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6949 if ac_fn_c_try_link "$LINENO"; then :
6950 ac_cv_search_opendir=$ac_res
6952 rm -f core conftest.err conftest.$ac_objext \
6953 conftest$ac_exeext
6954 if ${ac_cv_search_opendir+:} false; then :
6955 break
6957 done
6958 if ${ac_cv_search_opendir+:} false; then :
6960 else
6961 ac_cv_search_opendir=no
6963 rm conftest.$ac_ext
6964 LIBS=$ac_func_search_save_LIBS
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6967 $as_echo "$ac_cv_search_opendir" >&6; }
6968 ac_res=$ac_cv_search_opendir
6969 if test "$ac_res" != no; then :
6970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6977 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6978 if ${ac_cv_header_stat_broken+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983 #include <sys/types.h>
6984 #include <sys/stat.h>
6986 #if defined S_ISBLK && defined S_IFDIR
6987 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6988 #endif
6990 #if defined S_ISBLK && defined S_IFCHR
6991 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6992 #endif
6994 #if defined S_ISLNK && defined S_IFREG
6995 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6996 #endif
6998 #if defined S_ISSOCK && defined S_IFREG
6999 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7000 #endif
7002 _ACEOF
7003 if ac_fn_c_try_compile "$LINENO"; then :
7004 ac_cv_header_stat_broken=no
7005 else
7006 ac_cv_header_stat_broken=yes
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
7011 $as_echo "$ac_cv_header_stat_broken" >&6; }
7012 if test $ac_cv_header_stat_broken = yes; then
7014 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7019 $as_echo_n "checking for ANSI C header files... " >&6; }
7020 if ${ac_cv_header_stdc+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 #include <stdlib.h>
7026 #include <stdarg.h>
7027 #include <string.h>
7028 #include <float.h>
7031 main ()
7035 return 0;
7037 _ACEOF
7038 if ac_fn_c_try_compile "$LINENO"; then :
7039 ac_cv_header_stdc=yes
7040 else
7041 ac_cv_header_stdc=no
7043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045 if test $ac_cv_header_stdc = yes; then
7046 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049 #include <string.h>
7051 _ACEOF
7052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7053 $EGREP "memchr" >/dev/null 2>&1; then :
7055 else
7056 ac_cv_header_stdc=no
7058 rm -f conftest*
7062 if test $ac_cv_header_stdc = yes; then
7063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 #include <stdlib.h>
7068 _ACEOF
7069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7070 $EGREP "free" >/dev/null 2>&1; then :
7072 else
7073 ac_cv_header_stdc=no
7075 rm -f conftest*
7079 if test $ac_cv_header_stdc = yes; then
7080 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7081 if test "$cross_compiling" = yes; then :
7083 else
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7086 #include <ctype.h>
7087 #include <stdlib.h>
7088 #if ((' ' & 0x0FF) == 0x020)
7089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7091 #else
7092 # define ISLOWER(c) \
7093 (('a' <= (c) && (c) <= 'i') \
7094 || ('j' <= (c) && (c) <= 'r') \
7095 || ('s' <= (c) && (c) <= 'z'))
7096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7097 #endif
7099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7101 main ()
7103 int i;
7104 for (i = 0; i < 256; i++)
7105 if (XOR (islower (i), ISLOWER (i))
7106 || toupper (i) != TOUPPER (i))
7107 return 2;
7108 return 0;
7110 _ACEOF
7111 if ac_fn_c_try_run "$LINENO"; then :
7113 else
7114 ac_cv_header_stdc=no
7116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7117 conftest.$ac_objext conftest.beam conftest.$ac_ext
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7123 $as_echo "$ac_cv_header_stdc" >&6; }
7124 if test $ac_cv_header_stdc = yes; then
7126 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7131 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7132 if ${ac_cv_header_sys_wait_h+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7137 #include <sys/types.h>
7138 #include <sys/wait.h>
7139 #ifndef WEXITSTATUS
7140 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7141 #endif
7142 #ifndef WIFEXITED
7143 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7144 #endif
7147 main ()
7149 int s;
7150 wait (&s);
7151 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7153 return 0;
7155 _ACEOF
7156 if ac_fn_c_try_compile "$LINENO"; then :
7157 ac_cv_header_sys_wait_h=yes
7158 else
7159 ac_cv_header_sys_wait_h=no
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7164 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7165 if test $ac_cv_header_sys_wait_h = yes; then
7167 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7172 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7173 if ${ac_cv_header_time+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178 #include <sys/types.h>
7179 #include <sys/time.h>
7180 #include <time.h>
7183 main ()
7185 if ((struct tm *) 0)
7186 return 0;
7188 return 0;
7190 _ACEOF
7191 if ac_fn_c_try_compile "$LINENO"; then :
7192 ac_cv_header_time=yes
7193 else
7194 ac_cv_header_time=no
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7199 $as_echo "$ac_cv_header_time" >&6; }
7200 if test $ac_cv_header_time = yes; then
7202 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7206 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7207 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7209 cat >>confdefs.h <<_ACEOF
7210 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7211 _ACEOF
7214 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7219 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7220 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7222 cat >>confdefs.h <<_ACEOF
7223 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7224 _ACEOF
7227 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7229 else
7230 case " $LIBOBJS " in
7231 *" fileblocks.$ac_objext "* ) ;;
7232 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7234 esac
7239 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7240 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7242 cat >>confdefs.h <<_ACEOF
7243 #define HAVE_STRUCT_STAT_ST_RDEV 1
7244 _ACEOF
7247 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7253 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7254 if ${ac_cv_struct_tm+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 #include <sys/types.h>
7260 #include <time.h>
7263 main ()
7265 struct tm tm;
7266 int *p = &tm.tm_sec;
7267 return !p;
7269 return 0;
7271 _ACEOF
7272 if ac_fn_c_try_compile "$LINENO"; then :
7273 ac_cv_struct_tm=time.h
7274 else
7275 ac_cv_struct_tm=sys/time.h
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7280 $as_echo "$ac_cv_struct_tm" >&6; }
7281 if test $ac_cv_struct_tm = sys/time.h; then
7283 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7287 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7288 #include <$ac_cv_struct_tm>
7291 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7293 cat >>confdefs.h <<_ACEOF
7294 #define HAVE_STRUCT_TM_TM_ZONE 1
7295 _ACEOF
7300 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7302 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7304 else
7305 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7307 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7308 ac_have_decl=1
7309 else
7310 ac_have_decl=0
7313 cat >>confdefs.h <<_ACEOF
7314 #define HAVE_DECL_TZNAME $ac_have_decl
7315 _ACEOF
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7318 $as_echo_n "checking for tzname... " >&6; }
7319 if ${ac_cv_var_tzname+:} false; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324 #include <time.h>
7325 #if !HAVE_DECL_TZNAME
7326 extern char *tzname[];
7327 #endif
7330 main ()
7332 return tzname[0][0];
7334 return 0;
7336 _ACEOF
7337 if ac_fn_c_try_link "$LINENO"; then :
7338 ac_cv_var_tzname=yes
7339 else
7340 ac_cv_var_tzname=no
7342 rm -f core conftest.err conftest.$ac_objext \
7343 conftest$ac_exeext conftest.$ac_ext
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7346 $as_echo "$ac_cv_var_tzname" >&6; }
7347 if test $ac_cv_var_tzname = yes; then
7349 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7354 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7355 if test "x$ac_cv_type_off_t" = xyes; then :
7357 else
7359 cat >>confdefs.h <<_ACEOF
7360 #define off_t long int
7361 _ACEOF
7365 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7366 if test "x$ac_cv_type_pid_t" = xyes; then :
7368 else
7370 cat >>confdefs.h <<_ACEOF
7371 #define pid_t int
7372 _ACEOF
7376 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7377 if test "x$ac_cv_type_size_t" = xyes; then :
7379 else
7381 cat >>confdefs.h <<_ACEOF
7382 #define size_t unsigned int
7383 _ACEOF
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7388 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7389 if ${ac_cv_type_uid_t+:} false; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 #include <sys/types.h>
7396 _ACEOF
7397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7398 $EGREP "uid_t" >/dev/null 2>&1; then :
7399 ac_cv_type_uid_t=yes
7400 else
7401 ac_cv_type_uid_t=no
7403 rm -f conftest*
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7407 $as_echo "$ac_cv_type_uid_t" >&6; }
7408 if test $ac_cv_type_uid_t = no; then
7410 $as_echo "#define uid_t int" >>confdefs.h
7413 $as_echo "#define gid_t int" >>confdefs.h
7418 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7419 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7421 cat >>confdefs.h <<_ACEOF
7422 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7423 _ACEOF
7429 # Look for some functions
7430 for ac_func in getpagesize kqueue statfs statvfs \
7431 clone kse_create rfork_thread thr_create sa_register \
7432 getcontext makecontext setcontext sigaltstack swapcontext
7433 do :
7434 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7435 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7436 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7437 cat >>confdefs.h <<_ACEOF
7438 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7439 _ACEOF
7442 done
7448 for ac_header in $ac_header_list
7449 do :
7450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7451 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7454 cat >>confdefs.h <<_ACEOF
7455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7456 _ACEOF
7460 done
7469 for ac_func in getpagesize
7470 do :
7471 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7472 if test "x$ac_cv_func_getpagesize" = xyes; then :
7473 cat >>confdefs.h <<_ACEOF
7474 #define HAVE_GETPAGESIZE 1
7475 _ACEOF
7478 done
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7481 $as_echo_n "checking for working mmap... " >&6; }
7482 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 if test "$cross_compiling" = yes; then :
7486 ac_cv_func_mmap_fixed_mapped=no
7487 else
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490 $ac_includes_default
7491 /* malloc might have been renamed as rpl_malloc. */
7492 #undef malloc
7494 /* Thanks to Mike Haertel and Jim Avera for this test.
7495 Here is a matrix of mmap possibilities:
7496 mmap private not fixed
7497 mmap private fixed at somewhere currently unmapped
7498 mmap private fixed at somewhere already mapped
7499 mmap shared not fixed
7500 mmap shared fixed at somewhere currently unmapped
7501 mmap shared fixed at somewhere already mapped
7502 For private mappings, we should verify that changes cannot be read()
7503 back from the file, nor mmap's back from the file at a different
7504 address. (There have been systems where private was not correctly
7505 implemented like the infamous i386 svr4.0, and systems where the
7506 VM page cache was not coherent with the file system buffer cache
7507 like early versions of FreeBSD and possibly contemporary NetBSD.)
7508 For shared mappings, we should conversely verify that changes get
7509 propagated back to all the places they're supposed to be.
7511 Grep wants private fixed already mapped.
7512 The main things grep needs to know about mmap are:
7513 * does it exist and is it safe to write into the mmap'd area
7514 * how to use it (BSD variants) */
7516 #include <fcntl.h>
7517 #include <sys/mman.h>
7519 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7520 char *malloc ();
7521 #endif
7523 /* This mess was copied from the GNU getpagesize.h. */
7524 #ifndef HAVE_GETPAGESIZE
7525 # ifdef _SC_PAGESIZE
7526 # define getpagesize() sysconf(_SC_PAGESIZE)
7527 # else /* no _SC_PAGESIZE */
7528 # ifdef HAVE_SYS_PARAM_H
7529 # include <sys/param.h>
7530 # ifdef EXEC_PAGESIZE
7531 # define getpagesize() EXEC_PAGESIZE
7532 # else /* no EXEC_PAGESIZE */
7533 # ifdef NBPG
7534 # define getpagesize() NBPG * CLSIZE
7535 # ifndef CLSIZE
7536 # define CLSIZE 1
7537 # endif /* no CLSIZE */
7538 # else /* no NBPG */
7539 # ifdef NBPC
7540 # define getpagesize() NBPC
7541 # else /* no NBPC */
7542 # ifdef PAGESIZE
7543 # define getpagesize() PAGESIZE
7544 # endif /* PAGESIZE */
7545 # endif /* no NBPC */
7546 # endif /* no NBPG */
7547 # endif /* no EXEC_PAGESIZE */
7548 # else /* no HAVE_SYS_PARAM_H */
7549 # define getpagesize() 8192 /* punt totally */
7550 # endif /* no HAVE_SYS_PARAM_H */
7551 # endif /* no _SC_PAGESIZE */
7553 #endif /* no HAVE_GETPAGESIZE */
7556 main ()
7558 char *data, *data2, *data3;
7559 const char *cdata2;
7560 int i, pagesize;
7561 int fd, fd2;
7563 pagesize = getpagesize ();
7565 /* First, make a file with some known garbage in it. */
7566 data = (char *) malloc (pagesize);
7567 if (!data)
7568 return 1;
7569 for (i = 0; i < pagesize; ++i)
7570 *(data + i) = rand ();
7571 umask (0);
7572 fd = creat ("conftest.mmap", 0600);
7573 if (fd < 0)
7574 return 2;
7575 if (write (fd, data, pagesize) != pagesize)
7576 return 3;
7577 close (fd);
7579 /* Next, check that the tail of a page is zero-filled. File must have
7580 non-zero length, otherwise we risk SIGBUS for entire page. */
7581 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7582 if (fd2 < 0)
7583 return 4;
7584 cdata2 = "";
7585 if (write (fd2, cdata2, 1) != 1)
7586 return 5;
7587 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7588 if (data2 == MAP_FAILED)
7589 return 6;
7590 for (i = 0; i < pagesize; ++i)
7591 if (*(data2 + i))
7592 return 7;
7593 close (fd2);
7594 if (munmap (data2, pagesize))
7595 return 8;
7597 /* Next, try to mmap the file at a fixed address which already has
7598 something else allocated at it. If we can, also make sure that
7599 we see the same garbage. */
7600 fd = open ("conftest.mmap", O_RDWR);
7601 if (fd < 0)
7602 return 9;
7603 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7604 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7605 return 10;
7606 for (i = 0; i < pagesize; ++i)
7607 if (*(data + i) != *(data2 + i))
7608 return 11;
7610 /* Finally, make sure that changes to the mapped area do not
7611 percolate back to the file as seen by read(). (This is a bug on
7612 some variants of i386 svr4.0.) */
7613 for (i = 0; i < pagesize; ++i)
7614 *(data2 + i) = *(data2 + i) + 1;
7615 data3 = (char *) malloc (pagesize);
7616 if (!data3)
7617 return 12;
7618 if (read (fd, data3, pagesize) != pagesize)
7619 return 13;
7620 for (i = 0; i < pagesize; ++i)
7621 if (*(data + i) != *(data3 + i))
7622 return 14;
7623 close (fd);
7624 free (data);
7625 free (data3);
7626 return 0;
7628 _ACEOF
7629 if ac_fn_c_try_run "$LINENO"; then :
7630 ac_cv_func_mmap_fixed_mapped=yes
7631 else
7632 ac_cv_func_mmap_fixed_mapped=no
7634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7635 conftest.$ac_objext conftest.beam conftest.$ac_ext
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7640 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7641 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7643 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7646 rm -f conftest.mmap conftest.txt
7649 #-----------------------------------------------------------------------------
7652 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7653 # it switched on by default, and we use the host compiler, so it compiles AROS
7654 # code with this enabled resulting in link failures as we don't have support
7655 # for it.
7657 # We use two methods to disable it. For the host compiler (used to compile
7658 # some hosted modules), we test to see if the compiler supports stack
7659 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7660 # work on all platforms.
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7664 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7665 save_cflags="$CFLAGS"
7666 CFLAGS="$CFLAGS -fno-stack-protector"
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7671 main ()
7675 return 0;
7677 _ACEOF
7678 if ac_fn_c_try_compile "$LINENO"; then :
7679 use_no_stack_protector="yes"
7680 else
7681 use_no_stack_protector="no"
7683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7685 $as_echo "$use_no_stack_protector" >&6; }
7686 if test "x-$use_no_stack_protector" = "x-yes" ; then
7687 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7689 CFLAGS="$save_cflags"
7691 #-----------------------------------------------------------------------------
7693 # Disable pointer-signedness warnings if the compiler recognises the option
7694 # (this only works for the host compiler at the moment)
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7697 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7698 save_cflags="$CFLAGS"
7699 CFLAGS="$CFLAGS -Wno-pointer-sign"
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7704 main ()
7708 return 0;
7710 _ACEOF
7711 if ac_fn_c_try_compile "$LINENO"; then :
7712 use_no_sign_warning="yes"
7713 else
7714 use_no_sign_warning="no"
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7718 $as_echo "$use_no_sign_warning" >&6; }
7719 if test "x-$use_no_sign_warning" = "x-yes" ; then
7720 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7722 CFLAGS="$save_cflags"
7724 #-----------------------------------------------------------------------------
7726 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7729 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7730 save_cflags="$CFLAGS"
7731 CFLAGS="$CFLAGS -fgnu89-inline"
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7736 main ()
7740 return 0;
7742 _ACEOF
7743 if ac_fn_c_try_compile "$LINENO"; then :
7744 use_gnu89_inline="yes"
7745 else
7746 use_gnu89_inline="no"
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7750 $as_echo "$use_gnu89_inline" >&6; }
7751 if test "x-$use_gnu89_inline" = "x-yes" ; then
7752 gnu89_inline="-fgnu89-inline"
7754 CFLAGS="$save_cflags"
7757 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7758 # On GCC >= 4.0 -iquote should be used
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7761 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7762 CFLAGS="$CFLAGS -iquote."
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7767 main ()
7771 return 0;
7773 _ACEOF
7774 if ac_fn_c_try_compile "$LINENO"; then :
7775 has_iquote="yes"
7776 else
7777 has_iquote="no"
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7781 $as_echo "$has_iquote" >&6; }
7782 if test "x-$has_iquote" = "x-yes" ; then
7783 host_cflags_iquote=-iquote
7784 host_cflags_iquote_end=
7785 else
7786 host_cflags_iquote=-I
7787 host_cflags_iquote_end=-I-
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7791 $as_echo "$as_me: Performing target configuration..." >&6;}
7794 test_kernel_cc=no
7796 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7797 export_newline="
7800 aros_elf_translate=
7801 aros_warn_flags=
7802 aros_isa_extra=
7803 aros_isa_flags=
7804 aros_kernel_isaflags=
7805 aros_config_cppflags=
7806 aros_config_cflags=
7807 aros_config_cxxflags=
7808 aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
7809 aros_config_ldflags=""
7811 aros_shared_default=yes
7813 aros_shared_cflags="-fPIC"
7814 aros_shared_aflags=""
7815 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7816 aros_kernel_ldflags="-Wl,-rpath,./lib"
7818 aros_kernel_ar_flags="cr"
7819 aros_target_ar_flags="cr"
7820 aros_target_nm_flags="-C -ul"
7821 aros_target_strip_flags="--strip-unneeded -R.comment"
7823 aros_c_libs=
7824 aros_cxx_libs=
7826 aros_target_genmap="-Wl,-Map -Xlinker"
7828 # Native flavour stuff
7829 aros_serial_debug="0"
7831 # Palm native flavour stuff
7832 aros_palm_debug_hack="0"
7834 # Unix flavour stuff
7835 aros_nesting_supervisor="0"
7837 # Collect-aros stuff: "-ius" to ignore undefined symbols
7838 ignore_undefined_symbols=""
7840 # Check for X11 by default
7841 need_x11="auto"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7844 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7846 # Check whether --with-toolchain was given.
7847 if test "${with_toolchain+set}" = set; then :
7848 withval=$with_toolchain; aros_toolchain="$withval"
7849 else
7850 aros_toolchain="$default_toolchain_family"
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7854 $as_echo "$aros_toolchain" >&6; }
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7858 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7859 # Check whether --enable-lto was given.
7860 if test "${enable_lto+set}" = set; then :
7861 enableval=$enable_lto; aros_config_lto="$enableval"
7862 else
7863 aros_config_lto="no"
7866 if test "$aros_config_lto" != "no"; then
7867 aros_config_lto="yes"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7870 $as_echo "$aros_config_lto" >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7873 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7874 # Check whether --enable-coverage was given.
7875 if test "${enable_coverage+set}" = set; then :
7876 enableval=$enable_coverage; aros_config_coverage="$enableval"
7877 else
7878 aros_config_coverage="no"
7881 if test "$aros_config_coverage" != "no"; then
7882 aros_config_coverage="yes"
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7885 $as_echo "$aros_config_coverage" >&6; }
7887 use_ld_wrapper=yes
7889 case "$aros_toolchain" in
7890 *llvm*)
7891 toolchain_c_compiler="clang"
7892 toolchain_cxx_compiler="clang++"
7893 toolchain_cpp_preprocessor="clang -E"
7894 toolchain_ld="ld.lld"
7895 aros_ld="ld"
7896 toolchain_as="llvm-as"
7897 toolchain_ar="llvm-ar"
7898 toolchain_ranlib="llvm-ranlib"
7899 toolchain_nm="llvm-nm"
7900 toolchain_strip="true"
7901 toolchain_objcopy="llvm-objcopy"
7902 toolchain_objdump="llvm-objdump"
7903 use_libatomic=yes
7905 *gnu*)
7906 toolchain_c_compiler="gcc"
7907 toolchain_cxx_compiler="g++"
7908 toolchain_cpp_preprocessor="gcc -E"
7909 toolchain_as="as"
7910 aros_ld="ld"
7911 if test "$aros_config_lto" != "yes"; then
7912 toolchain_ld="ld"
7913 toolchain_ar="ar"
7914 toolchain_ranlib="ranlib"
7915 toolchain_nm="nm"
7916 else
7917 toolchain_ld="ld.bfd"
7918 toolchain_ar="gcc-ar"
7919 toolchain_ranlib="gcc-ranlib"
7920 toolchain_nm="gcc-nm"
7922 toolchain_strip="strip"
7923 toolchain_objcopy="objcopy"
7924 toolchain_objdump="objdump"
7925 use_libatomic=yes
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7929 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7930 toolchain_c_compiler="cc"
7931 toolchain_cxx_compiler="c++"
7932 toolchain_cpp_preprocessor="cpp"
7933 toolchain_ld="ld"
7934 aros_ld="ld"
7935 toolchain_as="as"
7936 toolchain_ar="ar"
7937 toolchain_ranlib="ranlib"
7938 toolchain_nm="nm"
7939 toolchain_strip="strip"
7940 toolchain_objcopy="objcopy"
7941 toolchain_objdump="objdump"
7943 esac
7945 #-----------------------------------------------------------------------------
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7948 $as_echo_n "checking which type of build to do... " >&6; }
7949 # Check whether --enable-build_type was given.
7950 if test "${enable_build_type+set}" = set; then :
7951 enableval=$enable_build_type; build_type=$enableval
7952 else
7953 build_type="personal"
7957 if test "$build_type" = "nightly"; then
7958 build_type_string="NIGHTLY"
7959 elif test "$build_type" = "snapshot"; then
7960 build_type_string="SNAPSHOT"
7961 elif test "$build_type" = "milestone"; then
7962 build_type_string="MILESTONE"
7963 elif test "$build_type" = "release"; then
7964 build_type_string="RELEASE"
7965 else
7966 build_type_string="PERSONAL"
7967 build_type="personal"
7970 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7973 $as_echo "$build_type" >&6; }
7975 #-----------------------------------------------------------------------------
7976 all_debug_types="messages stack modules mungwall symbols"
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7979 $as_echo_n "checking which debug types to enable... " >&6; }
7980 # Check whether --enable-debug was given.
7981 if test "${enable_debug+set}" = set; then :
7982 enableval=$enable_debug; debug="$enableval"
7983 else
7984 debug=""
7988 if test "$debug" = "" -o "$debug" = "no"; then
7989 debug="none"
7990 elif test "$debug" = "yes"; then
7991 debug="all"
7994 if test "$debug" = "all" ; then
7995 debug="messages stack modules symbols"
7996 for d in $all_debug_types; do
7997 export aros_${d}_debug="1"
7998 done
7999 else
8000 for d in $all_debug_types; do
8001 export aros_${d}_debug="0"
8002 done
8005 if test "$debug" != "none"; then
8006 debug=`echo $debug | sed s/,/\ /g`
8007 for d in $debug; do
8008 found="0"
8009 for d2 in $all_debug_types; do
8010 if test "$d2" = "$d"; then
8011 found="1"
8012 break
8014 done
8015 if test "$found" = "0"; then
8016 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
8018 export aros_${d}_debug="1"
8019 done
8020 aros_debug="yes"
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
8023 $as_echo "$debug" >&6; }
8025 if test "$aros_messages_debug" = "1"; then
8026 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8027 else
8028 aros_messages_debug=""
8030 if test "$aros_symbols_debug" = "1"; then
8031 aros_symbols_debug="-g"
8032 else
8033 aros_symbols_debug=""
8036 # These are the flags to pass when compiling debugged programs
8037 aros_debug_cppflags="$aros_messages_debug"
8038 aros_debug_cflags="$aros_symbols_debug"
8039 aros_debug_cxxflags=
8040 aros_debug_aflags=""
8041 aros_debug_ldflags="$aros_symbols_debug"
8043 #-----------------------------------------------------------------------------
8044 # Checking for distcc and ccache.
8046 # Always apply the transforms in this particular order. Basically you should
8047 # always run 'ccache distcc compiler' in that order for the best performance.
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
8050 $as_echo_n "checking whether to enable distcc... " >&6; }
8051 # Check whether --enable-distcc was given.
8052 if test "${enable_distcc+set}" = set; then :
8053 enableval=$enable_distcc; distcc="$enableval"
8054 else
8055 distcc="no"
8058 if test "$distcc" != "" -a "$distcc" != "no"; then
8059 # AC_CHECK_PROG will print out the result in this case
8060 # Extract the first word of "distcc", so it can be a program name with args.
8061 set dummy distcc; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if ${ac_cv_path_DISTCC+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 case $DISTCC in
8068 [\\/]* | ?:[\\/]*)
8069 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in $PATH
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8079 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 break 2
8083 done
8084 done
8085 IFS=$as_save_IFS
8087 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8089 esac
8091 DISTCC=$ac_cv_path_DISTCC
8092 if test -n "$DISTCC"; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
8094 $as_echo "$DISTCC" >&6; }
8095 else
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8101 else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
8107 $as_echo_n "checking whether to enable ccache... " >&6; }
8108 # Check whether --enable-ccache was given.
8109 if test "${enable_ccache+set}" = set; then :
8110 enableval=$enable_ccache; ccache="$enableval"
8111 else
8112 ccache="no"
8115 if test "$ccache" != "" -a "$ccache" != "no"; then
8116 # AC_CHECK_PROG will print out the result in this case
8117 # Extract the first word of "ccache", so it can be a program name with args.
8118 set dummy ccache; ac_word=$2
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if ${ac_cv_prog_CCACHE+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 if test -n "$CCACHE"; then
8125 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8126 else
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8130 IFS=$as_save_IFS
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8134 ac_cv_prog_CCACHE="ccache"
8135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 break 2
8138 done
8139 done
8140 IFS=$as_save_IFS
8144 CCACHE=$ac_cv_prog_CCACHE
8145 if test -n "$CCACHE"; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
8147 $as_echo "$CCACHE" >&6; }
8148 else
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8159 #-----------------------------------------------------------------------------
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
8161 $as_echo_n "checking what specific host gcc version to use... " >&6; }
8163 # Check whether --with-kernel-gcc-version was given.
8164 if test "${with_kernel_gcc_version+set}" = set; then :
8165 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
8166 else
8167 kernel_tool_version=""
8170 if test "$kernel_tool_version" != "" ; then
8171 msg_result=$kernel_tool_version
8172 else
8173 msg_result="default"
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8176 $as_echo "$msg_result" >&6; }
8178 #-----------------------------------------------------------------------------
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
8180 $as_echo_n "checking what optimization flags to use... " >&6; }
8182 # Check whether --with-optimization was given.
8183 if test "${with_optimization+set}" = set; then :
8184 withval=$with_optimization; optimization_level="$withval"
8185 else
8186 optimization_level="unknown"
8189 if test "$optimization_level" = "unknown"; then
8190 optimization="default"
8191 if test "$debug" != "none"; then
8192 optimization_level="-O0"
8193 else
8194 optimization_level="-O2"
8196 else
8197 optimization="$optimization_level"
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
8200 $as_echo "$optimization" >&6; }
8202 paranoia_default=yes
8203 #-----------------------------------------------------------------------------
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
8205 $as_echo_n "checking which paranoia flags to use... " >&6; }
8207 # Check whether --with-paranoia was given.
8208 if test "${with_paranoia+set}" = set; then :
8209 withval=$with_paranoia; paranoia_flags="$withval"
8210 else
8211 paranoia_flags="$paranoia_default"
8214 if test "$paranoia_flags" = "no"; then
8215 paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
8216 msg_result="none"
8217 else
8218 if test "$paranoia_flags" = "yes"; then
8219 paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
8221 msg_result="$paranoia_flags"
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8224 $as_echo "$msg_result" >&6; }
8225 aros_warn_flags="$aros_warn_flags $paranoia_flags"
8227 #-----------------------------------------------------------------------------
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
8229 $as_echo_n "checking what target variant to enable... " >&6; }
8230 # Check whether --enable-target_variant was given.
8231 if test "${enable_target_variant+set}" = set; then :
8232 enableval=$enable_target_variant; target_variant=$enableval
8233 else
8234 target_variant=""
8237 if test "$target_variant" = ""; then
8238 aros_target_variant=""
8239 aros_target_suffix=""
8240 enableval="none"
8241 else
8242 aros_target_variant="$target_variant"
8243 aros_target_suffix="-$target_variant"
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8246 $as_echo "$enableval" >&6; }
8248 #-----------------------------------------------------------------------------
8249 # Target-specific defaults. You can override then on a per-target basis.
8251 # Bootloader name. Currently used by PC target.
8252 target_bootloader="none"
8253 PLATFORM_EXECSMP=
8254 ENABLE_EXECSMP=
8256 #-----------------------------------------------------------------------------
8257 # Additional options for some specific targets
8259 case "$aros_target_variant" in
8260 ios)
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8262 $as_echo_n "checking XCode path... " >&6; }
8264 # Check whether --with-xcode was given.
8265 if test "${with_xcode+set}" = set; then :
8266 withval=$with_xcode; aros_xcode_path="$withval"
8267 else
8268 aros_xcode_path="/Developer"
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8272 $as_echo "$aros_xcode_path" >&6; }
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8275 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8277 # Check whether --with-sdk-version was given.
8278 if test "${with_sdk_version+set}" = set; then :
8279 withval=$with_sdk_version; aros_sdk_version="$withval"
8280 else
8281 aros_sdk_version="4.1"
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8285 $as_echo "$aros_sdk_version" >&6; }
8289 "android")
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8291 $as_echo_n "checking Android SDK path... " >&6; }
8293 # Check whether --with-sdk was given.
8294 if test "${with_sdk+set}" = set; then :
8295 withval=$with_sdk; aros_android_sdk="$withval"
8296 else
8297 aros_android_sdk=$default_android_sdk
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8301 $as_echo "$aros_android_sdk" >&6; }
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8304 $as_echo_n "checking Android NDK path... " >&6; }
8306 # Check whether --with-ndk was given.
8307 if test "${with_ndk+set}" = set; then :
8308 withval=$with_ndk; aros_android_ndk="$withval"
8309 else
8310 aros_android_ndk="none"
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8314 $as_echo "$aros_android_ndk" >&6; }
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8317 $as_echo_n "checking what Android SDK version to use... " >&6; }
8319 # Check whether --with-sdk-version was given.
8320 if test "${with_sdk_version+set}" = set; then :
8321 withval=$with_sdk_version; aros_sdk_version="$withval"
8322 else
8323 aros_sdk_version="12"
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8327 $as_echo "$aros_sdk_version" >&6; }
8329 aros_android_level=android-$aros_sdk_version
8330 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8331 echo "Platform $aros_android_level is not installed in your SDK"
8332 echo "Use --with-sdk-version=<API level number> to select another platform version"
8333 echo "You can check what plaform versions are installed in your SDK"
8334 echo "by examining contents of $aros_android_sdk/platforms directory"
8335 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8338 export PATH="$aros_android_sdk/tools:$PATH"
8339 # Extract the first word of "$android_tool", so it can be a program name with args.
8340 set dummy $android_tool; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_path_android_tool+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 case $android_tool in
8347 [\\/]* | ?:[\\/]*)
8348 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8358 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 break 2
8362 done
8363 done
8364 IFS=$as_save_IFS
8367 esac
8369 android_tool=$ac_cv_path_android_tool
8370 if test -n "$android_tool"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8372 $as_echo "$android_tool" >&6; }
8373 else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8379 req_avail=yes
8380 if test "$android_tool" = ""; then
8381 req_avail=no
8383 if test "$android_tool" = "no"; then
8384 req_avail=no
8386 if test "$req_avail" = "no"; then
8387 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8390 if test "$aros_android_ndk" != "none"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8392 $as_echo_n "checking what Android NDK version to use... " >&6; }
8394 # Check whether --with-ndk-version was given.
8395 if test "${with_ndk_version+set}" = set; then :
8396 withval=$with_ndk_version; aros_ndk_version="$withval"
8397 else
8398 aros_ndk_version="9"
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8402 $as_echo "$aros_ndk_version" >&6; }
8405 # Extract the first word of "ant", so it can be a program name with args.
8406 set dummy ant; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if ${ac_cv_path_ant+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 case $ant in
8413 [\\/]* | ?:[\\/]*)
8414 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8420 IFS=$as_save_IFS
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8424 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 break 2
8428 done
8429 done
8430 IFS=$as_save_IFS
8433 esac
8435 ant=$ac_cv_path_ant
8436 if test -n "$ant"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8438 $as_echo "$ant" >&6; }
8439 else
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8445 if test "$ant" = ""; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8447 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8451 $as_echo_n "checking Build debug or release apk... " >&6; }
8453 # Check whether --with-apk-version was given.
8454 if test "${with_apk_version+set}" = set; then :
8455 withval=$with_apk_version; aros_android_antapk=$withval
8456 else
8457 aros_android_antapk=release
8460 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8461 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8464 $as_echo "$aros_android_antapk" >&6; }
8466 target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8467 host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8468 aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8470 if test "$host_os" = "mingw32"; then
8471 android_tool="cmd //c $android_tool"
8474 need_dlopen="no"
8477 esac
8479 #-----------------------------------------------------------------------------
8480 # External toolchains
8481 kernel_tool_prefix="none"
8482 aros_tool_prefix="none"
8483 elf_tool_prefix="${target_cpu}-elf-"
8485 # Base target cpu ISA configuration switch.
8486 case "$target_cpu" in
8487 *aarch64*)
8489 *arm*)
8491 *m68k*)
8492 m68k_isa_extra="ISA_MC68000_FLAGS = -march=68000"
8493 m68k_020_isa_extra="ISA_MC68020_FLAGS = -march=68020"
8494 m68k_030_isa_extra="ISA_MC68030_FLAGS = -march=68030"
8495 m68k_040_isa_extra="ISA_MC68040_FLAGS = -march=68040"
8496 m68k_060_isa_extra="ISA_MC68060_FLAGS = -march=68060"
8497 m68k_ac080_isa_extra="ISA_AC68080_FLAGS = -march=68040"
8498 m68k_020_ext="ISA_MC68020_EXT :=020"
8499 m68k_030_ext="ISA_MC68030_EXT :=030"
8500 m68k_040_ext="ISA_MC68040_EXT :=040"
8501 m68k_060_ext="ISA_MC68060_EXT :=060"
8502 m68k_020_cflags="ISA_MC68020_CFLAGS ="
8503 m68k_030_cflags="ISA_MC68030_CFLAGS ="
8504 m68k_040_cflags="ISA_MC68040_CFLAGS ="
8505 m68k_060_cflags="ISA_MC68060_CFLAGS ="
8506 m68k_020_cppflags="ISA_MC68020_CPPFLAGS ="
8507 m68k_030_cppflags="ISA_MC68030_CPPFLAGS ="
8508 m68k_040_cppflags="ISA_MC68040_CPPFLAGS ="
8509 m68k_060_cppflags="ISA_MC68060_CPPFLAGS ="
8510 m68k_020_ldflags="ISA_MC68020_LDFLAGS ="
8511 m68k_030_ldflags="ISA_MC68030_LDFLAGS ="
8512 m68k_040_ldflags="ISA_MC68040_LDFLAGS ="
8513 m68k_060_ldflags="ISA_MC68060_LDFLAGS ="
8515 *x86_64* | *i?86*)
8516 x86_isa_extra="ISA_X86_FLAGS = -m32 -march=i486"
8517 x86_64_isa_extra="ISA_X8664_FLAGS = -mcmodel=large"
8519 *powerpc*)
8521 esac
8523 # This is the target configuration switch.
8524 case "$target_os" in
8525 linux*)
8526 aros_target_arch="linux"
8527 aros_target_family="unix"
8528 case "$target_cpu" in
8529 *m68k*)
8530 aros_target_cpu="m68k"
8531 aros_object_format="m68kelf"
8532 aros_flavour="emulcompat"
8533 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8534 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8535 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8536 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8537 gcc_target_cpu="mc68000"
8539 *i?86*)
8540 aros_target_cpu="i386"
8541 aros_object_format="elf_i386"
8542 aros_flavour="emulation"
8543 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8544 aros_isa_flags="$""(ISA_X86_FLAGS)"
8545 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8546 aros_kernel_ldflags="-Wl,-melf_i386"
8547 aros_nominal_depth=8
8548 gcc_target_cpu="i386"
8549 pci_hidd_target="hidd-pci-linux"
8550 android_tool_dir_prefix="x86"
8551 android_tool_prefix="i686-android-linux"
8552 android_ndk_arch="x86"
8554 *x86_64*)
8555 aros_target_cpu="x86_64"
8556 aros_object_format="elf_x86_64"
8557 aros_flavour="emulation"
8558 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8559 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8560 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8561 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8562 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8563 aros_nominal_depth=8
8564 pci_hidd_target="hidd-pci-linux"
8566 *powerpc*)
8567 aros_target_cpu="ppc"
8568 aros_object_format="elf32ppc"
8569 aros_flavour="emulation"
8570 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8571 aros_nominal_depth=8
8572 gcc_target_cpu="ppc"
8574 # TODO
8575 # Same as powerpc, but I need this for the nightly build to work again.
8576 # Actually, the nightly should be made working with powerpc target.
8577 # That just was too much work for the moment, another week or two.
8578 *ppc*)
8579 aros_target_cpu="ppc"
8580 aros_object_format="elf32ppc"
8581 aros_flavour="emulation"
8582 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8583 aros_nominal_depth=8
8584 gcc_target_cpu="ppc"
8586 *aarch64*)
8587 aros_target_cpu="aarch64"
8588 target_cpu="aarch64"
8589 aros_object_format="aarch64elf_aros"
8590 aros_flavour="emulation"
8591 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8592 gcc_target_cpu="aarch64"
8593 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8594 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8595 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8596 aros_c_libs="$aros_c_libs -laeabi"
8597 gcc_default_float_abi="hard"
8598 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8600 *armhf*)
8601 aros_target_cpu="arm"
8602 target_cpu="arm"
8603 aros_object_format="armelf_aros"
8604 aros_flavour="emulation"
8605 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8606 gcc_target_cpu="arm"
8607 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8608 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8609 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8610 aros_c_libs="$aros_c_libs -laeabi"
8611 gcc_default_float_abi="hard"
8612 android_tool_dir_prefix="arm-linux-androideabi"
8613 android_tool_prefix="arm-linux-androideabi"
8614 android_ndk_arch="arm"
8615 kernel_tool_prefix="arm-linux-gnueabihf-"
8617 *arm*)
8618 aros_target_cpu="arm"
8619 aros_object_format="armelf_aros"
8620 aros_flavour="emulation"
8621 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8622 gcc_target_cpu="arm"
8623 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8624 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8625 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8626 aros_c_libs="$aros_c_libs -laeabi"
8627 android_tool_dir_prefix="arm-linux-androideabi"
8628 android_tool_prefix="arm-linux-androideabi"
8629 android_ndk_arch="arm"
8630 kernel_tool_prefix="arm-linux-gnueabi-"
8633 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8635 esac
8636 case "$aros_target_variant" in
8637 android)
8639 if test "$android_ndk_arch" = ""; then
8640 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8643 aros_nominal_width=320
8644 aros_nominal_height=480
8645 if test "$aros_android_ndk" = "none"; then
8646 aros_kernel_cflags="-mandroid"
8647 aros_kernel_ldflags="-mandroid"
8648 CFLAGS="-mandroid"
8649 else
8650 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8651 kernel_tool_version=""
8652 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8653 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8654 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8655 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8656 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8658 need_x11=no
8659 # Disable implicit PIC mode
8660 aros_config_cflags="$aros_config_cflags -fno-pic"
8661 kernel_tool_prefix="$android_tool_prefix-"
8663 esac
8667 aros_target_arch="pc"
8668 aros_shared_default="no"
8669 target_bootloader="grub2"
8670 case "$target_cpu" in
8671 *i?86*)
8672 aros_target_cpu="i386"
8675 if test "$aros_object_format" = "" ; then
8676 aros_object_format="elf_i386"
8678 aros_flavour="standalone"
8679 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8680 aros_isa_flags="$""(ISA_X86_FLAGS)"
8681 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8682 aros_kernel_ldflags="-Wl,-melf_i386"
8683 aros_nominal_width=640
8684 aros_nominal_height=480
8685 gcc_target_cpu="i386"
8687 *x86_64*)
8688 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8689 aros_target_cpu="x86_64"
8690 aros_serial_debug=1
8691 if test "$aros_object_format" = "" ; then
8692 aros_object_format="elf_x86_64"
8694 aros_flavour="standalone"
8695 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8696 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8697 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8698 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8699 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8700 aros_kernel_ldflags=""
8701 aros_nominal_width=640
8702 aros_nominal_height=480
8703 case "$aros_target_variant" in
8704 smp)
8705 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8707 esac
8710 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8712 esac
8715 prep)
8716 aros_target_arch="prep"
8717 aros_shared_default="no"
8718 aros_target_cpu="ppc"
8719 aros_object_format="elf32ppc"
8720 aros_flavour="ppcnative"
8721 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8722 aros_kernel_ldflags=""
8723 aros_nominal_width=640
8724 aros_nominal_height=480
8725 gcc_target_cpu="ppc"
8728 freebsd*)
8729 aros_target_arch="freebsd"
8730 aros_target_family="unix"
8731 aros_target_cpu="i386"
8732 aros_flavour="emulation"
8733 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8734 gcc_target_cpu="i386"
8736 aros_target_strip_flags="-x"
8739 darwin*)
8740 aros_target_arch="darwin"
8741 aros_target_family="unix"
8742 aros_flavour="emulation"
8743 case "$target_cpu" in
8744 *i?86*)
8745 aros_ios_platform="iPhoneSimulator"
8746 aros_target_cpu="i386"
8747 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8748 aros_isa_flags="$""(ISA_X86_FLAGS)"
8749 aros_kernel_ldflags=""
8750 aros_macosx_version="10.4"
8751 aros_nominal_depth=8
8752 gcc_target_cpu="i386"
8753 aros_object_format="elf_i386"
8754 aros_kernel_ar_flags="-cr"
8755 aros_target_strip_flags="-x"
8756 kernel_tool_flags="-m32"
8758 *x86_64*)
8759 aros_target_cpu="x86_64"
8760 aros_object_format="elf_x86_64"
8761 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8762 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8763 aros_macosx_version="10.6"
8764 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8765 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8766 aros_kernel_cflags="-m64"
8767 aros_kernel_ldflags="-m64"
8768 aros_nominal_depth=8
8769 aros_kernel_rs="$toolchain_ar"
8770 aros_kernel_ar_flags="-cr"
8771 aros_kernel_ld="$toolchain_ld"
8772 aros_kernel_as="$toolchain_as"
8773 aros_kernel_ranlib="$toolchain_ranlib"
8774 aros_kernel_nm="$toolchain_nm"
8775 aros_kernel_strip="strip"
8776 kernel_tool_prefix="i686-apple-darwin10-"
8778 *ppc*)
8779 aros_target_cpu="ppc"
8780 aros_object_format="elf32ppc"
8781 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8782 aros_kernel_ldflags=""
8783 aros_macosx_version="10.0"
8784 aros_nominal_depth=8
8785 gcc_target_cpu="ppc"
8786 aros_kernel_rs="$toolchain_ar"
8787 aros_kernel_ar_flags="-cr"
8788 aros_kernel_ld="$toolchain_ld -arch ppc"
8789 aros_kernel_as="$toolchain_as -arch ppc"
8790 aros_kernel_ranlib="$toolchain_ranlib -arch ppc"
8791 aros_kernel_nm="$toolchain_nm -arch ppc"
8792 aros_kernel_strip="strip -arch ppc"
8793 kernel_tool_prefix="powerpc-apple-darwin10-"
8795 *arm*)
8796 aros_ios_platform="iPhoneOS"
8797 aros_target_cpu="arm"
8798 aros_object_format="armelf_aros"
8799 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8800 aros_c_libs="$aros_c_libs -laeabi"
8801 aros_nominal_depth=8
8802 gcc_target_cpu="arm"
8803 aros_kernel_rs="$toolchain_ar"
8804 aros_kernel_ar_flags="-cr"
8805 aros_kernel_ld="$toolchain_ld -arch arm"
8806 aros_kernel_ranlib="$toolchain_ranlib -arch arm"
8807 kernel_tool_prefix="arm-apple-darwin10-"
8808 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8811 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8813 esac
8814 case "$aros_target_variant" in
8815 ios)
8816 make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8817 aros_ios_version="3.0"
8818 aros_nominal_width=320
8819 aros_nominal_height=480
8820 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8821 target_extra_cfg+="$export_newline""# Apple iOS specific$export_newline""IOS_PLATFORM := $aros_ios_platform$export_newline""IOS_OS_VERSION := $aros_ios_version$export_newline""IOS_SDK_PATH := $aros_ios_sdk$export_newline"
8822 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8823 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8824 need_x11=no
8825 # This is here because it may depend on iOS or SDK version
8826 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8827 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8828 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8831 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8832 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8834 esac
8837 dragonfly*)
8838 aros_target_arch="dragonfly"
8839 aros_target_family="unix"
8840 aros_flavour="emulation"
8841 case "$target_cpu" in
8842 *i?86*)
8843 aros_target_cpu="i386"
8844 aros_object_format="elf_i386"
8845 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8846 aros_isa_flags="$""(ISA_X86_FLAGS)"
8848 *x86_64*)
8849 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8850 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8851 aros_target_cpu="x86_64"
8852 aros_object_format="elf_x86_64"
8853 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8854 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8857 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8859 esac
8862 netbsd*)
8863 aros_target_arch="netbsd"
8864 aros_target_family="unix"
8865 case "$target_cpu" in
8866 *m68k*)
8867 aros_target_cpu="m68k"
8868 aros_object_format="m68kelf"
8869 aros_flavour="emulcompat"
8870 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8871 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8872 gcc_target_cpu="mc68000"
8874 *i?86*)
8875 aros_target_cpu="i386"
8876 aros_object_format="elf_i386"
8877 aros_flavour="emulation"
8878 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8879 aros_isa_flags="$""(ISA_X86_FLAGS)"
8880 aros_nominal_depth=8
8881 gcc_target_cpu="i386"
8884 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8886 esac
8887 aros_target_genmap="-Wl,-M -Xlinker >"
8888 aros_flavour="emulation"
8889 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8892 openbsd*)
8893 aros_target_arch="openbsd"
8894 aros_target_family="unix"
8895 case "$target_cpu" in
8896 *i?86*)
8897 aros_target_cpu="i386"
8898 aros_object_format="elf_i386"
8899 aros_flavour="emulation"
8900 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8901 aros_isa_flags="$""(ISA_X86_FLAGS)"
8902 gcc_target_cpu="i386"
8905 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8907 esac
8908 aros_target_genmap="-Wl,-M -Xlinker >"
8909 aros_target_nm_flags="-u"
8910 aros_flavour="emulation"
8913 solaris*)
8914 aros_target_arch="solaris"
8915 aros_target_family="unix"
8916 case "$target_cpu" in
8917 *i?86*)
8918 aros_target_cpu="i386"
8919 aros_object_format="elf_i386"
8920 aros_flavour="emulation"
8921 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8922 aros_isa_flags="$""(ISA_X86_FLAGS)"
8923 aros_nominal_depth=8
8924 gcc_target_cpu="i386"
8926 *sparc*)
8927 aros_target_cpu="sparc"
8928 aros_object_format="elf_sparc"
8929 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8930 gcc_target_cpu="sparc"
8933 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8935 esac
8936 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8937 aros_flavour="emulation"
8940 morphos*)
8941 aros_target_arch="morphos"
8942 aros_shared_default="no"
8943 aros_target_cpu="ppc"
8944 aros_object_format="elf_ppc"
8945 aros_flavour="nativecompat"
8946 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8947 gcc_target_cpu="ppc"
8950 sam440)
8951 aros_target_arch="sam440"
8952 aros_shared_default="no"
8953 aros_target_cpu="ppc"
8954 aros_object_format="elf32ppc"
8955 aros_flavour="ppcnative"
8956 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8957 aros_kernel_ldflags=""
8958 aros_nominal_width=1024
8959 aros_nominal_height=768
8960 aros_nominal_depth=24
8961 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8962 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8963 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8964 gcc_target_cpu="powerpc"
8967 efika)
8968 aros_target_arch="efika"
8969 aros_shared_default="no"
8970 aros_target_cpu="arm"
8971 aros_object_format="armelf_aros"
8972 aros_flavour="standalone"
8973 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8974 aros_kernel_ldflags=""
8975 aros_nominal_width=1024
8976 aros_nominal_height=600
8977 aros_c_libs="$aros_c_libs -laeabi"
8978 gcc_default_cpu="armv7-a"
8979 gcc_default_fpu="vfpv3"
8980 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8981 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8982 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8983 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8984 if test "$optimization" = "default"; then
8985 optimization_level="-Os"
8987 case "$target_cpu" in
8988 *armhf*)
8989 gcc_default_float_abi="hard"
8990 target_cpu=arm
8991 aros_target_cpu=arm
8993 *arm*)
8994 gcc_default_float_abi="softfp"
8997 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8999 esac
9002 chrp)
9003 aros_target_arch="chrp"
9004 aros_shared_default="no"
9005 aros_target_cpu="ppc"
9006 aros_object_format="elf32ppc"
9007 aros_flavour="ppcnative"
9008 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9009 aros_kernel_ldflags=""
9010 aros_nominal_width=640
9011 aros_nominal_height=480
9012 aros_isa_flags="$aros_isa_flags -mno-toc"
9013 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9014 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9015 gcc_target_cpu="powerpc"
9016 case "$aros_target_variant" in
9017 efika)
9018 aros_isa_flags="$aros_isa_flags -mcpu=603e"
9019 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
9021 esac
9024 r*pi)
9025 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
9026 aros_flavour="standalone"
9027 aros_target_arch="raspi"
9029 aros_shared_default="no"
9031 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
9033 case "$target_cpu" in
9034 *aarch64*)
9035 aros_target_cpu="aarch64"
9036 gcc_default_cpu="aarch64"
9037 aros_object_format="aarch64elf_aros"
9039 *armhf*)
9040 aros_target_cpu="arm"
9041 gcc_default_cpu="armv6zk"
9042 gcc_default_cpu_tune="arm1176jzf-s"
9043 aros_object_format="armelf_aros"
9044 aros_isa_flags="$aros_isa_flags -marm"
9045 aros_config_cflags="$aros_config_cflags"
9046 aros_config_cxxflags="$aros_config_cxxflags"
9047 aros_config_aflags="$aros_config_aflags -marm"
9048 aros_kernel_cflags="$aros_kernel_cflags -marm"
9049 aros_target_mkdep="$aros_target_mkdep -Darm"
9050 aros_c_libs="$aros_c_libs -laeabi"
9052 *armeb*)
9053 aros_flavour="standcompat"
9054 aros_target_cpu="armeb"
9055 gcc_default_float_abi="hard"
9056 gcc_default_cpu="armv7ve"
9057 gcc_default_cpu_tune="cortex-a7"
9058 aros_object_format="armelfb_aros"
9059 aros_isa_flags="$aros_isa_flags -marm"
9060 aros_config_cflags="$aros_config_cflags"
9061 aros_config_cxxflags="$aros_config_cxxflags"
9062 aros_config_aflags="$aros_config_aflags -marm"
9063 aros_kernel_cflags="$aros_kernel_cflags -marm"
9064 aros_target_mkdep="$aros_target_mkdep -Darm"
9065 aros_c_libs="$aros_c_libs -laeabi"
9067 *arm*)
9068 aros_target_cpu="arm"
9069 gcc_default_cpu="armv6zk"
9070 gcc_default_cpu_tune="arm1176jzf-s"
9071 aros_object_format="armelf_aros"
9072 aros_isa_flags="$aros_isa_flags -marm"
9073 aros_config_cflags="$aros_config_cflags"
9074 aros_config_cxxflags="$aros_config_cxxflags"
9075 aros_config_aflags="$aros_config_aflags -marm"
9076 aros_kernel_cflags="$aros_kernel_cflags -marm"
9077 aros_target_mkdep="$aros_target_mkdep -Darm"
9078 aros_c_libs="$aros_c_libs -laeabi"
9081 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
9083 esac
9085 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9086 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9087 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9088 aros_kernel_cflags="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9090 case "$aros_target_variant" in
9091 smp)
9092 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
9094 esac
9097 stm32f7_discovery)
9098 aros_flavour="standalone"
9099 aros_target_arch="stm32f7_discovery"
9100 aros_target_cpu="arm"
9101 aros_target_cpu_mode="thumb2"
9102 aros_object_format="armelf_aros"
9103 aros_shared_default="no"
9105 gcc_default_cpu="armv7e-m"
9106 gcc_default_cpu_tune="cortex-m7"
9107 gcc_default_fpu="fpv5-sp-d16"
9108 gcc_default_float_abi="hard"
9110 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
9113 amiga*)
9114 aros_elf_translate="$""(ELF2HUNK)"
9115 make_extra_commands="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
9116 aros_target_arch="amiga"
9117 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9118 aros_shared_default="no"
9120 case "$target_cpu" in
9121 *m68k*)
9122 # Check whether --enable-amigaos_compliance was given.
9123 if test "${enable_amigaos_compliance+set}" = set; then :
9124 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
9127 aros_enable_mmu=no
9128 aros_target_cpu="m68k"
9129 aros_object_format="m68kelf"
9130 aros_flavour="standcompat"
9131 gcc_target_cpu="m68000"
9132 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9133 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
9134 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
9135 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9136 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9137 if test "$optimization" = "default"; then
9138 optimization_level="-Os"
9140 aros_config_aflags="$aros_config_aflags"
9141 aros_target_strip_flags="-R.comment --strip-debug"
9142 aros_nominal_width=640
9143 aros_nominal_height=256
9144 aros_nominal_depth=2
9146 *ppc*)
9147 aros_cpu="ppc"
9148 aros_flavour="native"
9149 gcc_target_cpu="ppc"
9152 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
9154 esac
9157 mingw*)
9158 aros_target_arch="mingw32"
9159 aros_shared_default="no"
9160 aros_flavour="emulation"
9161 aros_shared_cflags=""
9162 need_crosstools="yes"
9163 need_dlopen="no"
9164 rescomp="windres"
9165 case "$target_cpu" in
9166 *i?86*)
9167 aros_target_cpu="i386"
9168 aros_object_format="elf_i386"
9169 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9170 aros_isa_flags="$""(ISA_X86_FLAGS)"
9171 aros_nominal_depth=8
9172 gcc_target_cpu="i386"
9174 kernel_tool_prefix="i386-mingw32-"
9176 *x86_64*)
9177 aros_target_cpu="x86_64"
9178 aros_object_format="elf_x86_64"
9179 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9180 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9181 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9182 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9183 aros_nominal_depth=8
9184 kernel_tool_prefix="x86_64-w64-mingw32-"
9186 *arm*)
9187 aros_target_cpu="arm"
9188 aros_object_format="armelf_aros"
9189 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9190 aros_c_libs="$aros_c_libs -laeabi"
9191 aros_nominal_depth=8
9192 gcc_target_cpu="arm"
9193 gcc_default_float_abi="soft"
9194 kernel_tool_prefix="arm-mingw32ce-"
9195 aros_nominal_width=160
9196 aros_nominal_height=160
9199 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
9201 esac
9202 if test $host_os = "cygwin"; then
9203 aros_kernel_cflags="-mno-cygwin"
9206 pp*)
9207 aros_target_arch="pp"
9208 aros_shared_default="no"
9209 case "$target_cpu" in
9210 *m68k*)
9211 aros_target_cpu="m68k"
9212 aros_object_format="m68kelf"
9213 aros_flavour="palmnative"
9214 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9215 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9216 aros_nominal_width=160
9217 aros_nominal_height=160
9218 aros_nominal_depth=1
9219 aros_target_ar_flags="cru"
9220 aros_c_libs="$aros_c_libs -lgcc1"
9221 aros_shared_default=no
9222 aros_shared_cflags="-fpic"
9223 aros_shared_aflags=""
9224 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9225 aros_kernel_ldflags="-Wl,-rpath,./lib"
9226 aros_debug_cppflags="$aros_messages_debug"
9227 aros_debug_cflags="$aros_symbols_debug"
9228 aros_debug_aflags=""
9229 aros_debug_ldflags="$aros_symbols_debug"
9230 aros_mungwall_debug="0"
9231 aros_modules_debug="0"
9232 gcc_target_cpu="mc68000"
9233 ignore_undefined_symbols="-ius"
9236 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9238 esac
9241 mac*)
9242 aros_target_arch="mac"
9243 aros_shared_default="no"
9244 case "$target_cpu" in
9245 *m68k*)
9246 aros_target_cpu="m68k"
9247 aros_object_format="m68kelf"
9248 aros_flavour="mac68knative"
9249 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9250 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9251 aros_nominal_width=512
9252 aros_nominal_height=384
9253 aros_nominal_depth=8
9254 aros_target_ar_flags="cru"
9255 aros_c_libs="$aros_c_libs -lgcc1"
9256 aros_shared_default=no
9257 aros_shared_cflags="-fpic"
9258 aros_shared_aflags=""
9259 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9260 aros_kernel_ldflags="-Wl,-rpath,./lib"
9261 aros_debug_cppflags="$aros_messages_debug"
9262 aros_debug_cflags="$aros_symbols_debug"
9263 aros_debug_aflags=""
9264 aros_debug_ldflags="$aros_symbols_debug"
9265 aros_mungwall_debug="0"
9266 aros_modules_debug="0"
9267 gcc_target_cpu="mc68000"
9268 ignore_undefined_symbols="-ius"
9271 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9273 esac
9277 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
9279 esac
9281 #-----------------------------------------------------------------------------
9282 crosstools_guess="yes"
9283 aros_target_toolchain="no"
9284 aros_kernel_sysroot=""
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9287 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9289 # Check whether --with-kernel-toolchain-prefix was given.
9290 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9291 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9295 $as_echo "$kernel_tool_prefix" >&6; }
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9298 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9300 # Check whether --with-elf-toolchain-prefix was given.
9301 if test "${with_elf_toolchain_prefix+set}" = set; then :
9302 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9303 crosstools_guess="no"
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9307 $as_echo "$elf_tool_prefix" >&6; }
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9310 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9312 # Check whether --with-aros-toolchain was given.
9313 if test "${with_aros_toolchain+set}" = set; then :
9314 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9315 crosstools_guess="no"
9318 if test "$aros_tool_prefix" = "yes" ; then
9319 aros_tool_prefix=$aros_target_cpu-aros-
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9322 $as_echo "$aros_tool_prefix" >&6; }
9324 #-----------------------------------------------------------------------------
9325 # Checking if we should build crosstools..
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9327 $as_echo_n "checking whether to build crosstools... " >&6; }
9328 # Check whether --enable-crosstools was given.
9329 if test "${enable_crosstools+set}" = set; then :
9330 enableval=$enable_crosstools; crosstools="$enableval"
9331 else
9332 crosstools="$crosstools_guess"
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9336 $as_echo "$crosstools" >&6; }
9338 if test "${crosstools}" = "yes"; then
9339 if test "${crosstools_guess}" = "no"; then
9340 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9344 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9345 aros_target_toolchain="yes"
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9349 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9351 # Check whether --with-aros-toolchain-install was given.
9352 if test "${with_aros_toolchain_install+set}" = set; then :
9353 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9356 if test "x$aros_toolchain_install" = "x"; then
9357 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9358 else
9359 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9360 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9361 if test "$crosstools_guess" = "no" ; then
9362 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9363 aros_kernel_sysroot="$""(TARGET_SYSROOT)"
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9368 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9370 #-----------------------------------------------------------------------------
9371 if test "$aros_toolchain" = "gnu" ; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9373 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9376 # Check whether --with-binutils-version was given.
9377 if test "${with_binutils_version+set}" = set; then :
9378 withval=$with_binutils_version; use_binutils_version="$withval"
9379 else
9380 use_binutils_version=""
9383 if test "$use_binutils_version" = ""; then
9384 target_binutils_version="$default_binutils_version"
9385 else
9386 target_binutils_version="$use_binutils_version"
9388 if test "$aros_toolchain" = "gnu" ; then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9390 $as_echo "$target_binutils_version" >&6; }
9394 # Helper to identify gcc version
9397 #-----------------------------------------------------------------------------
9398 if test "$aros_toolchain" = "gnu" ; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9400 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9403 # Check whether --with-gcc-version was given.
9404 if test "${with_gcc_version+set}" = set; then :
9405 withval=$with_gcc_version; use_gcc_version="$withval"
9406 else
9407 use_gcc_version=""
9410 if test "$use_gcc_version" = ""; then
9411 if test "${crosstools}" = "no"; then
9412 if test "x$aros_toolchain_install" != "x"; then
9414 target_gcc_version=""
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9416 $as_echo_n "checking gcc version... " >&6; }
9417 if ${ax_cv_gcc_version+:} false; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9421 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9422 if test "x$ax_cv_gcc_version" = "x"; then :
9424 ax_cv_gcc_version=""
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9430 $as_echo "$ax_cv_gcc_version" >&6; }
9431 target_gcc_version=$ax_cv_gcc_version
9436 if test "$use_gcc_version" = ""; then
9437 target_gcc_version="$default_gcc_version"
9439 else
9440 target_gcc_version="$use_gcc_version"
9442 if test "$aros_toolchain" = "gnu" ; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9444 $as_echo "$target_gcc_version" >&6; }
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
9447 $as_echo_n "checking version string style... " >&6; }
9448 if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
9450 $as_echo "snapshot" >&6; }
9451 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'-' -f1)
9452 GCC_VERSION_MINOR=-1
9453 GCC_VERSION_PATCH=-1
9454 else
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
9456 $as_echo "release" >&6; }
9457 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9458 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9459 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9462 gcc_fix_bitfields="false"
9463 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9464 gcc_fix_bitfields="true"
9465 else
9466 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9467 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9468 gcc_fix_bitfields="true"
9473 if test "$gcc_fix_bitfields" = "true" ; then
9474 case "$aros_target_cpu" in
9475 *x86_64* | *i?86*)
9476 x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9477 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9479 esac
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9484 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9485 # Check whether --enable-objc was given.
9486 if test "${enable_objc+set}" = set; then :
9487 enableval=$enable_objc; objc="$enableval"
9488 else
9489 objc="no"
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9493 $as_echo "$objc" >&6; }
9494 if test "x$objc" = "xyes"; then
9495 objc_target="$objc"
9496 else
9497 objc_target="no-objc"
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9501 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9502 # Check whether --enable-java was given.
9503 if test "${enable_java+set}" = set; then :
9504 enableval=$enable_java; java="$enableval"
9505 else
9506 java="no"
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9510 $as_echo "$java" >&6; }
9511 if test "x$java" != "xno"; then
9512 java_target="$java"
9513 else
9514 java_target="no-java"
9517 spec_obj_format="-m $aros_object_format"
9518 # Now process extra architecture-specific options.
9519 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9520 # as well as floating-point ABI.
9521 case "$aros_target_cpu" in
9522 *m68k*)
9523 aros_isa_targets="M68K_ISA_TARGETS :=MC68020 MC68040"
9524 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9525 aros_isa_extra="$aros_isa_extra$m68k_isa_extra$export_newline$m68k_020_isa_extra$export_newline$m68k_030_isa_extra$export_newline$m68k_040_isa_extra$export_newline$m68k_060_isa_extra$export_newline$m68k_ac080_isa_extra$export_newline"
9526 aros_isa_extra="$aros_isa_extra$m68k_020_cppflags$export_newline$m68k_030_cppflags$export_newline$m68k_040_cppflags$export_newline$m68k_060_cppflags$export_newline"
9527 aros_isa_extra="$aros_isa_extra$m68k_020_cflags$export_newline$m68k_030_cflags$export_newline$m68k_040_cflags$export_newline$m68k_060_cflags$export_newline"
9528 aros_isa_extra="$aros_isa_extra$m68k_020_ldflags$export_newline$m68k_030_ldflags$export_newline$m68k_040_ldflags$export_newline$m68k_060_ldflags$export_newline"
9529 aros_isa_extra="$aros_isa_extra$m68k_020_ext$export_newline$m68k_030_ext$export_newline$m68k_040_ext$export_newline$m68k_060_ext$export_newline"
9531 *x86_64*)
9532 aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9533 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9535 arm*)
9536 if test "$gcc_default_cpu" = ""; then
9537 gcc_default_cpu="armv6"
9539 if test "$gcc_default_fpu" = ""; then
9540 gcc_default_fpu="vfp"
9542 if test "$gcc_default_endian" = ""; then
9543 if test "$target_cpu" = "armeb"; then
9544 gcc_default_endian="big-endian"
9545 else
9546 gcc_default_endian="little-endian"
9549 if test "$gcc_default_float_abi" = ""; then
9550 if test "$target_cpu" = "armhf"; then
9551 gcc_default_float_abi="hard"
9552 else
9553 gcc_default_float_abi="softfp"
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9558 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9560 # Check whether --with-cpu was given.
9561 if test "${with_cpu+set}" = set; then :
9562 withval=$with_cpu; aros_gcc_cpu="$withval"
9563 else
9564 aros_gcc_cpu=$gcc_default_cpu
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9568 $as_echo "$aros_gcc_cpu" >&6; }
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9571 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9573 # Check whether --with-fpu was given.
9574 if test "${with_fpu+set}" = set; then :
9575 withval=$with_fpu; aros_gcc_fpu="$withval"
9576 else
9577 aros_gcc_fpu=$gcc_default_fpu
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9581 $as_echo "$aros_gcc_fpu" >&6; }
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9584 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9586 # Check whether --with-float was given.
9587 if test "${with_float+set}" = set; then :
9588 withval=$with_float; aros_gcc_float_abi="$withval"
9589 else
9590 aros_gcc_float_abi=$gcc_default_float_abi
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9594 $as_echo "$aros_gcc_float_abi" >&6; }
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9597 $as_echo_n "checking Which ARM mode to use... " >&6; }
9598 if test "$aros_target_cpu_mode" = ""; then
9599 aros_target_cpu_mode="arm32"
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9601 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9602 else
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9604 $as_echo "$aros_target_cpu_mode" >&6; }
9607 case "$aros_target_cpu_mode" in
9608 arm32)
9609 gcc_default_mode="arm"
9610 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -m$gcc_default_endian -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9612 arm64)
9613 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9615 thumb)
9616 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9618 thumb1)
9619 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9621 thumb2)
9622 gcc_default_mode="thumb"
9623 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9624 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -$gcc_default_endian -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9627 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9629 esac
9631 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9632 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9633 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9635 i386)
9636 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9637 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9639 esac
9641 # Some architectures may need custom ELF specs.
9642 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9643 elf_specs_in=config/${aros_object_format}-specs.in
9644 else
9645 elf_specs_in=config/elf-specs.in
9648 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9649 # Since we override specs, we may need to put these defines there
9650 if test "$gcc_target_cpu" != ""; then
9651 gcc_target_cpu="-D__${gcc_target_cpu}__"
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9655 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9657 # Check whether --with-portssources was given.
9658 if test "${with_portssources+set}" = set; then :
9659 withval=$with_portssources; with_portssrcdir=$withval
9660 else
9661 with_portssrcdir="default"
9664 if test "$with_portssrcdir" = "default"; then
9665 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9666 else
9667 AROS_PORTSSRCDIR="$with_portssrcdir"
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9670 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9673 $as_echo_n "checking which bootloader to use... " >&6; }
9675 # Check whether --with-bootloader was given.
9676 if test "${with_bootloader+set}" = set; then :
9677 withval=$with_bootloader; target_bootloader=$withval
9678 else
9679 target_bootloader=$target_bootloader
9682 if test "$target_bootloader" = "none"; then
9683 aros_target_bootloader=""
9684 else
9685 aros_target_bootloader="$target_bootloader"
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9688 $as_echo "$target_bootloader" >&6; }
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9691 $as_echo_n "checking which icon-set to use... " >&6; }
9693 # Check whether --with-iconset was given.
9694 if test "${with_iconset+set}" = set; then :
9695 withval=$with_iconset; target_iconset=$withval
9696 else
9697 target_iconset="default"
9700 if test "$target_iconset" = "default"; then
9701 aros_target_iconset="Gorilla"
9702 target_iconset="default (Gorilla)"
9703 else
9704 aros_target_iconset="$target_iconset"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9707 $as_echo "$target_iconset" >&6; }
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9710 $as_echo_n "checking which GUI Theme to use... " >&6; }
9712 # Check whether --with-theme was given.
9713 if test "${with_theme+set}" = set; then :
9714 withval=$with_theme; target_guitheme=$withval
9715 else
9716 target_guitheme="default"
9719 if test "$target_guitheme" = "default"; then
9720 aros_target_guitheme="Ice"
9721 else
9722 aros_target_guitheme="$target_guitheme"
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9725 $as_echo "$aros_target_guitheme" >&6; }
9727 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9728 # for target code)
9729 cross_compiling=no
9731 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9732 cross_compiling=yes
9735 if test "$aros_host_cpu" == "x86_64" ; then
9736 if test "$aros_target_cpu" == "i386" ; then
9737 cross_compiling=no
9741 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9742 if test "$aros_host_arch" != "$aros_target_arch" ; then
9743 cross_compiling=yes
9745 else
9746 cross_compiling=yes
9749 if test "$cross_compiling" = "no" ; then
9750 kernel_tool_prefix=""
9751 if test "$host_cc_elf" = "yes" ; then
9752 elf_tool_prefix=""
9756 if test "$kernel_tool_version" != ""; then
9757 kernel_tool_version="-$kernel_tool_version"
9760 #######################################################################
9761 ## Compute what toolchains to use, and their paths ##
9762 #######################################################################
9764 # This takes, as input:
9765 # crosstools {yes,no}
9766 # kernel_tool_version {"",[version]}
9767 # target_tool_version {"",[version]}
9768 # kernel_tool_prefix {none,[some-arch-os-]}
9769 # gnu-toolchain -:
9770 # target_tool_prefix ${aros_target_cpu}-aros-
9771 # aros_tool_prefix ${aros_target_cpu}-aros-
9773 # The output is
9774 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9775 # Where the 'kernel' binaries are located
9776 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9777 # Where the 'target' binaries are located
9778 # (not the symlink farm - that is aros_target_*!)
9780 # The rules are:
9781 # if crosstools then
9782 # if kernel_tools_prefix = "no-kernel-prefix-"
9783 # aros_kernel_* = crosstools cc paths
9784 # aros_kernel_cc = elf cc wrapper around crosstools cc
9785 # else
9786 # VALIDATE(${kernel_tools_prefix}*)
9787 # aros_kernel_* = ${kernel_tools_prefix}*
9788 # if ${kernel_tools_prefix}cc is an AROS gcc
9789 # aros_kernel_cc = ${kernel_tools_prefix}cc
9790 # else
9791 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9792 # fi
9793 # fi
9795 # orig_target_* = aros built crosstools
9796 # orig_target_cc = elf cc wrapper around crosstools cc
9797 # else
9798 # VALIDATE(${kernel_tools_prefix}*)
9800 # orig_target_* = aros_kernel_*
9801 # if aros_kernel_cc is an AROS gcc
9802 # orig_target_cc = aros_kernel_cc
9803 # else
9804 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9805 # fi
9806 # fi
9808 if test "$aros_toolchain" = "gnu" ; then
9809 target_tool_prefix="${aros_target_cpu}-aros-"
9810 elif test "$aros_toolchain" = "llvm" ; then
9811 target_tool_prefix="bin/"
9814 if test "$kernel_tool_prefix" != "" ; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9816 $as_echo_n "checking which kernel tools... " >&6; }
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9818 $as_echo "$kernel_tool_prefix" >&6; };
9821 if test "$kernel_tool_prefix" = "none" ; then
9822 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9823 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9825 else
9826 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
9827 # Kernel tools required - find them
9828 # Note that 'normally', aros_kernel_* overrides will be
9829 # empty, unless specified in the per-arch sections above.
9830 test_kernel_cc=yes
9831 if test "x$aros_kernel_cpp" = "x"; then
9832 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9834 if test "${kernel_tool_version}" != ""; then
9835 if test "$aros_kernel_cpp" != ""; then
9836 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9837 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9838 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9842 if test "$aros_kernel_cpp" = ""; then
9843 if test "$cross_compiling" = "yes" ; then
9844 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9845 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847 $as_echo_n "checking for $ac_word... " >&6; }
9848 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 case $aros_kernel_cpp in
9852 [\\/]* | ?:[\\/]*)
9853 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9857 for as_dir in $PATH
9859 IFS=$as_save_IFS
9860 test -z "$as_dir" && as_dir=.
9861 for ac_exec_ext in '' $ac_executable_extensions; do
9862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9863 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9865 break 2
9867 done
9868 done
9869 IFS=$as_save_IFS
9872 esac
9874 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9875 if test -n "$aros_kernel_cpp"; then
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9877 $as_echo "$aros_kernel_cpp" >&6; }
9878 else
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; }
9884 else
9886 if test "" = ""; then
9887 ac_tool_cpp=cpp
9888 else
9889 ac_tool_cpp=
9891 if test "$GCC" = "yes"; then
9892 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
9893 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9894 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896 $as_echo_n "checking for $ac_word... " >&6; }
9897 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 case $aros_kernel_cpp in
9901 [\\/]* | ?:[\\/]*)
9902 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906 for as_dir in `dirname $aros_gcc_cpp`
9908 IFS=$as_save_IFS
9909 test -z "$as_dir" && as_dir=.
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9912 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9914 break 2
9916 done
9917 done
9918 IFS=$as_save_IFS
9921 esac
9923 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9924 if test -n "$aros_kernel_cpp"; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9926 $as_echo "$aros_kernel_cpp" >&6; }
9927 else
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929 $as_echo "no" >&6; }
9934 if test "$aros_kernel_cpp" = ""; then
9935 for ac_prog in $ac_tool_cpp
9937 # Extract the first word of "$ac_prog", so it can be a program name with args.
9938 set dummy $ac_prog; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 $as_echo_n "checking for $ac_word... " >&6; }
9941 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9942 $as_echo_n "(cached) " >&6
9943 else
9944 case $aros_kernel_cpp in
9945 [\\/]* | ?:[\\/]*)
9946 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950 for as_dir in $PATH
9952 IFS=$as_save_IFS
9953 test -z "$as_dir" && as_dir=.
9954 for ac_exec_ext in '' $ac_executable_extensions; do
9955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9956 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9958 break 2
9960 done
9961 done
9962 IFS=$as_save_IFS
9965 esac
9967 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9968 if test -n "$aros_kernel_cpp"; then
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9970 $as_echo "$aros_kernel_cpp" >&6; }
9971 else
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9977 test -n "$aros_kernel_cpp" && break
9978 done
9983 else
9984 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9985 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9986 set dummy $aros_kernel_cpp; ac_word=$2
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988 $as_echo_n "checking for $ac_word... " >&6; }
9989 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 case $aros_kernel_cpp in
9993 [\\/]* | ?:[\\/]*)
9994 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998 for as_dir in $PATH
10000 IFS=$as_save_IFS
10001 test -z "$as_dir" && as_dir=.
10002 for ac_exec_ext in '' $ac_executable_extensions; do
10003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10004 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10006 break 2
10008 done
10009 done
10010 IFS=$as_save_IFS
10013 esac
10015 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10016 if test -n "$aros_kernel_cpp"; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10018 $as_echo "$aros_kernel_cpp" >&6; }
10019 else
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10025 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
10028 req_avail=yes
10029 if test "$aros_kernel_cpp" = ""; then
10030 req_avail=no
10032 if test "$aros_kernel_cpp" = "no"; then
10033 req_avail=no
10035 if test "$req_avail" = "no"; then
10036 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10039 if test "x$aros_kernel_cc" = "x"; then
10040 aros_kernel_cc=${kernel_tool_prefix}${CC}
10042 if test "${kernel_tool_version}" != ""; then
10043 if test "$aros_kernel_cc" != ""; then
10044 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10045 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
10046 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10050 if test "$aros_kernel_cc" = ""; then
10051 if test "$cross_compiling" = "yes" ; then
10052 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
10053 set dummy ${kernel_tool_prefix}cc; ac_word=$2
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 case $aros_kernel_cc in
10060 [\\/]* | ?:[\\/]*)
10061 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10071 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10075 done
10076 done
10077 IFS=$as_save_IFS
10080 esac
10082 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10083 if test -n "$aros_kernel_cc"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10085 $as_echo "$aros_kernel_cc" >&6; }
10086 else
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10092 else
10094 if test "" = ""; then
10095 ac_tool_cc=cc
10096 else
10097 ac_tool_cc=
10099 if test "$GCC" = "yes"; then
10100 aros_gcc_cc=`$CC -print-prog-name=$ac_tool_cc`
10101 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
10102 set dummy `basename $aros_gcc_cc`; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 case $aros_kernel_cc in
10109 [\\/]* | ?:[\\/]*)
10110 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in `dirname $aros_gcc_cc`
10116 IFS=$as_save_IFS
10117 test -z "$as_dir" && as_dir=.
10118 for ac_exec_ext in '' $ac_executable_extensions; do
10119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10120 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10122 break 2
10124 done
10125 done
10126 IFS=$as_save_IFS
10129 esac
10131 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10132 if test -n "$aros_kernel_cc"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10134 $as_echo "$aros_kernel_cc" >&6; }
10135 else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10142 if test "$aros_kernel_cc" = ""; then
10143 for ac_prog in $ac_tool_cc
10145 # Extract the first word of "$ac_prog", so it can be a program name with args.
10146 set dummy $ac_prog; ac_word=$2
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10148 $as_echo_n "checking for $ac_word... " >&6; }
10149 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10150 $as_echo_n "(cached) " >&6
10151 else
10152 case $aros_kernel_cc in
10153 [\\/]* | ?:[\\/]*)
10154 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10158 for as_dir in $PATH
10160 IFS=$as_save_IFS
10161 test -z "$as_dir" && as_dir=.
10162 for ac_exec_ext in '' $ac_executable_extensions; do
10163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10164 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10166 break 2
10168 done
10169 done
10170 IFS=$as_save_IFS
10173 esac
10175 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10176 if test -n "$aros_kernel_cc"; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10178 $as_echo "$aros_kernel_cc" >&6; }
10179 else
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10185 test -n "$aros_kernel_cc" && break
10186 done
10191 else
10192 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10193 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
10194 set dummy $aros_kernel_cc; ac_word=$2
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10196 $as_echo_n "checking for $ac_word... " >&6; }
10197 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10198 $as_echo_n "(cached) " >&6
10199 else
10200 case $aros_kernel_cc in
10201 [\\/]* | ?:[\\/]*)
10202 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206 for as_dir in $PATH
10208 IFS=$as_save_IFS
10209 test -z "$as_dir" && as_dir=.
10210 for ac_exec_ext in '' $ac_executable_extensions; do
10211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10212 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10214 break 2
10216 done
10217 done
10218 IFS=$as_save_IFS
10221 esac
10223 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10224 if test -n "$aros_kernel_cc"; then
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10226 $as_echo "$aros_kernel_cc" >&6; }
10227 else
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229 $as_echo "no" >&6; }
10233 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
10236 req_avail=yes
10237 if test "$aros_kernel_cc" = ""; then
10238 req_avail=no
10240 if test "$aros_kernel_cc" = "no"; then
10241 req_avail=no
10243 if test "$req_avail" = "no"; then
10244 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10247 if test "x$aros_kernel_cxx" = "x"; then
10248 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
10250 if test "${kernel_tool_version}" != ""; then
10251 if test "$aros_kernel_cxx" != ""; then
10252 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10253 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
10254 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10258 if test "$aros_kernel_cxx" = ""; then
10259 if test "$cross_compiling" = "yes" ; then
10260 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
10261 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263 $as_echo_n "checking for $ac_word... " >&6; }
10264 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 case $aros_kernel_cxx in
10268 [\\/]* | ?:[\\/]*)
10269 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273 for as_dir in $PATH
10275 IFS=$as_save_IFS
10276 test -z "$as_dir" && as_dir=.
10277 for ac_exec_ext in '' $ac_executable_extensions; do
10278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10279 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10281 break 2
10283 done
10284 done
10285 IFS=$as_save_IFS
10288 esac
10290 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10291 if test -n "$aros_kernel_cxx"; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10293 $as_echo "$aros_kernel_cxx" >&6; }
10294 else
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10300 else
10302 if test "" = ""; then
10303 ac_tool_cxx=cxx
10304 else
10305 ac_tool_cxx=
10307 if test "$GCC" = "yes"; then
10308 aros_gcc_cxx=`$CC -print-prog-name=$ac_tool_cxx`
10309 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10310 set dummy `basename $aros_gcc_cxx`; ac_word=$2
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312 $as_echo_n "checking for $ac_word... " >&6; }
10313 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10314 $as_echo_n "(cached) " >&6
10315 else
10316 case $aros_kernel_cxx in
10317 [\\/]* | ?:[\\/]*)
10318 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in `dirname $aros_gcc_cxx`
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10332 done
10333 done
10334 IFS=$as_save_IFS
10337 esac
10339 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10340 if test -n "$aros_kernel_cxx"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10342 $as_echo "$aros_kernel_cxx" >&6; }
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10350 if test "$aros_kernel_cxx" = ""; then
10351 for ac_prog in $ac_tool_cxx
10353 # Extract the first word of "$ac_prog", so it can be a program name with args.
10354 set dummy $ac_prog; ac_word=$2
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 case $aros_kernel_cxx in
10361 [\\/]* | ?:[\\/]*)
10362 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10376 done
10377 done
10378 IFS=$as_save_IFS
10381 esac
10383 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10384 if test -n "$aros_kernel_cxx"; then
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10386 $as_echo "$aros_kernel_cxx" >&6; }
10387 else
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389 $as_echo "no" >&6; }
10393 test -n "$aros_kernel_cxx" && break
10394 done
10399 else
10400 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10401 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10402 set dummy $aros_kernel_cxx; ac_word=$2
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10404 $as_echo_n "checking for $ac_word... " >&6; }
10405 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 case $aros_kernel_cxx in
10409 [\\/]* | ?:[\\/]*)
10410 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414 for as_dir in $PATH
10416 IFS=$as_save_IFS
10417 test -z "$as_dir" && as_dir=.
10418 for ac_exec_ext in '' $ac_executable_extensions; do
10419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10420 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10422 break 2
10424 done
10425 done
10426 IFS=$as_save_IFS
10429 esac
10431 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10432 if test -n "$aros_kernel_cxx"; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10434 $as_echo "$aros_kernel_cxx" >&6; }
10435 else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10441 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10444 # If it's set, make sure it's really there
10445 if test "x$aros_kernel_cxx" != "x" ; then
10446 req_avail=yes
10447 if test "$aros_kernel_cxx" = ""; then
10448 req_avail=no
10450 if test "$aros_kernel_cxx" = "no"; then
10451 req_avail=no
10453 if test "$req_avail" = "no"; then
10454 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10457 if test "x$aros_kernel_ld" = "x"; then
10458 aros_kernel_ld=$aros_host_ld
10461 if test "$aros_kernel_ld" = ""; then
10462 if test "$cross_compiling" = "yes" ; then
10463 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10464 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466 $as_echo_n "checking for $ac_word... " >&6; }
10467 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 case $aros_kernel_ld in
10471 [\\/]* | ?:[\\/]*)
10472 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476 for as_dir in $PATH
10478 IFS=$as_save_IFS
10479 test -z "$as_dir" && as_dir=.
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10482 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10484 break 2
10486 done
10487 done
10488 IFS=$as_save_IFS
10491 esac
10493 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10494 if test -n "$aros_kernel_ld"; then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10496 $as_echo "$aros_kernel_ld" >&6; }
10497 else
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499 $as_echo "no" >&6; }
10503 else
10505 if test "" = ""; then
10506 ac_tool_ld=ld
10507 else
10508 ac_tool_ld=
10510 if test "$GCC" = "yes"; then
10511 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
10512 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10513 set dummy `basename $aros_gcc_ld`; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 case $aros_kernel_ld in
10520 [\\/]* | ?:[\\/]*)
10521 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in `dirname $aros_gcc_ld`
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10531 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10535 done
10536 done
10537 IFS=$as_save_IFS
10540 esac
10542 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10543 if test -n "$aros_kernel_ld"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10545 $as_echo "$aros_kernel_ld" >&6; }
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10553 if test "$aros_kernel_ld" = ""; then
10554 for ac_prog in $ac_tool_ld
10556 # Extract the first word of "$ac_prog", so it can be a program name with args.
10557 set dummy $ac_prog; ac_word=$2
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 $as_echo_n "checking for $ac_word... " >&6; }
10560 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 case $aros_kernel_ld in
10564 [\\/]* | ?:[\\/]*)
10565 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569 for as_dir in $PATH
10571 IFS=$as_save_IFS
10572 test -z "$as_dir" && as_dir=.
10573 for ac_exec_ext in '' $ac_executable_extensions; do
10574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10575 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10577 break 2
10579 done
10580 done
10581 IFS=$as_save_IFS
10584 esac
10586 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10587 if test -n "$aros_kernel_ld"; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10589 $as_echo "$aros_kernel_ld" >&6; }
10590 else
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10596 test -n "$aros_kernel_ld" && break
10597 done
10602 else
10603 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10604 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10605 set dummy $aros_kernel_ld; ac_word=$2
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607 $as_echo_n "checking for $ac_word... " >&6; }
10608 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 case $aros_kernel_ld in
10612 [\\/]* | ?:[\\/]*)
10613 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10617 for as_dir in $PATH
10619 IFS=$as_save_IFS
10620 test -z "$as_dir" && as_dir=.
10621 for ac_exec_ext in '' $ac_executable_extensions; do
10622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10623 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10625 break 2
10627 done
10628 done
10629 IFS=$as_save_IFS
10632 esac
10634 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10635 if test -n "$aros_kernel_ld"; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10637 $as_echo "$aros_kernel_ld" >&6; }
10638 else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 $as_echo "no" >&6; }
10644 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10647 req_avail=yes
10648 if test "$aros_kernel_ld" = ""; then
10649 req_avail=no
10651 if test "$aros_kernel_ld" = "no"; then
10652 req_avail=no
10654 if test "$req_avail" = "no"; then
10655 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10657 if test "x$aros_kernel_as" = "x"; then
10658 aros_kernel_as=$aros_host_as
10659 if test "x$aros_kernel_as" = "x"; then
10660 aros_kernel_as=${HOST_TOOLCHAIN_PREFIX}as${HOST_TOOLCHAIN_SUFFIX}
10664 if test "$aros_kernel_as" = ""; then
10665 if test "$cross_compiling" = "yes" ; then
10666 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10667 set dummy ${kernel_tool_prefix}as; ac_word=$2
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10669 $as_echo_n "checking for $ac_word... " >&6; }
10670 if ${ac_cv_path_aros_kernel_as+:} false; then :
10671 $as_echo_n "(cached) " >&6
10672 else
10673 case $aros_kernel_as in
10674 [\\/]* | ?:[\\/]*)
10675 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679 for as_dir in $PATH
10681 IFS=$as_save_IFS
10682 test -z "$as_dir" && as_dir=.
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10685 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10687 break 2
10689 done
10690 done
10691 IFS=$as_save_IFS
10694 esac
10696 aros_kernel_as=$ac_cv_path_aros_kernel_as
10697 if test -n "$aros_kernel_as"; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10699 $as_echo "$aros_kernel_as" >&6; }
10700 else
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702 $as_echo "no" >&6; }
10706 else
10708 if test "" = ""; then
10709 ac_tool_as=as
10710 else
10711 ac_tool_as=
10713 if test "$GCC" = "yes"; then
10714 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
10715 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10716 set dummy `basename $aros_gcc_as`; ac_word=$2
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718 $as_echo_n "checking for $ac_word... " >&6; }
10719 if ${ac_cv_path_aros_kernel_as+:} false; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 case $aros_kernel_as in
10723 [\\/]* | ?:[\\/]*)
10724 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in `dirname $aros_gcc_as`
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10734 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 break 2
10738 done
10739 done
10740 IFS=$as_save_IFS
10743 esac
10745 aros_kernel_as=$ac_cv_path_aros_kernel_as
10746 if test -n "$aros_kernel_as"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10748 $as_echo "$aros_kernel_as" >&6; }
10749 else
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 $as_echo "no" >&6; }
10756 if test "$aros_kernel_as" = ""; then
10757 for ac_prog in $ac_tool_as
10759 # Extract the first word of "$ac_prog", so it can be a program name with args.
10760 set dummy $ac_prog; ac_word=$2
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10762 $as_echo_n "checking for $ac_word... " >&6; }
10763 if ${ac_cv_path_aros_kernel_as+:} false; then :
10764 $as_echo_n "(cached) " >&6
10765 else
10766 case $aros_kernel_as in
10767 [\\/]* | ?:[\\/]*)
10768 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772 for as_dir in $PATH
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10778 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10782 done
10783 done
10784 IFS=$as_save_IFS
10787 esac
10789 aros_kernel_as=$ac_cv_path_aros_kernel_as
10790 if test -n "$aros_kernel_as"; then
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10792 $as_echo "$aros_kernel_as" >&6; }
10793 else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10799 test -n "$aros_kernel_as" && break
10800 done
10805 else
10806 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10807 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10808 set dummy $aros_kernel_as; ac_word=$2
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10810 $as_echo_n "checking for $ac_word... " >&6; }
10811 if ${ac_cv_path_aros_kernel_as+:} false; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 case $aros_kernel_as in
10815 [\\/]* | ?:[\\/]*)
10816 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820 for as_dir in $PATH
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10826 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10830 done
10831 done
10832 IFS=$as_save_IFS
10835 esac
10837 aros_kernel_as=$ac_cv_path_aros_kernel_as
10838 if test -n "$aros_kernel_as"; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10840 $as_echo "$aros_kernel_as" >&6; }
10841 else
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843 $as_echo "no" >&6; }
10847 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10850 req_avail=yes
10851 if test "$aros_kernel_as" = ""; then
10852 req_avail=no
10854 if test "$aros_kernel_as" = "no"; then
10855 req_avail=no
10857 if test "$req_avail" = "no"; then
10858 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10860 if test "x$aros_kernel_ar" = "x"; then
10861 aros_kernel_ar=$aros_host_full_ar
10864 if test "$aros_kernel_ar" = ""; then
10865 if test "$cross_compiling" = "yes" ; then
10866 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10867 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869 $as_echo_n "checking for $ac_word... " >&6; }
10870 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 case $aros_kernel_ar in
10874 [\\/]* | ?:[\\/]*)
10875 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879 for as_dir in $PATH
10881 IFS=$as_save_IFS
10882 test -z "$as_dir" && as_dir=.
10883 for ac_exec_ext in '' $ac_executable_extensions; do
10884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10887 break 2
10889 done
10890 done
10891 IFS=$as_save_IFS
10894 esac
10896 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10897 if test -n "$aros_kernel_ar"; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10899 $as_echo "$aros_kernel_ar" >&6; }
10900 else
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902 $as_echo "no" >&6; }
10906 else
10908 if test "" = ""; then
10909 ac_tool_ar=ar
10910 else
10911 ac_tool_ar=
10913 if test "$GCC" = "yes"; then
10914 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
10915 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10916 set dummy `basename $aros_gcc_ar`; ac_word=$2
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918 $as_echo_n "checking for $ac_word... " >&6; }
10919 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 case $aros_kernel_ar in
10923 [\\/]* | ?:[\\/]*)
10924 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in `dirname $aros_gcc_ar`
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10934 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10938 done
10939 done
10940 IFS=$as_save_IFS
10943 esac
10945 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10946 if test -n "$aros_kernel_ar"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10948 $as_echo "$aros_kernel_ar" >&6; }
10949 else
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951 $as_echo "no" >&6; }
10956 if test "$aros_kernel_ar" = ""; then
10957 for ac_prog in $ac_tool_ar
10959 # Extract the first word of "$ac_prog", so it can be a program name with args.
10960 set dummy $ac_prog; ac_word=$2
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10962 $as_echo_n "checking for $ac_word... " >&6; }
10963 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 case $aros_kernel_ar in
10967 [\\/]* | ?:[\\/]*)
10968 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10978 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 break 2
10982 done
10983 done
10984 IFS=$as_save_IFS
10987 esac
10989 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10990 if test -n "$aros_kernel_ar"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10992 $as_echo "$aros_kernel_ar" >&6; }
10993 else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10999 test -n "$aros_kernel_ar" && break
11000 done
11005 else
11006 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11007 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
11008 set dummy $aros_kernel_ar; ac_word=$2
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010 $as_echo_n "checking for $ac_word... " >&6; }
11011 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11012 $as_echo_n "(cached) " >&6
11013 else
11014 case $aros_kernel_ar in
11015 [\\/]* | ?:[\\/]*)
11016 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020 for as_dir in $PATH
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11026 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11028 break 2
11030 done
11031 done
11032 IFS=$as_save_IFS
11035 esac
11037 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11038 if test -n "$aros_kernel_ar"; then
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11040 $as_echo "$aros_kernel_ar" >&6; }
11041 else
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11047 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
11050 req_avail=yes
11051 if test "$aros_kernel_ar" = ""; then
11052 req_avail=no
11054 if test "$aros_kernel_ar" = "no"; then
11055 req_avail=no
11057 if test "$req_avail" = "no"; then
11058 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11060 if test "x$aros_kernel_ranlib" = "x"; then
11061 aros_kernel_ranlib=$aros_host_ranlib
11064 if test "$aros_kernel_ranlib" = ""; then
11065 if test "$cross_compiling" = "yes" ; then
11066 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
11067 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 case $aros_kernel_ranlib in
11074 [\\/]* | ?:[\\/]*)
11075 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 for as_dir in $PATH
11081 IFS=$as_save_IFS
11082 test -z "$as_dir" && as_dir=.
11083 for ac_exec_ext in '' $ac_executable_extensions; do
11084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11085 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 break 2
11089 done
11090 done
11091 IFS=$as_save_IFS
11094 esac
11096 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11097 if test -n "$aros_kernel_ranlib"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11099 $as_echo "$aros_kernel_ranlib" >&6; }
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11106 else
11108 if test "" = ""; then
11109 ac_tool_ranlib=ranlib
11110 else
11111 ac_tool_ranlib=
11113 if test "$GCC" = "yes"; then
11114 aros_gcc_ranlib=`$CC -print-prog-name=$ac_tool_ranlib`
11115 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11116 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11118 $as_echo_n "checking for $ac_word... " >&6; }
11119 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11120 $as_echo_n "(cached) " >&6
11121 else
11122 case $aros_kernel_ranlib in
11123 [\\/]* | ?:[\\/]*)
11124 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in `dirname $aros_gcc_ranlib`
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
11133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11134 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 break 2
11138 done
11139 done
11140 IFS=$as_save_IFS
11143 esac
11145 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11146 if test -n "$aros_kernel_ranlib"; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11148 $as_echo "$aros_kernel_ranlib" >&6; }
11149 else
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11156 if test "$aros_kernel_ranlib" = ""; then
11157 for ac_prog in $ac_tool_ranlib
11159 # Extract the first word of "$ac_prog", so it can be a program name with args.
11160 set dummy $ac_prog; ac_word=$2
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11162 $as_echo_n "checking for $ac_word... " >&6; }
11163 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11164 $as_echo_n "(cached) " >&6
11165 else
11166 case $aros_kernel_ranlib in
11167 [\\/]* | ?:[\\/]*)
11168 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172 for as_dir in $PATH
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11178 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11180 break 2
11182 done
11183 done
11184 IFS=$as_save_IFS
11187 esac
11189 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11190 if test -n "$aros_kernel_ranlib"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11192 $as_echo "$aros_kernel_ranlib" >&6; }
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; }
11199 test -n "$aros_kernel_ranlib" && break
11200 done
11205 else
11206 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11207 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
11208 set dummy $aros_kernel_ranlib; ac_word=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 case $aros_kernel_ranlib in
11215 [\\/]* | ?:[\\/]*)
11216 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11222 IFS=$as_save_IFS
11223 test -z "$as_dir" && as_dir=.
11224 for ac_exec_ext in '' $ac_executable_extensions; do
11225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11226 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11228 break 2
11230 done
11231 done
11232 IFS=$as_save_IFS
11235 esac
11237 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11238 if test -n "$aros_kernel_ranlib"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11240 $as_echo "$aros_kernel_ranlib" >&6; }
11241 else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11247 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
11250 req_avail=yes
11251 if test "$aros_kernel_ranlib" = ""; then
11252 req_avail=no
11254 if test "$aros_kernel_ranlib" = "no"; then
11255 req_avail=no
11257 if test "$req_avail" = "no"; then
11258 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11260 if test "x$aros_kernel_nm" = "x"; then
11261 aros_kernel_nm=$aros_host_nm
11262 if test "x$aros_kernel_nm" = "x"; then
11263 aros_kernel_nm=${HOST_TOOLCHAIN_PREFIX}nm${HOST_TOOLCHAIN_SUFFIX}
11267 if test "$aros_kernel_nm" = ""; then
11268 if test "$cross_compiling" = "yes" ; then
11269 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
11270 set dummy ${kernel_tool_prefix}nm; ac_word=$2
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11272 $as_echo_n "checking for $ac_word... " >&6; }
11273 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 case $aros_kernel_nm in
11277 [\\/]* | ?:[\\/]*)
11278 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11282 for as_dir in $PATH
11284 IFS=$as_save_IFS
11285 test -z "$as_dir" && as_dir=.
11286 for ac_exec_ext in '' $ac_executable_extensions; do
11287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11288 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11290 break 2
11292 done
11293 done
11294 IFS=$as_save_IFS
11297 esac
11299 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11300 if test -n "$aros_kernel_nm"; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11302 $as_echo "$aros_kernel_nm" >&6; }
11303 else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 $as_echo "no" >&6; }
11309 else
11311 if test "" = ""; then
11312 ac_tool_nm=nm
11313 else
11314 ac_tool_nm=
11316 if test "$GCC" = "yes"; then
11317 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
11318 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11319 set dummy `basename $aros_gcc_nm`; ac_word=$2
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321 $as_echo_n "checking for $ac_word... " >&6; }
11322 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325 case $aros_kernel_nm in
11326 [\\/]* | ?:[\\/]*)
11327 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in `dirname $aros_gcc_nm`
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11337 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11341 done
11342 done
11343 IFS=$as_save_IFS
11346 esac
11348 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11349 if test -n "$aros_kernel_nm"; then
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11351 $as_echo "$aros_kernel_nm" >&6; }
11352 else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354 $as_echo "no" >&6; }
11359 if test "$aros_kernel_nm" = ""; then
11360 for ac_prog in $ac_tool_nm
11362 # Extract the first word of "$ac_prog", so it can be a program name with args.
11363 set dummy $ac_prog; ac_word=$2
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11365 $as_echo_n "checking for $ac_word... " >&6; }
11366 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 case $aros_kernel_nm in
11370 [\\/]* | ?:[\\/]*)
11371 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11375 for as_dir in $PATH
11377 IFS=$as_save_IFS
11378 test -z "$as_dir" && as_dir=.
11379 for ac_exec_ext in '' $ac_executable_extensions; do
11380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11381 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11383 break 2
11385 done
11386 done
11387 IFS=$as_save_IFS
11390 esac
11392 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11393 if test -n "$aros_kernel_nm"; then
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11395 $as_echo "$aros_kernel_nm" >&6; }
11396 else
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398 $as_echo "no" >&6; }
11402 test -n "$aros_kernel_nm" && break
11403 done
11408 else
11409 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11410 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11411 set dummy $aros_kernel_nm; ac_word=$2
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413 $as_echo_n "checking for $ac_word... " >&6; }
11414 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 case $aros_kernel_nm in
11418 [\\/]* | ?:[\\/]*)
11419 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11425 IFS=$as_save_IFS
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11429 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11431 break 2
11433 done
11434 done
11435 IFS=$as_save_IFS
11438 esac
11440 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11441 if test -n "$aros_kernel_nm"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11443 $as_echo "$aros_kernel_nm" >&6; }
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; }
11450 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11453 req_avail=yes
11454 if test "$aros_kernel_nm" = ""; then
11455 req_avail=no
11457 if test "$aros_kernel_nm" = "no"; then
11458 req_avail=no
11460 if test "$req_avail" = "no"; then
11461 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11464 if test "$aros_kernel_strip" = ""; then
11465 if test "$cross_compiling" = "yes" ; then
11466 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11467 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469 $as_echo_n "checking for $ac_word... " >&6; }
11470 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 case $aros_kernel_strip in
11474 [\\/]* | ?:[\\/]*)
11475 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479 for as_dir in $PATH
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
11483 for ac_exec_ext in '' $ac_executable_extensions; do
11484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11485 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 break 2
11489 done
11490 done
11491 IFS=$as_save_IFS
11494 esac
11496 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11497 if test -n "$aros_kernel_strip"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11499 $as_echo "$aros_kernel_strip" >&6; }
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11506 else
11508 if test "" = ""; then
11509 ac_tool_strip=strip
11510 else
11511 ac_tool_strip=
11513 if test "$GCC" = "yes"; then
11514 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
11515 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11516 set dummy `basename $aros_gcc_strip`; ac_word=$2
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518 $as_echo_n "checking for $ac_word... " >&6; }
11519 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 case $aros_kernel_strip in
11523 [\\/]* | ?:[\\/]*)
11524 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528 for as_dir in `dirname $aros_gcc_strip`
11530 IFS=$as_save_IFS
11531 test -z "$as_dir" && as_dir=.
11532 for ac_exec_ext in '' $ac_executable_extensions; do
11533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11534 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11536 break 2
11538 done
11539 done
11540 IFS=$as_save_IFS
11543 esac
11545 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11546 if test -n "$aros_kernel_strip"; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11548 $as_echo "$aros_kernel_strip" >&6; }
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11556 if test "$aros_kernel_strip" = ""; then
11557 for ac_prog in $ac_tool_strip
11559 # Extract the first word of "$ac_prog", so it can be a program name with args.
11560 set dummy $ac_prog; ac_word=$2
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562 $as_echo_n "checking for $ac_word... " >&6; }
11563 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11564 $as_echo_n "(cached) " >&6
11565 else
11566 case $aros_kernel_strip in
11567 [\\/]* | ?:[\\/]*)
11568 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $PATH
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11578 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 break 2
11582 done
11583 done
11584 IFS=$as_save_IFS
11587 esac
11589 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11590 if test -n "$aros_kernel_strip"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11592 $as_echo "$aros_kernel_strip" >&6; }
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11599 test -n "$aros_kernel_strip" && break
11600 done
11605 else
11606 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11607 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11608 set dummy $aros_kernel_strip; ac_word=$2
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610 $as_echo_n "checking for $ac_word... " >&6; }
11611 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11612 $as_echo_n "(cached) " >&6
11613 else
11614 case $aros_kernel_strip in
11615 [\\/]* | ?:[\\/]*)
11616 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11622 IFS=$as_save_IFS
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 break 2
11630 done
11631 done
11632 IFS=$as_save_IFS
11635 esac
11637 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11638 if test -n "$aros_kernel_strip"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11640 $as_echo "$aros_kernel_strip" >&6; }
11641 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11647 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11650 req_avail=yes
11651 if test "$aros_kernel_strip" = ""; then
11652 req_avail=no
11654 if test "$aros_kernel_strip" = "no"; then
11655 req_avail=no
11657 if test "$req_avail" = "no"; then
11658 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11661 # Objcopy and objdump are not required for the kernel
11662 # toolchain on many architectures.
11663 # So we'll look for them, but not make them strictly required.
11664 if test "x$aros_kernel_objcopy" = "x"; then
11665 aros_kernel_objcopy=$aros_host_objcopy
11666 if test "x$aros_kernel_objcopy" = "x"; then
11667 aros_kernel_objcopy=${HOST_TOOLCHAIN_PREFIX}objcopy${HOST_TOOLCHAIN_SUFFIX}
11671 if test "$aros_kernel_objcopy" = ""; then
11672 if test "$cross_compiling" = "yes" ; then
11673 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11674 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 case $aros_kernel_objcopy in
11681 [\\/]* | ?:[\\/]*)
11682 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11696 done
11697 done
11698 IFS=$as_save_IFS
11701 esac
11703 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11704 if test -n "$aros_kernel_objcopy"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11706 $as_echo "$aros_kernel_objcopy" >&6; }
11707 else
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11713 else
11715 if test "" = ""; then
11716 ac_tool_objcopy=objcopy
11717 else
11718 ac_tool_objcopy=
11720 if test "$GCC" = "yes"; then
11721 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
11722 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11723 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11725 $as_echo_n "checking for $ac_word... " >&6; }
11726 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11727 $as_echo_n "(cached) " >&6
11728 else
11729 case $aros_kernel_objcopy in
11730 [\\/]* | ?:[\\/]*)
11731 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735 for as_dir in `dirname $aros_gcc_objcopy`
11737 IFS=$as_save_IFS
11738 test -z "$as_dir" && as_dir=.
11739 for ac_exec_ext in '' $ac_executable_extensions; do
11740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11741 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 break 2
11745 done
11746 done
11747 IFS=$as_save_IFS
11750 esac
11752 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11753 if test -n "$aros_kernel_objcopy"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11755 $as_echo "$aros_kernel_objcopy" >&6; }
11756 else
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11763 if test "$aros_kernel_objcopy" = ""; then
11764 for ac_prog in $ac_tool_objcopy
11766 # Extract the first word of "$ac_prog", so it can be a program name with args.
11767 set dummy $ac_prog; ac_word=$2
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769 $as_echo_n "checking for $ac_word... " >&6; }
11770 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 case $aros_kernel_objcopy in
11774 [\\/]* | ?:[\\/]*)
11775 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779 for as_dir in $PATH
11781 IFS=$as_save_IFS
11782 test -z "$as_dir" && as_dir=.
11783 for ac_exec_ext in '' $ac_executable_extensions; do
11784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11785 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11787 break 2
11789 done
11790 done
11791 IFS=$as_save_IFS
11794 esac
11796 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11797 if test -n "$aros_kernel_objcopy"; then
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11799 $as_echo "$aros_kernel_objcopy" >&6; }
11800 else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802 $as_echo "no" >&6; }
11806 test -n "$aros_kernel_objcopy" && break
11807 done
11812 else
11813 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11814 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11815 set dummy $aros_kernel_objcopy; ac_word=$2
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817 $as_echo_n "checking for $ac_word... " >&6; }
11818 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 case $aros_kernel_objcopy in
11822 [\\/]* | ?:[\\/]*)
11823 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827 for as_dir in $PATH
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11833 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 break 2
11837 done
11838 done
11839 IFS=$as_save_IFS
11842 esac
11844 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11845 if test -n "$aros_kernel_objcopy"; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11847 $as_echo "$aros_kernel_objcopy" >&6; }
11848 else
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11854 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11857 if test "x$aros_kernel_objdump" = "x"; then
11858 aros_kernel_objdump=$aros_host_objdump
11859 if test "x$aros_kernel_objdump" = "x"; then
11860 aros_kernel_objdump=${HOST_TOOLCHAIN_PREFIX}objdump${HOST_TOOLCHAIN_SUFFIX}
11864 if test "$aros_kernel_objdump" = ""; then
11865 if test "$cross_compiling" = "yes" ; then
11866 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11867 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869 $as_echo_n "checking for $ac_word... " >&6; }
11870 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11871 $as_echo_n "(cached) " >&6
11872 else
11873 case $aros_kernel_objdump in
11874 [\\/]* | ?:[\\/]*)
11875 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879 for as_dir in $PATH
11881 IFS=$as_save_IFS
11882 test -z "$as_dir" && as_dir=.
11883 for ac_exec_ext in '' $ac_executable_extensions; do
11884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11885 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 break 2
11889 done
11890 done
11891 IFS=$as_save_IFS
11894 esac
11896 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11897 if test -n "$aros_kernel_objdump"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11899 $as_echo "$aros_kernel_objdump" >&6; }
11900 else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11906 else
11908 if test "" = ""; then
11909 ac_tool_objdump=objdump
11910 else
11911 ac_tool_objdump=
11913 if test "$GCC" = "yes"; then
11914 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
11915 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11916 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918 $as_echo_n "checking for $ac_word... " >&6; }
11919 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 case $aros_kernel_objdump in
11923 [\\/]* | ?:[\\/]*)
11924 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in `dirname $aros_gcc_objdump`
11930 IFS=$as_save_IFS
11931 test -z "$as_dir" && as_dir=.
11932 for ac_exec_ext in '' $ac_executable_extensions; do
11933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11934 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936 break 2
11938 done
11939 done
11940 IFS=$as_save_IFS
11943 esac
11945 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11946 if test -n "$aros_kernel_objdump"; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11948 $as_echo "$aros_kernel_objdump" >&6; }
11949 else
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11956 if test "$aros_kernel_objdump" = ""; then
11957 for ac_prog in $ac_tool_objdump
11959 # Extract the first word of "$ac_prog", so it can be a program name with args.
11960 set dummy $ac_prog; ac_word=$2
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11962 $as_echo_n "checking for $ac_word... " >&6; }
11963 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11964 $as_echo_n "(cached) " >&6
11965 else
11966 case $aros_kernel_objdump in
11967 [\\/]* | ?:[\\/]*)
11968 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972 for as_dir in $PATH
11974 IFS=$as_save_IFS
11975 test -z "$as_dir" && as_dir=.
11976 for ac_exec_ext in '' $ac_executable_extensions; do
11977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11978 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11980 break 2
11982 done
11983 done
11984 IFS=$as_save_IFS
11987 esac
11989 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11990 if test -n "$aros_kernel_objdump"; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11992 $as_echo "$aros_kernel_objdump" >&6; }
11993 else
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; }
11999 test -n "$aros_kernel_objdump" && break
12000 done
12005 else
12006 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
12007 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
12008 set dummy $aros_kernel_objdump; ac_word=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 case $aros_kernel_objdump in
12015 [\\/]* | ?:[\\/]*)
12016 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12022 IFS=$as_save_IFS
12023 test -z "$as_dir" && as_dir=.
12024 for ac_exec_ext in '' $ac_executable_extensions; do
12025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12026 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12028 break 2
12030 done
12031 done
12032 IFS=$as_save_IFS
12035 esac
12037 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12038 if test -n "$aros_kernel_objdump"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12040 $as_echo "$aros_kernel_objdump" >&6; }
12041 else
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12047 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
12050 if test "x${crosstools}" != "xyes" ; then
12051 req_avail=yes
12052 if test "$aros_kernel_objcopy" = ""; then
12053 req_avail=no
12055 if test "$aros_kernel_objcopy" = "no"; then
12056 req_avail=no
12058 if test "$req_avail" = "no"; then
12059 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12061 req_avail=yes
12062 if test "$aros_kernel_objdump" = ""; then
12063 req_avail=no
12065 if test "$aros_kernel_objdump" = "no"; then
12066 req_avail=no
12068 if test "$req_avail" = "no"; then
12069 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
12076 $as_echo_n "checking which target tools to use... " >&6; }
12077 if test "$aros_target_toolchain" = "yes"; then
12078 if test "$aros_toolchain" = "llvm" ; then
12079 msg_result="llvm"
12080 else
12081 msg_result=$target_tool_prefix
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
12084 $as_echo "$msg_result" >&6; }
12085 # We are building AROS crosstools
12086 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
12087 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
12088 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
12089 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
12090 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
12091 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
12092 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
12093 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
12094 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
12095 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
12096 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
12097 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
12098 else
12099 # Determine whether AROS or ELF tools should be used
12100 if test "$aros_tool_prefix" = "none"; then
12101 aros_tool_prefix="${elf_tool_prefix}"
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
12105 $as_echo "$aros_tool_prefix" >&6; }
12106 # We are *not* building AROS crosstools - use the AROS or ELF tools
12108 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
12109 if test "$cross_compiling" = "yes" ; then
12110 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
12111 set dummy ${target_tool_prefix}cpp; ac_word=$2
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113 $as_echo_n "checking for $ac_word... " >&6; }
12114 if ${ac_cv_path_orig_target_cpp+:} false; then :
12115 $as_echo_n "(cached) " >&6
12116 else
12117 case $orig_target_cpp in
12118 [\\/]* | ?:[\\/]*)
12119 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12129 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12131 break 2
12133 done
12134 done
12135 IFS=$as_save_IFS
12138 esac
12140 orig_target_cpp=$ac_cv_path_orig_target_cpp
12141 if test -n "$orig_target_cpp"; then
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12143 $as_echo "$orig_target_cpp" >&6; }
12144 else
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12150 else
12152 if test "" = ""; then
12153 ac_tool_cpp=cpp
12154 else
12155 ac_tool_cpp=
12157 if test "$GCC" = "yes"; then
12158 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
12159 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
12160 set dummy `basename $aros_gcc_cpp`; ac_word=$2
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12162 $as_echo_n "checking for $ac_word... " >&6; }
12163 if ${ac_cv_path_orig_target_cpp+:} false; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 case $orig_target_cpp in
12167 [\\/]* | ?:[\\/]*)
12168 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in `dirname $aros_gcc_cpp`
12174 IFS=$as_save_IFS
12175 test -z "$as_dir" && as_dir=.
12176 for ac_exec_ext in '' $ac_executable_extensions; do
12177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12178 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12180 break 2
12182 done
12183 done
12184 IFS=$as_save_IFS
12187 esac
12189 orig_target_cpp=$ac_cv_path_orig_target_cpp
12190 if test -n "$orig_target_cpp"; then
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12192 $as_echo "$orig_target_cpp" >&6; }
12193 else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; }
12200 if test "$orig_target_cpp" = ""; then
12201 for ac_prog in $ac_tool_cpp
12203 # Extract the first word of "$ac_prog", so it can be a program name with args.
12204 set dummy $ac_prog; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if ${ac_cv_path_orig_target_cpp+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 case $orig_target_cpp in
12211 [\\/]* | ?:[\\/]*)
12212 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $PATH
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12222 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 break 2
12226 done
12227 done
12228 IFS=$as_save_IFS
12231 esac
12233 orig_target_cpp=$ac_cv_path_orig_target_cpp
12234 if test -n "$orig_target_cpp"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12236 $as_echo "$orig_target_cpp" >&6; }
12237 else
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12243 test -n "$orig_target_cpp" && break
12244 done
12249 else
12250 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
12251 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
12252 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12254 $as_echo_n "checking for $ac_word... " >&6; }
12255 if ${ac_cv_path_orig_target_cpp+:} false; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 case $orig_target_cpp in
12259 [\\/]* | ?:[\\/]*)
12260 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264 for as_dir in $PATH
12266 IFS=$as_save_IFS
12267 test -z "$as_dir" && as_dir=.
12268 for ac_exec_ext in '' $ac_executable_extensions; do
12269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12270 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12272 break 2
12274 done
12275 done
12276 IFS=$as_save_IFS
12279 esac
12281 orig_target_cpp=$ac_cv_path_orig_target_cpp
12282 if test -n "$orig_target_cpp"; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12284 $as_echo "$orig_target_cpp" >&6; }
12285 else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12291 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
12294 req_avail=yes
12295 if test "$orig_target_cpp" = ""; then
12296 req_avail=no
12298 if test "$orig_target_cpp" = "no"; then
12299 req_avail=no
12301 if test "$req_avail" = "no"; then
12302 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
12305 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
12306 if test "$cross_compiling" = "yes" ; then
12307 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12308 set dummy ${target_tool_prefix}gcc; ac_word=$2
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310 $as_echo_n "checking for $ac_word... " >&6; }
12311 if ${ac_cv_path_orig_target_cc+:} false; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 case $orig_target_cc in
12315 [\\/]* | ?:[\\/]*)
12316 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320 for as_dir in $PATH
12322 IFS=$as_save_IFS
12323 test -z "$as_dir" && as_dir=.
12324 for ac_exec_ext in '' $ac_executable_extensions; do
12325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12326 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12328 break 2
12330 done
12331 done
12332 IFS=$as_save_IFS
12335 esac
12337 orig_target_cc=$ac_cv_path_orig_target_cc
12338 if test -n "$orig_target_cc"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12340 $as_echo "$orig_target_cc" >&6; }
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12347 else
12349 if test "" = ""; then
12350 ac_tool_gcc=gcc
12351 else
12352 ac_tool_gcc=
12354 if test "$GCC" = "yes"; then
12355 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12356 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12357 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359 $as_echo_n "checking for $ac_word... " >&6; }
12360 if ${ac_cv_path_orig_target_cc+:} false; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 case $orig_target_cc in
12364 [\\/]* | ?:[\\/]*)
12365 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in `dirname $aros_gcc_gcc`
12371 IFS=$as_save_IFS
12372 test -z "$as_dir" && as_dir=.
12373 for ac_exec_ext in '' $ac_executable_extensions; do
12374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12375 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377 break 2
12379 done
12380 done
12381 IFS=$as_save_IFS
12384 esac
12386 orig_target_cc=$ac_cv_path_orig_target_cc
12387 if test -n "$orig_target_cc"; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12389 $as_echo "$orig_target_cc" >&6; }
12390 else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12397 if test "$orig_target_cc" = ""; then
12398 for ac_prog in $ac_tool_gcc
12400 # Extract the first word of "$ac_prog", so it can be a program name with args.
12401 set dummy $ac_prog; ac_word=$2
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403 $as_echo_n "checking for $ac_word... " >&6; }
12404 if ${ac_cv_path_orig_target_cc+:} false; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407 case $orig_target_cc in
12408 [\\/]* | ?:[\\/]*)
12409 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12419 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12423 done
12424 done
12425 IFS=$as_save_IFS
12428 esac
12430 orig_target_cc=$ac_cv_path_orig_target_cc
12431 if test -n "$orig_target_cc"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12433 $as_echo "$orig_target_cc" >&6; }
12434 else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12440 test -n "$orig_target_cc" && break
12441 done
12446 else
12447 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12448 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12449 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451 $as_echo_n "checking for $ac_word... " >&6; }
12452 if ${ac_cv_path_orig_target_cc+:} false; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 case $orig_target_cc in
12456 [\\/]* | ?:[\\/]*)
12457 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12471 done
12472 done
12473 IFS=$as_save_IFS
12476 esac
12478 orig_target_cc=$ac_cv_path_orig_target_cc
12479 if test -n "$orig_target_cc"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12481 $as_echo "$orig_target_cc" >&6; }
12482 else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484 $as_echo "no" >&6; }
12488 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12491 req_avail=yes
12492 if test "$orig_target_cc" = ""; then
12493 req_avail=no
12495 if test "$orig_target_cc" = "no"; then
12496 req_avail=no
12498 if test "$req_avail" = "no"; then
12499 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12502 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12503 if test "$cross_compiling" = "yes" ; then
12504 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12505 set dummy ${target_tool_prefix}g++; ac_word=$2
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12507 $as_echo_n "checking for $ac_word... " >&6; }
12508 if ${ac_cv_path_orig_target_cxx+:} false; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 case $orig_target_cxx in
12512 [\\/]* | ?:[\\/]*)
12513 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12517 for as_dir in $PATH
12519 IFS=$as_save_IFS
12520 test -z "$as_dir" && as_dir=.
12521 for ac_exec_ext in '' $ac_executable_extensions; do
12522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12523 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12525 break 2
12527 done
12528 done
12529 IFS=$as_save_IFS
12532 esac
12534 orig_target_cxx=$ac_cv_path_orig_target_cxx
12535 if test -n "$orig_target_cxx"; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12537 $as_echo "$orig_target_cxx" >&6; }
12538 else
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12544 else
12546 if test "" = ""; then
12547 ac_tool_g++=g++
12548 else
12549 ac_tool_g++=
12551 if test "$GCC" = "yes"; then
12552 aros_gcc_g++=`$CC -print-prog-name=$ac_tool_g++`
12553 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12554 set dummy `basename $aros_gcc_g++`; ac_word=$2
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556 $as_echo_n "checking for $ac_word... " >&6; }
12557 if ${ac_cv_path_orig_target_cxx+:} false; then :
12558 $as_echo_n "(cached) " >&6
12559 else
12560 case $orig_target_cxx in
12561 [\\/]* | ?:[\\/]*)
12562 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566 for as_dir in `dirname $aros_gcc_g++`
12568 IFS=$as_save_IFS
12569 test -z "$as_dir" && as_dir=.
12570 for ac_exec_ext in '' $ac_executable_extensions; do
12571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12572 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12574 break 2
12576 done
12577 done
12578 IFS=$as_save_IFS
12581 esac
12583 orig_target_cxx=$ac_cv_path_orig_target_cxx
12584 if test -n "$orig_target_cxx"; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12586 $as_echo "$orig_target_cxx" >&6; }
12587 else
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12594 if test "$orig_target_cxx" = ""; then
12595 for ac_prog in $ac_tool_g++
12597 # Extract the first word of "$ac_prog", so it can be a program name with args.
12598 set dummy $ac_prog; ac_word=$2
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600 $as_echo_n "checking for $ac_word... " >&6; }
12601 if ${ac_cv_path_orig_target_cxx+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 case $orig_target_cxx in
12605 [\\/]* | ?:[\\/]*)
12606 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610 for as_dir in $PATH
12612 IFS=$as_save_IFS
12613 test -z "$as_dir" && as_dir=.
12614 for ac_exec_ext in '' $ac_executable_extensions; do
12615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12616 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 break 2
12620 done
12621 done
12622 IFS=$as_save_IFS
12625 esac
12627 orig_target_cxx=$ac_cv_path_orig_target_cxx
12628 if test -n "$orig_target_cxx"; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12630 $as_echo "$orig_target_cxx" >&6; }
12631 else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633 $as_echo "no" >&6; }
12637 test -n "$orig_target_cxx" && break
12638 done
12643 else
12644 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12645 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12646 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648 $as_echo_n "checking for $ac_word... " >&6; }
12649 if ${ac_cv_path_orig_target_cxx+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 case $orig_target_cxx in
12653 [\\/]* | ?:[\\/]*)
12654 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12658 for as_dir in $PATH
12660 IFS=$as_save_IFS
12661 test -z "$as_dir" && as_dir=.
12662 for ac_exec_ext in '' $ac_executable_extensions; do
12663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12664 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12666 break 2
12668 done
12669 done
12670 IFS=$as_save_IFS
12673 esac
12675 orig_target_cxx=$ac_cv_path_orig_target_cxx
12676 if test -n "$orig_target_cxx"; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12678 $as_echo "$orig_target_cxx" >&6; }
12679 else
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681 $as_echo "no" >&6; }
12685 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12688 req_avail=yes
12689 if test "$orig_target_cxx" = ""; then
12690 req_avail=no
12692 if test "$orig_target_cxx" = "no"; then
12693 req_avail=no
12695 if test "$req_avail" = "no"; then
12696 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12699 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12700 if test "$cross_compiling" = "yes" ; then
12701 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12702 set dummy ${target_tool_prefix}gcc; ac_word=$2
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12704 $as_echo_n "checking for $ac_word... " >&6; }
12705 if ${ac_cv_path_orig_target_ld+:} false; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 case $orig_target_ld in
12709 [\\/]* | ?:[\\/]*)
12710 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12716 IFS=$as_save_IFS
12717 test -z "$as_dir" && as_dir=.
12718 for ac_exec_ext in '' $ac_executable_extensions; do
12719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12720 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12722 break 2
12724 done
12725 done
12726 IFS=$as_save_IFS
12729 esac
12731 orig_target_ld=$ac_cv_path_orig_target_ld
12732 if test -n "$orig_target_ld"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12734 $as_echo "$orig_target_ld" >&6; }
12735 else
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12741 else
12743 if test "" = ""; then
12744 ac_tool_gcc=gcc
12745 else
12746 ac_tool_gcc=
12748 if test "$GCC" = "yes"; then
12749 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12750 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12751 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12753 $as_echo_n "checking for $ac_word... " >&6; }
12754 if ${ac_cv_path_orig_target_ld+:} false; then :
12755 $as_echo_n "(cached) " >&6
12756 else
12757 case $orig_target_ld in
12758 [\\/]* | ?:[\\/]*)
12759 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in `dirname $aros_gcc_gcc`
12765 IFS=$as_save_IFS
12766 test -z "$as_dir" && as_dir=.
12767 for ac_exec_ext in '' $ac_executable_extensions; do
12768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12769 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12771 break 2
12773 done
12774 done
12775 IFS=$as_save_IFS
12778 esac
12780 orig_target_ld=$ac_cv_path_orig_target_ld
12781 if test -n "$orig_target_ld"; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12783 $as_echo "$orig_target_ld" >&6; }
12784 else
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12791 if test "$orig_target_ld" = ""; then
12792 for ac_prog in $ac_tool_gcc
12794 # Extract the first word of "$ac_prog", so it can be a program name with args.
12795 set dummy $ac_prog; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if ${ac_cv_path_orig_target_ld+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 case $orig_target_ld in
12802 [\\/]* | ?:[\\/]*)
12803 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in $PATH
12809 IFS=$as_save_IFS
12810 test -z "$as_dir" && as_dir=.
12811 for ac_exec_ext in '' $ac_executable_extensions; do
12812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12813 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815 break 2
12817 done
12818 done
12819 IFS=$as_save_IFS
12822 esac
12824 orig_target_ld=$ac_cv_path_orig_target_ld
12825 if test -n "$orig_target_ld"; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12827 $as_echo "$orig_target_ld" >&6; }
12828 else
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12834 test -n "$orig_target_ld" && break
12835 done
12840 else
12841 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12842 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12843 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12845 $as_echo_n "checking for $ac_word... " >&6; }
12846 if ${ac_cv_path_orig_target_ld+:} false; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 case $orig_target_ld in
12850 [\\/]* | ?:[\\/]*)
12851 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12857 IFS=$as_save_IFS
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
12860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12861 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12863 break 2
12865 done
12866 done
12867 IFS=$as_save_IFS
12870 esac
12872 orig_target_ld=$ac_cv_path_orig_target_ld
12873 if test -n "$orig_target_ld"; then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12875 $as_echo "$orig_target_ld" >&6; }
12876 else
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12882 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12885 req_avail=yes
12886 if test "$orig_target_ld" = ""; then
12887 req_avail=no
12889 if test "$orig_target_ld" = "no"; then
12890 req_avail=no
12892 if test "$req_avail" = "no"; then
12893 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12896 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12897 if test "$cross_compiling" = "yes" ; then
12898 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12899 set dummy ${target_tool_prefix}as; ac_word=$2
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12901 $as_echo_n "checking for $ac_word... " >&6; }
12902 if ${ac_cv_path_orig_target_as+:} false; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 case $orig_target_as in
12906 [\\/]* | ?:[\\/]*)
12907 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12911 for as_dir in $PATH
12913 IFS=$as_save_IFS
12914 test -z "$as_dir" && as_dir=.
12915 for ac_exec_ext in '' $ac_executable_extensions; do
12916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12917 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12919 break 2
12921 done
12922 done
12923 IFS=$as_save_IFS
12926 esac
12928 orig_target_as=$ac_cv_path_orig_target_as
12929 if test -n "$orig_target_as"; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12931 $as_echo "$orig_target_as" >&6; }
12932 else
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 $as_echo "no" >&6; }
12938 else
12940 if test "" = ""; then
12941 ac_tool_as=as
12942 else
12943 ac_tool_as=
12945 if test "$GCC" = "yes"; then
12946 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
12947 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12948 set dummy `basename $aros_gcc_as`; ac_word=$2
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12950 $as_echo_n "checking for $ac_word... " >&6; }
12951 if ${ac_cv_path_orig_target_as+:} false; then :
12952 $as_echo_n "(cached) " >&6
12953 else
12954 case $orig_target_as in
12955 [\\/]* | ?:[\\/]*)
12956 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in `dirname $aros_gcc_as`
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
12964 for ac_exec_ext in '' $ac_executable_extensions; do
12965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12966 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968 break 2
12970 done
12971 done
12972 IFS=$as_save_IFS
12975 esac
12977 orig_target_as=$ac_cv_path_orig_target_as
12978 if test -n "$orig_target_as"; then
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12980 $as_echo "$orig_target_as" >&6; }
12981 else
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12988 if test "$orig_target_as" = ""; then
12989 for ac_prog in $ac_tool_as
12991 # Extract the first word of "$ac_prog", so it can be a program name with args.
12992 set dummy $ac_prog; ac_word=$2
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12994 $as_echo_n "checking for $ac_word... " >&6; }
12995 if ${ac_cv_path_orig_target_as+:} false; then :
12996 $as_echo_n "(cached) " >&6
12997 else
12998 case $orig_target_as in
12999 [\\/]* | ?:[\\/]*)
13000 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004 for as_dir in $PATH
13006 IFS=$as_save_IFS
13007 test -z "$as_dir" && as_dir=.
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13010 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 break 2
13014 done
13015 done
13016 IFS=$as_save_IFS
13019 esac
13021 orig_target_as=$ac_cv_path_orig_target_as
13022 if test -n "$orig_target_as"; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13024 $as_echo "$orig_target_as" >&6; }
13025 else
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027 $as_echo "no" >&6; }
13031 test -n "$orig_target_as" && break
13032 done
13037 else
13038 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
13039 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
13040 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042 $as_echo_n "checking for $ac_word... " >&6; }
13043 if ${ac_cv_path_orig_target_as+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 case $orig_target_as in
13047 [\\/]* | ?:[\\/]*)
13048 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $PATH
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13058 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060 break 2
13062 done
13063 done
13064 IFS=$as_save_IFS
13067 esac
13069 orig_target_as=$ac_cv_path_orig_target_as
13070 if test -n "$orig_target_as"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13072 $as_echo "$orig_target_as" >&6; }
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13079 orig_target_as="$orig_target_as $ac_tool_optarg"
13082 req_avail=yes
13083 if test "$orig_target_as" = ""; then
13084 req_avail=no
13086 if test "$orig_target_as" = "no"; then
13087 req_avail=no
13089 if test "$req_avail" = "no"; then
13090 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
13093 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
13094 if test "$cross_compiling" = "yes" ; then
13095 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13096 set dummy ${target_tool_prefix}ar; ac_word=$2
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13098 $as_echo_n "checking for $ac_word... " >&6; }
13099 if ${ac_cv_path_orig_target_ar+:} false; then :
13100 $as_echo_n "(cached) " >&6
13101 else
13102 case $orig_target_ar in
13103 [\\/]* | ?:[\\/]*)
13104 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108 for as_dir in $PATH
13110 IFS=$as_save_IFS
13111 test -z "$as_dir" && as_dir=.
13112 for ac_exec_ext in '' $ac_executable_extensions; do
13113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13114 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13116 break 2
13118 done
13119 done
13120 IFS=$as_save_IFS
13123 esac
13125 orig_target_ar=$ac_cv_path_orig_target_ar
13126 if test -n "$orig_target_ar"; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13128 $as_echo "$orig_target_ar" >&6; }
13129 else
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13135 else
13137 if test "" = ""; then
13138 ac_tool_ar=ar
13139 else
13140 ac_tool_ar=
13142 if test "$GCC" = "yes"; then
13143 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13144 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13145 set dummy `basename $aros_gcc_ar`; ac_word=$2
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147 $as_echo_n "checking for $ac_word... " >&6; }
13148 if ${ac_cv_path_orig_target_ar+:} false; then :
13149 $as_echo_n "(cached) " >&6
13150 else
13151 case $orig_target_ar in
13152 [\\/]* | ?:[\\/]*)
13153 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in `dirname $aros_gcc_ar`
13159 IFS=$as_save_IFS
13160 test -z "$as_dir" && as_dir=.
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13163 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13165 break 2
13167 done
13168 done
13169 IFS=$as_save_IFS
13172 esac
13174 orig_target_ar=$ac_cv_path_orig_target_ar
13175 if test -n "$orig_target_ar"; then
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13177 $as_echo "$orig_target_ar" >&6; }
13178 else
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13185 if test "$orig_target_ar" = ""; then
13186 for ac_prog in $ac_tool_ar
13188 # Extract the first word of "$ac_prog", so it can be a program name with args.
13189 set dummy $ac_prog; ac_word=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 $as_echo_n "checking for $ac_word... " >&6; }
13192 if ${ac_cv_path_orig_target_ar+:} false; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 case $orig_target_ar in
13196 [\\/]* | ?:[\\/]*)
13197 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201 for as_dir in $PATH
13203 IFS=$as_save_IFS
13204 test -z "$as_dir" && as_dir=.
13205 for ac_exec_ext in '' $ac_executable_extensions; do
13206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13207 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13209 break 2
13211 done
13212 done
13213 IFS=$as_save_IFS
13216 esac
13218 orig_target_ar=$ac_cv_path_orig_target_ar
13219 if test -n "$orig_target_ar"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13221 $as_echo "$orig_target_ar" >&6; }
13222 else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13228 test -n "$orig_target_ar" && break
13229 done
13234 else
13235 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
13236 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
13237 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13239 $as_echo_n "checking for $ac_word... " >&6; }
13240 if ${ac_cv_path_orig_target_ar+:} false; then :
13241 $as_echo_n "(cached) " >&6
13242 else
13243 case $orig_target_ar in
13244 [\\/]* | ?:[\\/]*)
13245 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249 for as_dir in $PATH
13251 IFS=$as_save_IFS
13252 test -z "$as_dir" && as_dir=.
13253 for ac_exec_ext in '' $ac_executable_extensions; do
13254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13255 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13257 break 2
13259 done
13260 done
13261 IFS=$as_save_IFS
13264 esac
13266 orig_target_ar=$ac_cv_path_orig_target_ar
13267 if test -n "$orig_target_ar"; then
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13269 $as_echo "$orig_target_ar" >&6; }
13270 else
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272 $as_echo "no" >&6; }
13276 orig_target_ar="$orig_target_ar $ac_tool_optarg"
13279 req_avail=yes
13280 if test "$orig_target_ar" = ""; then
13281 req_avail=no
13283 if test "$orig_target_ar" = "no"; then
13284 req_avail=no
13286 if test "$req_avail" = "no"; then
13287 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
13290 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
13291 if test "$cross_compiling" = "yes" ; then
13292 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13293 set dummy ${target_tool_prefix}ar; ac_word=$2
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13295 $as_echo_n "checking for $ac_word... " >&6; }
13296 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13297 $as_echo_n "(cached) " >&6
13298 else
13299 case $orig_target_ranlib in
13300 [\\/]* | ?:[\\/]*)
13301 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305 for as_dir in $PATH
13307 IFS=$as_save_IFS
13308 test -z "$as_dir" && as_dir=.
13309 for ac_exec_ext in '' $ac_executable_extensions; do
13310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13311 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13313 break 2
13315 done
13316 done
13317 IFS=$as_save_IFS
13320 esac
13322 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13323 if test -n "$orig_target_ranlib"; then
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13325 $as_echo "$orig_target_ranlib" >&6; }
13326 else
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 $as_echo "no" >&6; }
13332 else
13334 if test "" = ""; then
13335 ac_tool_ar=ar
13336 else
13337 ac_tool_ar=
13339 if test "$GCC" = "yes"; then
13340 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13341 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13342 set dummy `basename $aros_gcc_ar`; ac_word=$2
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13344 $as_echo_n "checking for $ac_word... " >&6; }
13345 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 case $orig_target_ranlib in
13349 [\\/]* | ?:[\\/]*)
13350 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13354 for as_dir in `dirname $aros_gcc_ar`
13356 IFS=$as_save_IFS
13357 test -z "$as_dir" && as_dir=.
13358 for ac_exec_ext in '' $ac_executable_extensions; do
13359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13360 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13362 break 2
13364 done
13365 done
13366 IFS=$as_save_IFS
13369 esac
13371 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13372 if test -n "$orig_target_ranlib"; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13374 $as_echo "$orig_target_ranlib" >&6; }
13375 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13382 if test "$orig_target_ranlib" = ""; then
13383 for ac_prog in $ac_tool_ar
13385 # Extract the first word of "$ac_prog", so it can be a program name with args.
13386 set dummy $ac_prog; ac_word=$2
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13388 $as_echo_n "checking for $ac_word... " >&6; }
13389 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 case $orig_target_ranlib in
13393 [\\/]* | ?:[\\/]*)
13394 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13398 for as_dir in $PATH
13400 IFS=$as_save_IFS
13401 test -z "$as_dir" && as_dir=.
13402 for ac_exec_ext in '' $ac_executable_extensions; do
13403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13404 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13406 break 2
13408 done
13409 done
13410 IFS=$as_save_IFS
13413 esac
13415 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13416 if test -n "$orig_target_ranlib"; then
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13418 $as_echo "$orig_target_ranlib" >&6; }
13419 else
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421 $as_echo "no" >&6; }
13425 test -n "$orig_target_ranlib" && break
13426 done
13431 else
13432 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
13433 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
13434 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436 $as_echo_n "checking for $ac_word... " >&6; }
13437 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 case $orig_target_ranlib in
13441 [\\/]* | ?:[\\/]*)
13442 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446 for as_dir in $PATH
13448 IFS=$as_save_IFS
13449 test -z "$as_dir" && as_dir=.
13450 for ac_exec_ext in '' $ac_executable_extensions; do
13451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13452 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13454 break 2
13456 done
13457 done
13458 IFS=$as_save_IFS
13461 esac
13463 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13464 if test -n "$orig_target_ranlib"; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13466 $as_echo "$orig_target_ranlib" >&6; }
13467 else
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469 $as_echo "no" >&6; }
13473 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
13476 req_avail=yes
13477 if test "$orig_target_ranlib" = ""; then
13478 req_avail=no
13480 if test "$orig_target_ranlib" = "no"; then
13481 req_avail=no
13483 if test "$req_avail" = "no"; then
13484 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
13487 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
13488 if test "$cross_compiling" = "yes" ; then
13489 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
13490 set dummy ${target_tool_prefix}nm; ac_word=$2
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492 $as_echo_n "checking for $ac_word... " >&6; }
13493 if ${ac_cv_path_orig_target_nm+:} false; then :
13494 $as_echo_n "(cached) " >&6
13495 else
13496 case $orig_target_nm in
13497 [\\/]* | ?:[\\/]*)
13498 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13504 IFS=$as_save_IFS
13505 test -z "$as_dir" && as_dir=.
13506 for ac_exec_ext in '' $ac_executable_extensions; do
13507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13508 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13510 break 2
13512 done
13513 done
13514 IFS=$as_save_IFS
13517 esac
13519 orig_target_nm=$ac_cv_path_orig_target_nm
13520 if test -n "$orig_target_nm"; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13522 $as_echo "$orig_target_nm" >&6; }
13523 else
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525 $as_echo "no" >&6; }
13529 else
13531 if test "" = ""; then
13532 ac_tool_nm=nm
13533 else
13534 ac_tool_nm=
13536 if test "$GCC" = "yes"; then
13537 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
13538 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13539 set dummy `basename $aros_gcc_nm`; ac_word=$2
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541 $as_echo_n "checking for $ac_word... " >&6; }
13542 if ${ac_cv_path_orig_target_nm+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 case $orig_target_nm in
13546 [\\/]* | ?:[\\/]*)
13547 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551 for as_dir in `dirname $aros_gcc_nm`
13553 IFS=$as_save_IFS
13554 test -z "$as_dir" && as_dir=.
13555 for ac_exec_ext in '' $ac_executable_extensions; do
13556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13557 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13559 break 2
13561 done
13562 done
13563 IFS=$as_save_IFS
13566 esac
13568 orig_target_nm=$ac_cv_path_orig_target_nm
13569 if test -n "$orig_target_nm"; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13571 $as_echo "$orig_target_nm" >&6; }
13572 else
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13579 if test "$orig_target_nm" = ""; then
13580 for ac_prog in $ac_tool_nm
13582 # Extract the first word of "$ac_prog", so it can be a program name with args.
13583 set dummy $ac_prog; ac_word=$2
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13585 $as_echo_n "checking for $ac_word... " >&6; }
13586 if ${ac_cv_path_orig_target_nm+:} false; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589 case $orig_target_nm in
13590 [\\/]* | ?:[\\/]*)
13591 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595 for as_dir in $PATH
13597 IFS=$as_save_IFS
13598 test -z "$as_dir" && as_dir=.
13599 for ac_exec_ext in '' $ac_executable_extensions; do
13600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13601 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13603 break 2
13605 done
13606 done
13607 IFS=$as_save_IFS
13610 esac
13612 orig_target_nm=$ac_cv_path_orig_target_nm
13613 if test -n "$orig_target_nm"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13615 $as_echo "$orig_target_nm" >&6; }
13616 else
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 $as_echo "no" >&6; }
13622 test -n "$orig_target_nm" && break
13623 done
13628 else
13629 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13630 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13631 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13633 $as_echo_n "checking for $ac_word... " >&6; }
13634 if ${ac_cv_path_orig_target_nm+:} false; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 case $orig_target_nm in
13638 [\\/]* | ?:[\\/]*)
13639 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13643 for as_dir in $PATH
13645 IFS=$as_save_IFS
13646 test -z "$as_dir" && as_dir=.
13647 for ac_exec_ext in '' $ac_executable_extensions; do
13648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13649 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13651 break 2
13653 done
13654 done
13655 IFS=$as_save_IFS
13658 esac
13660 orig_target_nm=$ac_cv_path_orig_target_nm
13661 if test -n "$orig_target_nm"; then
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13663 $as_echo "$orig_target_nm" >&6; }
13664 else
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13666 $as_echo "no" >&6; }
13670 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13673 req_avail=yes
13674 if test "$orig_target_nm" = ""; then
13675 req_avail=no
13677 if test "$orig_target_nm" = "no"; then
13678 req_avail=no
13680 if test "$req_avail" = "no"; then
13681 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13684 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13685 if test "$cross_compiling" = "yes" ; then
13686 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13687 set dummy ${target_tool_prefix}strip; ac_word=$2
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13689 $as_echo_n "checking for $ac_word... " >&6; }
13690 if ${ac_cv_path_orig_target_strip+:} false; then :
13691 $as_echo_n "(cached) " >&6
13692 else
13693 case $orig_target_strip in
13694 [\\/]* | ?:[\\/]*)
13695 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13699 for as_dir in $PATH
13701 IFS=$as_save_IFS
13702 test -z "$as_dir" && as_dir=.
13703 for ac_exec_ext in '' $ac_executable_extensions; do
13704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13705 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13707 break 2
13709 done
13710 done
13711 IFS=$as_save_IFS
13714 esac
13716 orig_target_strip=$ac_cv_path_orig_target_strip
13717 if test -n "$orig_target_strip"; then
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13719 $as_echo "$orig_target_strip" >&6; }
13720 else
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722 $as_echo "no" >&6; }
13726 else
13728 if test "" = ""; then
13729 ac_tool_strip=strip
13730 else
13731 ac_tool_strip=
13733 if test "$GCC" = "yes"; then
13734 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
13735 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13736 set dummy `basename $aros_gcc_strip`; ac_word=$2
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13738 $as_echo_n "checking for $ac_word... " >&6; }
13739 if ${ac_cv_path_orig_target_strip+:} false; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 case $orig_target_strip in
13743 [\\/]* | ?:[\\/]*)
13744 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748 for as_dir in `dirname $aros_gcc_strip`
13750 IFS=$as_save_IFS
13751 test -z "$as_dir" && as_dir=.
13752 for ac_exec_ext in '' $ac_executable_extensions; do
13753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13754 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13756 break 2
13758 done
13759 done
13760 IFS=$as_save_IFS
13763 esac
13765 orig_target_strip=$ac_cv_path_orig_target_strip
13766 if test -n "$orig_target_strip"; then
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13768 $as_echo "$orig_target_strip" >&6; }
13769 else
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 $as_echo "no" >&6; }
13776 if test "$orig_target_strip" = ""; then
13777 for ac_prog in $ac_tool_strip
13779 # Extract the first word of "$ac_prog", so it can be a program name with args.
13780 set dummy $ac_prog; ac_word=$2
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13782 $as_echo_n "checking for $ac_word... " >&6; }
13783 if ${ac_cv_path_orig_target_strip+:} false; then :
13784 $as_echo_n "(cached) " >&6
13785 else
13786 case $orig_target_strip in
13787 [\\/]* | ?:[\\/]*)
13788 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13792 for as_dir in $PATH
13794 IFS=$as_save_IFS
13795 test -z "$as_dir" && as_dir=.
13796 for ac_exec_ext in '' $ac_executable_extensions; do
13797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13798 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13800 break 2
13802 done
13803 done
13804 IFS=$as_save_IFS
13807 esac
13809 orig_target_strip=$ac_cv_path_orig_target_strip
13810 if test -n "$orig_target_strip"; then
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13812 $as_echo "$orig_target_strip" >&6; }
13813 else
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815 $as_echo "no" >&6; }
13819 test -n "$orig_target_strip" && break
13820 done
13825 else
13826 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13827 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13828 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13830 $as_echo_n "checking for $ac_word... " >&6; }
13831 if ${ac_cv_path_orig_target_strip+:} false; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13834 case $orig_target_strip in
13835 [\\/]* | ?:[\\/]*)
13836 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840 for as_dir in $PATH
13842 IFS=$as_save_IFS
13843 test -z "$as_dir" && as_dir=.
13844 for ac_exec_ext in '' $ac_executable_extensions; do
13845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13846 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13848 break 2
13850 done
13851 done
13852 IFS=$as_save_IFS
13855 esac
13857 orig_target_strip=$ac_cv_path_orig_target_strip
13858 if test -n "$orig_target_strip"; then
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13860 $as_echo "$orig_target_strip" >&6; }
13861 else
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863 $as_echo "no" >&6; }
13867 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13870 req_avail=yes
13871 if test "$orig_target_strip" = ""; then
13872 req_avail=no
13874 if test "$orig_target_strip" = "no"; then
13875 req_avail=no
13877 if test "$req_avail" = "no"; then
13878 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13881 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13882 if test "$cross_compiling" = "yes" ; then
13883 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13884 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13886 $as_echo_n "checking for $ac_word... " >&6; }
13887 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13888 $as_echo_n "(cached) " >&6
13889 else
13890 case $orig_target_objcopy in
13891 [\\/]* | ?:[\\/]*)
13892 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896 for as_dir in $PATH
13898 IFS=$as_save_IFS
13899 test -z "$as_dir" && as_dir=.
13900 for ac_exec_ext in '' $ac_executable_extensions; do
13901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13902 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13904 break 2
13906 done
13907 done
13908 IFS=$as_save_IFS
13911 esac
13913 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13914 if test -n "$orig_target_objcopy"; then
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13916 $as_echo "$orig_target_objcopy" >&6; }
13917 else
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 $as_echo "no" >&6; }
13923 else
13925 if test "" = ""; then
13926 ac_tool_objcopy=objcopy
13927 else
13928 ac_tool_objcopy=
13930 if test "$GCC" = "yes"; then
13931 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
13932 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13933 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13935 $as_echo_n "checking for $ac_word... " >&6; }
13936 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 case $orig_target_objcopy in
13940 [\\/]* | ?:[\\/]*)
13941 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in `dirname $aros_gcc_objcopy`
13947 IFS=$as_save_IFS
13948 test -z "$as_dir" && as_dir=.
13949 for ac_exec_ext in '' $ac_executable_extensions; do
13950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13951 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13953 break 2
13955 done
13956 done
13957 IFS=$as_save_IFS
13960 esac
13962 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13963 if test -n "$orig_target_objcopy"; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13965 $as_echo "$orig_target_objcopy" >&6; }
13966 else
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13968 $as_echo "no" >&6; }
13973 if test "$orig_target_objcopy" = ""; then
13974 for ac_prog in $ac_tool_objcopy
13976 # Extract the first word of "$ac_prog", so it can be a program name with args.
13977 set dummy $ac_prog; ac_word=$2
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13979 $as_echo_n "checking for $ac_word... " >&6; }
13980 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13981 $as_echo_n "(cached) " >&6
13982 else
13983 case $orig_target_objcopy in
13984 [\\/]* | ?:[\\/]*)
13985 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13989 for as_dir in $PATH
13991 IFS=$as_save_IFS
13992 test -z "$as_dir" && as_dir=.
13993 for ac_exec_ext in '' $ac_executable_extensions; do
13994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13995 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13997 break 2
13999 done
14000 done
14001 IFS=$as_save_IFS
14004 esac
14006 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14007 if test -n "$orig_target_objcopy"; then
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14009 $as_echo "$orig_target_objcopy" >&6; }
14010 else
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012 $as_echo "no" >&6; }
14016 test -n "$orig_target_objcopy" && break
14017 done
14022 else
14023 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
14024 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
14025 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14027 $as_echo_n "checking for $ac_word... " >&6; }
14028 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14029 $as_echo_n "(cached) " >&6
14030 else
14031 case $orig_target_objcopy in
14032 [\\/]* | ?:[\\/]*)
14033 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14037 for as_dir in $PATH
14039 IFS=$as_save_IFS
14040 test -z "$as_dir" && as_dir=.
14041 for ac_exec_ext in '' $ac_executable_extensions; do
14042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14043 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14045 break 2
14047 done
14048 done
14049 IFS=$as_save_IFS
14052 esac
14054 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14055 if test -n "$orig_target_objcopy"; then
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14057 $as_echo "$orig_target_objcopy" >&6; }
14058 else
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14060 $as_echo "no" >&6; }
14064 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
14067 req_avail=yes
14068 if test "$orig_target_objcopy" = ""; then
14069 req_avail=no
14071 if test "$orig_target_objcopy" = "no"; then
14072 req_avail=no
14074 if test "$req_avail" = "no"; then
14075 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
14078 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
14079 if test "$cross_compiling" = "yes" ; then
14080 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
14081 set dummy ${target_tool_prefix}objdump; ac_word=$2
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14083 $as_echo_n "checking for $ac_word... " >&6; }
14084 if ${ac_cv_path_orig_target_objdump+:} false; then :
14085 $as_echo_n "(cached) " >&6
14086 else
14087 case $orig_target_objdump in
14088 [\\/]* | ?:[\\/]*)
14089 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14093 for as_dir in $PATH
14095 IFS=$as_save_IFS
14096 test -z "$as_dir" && as_dir=.
14097 for ac_exec_ext in '' $ac_executable_extensions; do
14098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14099 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14101 break 2
14103 done
14104 done
14105 IFS=$as_save_IFS
14108 esac
14110 orig_target_objdump=$ac_cv_path_orig_target_objdump
14111 if test -n "$orig_target_objdump"; then
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14113 $as_echo "$orig_target_objdump" >&6; }
14114 else
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14116 $as_echo "no" >&6; }
14120 else
14122 if test "" = ""; then
14123 ac_tool_objdump=objdump
14124 else
14125 ac_tool_objdump=
14127 if test "$GCC" = "yes"; then
14128 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
14129 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
14130 set dummy `basename $aros_gcc_objdump`; ac_word=$2
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14132 $as_echo_n "checking for $ac_word... " >&6; }
14133 if ${ac_cv_path_orig_target_objdump+:} false; then :
14134 $as_echo_n "(cached) " >&6
14135 else
14136 case $orig_target_objdump in
14137 [\\/]* | ?:[\\/]*)
14138 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142 for as_dir in `dirname $aros_gcc_objdump`
14144 IFS=$as_save_IFS
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
14147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14148 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14150 break 2
14152 done
14153 done
14154 IFS=$as_save_IFS
14157 esac
14159 orig_target_objdump=$ac_cv_path_orig_target_objdump
14160 if test -n "$orig_target_objdump"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14162 $as_echo "$orig_target_objdump" >&6; }
14163 else
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14170 if test "$orig_target_objdump" = ""; then
14171 for ac_prog in $ac_tool_objdump
14173 # Extract the first word of "$ac_prog", so it can be a program name with args.
14174 set dummy $ac_prog; ac_word=$2
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14176 $as_echo_n "checking for $ac_word... " >&6; }
14177 if ${ac_cv_path_orig_target_objdump+:} false; then :
14178 $as_echo_n "(cached) " >&6
14179 else
14180 case $orig_target_objdump in
14181 [\\/]* | ?:[\\/]*)
14182 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14186 for as_dir in $PATH
14188 IFS=$as_save_IFS
14189 test -z "$as_dir" && as_dir=.
14190 for ac_exec_ext in '' $ac_executable_extensions; do
14191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14192 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14194 break 2
14196 done
14197 done
14198 IFS=$as_save_IFS
14201 esac
14203 orig_target_objdump=$ac_cv_path_orig_target_objdump
14204 if test -n "$orig_target_objdump"; then
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14206 $as_echo "$orig_target_objdump" >&6; }
14207 else
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209 $as_echo "no" >&6; }
14213 test -n "$orig_target_objdump" && break
14214 done
14219 else
14220 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
14221 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
14222 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14224 $as_echo_n "checking for $ac_word... " >&6; }
14225 if ${ac_cv_path_orig_target_objdump+:} false; then :
14226 $as_echo_n "(cached) " >&6
14227 else
14228 case $orig_target_objdump in
14229 [\\/]* | ?:[\\/]*)
14230 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234 for as_dir in $PATH
14236 IFS=$as_save_IFS
14237 test -z "$as_dir" && as_dir=.
14238 for ac_exec_ext in '' $ac_executable_extensions; do
14239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14240 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14242 break 2
14244 done
14245 done
14246 IFS=$as_save_IFS
14249 esac
14251 orig_target_objdump=$ac_cv_path_orig_target_objdump
14252 if test -n "$orig_target_objdump"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14254 $as_echo "$orig_target_objdump" >&6; }
14255 else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14261 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
14264 req_avail=yes
14265 if test "$orig_target_objdump" = ""; then
14266 req_avail=no
14268 if test "$orig_target_objdump" = "no"; then
14269 req_avail=no
14271 if test "$req_avail" = "no"; then
14272 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
14276 if test "$kernel_tool_prefix" = "none" ; then
14277 # No kernel tools specified
14278 # Assume kernel tools == target tools with ELF wrapper
14279 aros_kernel_cc=$orig_target_cc
14280 aros_kernel_cxx=$orig_target_cxx
14281 aros_kernel_cpp=$orig_target_cpp
14282 aros_kernel_ld=$orig_target_ld
14283 aros_kernel_as=$orig_target_as
14284 aros_kernel_ar=$orig_target_ar
14285 aros_kernel_ranlib=$orig_target_ranlib
14286 aros_kernel_nm=$orig_target_nm
14287 aros_kernel_strip=$orig_target_strip
14288 aros_kernel_objcopy=$orig_target_objcopy
14289 aros_kernel_objdump=$orig_target_objdump
14290 aros_kernel_isa_flags=$aros_isa_flags
14291 use_kernel_cc_wrapper=yes
14294 # At this point, all aros_kernel_* and aros_target_*
14295 # tools should be set up correctly
14297 CC="$aros_kernel_cc $kernel_tool_flags"
14298 CPP="$aros_kernel_cpp"
14300 #-----------------------------------------------------------------------------
14302 # Find all the tools we need to compile. This could be cross-compiling
14303 # though! If that is the case we use the GNU form of the target and
14304 # simply add this to the front of the binary name. This is rather simple,
14305 # but it should work under most circumstances.
14307 # The default tools are to use the same as the host, but only if the
14308 # host and target CPU are the same. With GCC this is normally enough.
14311 aros_cc_pre=""
14312 aros_shared_ld="$aros_host_ld"
14314 aros_target_mkdep="$aros_host_mkdep"
14316 # The default tools executables to be linked to.
14317 if test "$rescomp" != ""; then
14318 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
14319 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14321 $as_echo_n "checking for $ac_word... " >&6; }
14322 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 case $aros_kernel_rescomp in
14326 [\\/]* | ?:[\\/]*)
14327 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
14330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14331 for as_dir in $PATH
14333 IFS=$as_save_IFS
14334 test -z "$as_dir" && as_dir=.
14335 for ac_exec_ext in '' $ac_executable_extensions; do
14336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14337 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
14338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14339 break 2
14341 done
14342 done
14343 IFS=$as_save_IFS
14346 esac
14348 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
14349 if test -n "$aros_kernel_rescomp"; then
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
14351 $as_echo "$aros_kernel_rescomp" >&6; }
14352 else
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14354 $as_echo "no" >&6; }
14358 req_avail=yes
14359 if test "$aros_kernel_rescomp" = ""; then
14360 req_avail=no
14362 if test "$aros_kernel_rescomp" = "no"; then
14363 req_avail=no
14365 if test "$req_avail" = "no"; then
14366 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
14370 # Set up the sources for the symlink farm
14371 if test "$crosstools" = "yes"; then
14372 crosstools_target=tools-crosstools
14375 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
14376 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
14378 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
14379 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
14380 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
14381 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
14382 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
14383 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
14384 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
14386 # aros_cc_pre is a variable that is added to the front of the compiler name
14387 # in the generated aros-gcc shell script. We need this to enable the cache
14388 # to work across cleaned builds. Also, support DISTCC using the correct
14389 # environment variable.
14392 if test "x${DISTCC}" != "x" ; then
14393 if test "x${CCACHE}" != "x" ; then
14394 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
14395 else
14396 aros_cc_pre="${DISTCC} "
14398 else
14399 if test "x${CCACHE}" != "x" ; then
14400 aros_cc_pre="${CCACHE} "
14404 aros_target_nostdinc_cflags=-nostdinc
14406 aros_target_nostartup_ldflags=-nostartfiles
14408 aros_target_nix_ldflags=-nix
14410 aros_target_detach_ldflags=-detach
14412 aros_target_nostdlib_ldflags=-nostdlib
14415 aros_target_cc_path=
14417 # Target tools
14419 if test "$aros_target_toolchain" != "yes"; then
14420 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
14421 if test "$GCC" = "yes"; then
14422 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
14424 else
14425 # We do not know which c compiler version we are going to build and what we need to know
14426 # here is different for different versions so this will be set later during the
14427 # build of crosstools.
14428 if test "$aros_toolchain" = "gnu" ; then
14429 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
14430 elif test "$aros_toolchain" = "llvm" ; then
14431 prefix="$AROS_CROSSTOOLSDIR/bin/"
14433 aros_target_cc_path=@aros_target_cc_path@
14435 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
14436 aros_target_cc="${prefix}${toolchain_c_compiler}"
14437 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
14438 aros_target_as="${prefix}${toolchain_as}"
14439 if test "${use_ld_wrapper}" = "yes"; then
14440 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
14441 else
14442 aros_target_ld="${prefix}${toolchain_ld}"
14444 aros_toolchain_ld="${prefix}${toolchain_ld}"
14446 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
14447 aros_target_objcopy="${prefix}${toolchain_objcopy}"
14448 aros_target_objdump="${prefix}${toolchain_objdump}"
14449 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
14450 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
14451 aros_target_strip="${prefix}${toolchain_strip}"
14452 aros_plain_nm="${prefix}${toolchain_nm}"
14453 aros_plain_ar="${prefix}${toolchain_ar}"
14455 # Check whether --enable-includes was given.
14456 if test "${enable_includes+set}" = set; then :
14457 enableval=$enable_includes; aros_target_incl=$enable_includes
14458 else
14459 aros_target_incl=no
14463 if test "x$aros_target_incl" = "xno"; then
14464 if test "x$test_kernel_cc" != "xno"; then
14465 aros_target_incl=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
14466 else
14467 aros_target_incl=
14471 if test "x$aros_kernel_includes" = "x"; then
14472 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14473 if test "x$aros_target_incl" != "x"; then
14474 aros_kernel_includes="-isystem $aros_target_incl"
14479 if test "x$test_kernel_cc" != "xno"; then
14480 if test "$aros_kernel_includes" != "" ; then
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
14482 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
14483 if test "$aros_kernel_cc_includes" = "" ; then
14484 # Try to guess where the directory is.
14485 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
14486 if test -d $aros_kernel_cc_includes; then
14487 # Check if there is also an include-fixed directory and add it
14488 # to kernel compiler's include path as it may contain some of
14489 # the headers we need.
14490 if test -d "$aros_kernel_cc_includes"-fixed; then
14491 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
14493 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
14494 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
14495 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
14497 else
14498 # The directory doesn't exist, we need to do some more work.
14499 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
14501 # These are the headers we're looking for.
14502 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14503 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14504 zutil.h stdint.h"
14506 dirs=
14507 for h in $headers; do
14508 # Which other headers are needed by each of the above?
14509 deps=$(echo "#include <$h>" | \
14510 $aros_kernel_cc -E -M - 2>/dev/null | \
14511 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14513 # Copy all the needed headers to a directory beneath gendir.
14514 for d in $deps; do
14515 h=$(basename $d)
14516 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
14517 sed -n "s,^.*/include\(/.*\),\1,p")
14518 ! test -d $dir && mkdir -p $dir
14519 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14520 done
14521 done
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
14525 $as_echo "$aros_kernel_cc_includes" >&6; }
14526 # Adding -nostdinc to kernel includes as they are always used together.
14527 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
14531 if test "$crosstools" != "yes"; then
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
14533 $as_echo_n "checking for the target compiler's include path... " >&6; }
14534 if test "$aros_target_cc_includes" = "" ; then
14535 #try to guess where the directory is
14536 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
14537 if ! test -d $aros_target_cc_includes; then
14538 #the directory doesn't exist, we need to do some more work
14539 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
14541 #these are the headers we're looking for
14542 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14543 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14544 zutil.h"
14546 dirs=
14547 for h in $headers; do
14548 #which other headers each of the above headers needs?
14549 deps=$(echo "#include <$h>" | \
14550 $orig_target_cc -E -M - 2>/dev/null | \
14551 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14553 #copy all the needed headers to a directory beneath gendir
14554 for d in $deps; do
14555 h=$(basename $d)
14556 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
14557 sed -n "s,^.*/include\(/.*\),\1,p")
14558 ! test -d $dir && mkdir -p $dir
14559 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14560 done
14561 done
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14565 $as_echo "$aros_target_cc_includes" >&6; }
14566 else
14567 # We do not know which c compiler version we are going to build and what we need to know
14568 # here is different for different versions so this will be set later during the
14569 # build of crosstools.
14570 aros_target_cc_includes=@aros_target_cc_includes@
14574 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14575 # On GCC >= 4.0 -iquote should be used
14578 save_cc="$CC"
14579 save_cflags="$CFLAGS"
14580 if test "x$test_kernel_cc" != "xno"; then
14581 CFLAGS="-iquote."
14582 kernel_cflags_iquote=$host_cflags_iquote
14583 kernel_cflags_iquote_end=$host_cflags_iquote_end
14584 if test "x-$cross_compiling" = "x-yes"; then
14585 CC="$aros_kernel_cc"
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14587 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14588 if test "x-$crosstools" != "x-yes"; then
14589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14590 /* end confdefs.h. */
14593 main ()
14597 return 0;
14599 _ACEOF
14600 if ac_fn_c_try_compile "$LINENO"; then :
14601 use_no_stack_protector="yes"
14602 else
14603 use_no_stack_protector="no"
14605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14606 else
14607 # we do know it is supported for the smallest version of gcc we are going to build
14608 # we assume it's also supported by later versions
14609 use_no_stack_protector=yes
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14612 $as_echo "$use_no_stack_protector" >&6; }
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14614 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14615 if test "x-$crosstools" != "x-yes"; then
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14620 main ()
14624 return 0;
14626 _ACEOF
14627 if ac_fn_c_try_compile "$LINENO"; then :
14628 has_iquote="yes"
14629 else
14630 has_iquote="no"
14632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633 else
14634 # we do know it is supported for the smallest version of gcc we are going to build
14635 # we assume it's also supported by later versions
14636 has_iquote=yes
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14639 $as_echo "$has_iquote" >&6; }
14640 if test "x-$has_iquote" = "x-yes" ; then
14641 kernel_cflags_iquote=-iquote
14642 kernel_cflags_iquote_end=
14643 else
14644 kernel_cflags_iquote=-I
14645 kernel_cflags_iquote_end=-I-
14648 if test "x-$use_no_stack_protector" = "x-yes" ; then
14649 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14652 #-----------------------------------------------------------------------------
14654 # Check if we can explicitly choose older version of symbol hashing
14656 CFLAGS="save_cflags -Wl,--hash-style=sysv"
14657 CC="$aros_kernel_cc"
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14659 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14664 main ()
14668 return 0;
14670 _ACEOF
14671 if ac_fn_c_try_link "$LINENO"; then :
14672 use_hash_style="yes"
14673 else
14674 use_hash_style="no"
14676 rm -f core conftest.err conftest.$ac_objext \
14677 conftest$ac_exeext conftest.$ac_ext
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14679 $as_echo "$use_hash_style" >&6; }
14680 if test "x-$use_hash_style" = "x-yes" ; then
14681 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14683 else
14684 kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
14685 kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
14687 CC="$save_cc"
14688 CFLAGS="$save_cflags"
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14697 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14699 # Check whether --with-resolution was given.
14700 if test "${with_resolution+set}" = set; then :
14701 withval=$with_resolution; resolution=$withval
14702 else
14703 resolution=none
14706 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14707 if test "$resolution" = "yes" ; then
14708 resolution="none"
14710 if test "$resolution" = "no" ; then
14711 resolution="none"
14713 if test "$resolution" != "none" ; then
14714 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14715 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14716 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14719 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14720 aros_cv_nominal_width=$aros_nominal_width
14721 aros_cv_nominal_height=$aros_nominal_height
14722 aros_cv_nominal_depth=$aros_nominal_depth
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14725 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14727 # Check whether --with-serial-debug was given.
14728 if test "${with_serial_debug+set}" = set; then :
14729 withval=$with_serial_debug; serial_debug=$withval
14730 else
14731 serial_debug=none
14734 if test "$aros_serial_debug" = 0 ; then
14735 serial_debug_forced=""
14736 if test "$serial_debug" = "yes" ; then
14737 serial_debug="1"
14739 if test "$serial_debug" = "no" ; then
14740 serial_debug="none"
14742 else
14743 serial_debug_forced="(forced)"
14744 serial_debug=$aros_serial_debug
14746 if test "$serial_debug" != "none" ; then
14747 aros_serial_debug=$serial_debug
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14749 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14750 else
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14756 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14757 # Check whether --enable-palm_debug_hack was given.
14758 if test "${enable_palm_debug_hack+set}" = set; then :
14759 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14760 else
14761 palm_debug_hack="no"
14764 if test "$palm_debug_hack" = "yes" ; then
14765 aros_palm_debug_hack="1"
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14768 $as_echo "$palm_debug_hack" >&6; }
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14771 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14772 # Check whether --enable-usb30_code was given.
14773 if test "${enable_usb30_code+set}" = set; then :
14774 enableval=$enable_usb30_code; usb30_code="yes"
14775 else
14776 usb30_code="no"
14779 if test "$usb30_code" = "yes" ; then
14780 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14781 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14784 $as_echo "$usb30_code" >&6; }
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14787 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14788 # Check whether --enable-nesting_supervisor was given.
14789 if test "${enable_nesting_supervisor+set}" = set; then :
14790 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14791 else
14792 nesting_supervisor="no"
14795 if test "$nesting_supervisor" = "yes" ; then
14796 aros_nesting_supervisor="1"
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14799 $as_echo "$nesting_supervisor" >&6; }
14801 if test "$aros_enable_mmu" = "" ; then
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14803 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14804 # Check whether --enable-mmu was given.
14805 if test "${enable_mmu+set}" = set; then :
14806 enableval=$enable_mmu; aros_enable_mmu=$enableval
14807 else
14808 aros_enable_mmu="yes"
14811 if test "$aros_enable_mmu" = "" ; then
14812 aros_enable_mmu="yes"
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14815 $as_echo "$aros_enable_mmu" >&6; }
14817 if test "$aros_enable_mmu" = "no" ; then
14818 aros_enable_mmu="0"
14819 else
14820 aros_enable_mmu="1"
14824 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14826 if test "x-$need_dlopen" != "x-no" ; then
14827 save_libs="$LIBS"
14828 LIBS=""
14829 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14830 if test "x$ac_cv_func_dlopen" = xyes; then :
14831 have_dl="yes"
14832 else
14833 have_dl="no"
14836 if test "x-$have_dl" = "x-no" ; then
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14838 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14839 if ${ac_cv_lib_dl_dlopen+:} false; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 ac_check_lib_save_LIBS=$LIBS
14843 LIBS="-ldl $LIBS"
14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h. */
14847 /* Override any GCC internal prototype to avoid an error.
14848 Use char because int might match the return type of a GCC
14849 builtin and then its argument prototype would still apply. */
14850 #ifdef __cplusplus
14851 extern "C"
14852 #endif
14853 char dlopen ();
14855 main ()
14857 return dlopen ();
14859 return 0;
14861 _ACEOF
14862 if ac_fn_c_try_link "$LINENO"; then :
14863 ac_cv_lib_dl_dlopen=yes
14864 else
14865 ac_cv_lib_dl_dlopen=no
14867 rm -f core conftest.err conftest.$ac_objext \
14868 conftest$ac_exeext conftest.$ac_ext
14869 LIBS=$ac_check_lib_save_LIBS
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14872 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14873 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14874 have_dl="yes"
14875 aros_host_ldflags="$aros_host_ldflags -ldl"
14876 else
14877 have_dl="no"
14881 if test "x-$have_dl" = "x-no" ; then
14882 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14884 LIBS="$save_libs"
14888 # Check whether --enable-x11_hidd was given.
14889 if test "${enable_x11_hidd+set}" = set; then :
14890 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14891 else
14892 x11_hidd="$need_x11"
14895 case "x-$x11_hidd" in
14896 x-yes|x-no|x-auto) ;;
14897 *) x11_hidd="$need_x11" ;;
14898 esac
14900 ENABLE_X11=0
14902 if test "x-$x11_hidd" != "x-no" ; then
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14905 $as_echo_n "checking for X... " >&6; }
14908 # Check whether --with-x was given.
14909 if test "${with_x+set}" = set; then :
14910 withval=$with_x;
14913 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14914 if test "x$with_x" = xno; then
14915 # The user explicitly disabled X.
14916 have_x=disabled
14917 else
14918 case $x_includes,$x_libraries in #(
14919 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14920 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14921 $as_echo_n "(cached) " >&6
14922 else
14923 # One or both of the vars are not set, and there is no cached value.
14924 ac_x_includes=no ac_x_libraries=no
14925 rm -f -r conftest.dir
14926 if mkdir conftest.dir; then
14927 cd conftest.dir
14928 cat >Imakefile <<'_ACEOF'
14929 incroot:
14930 @echo incroot='${INCROOT}'
14931 usrlibdir:
14932 @echo usrlibdir='${USRLIBDIR}'
14933 libdir:
14934 @echo libdir='${LIBDIR}'
14935 _ACEOF
14936 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14937 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14938 for ac_var in incroot usrlibdir libdir; do
14939 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14940 done
14941 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14942 for ac_extension in a so sl dylib la dll; do
14943 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14944 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14945 ac_im_usrlibdir=$ac_im_libdir; break
14947 done
14948 # Screen out bogus values from the imake configuration. They are
14949 # bogus both because they are the default anyway, and because
14950 # using them would break gcc on systems where it needs fixed includes.
14951 case $ac_im_incroot in
14952 /usr/include) ac_x_includes= ;;
14953 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14954 esac
14955 case $ac_im_usrlibdir in
14956 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14957 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14958 esac
14960 cd ..
14961 rm -f -r conftest.dir
14964 # Standard set of common directories for X headers.
14965 # Check X11 before X11Rn because it is often a symlink to the current release.
14966 ac_x_header_dirs='
14967 /usr/X11/include
14968 /usr/X11R7/include
14969 /usr/X11R6/include
14970 /usr/X11R5/include
14971 /usr/X11R4/include
14973 /usr/include/X11
14974 /usr/include/X11R7
14975 /usr/include/X11R6
14976 /usr/include/X11R5
14977 /usr/include/X11R4
14979 /usr/local/X11/include
14980 /usr/local/X11R7/include
14981 /usr/local/X11R6/include
14982 /usr/local/X11R5/include
14983 /usr/local/X11R4/include
14985 /usr/local/include/X11
14986 /usr/local/include/X11R7
14987 /usr/local/include/X11R6
14988 /usr/local/include/X11R5
14989 /usr/local/include/X11R4
14991 /usr/X386/include
14992 /usr/x386/include
14993 /usr/XFree86/include/X11
14995 /usr/include
14996 /usr/local/include
14997 /usr/unsupported/include
14998 /usr/athena/include
14999 /usr/local/x11r5/include
15000 /usr/lpp/Xamples/include
15002 /usr/openwin/include
15003 /usr/openwin/share/include'
15005 if test "$ac_x_includes" = no; then
15006 # Guess where to find include files, by looking for Xlib.h.
15007 # First, try using that file with no special directory specified.
15008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h. */
15010 #include <X11/Xlib.h>
15011 _ACEOF
15012 if ac_fn_c_try_cpp "$LINENO"; then :
15013 # We can compile using X headers with no special include directory.
15014 ac_x_includes=
15015 else
15016 for ac_dir in $ac_x_header_dirs; do
15017 if test -r "$ac_dir/X11/Xlib.h"; then
15018 ac_x_includes=$ac_dir
15019 break
15021 done
15023 rm -f conftest.err conftest.i conftest.$ac_ext
15024 fi # $ac_x_includes = no
15026 if test "$ac_x_libraries" = no; then
15027 # Check for the libraries.
15028 # See if we find them without any special options.
15029 # Don't add to $LIBS permanently.
15030 ac_save_LIBS=$LIBS
15031 LIBS="-lX11 $LIBS"
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 #include <X11/Xlib.h>
15036 main ()
15038 XrmInitialize ()
15040 return 0;
15042 _ACEOF
15043 if ac_fn_c_try_link "$LINENO"; then :
15044 LIBS=$ac_save_LIBS
15045 # We can link X programs with no special library path.
15046 ac_x_libraries=
15047 else
15048 LIBS=$ac_save_LIBS
15049 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15051 # Don't even attempt the hair of trying to link an X program!
15052 for ac_extension in a so sl dylib la dll; do
15053 if test -r "$ac_dir/libX11.$ac_extension"; then
15054 ac_x_libraries=$ac_dir
15055 break 2
15057 done
15058 done
15060 rm -f core conftest.err conftest.$ac_objext \
15061 conftest$ac_exeext conftest.$ac_ext
15062 fi # $ac_x_libraries = no
15064 case $ac_x_includes,$ac_x_libraries in #(
15065 no,* | *,no | *\'*)
15066 # Didn't find X, or a directory has "'" in its name.
15067 ac_cv_have_x="have_x=no";; #(
15069 # Record where we found X for the cache.
15070 ac_cv_have_x="have_x=yes\
15071 ac_x_includes='$ac_x_includes'\
15072 ac_x_libraries='$ac_x_libraries'"
15073 esac
15075 ;; #(
15076 *) have_x=yes;;
15077 esac
15078 eval "$ac_cv_have_x"
15079 fi # $with_x != no
15081 if test "$have_x" != yes; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15083 $as_echo "$have_x" >&6; }
15084 no_x=yes
15085 else
15086 # If each of the values was on the command line, it overrides each guess.
15087 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15088 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15089 # Update the cache value to reflect the command line values.
15090 ac_cv_have_x="have_x=yes\
15091 ac_x_includes='$x_includes'\
15092 ac_x_libraries='$x_libraries'"
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15094 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15098 if test -n "$x_includes"; then
15099 X_CFLAGS="$X_CFLAGS -I$x_includes"
15102 if test -n "$x_libraries"; then
15103 X_LIBS="$X_LIBS -L$x_libraries"
15106 if test "x-$no_x" = "x-yes" ; then
15108 if test "x-$x11_hidd" != "x-auto" ; then
15109 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
15112 else
15113 aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
15114 if test "x-$host_feature_glx" != "x-no" ; then
15115 aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
15117 ENABLE_X11=1
15119 aros_host_x11_cflags="$X_CFLAGS"
15120 aros_host_x11_ldflags="$X_LIBS -lX11"
15122 # Check whether --enable-x11_shm was given.
15123 if test "${enable_x11_shm+set}" = set; then :
15124 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
15125 else
15126 x11_hidd_shm="auto"
15129 case "x-$x11_hidd_shm" in
15130 x-yes|x-no|x-auto) ;;
15131 *) x11_hidd_shm="auto" ;;
15132 esac
15134 have_xshm=no
15136 if test "x-$x11_hidd_shm" != "x-no" ; then
15138 for ac_header in sys/ipc.h
15139 do :
15140 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15141 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
15142 cat >>confdefs.h <<_ACEOF
15143 #define HAVE_SYS_IPC_H 1
15144 _ACEOF
15148 done
15150 for ac_header in sys/shm.h
15151 do :
15152 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15153 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
15154 cat >>confdefs.h <<_ACEOF
15155 #define HAVE_SYS_SHM_H 1
15156 _ACEOF
15160 done
15163 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
15165 save_cflags="$CFLAGS"
15166 save_ldflags="$LDFLAGS"
15167 CFLAGS="$CFLAGS $X_CFLAGS"
15168 LDFLAGS="$LDFLAGS $X_LIBS"
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
15170 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
15171 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
15172 $as_echo_n "(cached) " >&6
15173 else
15174 ac_check_lib_save_LIBS=$LIBS
15175 LIBS="-lXext $LIBS"
15176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15177 /* end confdefs.h. */
15179 /* Override any GCC internal prototype to avoid an error.
15180 Use char because int might match the return type of a GCC
15181 builtin and then its argument prototype would still apply. */
15182 #ifdef __cplusplus
15183 extern "C"
15184 #endif
15185 char XShmQueryExtension ();
15187 main ()
15189 return XShmQueryExtension ();
15191 return 0;
15193 _ACEOF
15194 if ac_fn_c_try_link "$LINENO"; then :
15195 ac_cv_lib_Xext_XShmQueryExtension=yes
15196 else
15197 ac_cv_lib_Xext_XShmQueryExtension=no
15199 rm -f core conftest.err conftest.$ac_objext \
15200 conftest$ac_exeext conftest.$ac_ext
15201 LIBS=$ac_check_lib_save_LIBS
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
15204 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
15205 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
15206 have_xshm=yes
15209 CFLAGS="$save_cflags"
15210 LDFLAGS="$save_ldflags"
15214 if test "x-$have_xshm" = "x-yes" ; then
15215 DO_XSHM_SUPPORT="1"
15216 elif test "x-$x11_hidd_shm" = "x-yes" ; then
15217 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
15218 else
15219 DO_XSHM_SUPPORT="0"
15223 # Check whether --enable-x11_vidmode was given.
15224 if test "${enable_x11_vidmode+set}" = set; then :
15225 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
15226 else
15227 x11_hidd_vidmode="auto"
15230 case "x-$x11_hidd_vidmode" in
15231 x-yes|x-no|x-auto) ;;
15232 *) x11_hidd_vidmode="auto" ;;
15233 esac
15235 have_vidmode=no
15237 if test "x-$x11_hidd_vidmode" != "x-no" ; then
15239 save_cflags="$CFLAGS"
15240 save_ldflags="$LDFLAGS"
15241 CFLAGS="$CFLAGS $X_CFLAGS"
15242 LDFLAGS="$LDFLAGS $X_LIBS"
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
15244 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
15245 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
15246 $as_echo_n "(cached) " >&6
15247 else
15248 ac_check_lib_save_LIBS=$LIBS
15249 LIBS="-lXxf86vm $LIBS"
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h. */
15253 /* Override any GCC internal prototype to avoid an error.
15254 Use char because int might match the return type of a GCC
15255 builtin and then its argument prototype would still apply. */
15256 #ifdef __cplusplus
15257 extern "C"
15258 #endif
15259 char XF86VidModeQueryExtension ();
15261 main ()
15263 return XF86VidModeQueryExtension ();
15265 return 0;
15267 _ACEOF
15268 if ac_fn_c_try_link "$LINENO"; then :
15269 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
15270 else
15271 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
15273 rm -f core conftest.err conftest.$ac_objext \
15274 conftest$ac_exeext conftest.$ac_ext
15275 LIBS=$ac_check_lib_save_LIBS
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
15278 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
15279 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
15280 have_vidmode=yes
15283 CFLAGS="$save_cflags"
15284 LDFLAGS="$save_ldflags"
15287 if test "x-$have_vidmode" = "x-yes" ; then
15288 DO_VIDMODE_SUPPORT="1"
15289 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
15290 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
15291 else
15292 DO_VIDMODE_SUPPORT="0"
15297 # Check whether --enable-sdl_hidd was given.
15298 if test "${enable_sdl_hidd+set}" = set; then :
15299 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
15300 else
15301 sdl_hidd="auto"
15304 case "x-$sdl_hidd" in
15305 x-yes|x-no|x-auto) ;;
15306 *) sdl_hidd="auto" ;;
15307 esac
15309 if test "x-$sdl_hidd" != "x-no" ; then
15311 SDL_VERSION=1.2.5
15313 # Check whether --with-sdl-prefix was given.
15314 if test "${with_sdl_prefix+set}" = set; then :
15315 withval=$with_sdl_prefix; sdl_prefix="$withval"
15316 else
15317 sdl_prefix=""
15321 # Check whether --with-sdl-exec-prefix was given.
15322 if test "${with_sdl_exec_prefix+set}" = set; then :
15323 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
15324 else
15325 sdl_exec_prefix=""
15328 # Check whether --enable-sdltest was given.
15329 if test "${enable_sdltest+set}" = set; then :
15330 enableval=$enable_sdltest;
15331 else
15332 enable_sdltest=yes
15336 if test x$sdl_exec_prefix != x ; then
15337 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15338 if test x${SDL_CONFIG+set} != xset ; then
15339 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
15342 if test x$sdl_prefix != x ; then
15343 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15344 if test x${SDL_CONFIG+set} != xset ; then
15345 SDL_CONFIG=$sdl_prefix/bin/sdl-config
15349 as_save_PATH="$PATH"
15350 if test "x$prefix" != xNONE; then
15351 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15353 # Extract the first word of "sdl-config", so it can be a program name with args.
15354 set dummy sdl-config; ac_word=$2
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15356 $as_echo_n "checking for $ac_word... " >&6; }
15357 if ${ac_cv_path_SDL_CONFIG+:} false; then :
15358 $as_echo_n "(cached) " >&6
15359 else
15360 case $SDL_CONFIG in
15361 [\\/]* | ?:[\\/]*)
15362 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
15365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15366 for as_dir in $PATH
15368 IFS=$as_save_IFS
15369 test -z "$as_dir" && as_dir=.
15370 for ac_exec_ext in '' $ac_executable_extensions; do
15371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15372 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15374 break 2
15376 done
15377 done
15378 IFS=$as_save_IFS
15380 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15382 esac
15384 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15385 if test -n "$SDL_CONFIG"; then
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15387 $as_echo "$SDL_CONFIG" >&6; }
15388 else
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15390 $as_echo "no" >&6; }
15394 PATH="$as_save_PATH"
15395 min_sdl_version=$SDL_VERSION
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15397 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15398 no_sdl=""
15399 if test "$SDL_CONFIG" = "no" ; then
15400 no_sdl=yes
15401 else
15402 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15403 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15405 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15406 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15407 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15408 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15409 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15410 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15411 if test "x$enable_sdltest" = "xyes" ; then
15412 ac_save_CFLAGS="$CFLAGS"
15413 ac_save_CXXFLAGS="$CXXFLAGS"
15414 ac_save_LIBS="$LIBS"
15415 CFLAGS="$CFLAGS $SDL_CFLAGS"
15416 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15417 LIBS="$LIBS $SDL_LIBS"
15418 rm -f conf.sdltest
15419 if test "$cross_compiling" = yes; then :
15420 echo $ac_n "cross compiling; assumed OK... $ac_c"
15421 else
15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h. */
15425 #include <stdio.h>
15426 #include <stdlib.h>
15427 #include <string.h>
15428 #include "SDL.h"
15430 char*
15431 my_strdup (char *str)
15433 char *new_str;
15435 if (str)
15437 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15438 strcpy (new_str, str);
15440 else
15441 new_str = NULL;
15443 return new_str;
15446 int main (int argc, char *argv[])
15448 int major, minor, micro;
15449 char *tmp_version;
15451 /* This hangs on some systems (?)
15452 system ("touch conf.sdltest");
15454 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15456 /* HP/UX 9 (%@#!) writes to sscanf strings */
15457 tmp_version = my_strdup("$min_sdl_version");
15458 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15459 printf("%s, bad version string\n", "$min_sdl_version");
15460 exit(1);
15463 if (($sdl_major_version > major) ||
15464 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15465 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15467 return 0;
15469 else
15471 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15472 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15473 printf("*** best to upgrade to the required version.\n");
15474 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15475 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15476 printf("*** config.cache before re-running configure\n");
15477 return 1;
15482 _ACEOF
15483 if ac_fn_c_try_run "$LINENO"; then :
15485 else
15486 no_sdl=yes
15488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15489 conftest.$ac_objext conftest.beam conftest.$ac_ext
15492 CFLAGS="$ac_save_CFLAGS"
15493 CXXFLAGS="$ac_save_CXXFLAGS"
15494 LIBS="$ac_save_LIBS"
15497 if test "x$no_sdl" = x ; then
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15499 $as_echo "yes" >&6; }
15500 have_sdl="yes"
15501 else
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15503 $as_echo "no" >&6; }
15504 if test "$SDL_CONFIG" = "no" ; then
15505 echo "*** The sdl-config script installed by SDL could not be found"
15506 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15507 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15508 echo "*** full path to sdl-config."
15509 else
15510 if test -f conf.sdltest ; then
15512 else
15513 echo "*** Could not run SDL test program, checking why..."
15514 CFLAGS="$CFLAGS $SDL_CFLAGS"
15515 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15516 LIBS="$LIBS $SDL_LIBS"
15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15520 #include <stdio.h>
15521 #include "SDL.h"
15523 int main(int argc, char *argv[])
15524 { return 0; }
15525 #undef main
15526 #define main K_and_R_C_main
15529 main ()
15531 return 0;
15533 return 0;
15535 _ACEOF
15536 if ac_fn_c_try_link "$LINENO"; then :
15537 echo "*** The test program compiled, but did not run. This usually means"
15538 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15539 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15540 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15541 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15542 echo "*** is required on your system"
15543 echo "***"
15544 echo "*** If you have an old version installed, it is best to remove it, although"
15545 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15546 else
15547 echo "*** The test program failed to compile or link. See the file config.log for the"
15548 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15549 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15550 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15552 rm -f core conftest.err conftest.$ac_objext \
15553 conftest$ac_exeext conftest.$ac_ext
15554 CFLAGS="$ac_save_CFLAGS"
15555 CXXFLAGS="$ac_save_CXXFLAGS"
15556 LIBS="$ac_save_LIBS"
15559 SDL_CFLAGS=""
15560 SDL_LIBS=""
15561 have_sdl="no"
15565 rm -f conf.sdltest
15568 if test "x-$have_sdl" != "x-yes" ; then
15570 if test "x-$sdl_hidd" != "x-auto" ; then
15571 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15574 else
15575 aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15576 aros_host_sdl_cflags=$SDL_CFLAGS
15577 aros_host_sdl_libs=$SDL_LIBS
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15585 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15586 # Check whether --enable-dbus was given.
15587 if test "${enable_dbus+set}" = set; then :
15588 enableval=$enable_dbus; dbus="yes"
15589 else
15590 dbus="no"
15593 if test "$dbus" = "yes" ; then
15594 ENABLE_DBUS=1
15595 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15596 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15597 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15598 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15599 else
15600 ENABLE_DBUS=0
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15603 $as_echo "$dbus" >&6; }
15605 if test "$use_kernel_cc_wrapper" = "yes" ; then
15606 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15609 aros_kernel_cppflags=$aros_config_cppflags
15610 aros_optimization_cflags="$optimization_level"
15611 if test "$optimization" = "default"; then
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15613 $as_echo_n "checking default optimization level to use... " >&6; }
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15615 $as_echo "$optimization_level" >&6; }
15618 if ! test "$gcc_default_cpu" = "" ; then
15619 target_extra_cfg+="$export_newline""# ARM gcc default target$export_newline""GCC_DEFAULT_CPU := $gcc_default_cpu$export_newline""GCC_DEFAULT_FPU := $gcc_default_fpu$export_newline""GCC_DEFAULT_FLOAT_ABI := $gcc_default_float_abi$export_newline""GCC_DEFAULT_MODE := $gcc_default_mode$export_newline"
15622 if test "$use_libatomic" = "yes" ; then
15623 aros_cxx_libs="$aros_cxx_libs -latomic"
15627 # Generic
15641 # Compatability with other Amiga-like operating systems
15644 # Host Related ###########################
15676 # Target Related #########################
15770 # Native version related
15775 # MMU related
15778 # Bootloader related
15781 # Unix/Hosted version related
15784 # ARM default GCC target related
15791 # Palm native version related
15794 # Apple iOS related
15799 # Android related
15805 # Debug related
15811 # Collect-aros stuff: "-ius" to ignore undefined symbols
15814 # C compiler related
15819 #ObjC compiler related
15822 #Java related
15825 # DBUS related
15832 #X11 related
15840 #SDL related
15844 # USB3.0 code
15847 case "$aros_flavour" in
15848 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15849 aros_flavour="emulation" ;;
15850 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15851 aros_flavour="emulation" ;;
15852 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15853 aros_flavour="standalone";;
15854 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15855 aros_flavour="standalone";;
15856 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15857 aros_flavour="native" ;;
15858 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15859 aros_flavour="native" ;;
15860 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15861 aros_flavour="linklib" ;;
15862 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15863 aros_flavour="palmnative" ;;
15864 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15865 aros_flavour="mac68knative" ;;
15866 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15867 aros_flavour="ppcnative" ;;
15868 esac
15870 if test ! -d ${aros_inc_dir} ; then
15871 ${MKDIR} ${aros_inc_dir}
15873 if test ! -d ${aros_geninc_dir} ; then
15874 ${MKDIR} ${aros_geninc_dir}
15876 if test ! -d ${aros_hostcfg_dir} ; then
15877 ${MKDIR} ${aros_hostcfg_dir}
15879 if test ! -d ${aros_targetcfg_dir} ; then
15880 ${MKDIR} ${aros_targetcfg_dir}
15882 if test ! -d ${aros_tools_dir} ; then
15883 ${MKDIR} ${aros_tools_dir}
15885 if test ! -d ${aros_scripts_dir} ; then
15886 ${MKDIR} ${aros_scripts_dir}
15889 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15892 # Generic build tools (metamake, etc)
15893 ac_config_commands="$ac_config_commands genmf-executable-support"
15895 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/geninc.cfg:compiler/include/geninc.cfg.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in tools/collect-aros/env.h"
15898 # Binutils
15899 ac_config_commands="$ac_config_commands binutils-support"
15901 if test "${use_ld_wrapper}" = "yes"; then
15902 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in"
15905 # Bare Elf support script and spec
15906 if test "${use_kernel_cc_wrapper}" = "yes"; then
15907 ac_config_commands="$ac_config_commands elf-compiler-support"
15909 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"
15913 # Host compiler support scripts and spec
15914 if test "${aros_target_toolchain}" = "no"; then
15915 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15917 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"
15921 # Android support
15922 if test "$aros_target_variant" == "android"; then
15923 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15927 # cmake helper
15928 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15931 cat >confcache <<\_ACEOF
15932 # This file is a shell script that caches the results of configure
15933 # tests run on this system so they can be shared between configure
15934 # scripts and configure runs, see configure's option --config-cache.
15935 # It is not useful on other systems. If it contains results you don't
15936 # want to keep, you may remove or edit it.
15938 # config.status only pays attention to the cache file if you give it
15939 # the --recheck option to rerun configure.
15941 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15942 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15943 # following values.
15945 _ACEOF
15947 # The following way of writing the cache mishandles newlines in values,
15948 # but we know of no workaround that is simple, portable, and efficient.
15949 # So, we kill variables containing newlines.
15950 # Ultrix sh set writes to stderr and can't be redirected directly,
15951 # and sets the high bit in the cache file unless we assign to the vars.
15953 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15954 eval ac_val=\$$ac_var
15955 case $ac_val in #(
15956 *${as_nl}*)
15957 case $ac_var in #(
15958 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15959 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15960 esac
15961 case $ac_var in #(
15962 _ | IFS | as_nl) ;; #(
15963 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15964 *) { eval $ac_var=; unset $ac_var;} ;;
15965 esac ;;
15966 esac
15967 done
15969 (set) 2>&1 |
15970 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15971 *${as_nl}ac_space=\ *)
15972 # `set' does not quote correctly, so add quotes: double-quote
15973 # substitution turns \\\\ into \\, and sed turns \\ into \.
15974 sed -n \
15975 "s/'/'\\\\''/g;
15976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15977 ;; #(
15979 # `set' quotes correctly as required by POSIX, so do not add quotes.
15980 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15982 esac |
15983 sort
15985 sed '
15986 /^ac_cv_env_/b end
15987 t clear
15988 :clear
15989 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15990 t end
15991 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15992 :end' >>confcache
15993 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15994 if test -w "$cache_file"; then
15995 if test "x$cache_file" != "x/dev/null"; then
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15997 $as_echo "$as_me: updating cache $cache_file" >&6;}
15998 if test ! -f "$cache_file" || test -h "$cache_file"; then
15999 cat confcache >"$cache_file"
16000 else
16001 case $cache_file in #(
16002 */* | ?:*)
16003 mv -f confcache "$cache_file"$$ &&
16004 mv -f "$cache_file"$$ "$cache_file" ;; #(
16006 mv -f confcache "$cache_file" ;;
16007 esac
16010 else
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16012 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16015 rm -f confcache
16017 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16018 # Let make expand exec_prefix.
16019 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16021 DEFS=-DHAVE_CONFIG_H
16023 ac_libobjs=
16024 ac_ltlibobjs=
16026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16027 # 1. Remove the extension, and $U if already installed.
16028 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16029 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16030 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16031 # will be set to the directory where LIBOBJS objects are built.
16032 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16033 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16034 done
16035 LIBOBJS=$ac_libobjs
16037 LTLIBOBJS=$ac_ltlibobjs
16041 : "${CONFIG_STATUS=./config.status}"
16042 ac_write_fail=0
16043 ac_clean_files_save=$ac_clean_files
16044 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16046 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16047 as_write_fail=0
16048 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16049 #! $SHELL
16050 # Generated by $as_me.
16051 # Run this file to recreate the current configuration.
16052 # Compiler output produced by configure, useful for debugging
16053 # configure, is in config.log if it exists.
16055 debug=false
16056 ac_cs_recheck=false
16057 ac_cs_silent=false
16059 SHELL=\${CONFIG_SHELL-$SHELL}
16060 export SHELL
16061 _ASEOF
16062 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16063 ## -------------------- ##
16064 ## M4sh Initialization. ##
16065 ## -------------------- ##
16067 # Be more Bourne compatible
16068 DUALCASE=1; export DUALCASE # for MKS sh
16069 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16070 emulate sh
16071 NULLCMD=:
16072 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16073 # is contrary to our usage. Disable this feature.
16074 alias -g '${1+"$@"}'='"$@"'
16075 setopt NO_GLOB_SUBST
16076 else
16077 case `(set -o) 2>/dev/null` in #(
16078 *posix*) :
16079 set -o posix ;; #(
16080 *) :
16082 esac
16086 as_nl='
16088 export as_nl
16089 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16090 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16091 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16092 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16093 # Prefer a ksh shell builtin over an external printf program on Solaris,
16094 # but without wasting forks for bash or zsh.
16095 if test -z "$BASH_VERSION$ZSH_VERSION" \
16096 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16097 as_echo='print -r --'
16098 as_echo_n='print -rn --'
16099 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16100 as_echo='printf %s\n'
16101 as_echo_n='printf %s'
16102 else
16103 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16104 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16105 as_echo_n='/usr/ucb/echo -n'
16106 else
16107 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16108 as_echo_n_body='eval
16109 arg=$1;
16110 case $arg in #(
16111 *"$as_nl"*)
16112 expr "X$arg" : "X\\(.*\\)$as_nl";
16113 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16114 esac;
16115 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16117 export as_echo_n_body
16118 as_echo_n='sh -c $as_echo_n_body as_echo'
16120 export as_echo_body
16121 as_echo='sh -c $as_echo_body as_echo'
16124 # The user is always right.
16125 if test "${PATH_SEPARATOR+set}" != set; then
16126 PATH_SEPARATOR=:
16127 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16128 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16129 PATH_SEPARATOR=';'
16134 # IFS
16135 # We need space, tab and new line, in precisely that order. Quoting is
16136 # there to prevent editors from complaining about space-tab.
16137 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16138 # splitting by setting IFS to empty value.)
16139 IFS=" "" $as_nl"
16141 # Find who we are. Look in the path if we contain no directory separator.
16142 as_myself=
16143 case $0 in #((
16144 *[\\/]* ) as_myself=$0 ;;
16145 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16146 for as_dir in $PATH
16148 IFS=$as_save_IFS
16149 test -z "$as_dir" && as_dir=.
16150 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16151 done
16152 IFS=$as_save_IFS
16155 esac
16156 # We did not find ourselves, most probably we were run as `sh COMMAND'
16157 # in which case we are not to be found in the path.
16158 if test "x$as_myself" = x; then
16159 as_myself=$0
16161 if test ! -f "$as_myself"; then
16162 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16163 exit 1
16166 # Unset variables that we do not need and which cause bugs (e.g. in
16167 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16168 # suppresses any "Segmentation fault" message there. '((' could
16169 # trigger a bug in pdksh 5.2.14.
16170 for as_var in BASH_ENV ENV MAIL MAILPATH
16171 do eval test x\${$as_var+set} = xset \
16172 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16173 done
16174 PS1='$ '
16175 PS2='> '
16176 PS4='+ '
16178 # NLS nuisances.
16179 LC_ALL=C
16180 export LC_ALL
16181 LANGUAGE=C
16182 export LANGUAGE
16184 # CDPATH.
16185 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16188 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16189 # ----------------------------------------
16190 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16191 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16192 # script with STATUS, using 1 if that was 0.
16193 as_fn_error ()
16195 as_status=$1; test $as_status -eq 0 && as_status=1
16196 if test "$4"; then
16197 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16198 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16200 $as_echo "$as_me: error: $2" >&2
16201 as_fn_exit $as_status
16202 } # as_fn_error
16205 # as_fn_set_status STATUS
16206 # -----------------------
16207 # Set $? to STATUS, without forking.
16208 as_fn_set_status ()
16210 return $1
16211 } # as_fn_set_status
16213 # as_fn_exit STATUS
16214 # -----------------
16215 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16216 as_fn_exit ()
16218 set +e
16219 as_fn_set_status $1
16220 exit $1
16221 } # as_fn_exit
16223 # as_fn_unset VAR
16224 # ---------------
16225 # Portably unset VAR.
16226 as_fn_unset ()
16228 { eval $1=; unset $1;}
16230 as_unset=as_fn_unset
16231 # as_fn_append VAR VALUE
16232 # ----------------------
16233 # Append the text in VALUE to the end of the definition contained in VAR. Take
16234 # advantage of any shell optimizations that allow amortized linear growth over
16235 # repeated appends, instead of the typical quadratic growth present in naive
16236 # implementations.
16237 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16238 eval 'as_fn_append ()
16240 eval $1+=\$2
16242 else
16243 as_fn_append ()
16245 eval $1=\$$1\$2
16247 fi # as_fn_append
16249 # as_fn_arith ARG...
16250 # ------------------
16251 # Perform arithmetic evaluation on the ARGs, and store the result in the
16252 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16253 # must be portable across $(()) and expr.
16254 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16255 eval 'as_fn_arith ()
16257 as_val=$(( $* ))
16259 else
16260 as_fn_arith ()
16262 as_val=`expr "$@" || test $? -eq 1`
16264 fi # as_fn_arith
16267 if expr a : '\(a\)' >/dev/null 2>&1 &&
16268 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16269 as_expr=expr
16270 else
16271 as_expr=false
16274 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16275 as_basename=basename
16276 else
16277 as_basename=false
16280 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16281 as_dirname=dirname
16282 else
16283 as_dirname=false
16286 as_me=`$as_basename -- "$0" ||
16287 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16288 X"$0" : 'X\(//\)$' \| \
16289 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16290 $as_echo X/"$0" |
16291 sed '/^.*\/\([^/][^/]*\)\/*$/{
16292 s//\1/
16295 /^X\/\(\/\/\)$/{
16296 s//\1/
16299 /^X\/\(\/\).*/{
16300 s//\1/
16303 s/.*/./; q'`
16305 # Avoid depending upon Character Ranges.
16306 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16307 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16308 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16309 as_cr_digits='0123456789'
16310 as_cr_alnum=$as_cr_Letters$as_cr_digits
16312 ECHO_C= ECHO_N= ECHO_T=
16313 case `echo -n x` in #(((((
16314 -n*)
16315 case `echo 'xy\c'` in
16316 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16317 xy) ECHO_C='\c';;
16318 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16319 ECHO_T=' ';;
16320 esac;;
16322 ECHO_N='-n';;
16323 esac
16325 rm -f conf$$ conf$$.exe conf$$.file
16326 if test -d conf$$.dir; then
16327 rm -f conf$$.dir/conf$$.file
16328 else
16329 rm -f conf$$.dir
16330 mkdir conf$$.dir 2>/dev/null
16332 if (echo >conf$$.file) 2>/dev/null; then
16333 if ln -s conf$$.file conf$$ 2>/dev/null; then
16334 as_ln_s='ln -s'
16335 # ... but there are two gotchas:
16336 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16337 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16338 # In both cases, we have to default to `cp -pR'.
16339 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16340 as_ln_s='cp -pR'
16341 elif ln conf$$.file conf$$ 2>/dev/null; then
16342 as_ln_s=ln
16343 else
16344 as_ln_s='cp -pR'
16346 else
16347 as_ln_s='cp -pR'
16349 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16350 rmdir conf$$.dir 2>/dev/null
16353 # as_fn_mkdir_p
16354 # -------------
16355 # Create "$as_dir" as a directory, including parents if necessary.
16356 as_fn_mkdir_p ()
16359 case $as_dir in #(
16360 -*) as_dir=./$as_dir;;
16361 esac
16362 test -d "$as_dir" || eval $as_mkdir_p || {
16363 as_dirs=
16364 while :; do
16365 case $as_dir in #(
16366 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16367 *) as_qdir=$as_dir;;
16368 esac
16369 as_dirs="'$as_qdir' $as_dirs"
16370 as_dir=`$as_dirname -- "$as_dir" ||
16371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16372 X"$as_dir" : 'X\(//\)[^/]' \| \
16373 X"$as_dir" : 'X\(//\)$' \| \
16374 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16375 $as_echo X"$as_dir" |
16376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16377 s//\1/
16380 /^X\(\/\/\)[^/].*/{
16381 s//\1/
16384 /^X\(\/\/\)$/{
16385 s//\1/
16388 /^X\(\/\).*/{
16389 s//\1/
16392 s/.*/./; q'`
16393 test -d "$as_dir" && break
16394 done
16395 test -z "$as_dirs" || eval "mkdir $as_dirs"
16396 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16399 } # as_fn_mkdir_p
16400 if mkdir -p . 2>/dev/null; then
16401 as_mkdir_p='mkdir -p "$as_dir"'
16402 else
16403 test -d ./-p && rmdir ./-p
16404 as_mkdir_p=false
16408 # as_fn_executable_p FILE
16409 # -----------------------
16410 # Test if FILE is an executable regular file.
16411 as_fn_executable_p ()
16413 test -f "$1" && test -x "$1"
16414 } # as_fn_executable_p
16415 as_test_x='test -x'
16416 as_executable_p=as_fn_executable_p
16418 # Sed expression to map a string onto a valid CPP name.
16419 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16421 # Sed expression to map a string onto a valid variable name.
16422 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16425 exec 6>&1
16426 ## ----------------------------------- ##
16427 ## Main body of $CONFIG_STATUS script. ##
16428 ## ----------------------------------- ##
16429 _ASEOF
16430 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16433 # Save the log message, to keep $0 and so on meaningful, and to
16434 # report actual input values of CONFIG_FILES etc. instead of their
16435 # values after options handling.
16436 ac_log="
16437 This file was extended by $as_me, which was
16438 generated by GNU Autoconf 2.69. Invocation command line was
16440 CONFIG_FILES = $CONFIG_FILES
16441 CONFIG_HEADERS = $CONFIG_HEADERS
16442 CONFIG_LINKS = $CONFIG_LINKS
16443 CONFIG_COMMANDS = $CONFIG_COMMANDS
16444 $ $0 $@
16446 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16449 _ACEOF
16451 case $ac_config_files in *"
16452 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16453 esac
16455 case $ac_config_headers in *"
16456 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16457 esac
16460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16461 # Files that config.status was made for.
16462 config_files="$ac_config_files"
16463 config_headers="$ac_config_headers"
16464 config_commands="$ac_config_commands"
16466 _ACEOF
16468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16469 ac_cs_usage="\
16470 \`$as_me' instantiates files and other configuration actions
16471 from templates according to the current configuration. Unless the files
16472 and actions are specified as TAGs, all are instantiated by default.
16474 Usage: $0 [OPTION]... [TAG]...
16476 -h, --help print this help, then exit
16477 -V, --version print version number and configuration settings, then exit
16478 --config print configuration, then exit
16479 -q, --quiet, --silent
16480 do not print progress messages
16481 -d, --debug don't remove temporary files
16482 --recheck update $as_me by reconfiguring in the same conditions
16483 --file=FILE[:TEMPLATE]
16484 instantiate the configuration file FILE
16485 --header=FILE[:TEMPLATE]
16486 instantiate the configuration header FILE
16488 Configuration files:
16489 $config_files
16491 Configuration headers:
16492 $config_headers
16494 Configuration commands:
16495 $config_commands
16497 Report bugs to the package provider."
16499 _ACEOF
16500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16501 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16502 ac_cs_version="\\
16503 config.status
16504 configured by $0, generated by GNU Autoconf 2.69,
16505 with options \\"\$ac_cs_config\\"
16507 Copyright (C) 2012 Free Software Foundation, Inc.
16508 This config.status script is free software; the Free Software Foundation
16509 gives unlimited permission to copy, distribute and modify it."
16511 ac_pwd='$ac_pwd'
16512 srcdir='$srcdir'
16513 test -n "\$AWK" || AWK=awk
16514 _ACEOF
16516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16517 # The default lists apply if the user does not specify any file.
16518 ac_need_defaults=:
16519 while test $# != 0
16521 case $1 in
16522 --*=?*)
16523 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16524 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16525 ac_shift=:
16527 --*=)
16528 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16529 ac_optarg=
16530 ac_shift=:
16533 ac_option=$1
16534 ac_optarg=$2
16535 ac_shift=shift
16537 esac
16539 case $ac_option in
16540 # Handling of the options.
16541 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16542 ac_cs_recheck=: ;;
16543 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16544 $as_echo "$ac_cs_version"; exit ;;
16545 --config | --confi | --conf | --con | --co | --c )
16546 $as_echo "$ac_cs_config"; exit ;;
16547 --debug | --debu | --deb | --de | --d | -d )
16548 debug=: ;;
16549 --file | --fil | --fi | --f )
16550 $ac_shift
16551 case $ac_optarg in
16552 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16553 '') as_fn_error $? "missing file argument" ;;
16554 esac
16555 as_fn_append CONFIG_FILES " '$ac_optarg'"
16556 ac_need_defaults=false;;
16557 --header | --heade | --head | --hea )
16558 $ac_shift
16559 case $ac_optarg in
16560 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16561 esac
16562 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16563 ac_need_defaults=false;;
16564 --he | --h)
16565 # Conflict between --help and --header
16566 as_fn_error $? "ambiguous option: \`$1'
16567 Try \`$0 --help' for more information.";;
16568 --help | --hel | -h )
16569 $as_echo "$ac_cs_usage"; exit ;;
16570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16571 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16572 ac_cs_silent=: ;;
16574 # This is an error.
16575 -*) as_fn_error $? "unrecognized option: \`$1'
16576 Try \`$0 --help' for more information." ;;
16578 *) as_fn_append ac_config_targets " $1"
16579 ac_need_defaults=false ;;
16581 esac
16582 shift
16583 done
16585 ac_configure_extra_args=
16587 if $ac_cs_silent; then
16588 exec 6>/dev/null
16589 ac_configure_extra_args="$ac_configure_extra_args --silent"
16592 _ACEOF
16593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16594 if \$ac_cs_recheck; then
16595 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16596 shift
16597 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16598 CONFIG_SHELL='$SHELL'
16599 export CONFIG_SHELL
16600 exec "\$@"
16603 _ACEOF
16604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16605 exec 5>>config.log
16607 echo
16608 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16609 ## Running $as_me. ##
16610 _ASBOX
16611 $as_echo "$ac_log"
16612 } >&5
16614 _ACEOF
16615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16617 # INIT-COMMANDS
16620 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16621 aros_tools_dir=${aros_tools_dir}
16625 aros_host_exe_suffix=${aros_host_exe_suffix}
16626 aros_tools_dir=${aros_tools_dir}
16627 aros_target_cpu=${aros_target_cpu}
16628 aros_target_arch=${aros_target_arch}
16629 aros_target_suffix=${aros_target_suffix}
16630 orig_target_nm=${orig_target_nm}
16631 orig_target_as=${orig_target_as}
16632 orig_target_ar=${orig_target_ar}
16633 orig_target_ranlib=${orig_target_ranlib}
16634 orig_target_objdump=${orig_target_objdump}
16635 orig_target_objcopy=${orig_target_objcopy}
16636 orig_target_strip=${orig_target_strip}
16637 aros_kernel_ld=${aros_kernel_ld}
16641 aros_host_exe_suffix=${aros_host_exe_suffix}
16642 aros_tools_dir=${aros_tools_dir}
16643 aros_target_cpu=${aros_target_cpu}
16644 aros_target_arch=${aros_target_arch}
16645 aros_target_suffix=${aros_target_suffix}
16646 aros_kernel_ld=${aros_kernel_ld}
16650 aros_host_exe_suffix=${aros_host_exe_suffix}
16651 aros_tools_dir=${aros_tools_dir}
16652 aros_target_cpu=${aros_target_cpu}
16653 aros_target_arch=${aros_target_arch}
16654 aros_target_suffix=${aros_target_suffix}
16658 _ACEOF
16660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16662 # Handling of arguments.
16663 for ac_config_target in $ac_config_targets
16665 case $ac_config_target in
16666 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16667 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16668 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16669 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16670 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16671 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16672 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16673 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16674 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16675 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16676 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16677 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16678 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16679 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16680 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16681 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16682 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in" ;;
16683 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16684 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16685 "${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" ;;
16686 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16687 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16688 "${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" ;;
16689 "${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" ;;
16690 "${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" ;;
16691 "${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" ;;
16692 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16694 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16695 esac
16696 done
16699 # If the user did not use the arguments to specify the items to instantiate,
16700 # then the envvar interface is used. Set only those that are not.
16701 # We use the long form for the default assignment because of an extremely
16702 # bizarre bug on SunOS 4.1.3.
16703 if $ac_need_defaults; then
16704 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16705 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16706 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16709 # Have a temporary directory for convenience. Make it in the build tree
16710 # simply because there is no reason against having it here, and in addition,
16711 # creating and moving files from /tmp can sometimes cause problems.
16712 # Hook for its removal unless debugging.
16713 # Note that there is a small window in which the directory will not be cleaned:
16714 # after its creation but before its name has been assigned to `$tmp'.
16715 $debug ||
16717 tmp= ac_tmp=
16718 trap 'exit_status=$?
16719 : "${ac_tmp:=$tmp}"
16720 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16722 trap 'as_fn_exit 1' 1 2 13 15
16724 # Create a (secure) tmp directory for tmp files.
16727 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16728 test -d "$tmp"
16729 } ||
16731 tmp=./conf$$-$RANDOM
16732 (umask 077 && mkdir "$tmp")
16733 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16734 ac_tmp=$tmp
16736 # Set up the scripts for CONFIG_FILES section.
16737 # No need to generate them if there are no CONFIG_FILES.
16738 # This happens for instance with `./config.status config.h'.
16739 if test -n "$CONFIG_FILES"; then
16742 ac_cr=`echo X | tr X '\015'`
16743 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16744 # But we know of no other shell where ac_cr would be empty at this
16745 # point, so we can use a bashism as a fallback.
16746 if test "x$ac_cr" = x; then
16747 eval ac_cr=\$\'\\r\'
16749 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16750 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16751 ac_cs_awk_cr='\\r'
16752 else
16753 ac_cs_awk_cr=$ac_cr
16756 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16757 _ACEOF
16761 echo "cat >conf$$subs.awk <<_ACEOF" &&
16762 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16763 echo "_ACEOF"
16764 } >conf$$subs.sh ||
16765 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16766 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16767 ac_delim='%!_!# '
16768 for ac_last_try in false false false false false :; do
16769 . ./conf$$subs.sh ||
16770 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16772 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16773 if test $ac_delim_n = $ac_delim_num; then
16774 break
16775 elif $ac_last_try; then
16776 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16777 else
16778 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16780 done
16781 rm -f conf$$subs.sh
16783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16784 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16785 _ACEOF
16786 sed -n '
16788 s/^/S["/; s/!.*/"]=/
16791 s/^[^!]*!//
16792 :repl
16793 t repl
16794 s/'"$ac_delim"'$//
16795 t delim
16798 s/\(.\{148\}\)..*/\1/
16799 t more1
16800 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16803 b repl
16804 :more1
16805 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16808 s/.\{148\}//
16809 t nl
16810 :delim
16812 s/\(.\{148\}\)..*/\1/
16813 t more2
16814 s/["\\]/\\&/g; s/^/"/; s/$/"/
16817 :more2
16818 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16821 s/.\{148\}//
16822 t delim
16823 ' <conf$$subs.awk | sed '
16824 /^[^""]/{
16826 s/\n//
16828 ' >>$CONFIG_STATUS || ac_write_fail=1
16829 rm -f conf$$subs.awk
16830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16831 _ACAWK
16832 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16833 for (key in S) S_is_set[key] = 1
16834 FS = "\a"
16838 line = $ 0
16839 nfields = split(line, field, "@")
16840 substed = 0
16841 len = length(field[1])
16842 for (i = 2; i < nfields; i++) {
16843 key = field[i]
16844 keylen = length(key)
16845 if (S_is_set[key]) {
16846 value = S[key]
16847 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16848 len += length(value) + length(field[++i])
16849 substed = 1
16850 } else
16851 len += 1 + keylen
16854 print line
16857 _ACAWK
16858 _ACEOF
16859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16860 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16861 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16862 else
16864 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16865 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16866 _ACEOF
16868 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16869 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16870 # trailing colons and then remove the whole line if VPATH becomes empty
16871 # (actually we leave an empty line to preserve line numbers).
16872 if test "x$srcdir" = x.; then
16873 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16875 s///
16876 s/^/:/
16877 s/[ ]*$/:/
16878 s/:\$(srcdir):/:/g
16879 s/:\${srcdir}:/:/g
16880 s/:@srcdir@:/:/g
16881 s/^:*//
16882 s/:*$//
16884 s/\(=[ ]*\).*/\1/
16886 s/\n//
16887 s/^[^=]*=[ ]*$//
16891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16892 fi # test -n "$CONFIG_FILES"
16894 # Set up the scripts for CONFIG_HEADERS section.
16895 # No need to generate them if there are no CONFIG_HEADERS.
16896 # This happens for instance with `./config.status Makefile'.
16897 if test -n "$CONFIG_HEADERS"; then
16898 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16899 BEGIN {
16900 _ACEOF
16902 # Transform confdefs.h into an awk script `defines.awk', embedded as
16903 # here-document in config.status, that substitutes the proper values into
16904 # config.h.in to produce config.h.
16906 # Create a delimiter string that does not exist in confdefs.h, to ease
16907 # handling of long lines.
16908 ac_delim='%!_!# '
16909 for ac_last_try in false false :; do
16910 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16911 if test -z "$ac_tt"; then
16912 break
16913 elif $ac_last_try; then
16914 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16915 else
16916 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16918 done
16920 # For the awk script, D is an array of macro values keyed by name,
16921 # likewise P contains macro parameters if any. Preserve backslash
16922 # newline sequences.
16924 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16925 sed -n '
16926 s/.\{148\}/&'"$ac_delim"'/g
16927 t rset
16928 :rset
16929 s/^[ ]*#[ ]*define[ ][ ]*/ /
16930 t def
16932 :def
16933 s/\\$//
16934 t bsnl
16935 s/["\\]/\\&/g
16936 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16937 D["\1"]=" \3"/p
16938 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16940 :bsnl
16941 s/["\\]/\\&/g
16942 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16943 D["\1"]=" \3\\\\\\n"\\/p
16944 t cont
16945 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16946 t cont
16948 :cont
16950 s/.\{148\}/&'"$ac_delim"'/g
16951 t clear
16952 :clear
16953 s/\\$//
16954 t bsnlc
16955 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16957 :bsnlc
16958 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16959 b cont
16960 ' <confdefs.h | sed '
16961 s/'"$ac_delim"'/"\\\
16962 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16965 for (key in D) D_is_set[key] = 1
16966 FS = "\a"
16968 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16969 line = \$ 0
16970 split(line, arg, " ")
16971 if (arg[1] == "#") {
16972 defundef = arg[2]
16973 mac1 = arg[3]
16974 } else {
16975 defundef = substr(arg[1], 2)
16976 mac1 = arg[2]
16978 split(mac1, mac2, "(") #)
16979 macro = mac2[1]
16980 prefix = substr(line, 1, index(line, defundef) - 1)
16981 if (D_is_set[macro]) {
16982 # Preserve the white space surrounding the "#".
16983 print prefix "define", macro P[macro] D[macro]
16984 next
16985 } else {
16986 # Replace #undef with comments. This is necessary, for example,
16987 # in the case of _POSIX_SOURCE, which is predefined and required
16988 # on some systems where configure will not decide to define it.
16989 if (defundef == "undef") {
16990 print "/*", prefix defundef, macro, "*/"
16991 next
16995 { print }
16996 _ACAWK
16997 _ACEOF
16998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16999 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17000 fi # test -n "$CONFIG_HEADERS"
17003 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17004 shift
17005 for ac_tag
17007 case $ac_tag in
17008 :[FHLC]) ac_mode=$ac_tag; continue;;
17009 esac
17010 case $ac_mode$ac_tag in
17011 :[FHL]*:*);;
17012 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17013 :[FH]-) ac_tag=-:-;;
17014 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17015 esac
17016 ac_save_IFS=$IFS
17017 IFS=:
17018 set x $ac_tag
17019 IFS=$ac_save_IFS
17020 shift
17021 ac_file=$1
17022 shift
17024 case $ac_mode in
17025 :L) ac_source=$1;;
17026 :[FH])
17027 ac_file_inputs=
17028 for ac_f
17030 case $ac_f in
17031 -) ac_f="$ac_tmp/stdin";;
17032 *) # Look for the file first in the build tree, then in the source tree
17033 # (if the path is not absolute). The absolute path cannot be DOS-style,
17034 # because $ac_f cannot contain `:'.
17035 test -f "$ac_f" ||
17036 case $ac_f in
17037 [\\/$]*) false;;
17038 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17039 esac ||
17040 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17041 esac
17042 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17043 as_fn_append ac_file_inputs " '$ac_f'"
17044 done
17046 # Let's still pretend it is `configure' which instantiates (i.e., don't
17047 # use $as_me), people would be surprised to read:
17048 # /* config.h. Generated by config.status. */
17049 configure_input='Generated from '`
17050 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17051 `' by configure.'
17052 if test x"$ac_file" != x-; then
17053 configure_input="$ac_file. $configure_input"
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17055 $as_echo "$as_me: creating $ac_file" >&6;}
17057 # Neutralize special characters interpreted by sed in replacement strings.
17058 case $configure_input in #(
17059 *\&* | *\|* | *\\* )
17060 ac_sed_conf_input=`$as_echo "$configure_input" |
17061 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17062 *) ac_sed_conf_input=$configure_input;;
17063 esac
17065 case $ac_tag in
17066 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17068 esac
17070 esac
17072 ac_dir=`$as_dirname -- "$ac_file" ||
17073 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17074 X"$ac_file" : 'X\(//\)[^/]' \| \
17075 X"$ac_file" : 'X\(//\)$' \| \
17076 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17077 $as_echo X"$ac_file" |
17078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17079 s//\1/
17082 /^X\(\/\/\)[^/].*/{
17083 s//\1/
17086 /^X\(\/\/\)$/{
17087 s//\1/
17090 /^X\(\/\).*/{
17091 s//\1/
17094 s/.*/./; q'`
17095 as_dir="$ac_dir"; as_fn_mkdir_p
17096 ac_builddir=.
17098 case "$ac_dir" in
17099 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17101 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17102 # A ".." for each directory in $ac_dir_suffix.
17103 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17104 case $ac_top_builddir_sub in
17105 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17106 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17107 esac ;;
17108 esac
17109 ac_abs_top_builddir=$ac_pwd
17110 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17111 # for backward compatibility:
17112 ac_top_builddir=$ac_top_build_prefix
17114 case $srcdir in
17115 .) # We are building in place.
17116 ac_srcdir=.
17117 ac_top_srcdir=$ac_top_builddir_sub
17118 ac_abs_top_srcdir=$ac_pwd ;;
17119 [\\/]* | ?:[\\/]* ) # Absolute name.
17120 ac_srcdir=$srcdir$ac_dir_suffix;
17121 ac_top_srcdir=$srcdir
17122 ac_abs_top_srcdir=$srcdir ;;
17123 *) # Relative name.
17124 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17125 ac_top_srcdir=$ac_top_build_prefix$srcdir
17126 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17127 esac
17128 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17131 case $ac_mode in
17134 # CONFIG_FILE
17137 _ACEOF
17139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17140 # If the template does not know about datarootdir, expand it.
17141 # FIXME: This hack should be removed a few years after 2.60.
17142 ac_datarootdir_hack=; ac_datarootdir_seen=
17143 ac_sed_dataroot='
17144 /datarootdir/ {
17148 /@datadir@/p
17149 /@docdir@/p
17150 /@infodir@/p
17151 /@localedir@/p
17152 /@mandir@/p'
17153 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17154 *datarootdir*) ac_datarootdir_seen=yes;;
17155 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17157 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17158 _ACEOF
17159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17160 ac_datarootdir_hack='
17161 s&@datadir@&$datadir&g
17162 s&@docdir@&$docdir&g
17163 s&@infodir@&$infodir&g
17164 s&@localedir@&$localedir&g
17165 s&@mandir@&$mandir&g
17166 s&\\\${datarootdir}&$datarootdir&g' ;;
17167 esac
17168 _ACEOF
17170 # Neutralize VPATH when `$srcdir' = `.'.
17171 # Shell code in configure.ac might set extrasub.
17172 # FIXME: do we really want to maintain this feature?
17173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17174 ac_sed_extra="$ac_vpsub
17175 $extrasub
17176 _ACEOF
17177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17180 s|@configure_input@|$ac_sed_conf_input|;t t
17181 s&@top_builddir@&$ac_top_builddir_sub&;t t
17182 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17183 s&@srcdir@&$ac_srcdir&;t t
17184 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17185 s&@top_srcdir@&$ac_top_srcdir&;t t
17186 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17187 s&@builddir@&$ac_builddir&;t t
17188 s&@abs_builddir@&$ac_abs_builddir&;t t
17189 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17190 $ac_datarootdir_hack
17192 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17193 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17195 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17196 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17197 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17198 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17200 which seems to be undefined. Please make sure it is defined" >&5
17201 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17202 which seems to be undefined. Please make sure it is defined" >&2;}
17204 rm -f "$ac_tmp/stdin"
17205 case $ac_file in
17206 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17207 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17208 esac \
17209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17213 # CONFIG_HEADER
17215 if test x"$ac_file" != x-; then
17217 $as_echo "/* $configure_input */" \
17218 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17219 } >"$ac_tmp/config.h" \
17220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17221 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17223 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17224 else
17225 rm -f "$ac_file"
17226 mv "$ac_tmp/config.h" "$ac_file" \
17227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17229 else
17230 $as_echo "/* $configure_input */" \
17231 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17232 || as_fn_error $? "could not create -" "$LINENO" 5
17236 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17237 $as_echo "$as_me: executing $ac_file commands" >&6;}
17239 esac
17242 case $ac_file$ac_mode in
17243 "genmf-executable-support":C)
17244 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
17245 chmod a+x ${aros_tools_dir}/genmf.py
17247 "binutils-support":C)
17248 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17249 mkdir -p $prefix
17250 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17252 chmod a+x ${prefix2}-ld
17254 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
17255 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
17256 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
17257 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
17258 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
17259 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
17260 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
17262 "elf-compiler-support":C)
17263 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17264 mkdir -p $prefix
17265 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
17267 chmod a+x ${prefix2}-gcc
17269 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
17271 "host-compiler-wrapper-support":C)
17272 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17273 mkdir -p $prefix
17274 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17276 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
17279 esac
17280 done # for ac_tag
17283 as_fn_exit 0
17284 _ACEOF
17285 ac_clean_files=$ac_clean_files_save
17287 test $ac_write_fail = 0 ||
17288 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17291 # configure is writing to config.log, and then calls config.status.
17292 # config.status does its own redirection, appending to config.log.
17293 # Unfortunately, on DOS this fails, as config.log is still kept open
17294 # by configure, so config.status won't be able to write to it; its
17295 # output is simply discarded. So we exec the FD to /dev/null,
17296 # effectively closing config.log, so it can be properly (re)opened and
17297 # appended to by config.status. When coming back to configure, we
17298 # need to make the FD available again.
17299 if test "$no_create" != yes; then
17300 ac_cs_success=:
17301 ac_config_status_args=
17302 test "$silent" = yes &&
17303 ac_config_status_args="$ac_config_status_args --quiet"
17304 exec 5>/dev/null
17305 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17306 exec 5>>config.log
17307 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17308 # would make configure fail if this is the last instruction.
17309 $ac_cs_success || as_fn_exit 1
17311 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17313 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17318 #XXX compatability...
17319 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
17321 if test -n "$aros_shared_cflags" ; then
17322 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
17323 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg